qca_vendor.h 696 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991
  1. /*
  2. * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for
  6. * any purpose with or without fee is hereby granted, provided that the
  7. * above copyright notice and this permission notice appear in all
  8. * copies.
  9. *
  10. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  11. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  12. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  13. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  14. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  15. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  16. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  17. * PERFORMANCE OF THIS SOFTWARE.
  18. */
  19. /**
  20. * DOC: declares vendor commands interfacing with linux kernel
  21. */
  22. #ifndef _WLAN_QCA_VENDOR_H_
  23. #define _WLAN_QCA_VENDOR_H_
  24. /* Vendor id to be used in vendor specific command and events
  25. * to user space.
  26. * NOTE: The authoritative place for definition of QCA_NL80211_VENDOR_ID,
  27. * vendor subcmd definitions prefixed with QCA_NL80211_VENDOR_SUBCMD, and
  28. * qca_wlan_vendor_attr is open source file src/common/qca-vendor.h in
  29. * git://w1.fi/srv/git/hostap.git; the values here are just a copy of that
  30. */
  31. #define QCA_NL80211_VENDOR_ID 0x001374
  32. #ifndef BIT
  33. #define BIT(x) (1U << (x))
  34. #endif
  35. /**
  36. * enum qca_nl80211_vendor_subcmds: NL 80211 vendor sub command
  37. *
  38. * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Unspecified
  39. * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test
  40. * Sub commands 2 to 8 are not used
  41. * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Roaming
  42. * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Avoid frequency.
  43. * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: DFS capability
  44. * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
  45. * NAN Request/Response and NAN Indication messages. These messages are
  46. * interpreted between the framework and the firmware component. While
  47. * sending the command from userspace to the driver, payload is not
  48. * encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
  49. * is used when receiving vendor events in userspace from the driver.
  50. * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT: Ext stats
  51. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET: Link layer stats set
  52. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET: Link layer stats get
  53. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR: Link layer stats clear
  54. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS: Link layer stats radio
  55. * results
  56. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS: Link layer stats interface
  57. * results
  58. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS: Link layer stats peer
  59. * results
  60. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START: Ext scan start
  61. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP: Ext scan stop
  62. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS: Ext scan get valid
  63. * channels
  64. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES: Ext scan get capability
  65. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS: Ext scan get cached
  66. * results
  67. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE: Ext scan results
  68. * available. Used when report_threshold is reached in scan cache.
  69. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT: Ext scan full scan
  70. * result. Used to report scan results when each probe rsp. is received,
  71. * if report_events enabled in wifi_scan_cmd_params.
  72. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT: Ext scan event from target.
  73. * Indicates progress of scanning state-machine.
  74. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND: Ext scan hotlist
  75. * ap found
  76. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST: Ext scan set hotlist
  77. * bssid
  78. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST: Ext scan reset
  79. * hotlist bssid
  80. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE: Ext scan significant
  81. * change
  82. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE: Ext scan set
  83. * significant change
  84. * ap found
  85. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE: Ext scan reset
  86. * significant change
  87. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: Ext tdls enable
  88. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: Ext tdls disable
  89. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: Ext tdls get status
  90. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: Ext tdls state
  91. * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES: Get supported features
  92. * @QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI: Set scanning_mac_oui
  93. * @QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG: No DFS flag
  94. * @QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX: Get Concurrency Matrix
  95. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Get the key mgmt offload keys
  96. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: After roaming, send the
  97. * roaming and auth information.
  98. * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED: Set OCB schedule
  99. *
  100. * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
  101. * invoke the ACS function in device and pass selected channels to
  102. * hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
  103. *
  104. * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Get the supported features by the
  105. * driver.
  106. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Indicate that driver
  107. * started CAC on DFS channel
  108. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Indicate that driver
  109. * completed the CAC check on DFS channel
  110. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Indicate that the CAC
  111. * check was aborted by the driver
  112. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Indicate that the
  113. * driver completed NOP
  114. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Indicate that the
  115. * driver detected radar signal on the current operating channel
  116. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: get wlan driver information
  117. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START: start wifi logger
  118. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP: memory dump request
  119. * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logger feature set
  120. * @QCA_NL80211_VENDOR_SUBCMD_ROAM: roam
  121. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST: extscan set ssid hotlist
  122. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST:
  123. * extscan reset ssid hotlist
  124. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND: hotlist ssid found
  125. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST: hotlist ssid lost
  126. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST: set pno list
  127. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST: set passpoint list
  128. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST:
  129. * reset passpoint list
  130. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND: pno network found
  131. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND:
  132. * passpoint network found
  133. * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: set wifi config
  134. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: get wifi config
  135. * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logging features
  136. * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: get link properties
  137. * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG: set gateway parameters
  138. * @QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST: get preferred channel
  139. list
  140. * @QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL: channel hint
  141. * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the band
  142. * to the host driver. This command sets the band through either
  143. * the attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or
  144. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE
  145. * refers enum qca_set_band as unsigned integer values and
  146. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32 bit unsigned BitMask
  147. * values. Also, the acceptable values for
  148. * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are only till QCA_SETBAND_2G. Further
  149. * values/bitmask's are valid for QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The
  150. * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the
  151. * recommendation is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the
  152. * implementations configure using both the attributes, the configurations
  153. * through QCA_WLAN_VENDOR_ATTR_SETBAND_MASK shall always take the
  154. * precedence.
  155. * @QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN: venodr scan command
  156. * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE: vendor scan complete
  157. * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: vendor abort scan
  158. * @QCA_NL80211_VENDOR_SUBCMD_OTA_TEST: enable OTA test
  159. * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE: set tx power by percentage
  160. * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB: reduce tx power by DB
  161. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG: SAP configuration
  162. * @QCA_NL80211_VENDOR_SUBCMD_TSF: TSF operations command
  163. * @QCA_NL80211_VENDOR_SUBCMD_WISA: WISA mode configuration
  164. * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
  165. * start the P2P Listen Offload function in device and pass the listen
  166. * channel, period, interval, count, number of device types, device
  167. * types and vendor information elements to device driver and firmware.
  168. * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
  169. * indicate stop request/response of the P2P Listen Offload function in
  170. * device. As an event, it indicates either the feature stopped after it
  171. * was already running or feature has actually failed to start.
  172. * @QCA_NL80211_VENDOR_SUBCMD_GET_STATION: send BSS Information
  173. * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After SAP starts
  174. * beaconing, this sub command provides the driver, the frequencies on the
  175. * 5 GHz to check for any radar activity. Driver selects one channel from
  176. * this priority list provided through
  177. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
  178. * to check for radar activity on it. If no radar activity is detected
  179. * during the channel availability check period, driver internally switches
  180. * to the selected frequency of operation. If the frequency is zero, driver
  181. * internally selects a channel. The status of this conditional switch is
  182. * indicated through an event using the same sub command through
  183. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
  184. * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch
  185. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Command/event used to config
  186. * indication period and threshold for MAC layer counters.
  187. * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
  188. * in the host driver. The different TDLS configurations are defined
  189. * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
  190. * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Get HE related capabilities
  191. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS:Set the Specific Absorption Rate
  192. * (SAR) power limits. A critical regulation for FCC compliance, OEMs
  193. * require methods to set SAR limits on TX power of WLAN/WWAN.
  194. * enum qca_vendor_attr_sar_limits attributes are used with this command.
  195. * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: Vendor command used to get/set
  196. * configuration of vendor ACS.
  197. * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
  198. * requisite information leading to a power save failure. The information
  199. * carried as part of this event is represented by the
  200. * enum qca_attr_chip_power_save_failure attributes.
  201. * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
  202. * collection. Uses attributes defined in enum qca_attr_nud_stats_set.
  203. * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
  204. * statistics are represented by the enum qca_attr_nud_stats_get
  205. * attributes.
  206. * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
  207. * the BSS transition status, whether accept or reject, for a list of
  208. * candidate BSSIDs provided by the userspace. This uses the vendor
  209. * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
  210. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
  211. * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
  212. * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
  213. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
  214. * the driver shall specify array of
  215. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
  216. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
  217. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
  218. * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
  219. * specific QCA module. The trace levels are represented by
  220. * enum qca_attr_trace_level attributes.
  221. * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
  222. * Protocol antenna limit in different modes. See enum
  223. * qca_wlan_vendor_attr_brp_ant_limit_mode.
  224. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
  225. * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
  226. * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
  227. * identifying the operation in success case. In failure cases an
  228. * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
  229. * describing the reason for the failure is returned.
  230. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
  231. * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
  232. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
  233. * be stopped.
  234. * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
  235. * specific interface. This can be used to modify some of the low level
  236. * scan parameters (off channel dwell time, home channel time) in the
  237. * driver/firmware. These parameters are maintained within the host
  238. * driver.
  239. * This command is valid only when the interface is in the connected
  240. * state.
  241. * These scan parameters shall be reset by the driver/firmware once
  242. * disconnected. The attributes used with this command are defined in
  243. * enum qca_wlan_vendor_attr_active_tos.
  244. * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
  245. * driver has detected an internal failure. This event carries the
  246. * information indicating the reason that triggered this detection. The
  247. * attributes for this command are defined in
  248. * enum qca_wlan_vendor_attr_hang.
  249. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
  250. * of spectral parameters used. The spectral scan parameters are specified
  251. * by enum qca_wlan_vendor_attr_spectral_scan.
  252. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
  253. * for spectral scan functionality. The debug stats are specified by
  254. * enum qca_wlan_vendor_attr_spectral_diag_stats.
  255. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
  256. * scan system capabilities. The capabilities are specified
  257. * by enum qca_wlan_vendor_attr_spectral_cap.
  258. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
  259. * status of spectral scan. The status values are specified
  260. * by enum qca_wlan_vendor_attr_spectral_scan_status.
  261. * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
  262. * peer pending packets. Specify the peer MAC address in
  263. * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
  264. * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
  265. * in enum qca_wlan_vendor_attr_flush_pending.
  266. * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
  267. * RF Operating Parameter (RROP) information. The attributes for this
  268. * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
  269. * intended for use by external Auto Channel Selection applications.
  270. * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
  271. * (SAR) power limits. This is a companion to the command
  272. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
  273. * settings currently in use. The attributes returned by this command are
  274. * defined by enum qca_vendor_attr_sar_limits.
  275. * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behaviour of
  276. * the WLAN hardware MAC's associated with each WLAN netdev interface.
  277. * This works both as a query (user space asks the current mode) or event
  278. * interface (driver advertizing the current mode to the user space).
  279. * Driver does not trigger this event for temporary hardware mode changes.
  280. * Mode changes w.r.t Wi-Fi connection updation ( VIZ creation / deletion,
  281. * channel change etc ) are updated with this event. Attributes for this
  282. * interface are defined in enum qca_wlan_vendor_attr_mac.
  283. * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
  284. * per peer per TID. Attributes for this command are define in
  285. * enum qca_wlan_set_qdepth_thresh_attr
  286. * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
  287. * guide for WLAN driver. Request to suspend of driver and FW if the
  288. * temperature is higher than the suspend threshold; resume action is
  289. * requested to driver if the temperature is lower than the resume
  290. * threshold. In user poll mode, request temperature data by user. For test
  291. * purpose, getting thermal shutdown configuration parameters is needed.
  292. * Attributes for this interface are defined in
  293. * enum qca_wlan_vendor_attr_thermal_cmd.
  294. * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
  295. * driver. Thermal temperature and indication of resume completion are
  296. * reported as thermal events. The attributes for this command are defined
  297. * in enum qca_wlan_vendor_attr_thermal_event.
  298. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
  299. * test configuration. Attributes for this command are defined in
  300. * enum qca_wlan_vendor_attr_wifi_test_config.
  301. * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
  302. * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
  303. * carried a payload which was a binary blob of data. The command was not
  304. * extendable to send more information. The newer version carries the
  305. * legacy blob encapsulated within an attribute and can be extended with
  306. * additional vendor attributes that can enhance the NAN command
  307. * interface.
  308. * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
  309. * configure parameters per peer to capture Channel Frequency Response
  310. * (CFR) and enable Periodic CFR capture. The attributes for this command
  311. * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command
  312. * can also be used to send CFR data from the driver to userspace when
  313. * netlink events are used to send CFR data.
  314. * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: Sub command to get firmware state.
  315. * The returned firmware state is specified in the attribute
  316. * QCA_WLAN_VENDOR_ATTR_FW_STATE.
  317. * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
  318. * is used by host driver to flush per-peer cached statistics to user space
  319. * application. This interface is used as an event from host driver to
  320. * user space application. Attributes for this event are specified in
  321. * enum qca_wlan_vendor_attr_peer_stats_cache_params.
  322. * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
  323. * sent as event from host driver.
  324. * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
  325. * improve the success rate of Zigbee joining network.
  326. * Due to PTA master limitation, zigbee joining network success rate is
  327. * low while wlan is working. Wlan host driver need to configure some
  328. * parameters including Zigbee state and specific WLAN periods to enhance
  329. * PTA master. All this parameters are delivered by the NetLink attributes
  330. * defined in "enum qca_mpta_helper_vendor_attr".
  331. * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
  332. * implement Beacon frame reporting feature.
  333. *
  334. * Userspace can request the driver/firmware to periodically report
  335. * received Beacon frames whose BSSID is same as the current connected
  336. * BSS's MAC address.
  337. *
  338. * In case the STA seamlessly (without sending disconnect indication to
  339. * userspace) roams to a different BSS, Beacon frame reporting will be
  340. * automatically enabled for the Beacon frames whose BSSID is same as the
  341. * MAC address of the new BSS. Beacon reporting will be stopped when the
  342. * STA is disconnected (when the disconnect indication is sent to
  343. * userspace) and need to be explicitly enabled by userspace for next
  344. * connection.
  345. *
  346. * When a Beacon frame matching configured conditions is received, and if
  347. * userspace has requested to send asynchronous beacon reports, the
  348. * driver/firmware will encapsulate the details of the Beacon frame in an
  349. * event and send it to userspace along with updating the BSS information
  350. * in cfg80211 scan cache, otherwise driver will only update the cfg80211
  351. * scan cache with the information from the received Beacon frame but
  352. * will not send any active report to userspace.
  353. *
  354. * The userspace can request the driver/firmware to stop reporting Beacon
  355. * frames. If the driver/firmware is not able to receive Beacon frames
  356. * due to other Wi-Fi operations such as off-channel activities, etc.,
  357. * the driver/firmware will send a pause event to userspace and stop
  358. * reporting Beacon frames. Whether the beacon reporting will be
  359. * automatically resumed or not by the driver/firmware later will be
  360. * reported to userspace using the
  361. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES flag. The beacon
  362. * reporting shall be resumed for all the cases except either when
  363. * userspace sets QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag
  364. * in the command which triggered the current beacon reporting or during
  365. * any disconnection case as indicated by setting
  366. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
  367. * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
  368. * driver.
  369. *
  370. * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
  371. * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
  372. * flag not set, the next first
  373. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
  374. * shall be considered as un-pause event.
  375. *
  376. * All the attributes used with this command are defined in
  377. * enum qca_wlan_vendor_attr_beacon_reporting_params.
  378. * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some aps have
  379. * interop issues with the DUT. This sub command is used to transfer the
  380. * ap info between driver and user space. This works both as a command
  381. * or event. As a command, it configs the stored list of aps from user
  382. * space to firmware; as an event, it indicates the ap info detected by
  383. * firmware to user space for persistent storage. The attributes defined
  384. * in enum qca_vendor_attr_interop_issues_ap are used to deliver the
  385. * parameters.
  386. * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command is used to send OEM data
  387. * binary blobs from application/service to firmware. The attributes
  388. * defined in enum qca_wlan_vendor_attr_oem_data_params are used to
  389. * deliver the parameters.
  390. * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
  391. * to send/receive avoid frequency data using
  392. * enum qca_wlan_vendor_attr_avoid_frequency_ext.
  393. * This new command is alternative to existing command
  394. * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
  395. * is using stream of bytes instead of structured data using vendor
  396. * attributes. User space sends unsafe frequency ranges to the driver using
  397. * a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On
  398. * reception of this command, the driver shall check if an interface is
  399. * operating on an unsafe frequency and the driver shall try to move to a
  400. * safe channel when needed. If the driver is not able to find a safe
  401. * channel the interface can keep operating on an unsafe channel with the
  402. * TX power limit derived based on internal configurations like
  403. * regulatory/SAR rules.
  404. *
  405. * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
  406. * add the STA node details in driver/firmware. Attributes for this event
  407. * are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
  408. * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
  409. * coex chain mode from application/service.
  410. * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
  411. * to deliver the parameters.
  412. * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
  413. * get information of a station from driver to userspace. This command can
  414. * be used in both STA and AP modes. For STA mode, it provides information
  415. * of the current association when in connected state or the last
  416. * association when in disconnected state. For AP mode, only information
  417. * of the currently connected stations is available. This command uses
  418. * attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
  419. * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
  420. * Host drivers can request the user space entity to set the SAR power
  421. * limits with this event. Accordingly, the user space entity is expected
  422. * to set the SAR power limits. Host drivers can retry this event to the
  423. * user space for the SAR power limits configuration from user space. If
  424. * the driver does not get the SAR power limits from user space for all
  425. * the retried attempts, it can configure a default SAR power limit.
  426. * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
  427. * is used to update the information about the station from the driver to
  428. * userspace. Uses attributes from enum
  429. * qca_wlan_vendor_attr_update_sta_info.
  430. *
  431. * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
  432. * The host driver initiates the disconnection for scenarios such as beacon
  433. * miss, NUD failure, peer kick out, etc. The disconnection indication
  434. * through cfg80211_disconnected() expects the reason codes from enum
  435. * ieee80211_reasoncode which does not signify these various reasons why
  436. * the driver has triggered the disconnection. This event will be used to
  437. * send the driver specific reason codes by the host driver to userspace.
  438. * Host drivers should trigger this event and pass the respective reason
  439. * code immediately prior to triggering cfg80211_disconnected(). The
  440. * attributes used with this event are defined in enum
  441. * qca_wlan_vendor_attr_driver_disconnect_reason.
  442. *
  443. * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
  444. * add/delete TSPEC for each AC. One command is for one specific AC only.
  445. * This command can only be used in STA mode and the STA must be
  446. * associated with an AP when the command is issued. Uses attributes
  447. * defined in enum qca_wlan_vendor_attr_config_tspec.
  448. *
  449. * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
  450. * Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
  451. *
  452. * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the configured band from
  453. * the host driver. The band configurations obtained are referred through
  454. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
  455. *
  456. * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
  457. * assessment.
  458. * Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
  459. *
  460. * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
  461. * used to update SSID information in hostapd when it is updated in the
  462. * driver. Uses the attribute NL80211_ATTR_SSID.
  463. *
  464. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
  465. * the driver to send opaque data from the firmware to userspace. The
  466. * driver sends an event to userspace whenever such data is received from
  467. * the firmware.
  468. *
  469. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
  470. * send this opaque data for this event.
  471. *
  472. * The format of the opaque data is specific to the particular firmware
  473. * version and there is no guarantee of the format remaining same.
  474. *
  475. * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
  476. * The host driver selects Tx VDEV, and notifies user. The attributes
  477. * used with this event are defined in enum
  478. * qca_wlan_vendor_attr_mbssid_tx_vdev_status.
  479. * This event contains Tx VDEV group information contains other VDEVs
  480. * interface index and status information.
  481. *
  482. * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY: Vendor command to
  483. * configure the concurrent session policies when multiple interfaces
  484. * are (getting) active. The attributes used by this command are defined
  485. * in enum qca_wlan_vendor_attr_concurrent_policy.
  486. *
  487. * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command
  488. * to query usable channels for different interface types such as STA,
  489. * AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable
  490. * channels in the response based on country code, different static
  491. * configurations, concurrency combinations, etc. The attributes used
  492. * with this command are defined in
  493. * enum qca_wlan_vendor_attr_usable_channels.
  494. *
  495. * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used
  496. * to get DFS radar history from the driver to userspace. The driver
  497. * returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an
  498. * array of nested entries.
  499. * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to
  500. * enable/disable mDNS offload to the firmware. The attributes used with
  501. * this command are defined in enum qca_wlan_vendor_attr_mdns_offload.
  502. *
  503. * @QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA: Driver uses this command to send
  504. * important debug events that are required for various issues. The
  505. * attributes used with this command are defined in
  506. * enum qca_wlan_vendor_attr_diag.
  507. * This command is defined for temporary usage until this interface is
  508. * moved to the existing diag infra with cnss diag events. This command
  509. * will be deprecated soon and it is not recommended to do any further
  510. * enhancements to this command.
  511. *
  512. * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used
  513. * to set packet monitor mode that aims to send the specified set of TX and
  514. * RX frames on the current client interface to an active monitor interface.
  515. * If this Monitor mode is set, the driver will send the configured frames,
  516. * from the interface on which the command is issued, to an active monitor
  517. * interface. The attributes used with this command are defined in
  518. * enum qca_wlan_vendor_attr_set_monitor_mode.
  519. *
  520. * Though the monitor mode is configured for the respective data/mgmt/ctrl
  521. * frames, it is up to the respective WLAN driver/firmware/hardware designs
  522. * to consider the possibility of sending these frames over the monitor
  523. * interface. For example, the control frames are handled with in the
  524. * hardware and thus passing such frames over the monitor interface is left
  525. * to the respective designs.
  526. *
  527. * Also, this monitor mode is governed to behave accordingly in
  528. * suspend/resume states. If the firmware handles any of such frames
  529. * in suspend state without waking up the host and if the monitor mode
  530. * is configured to notify all such frames, then the firmware is expected
  531. * to resume the host and forward the respective frames to the monitor
  532. * interface. Please note that such a request to get the frames over the
  533. * monitor interface will have a definite power implications.
  534. *
  535. * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both
  536. * as a request to set the driver/firmware with the parameters to trigger
  537. * the roaming events, and also used by the driver/firmware to pass on the
  538. * various roam events to userspace.
  539. * Applicable only for the STA mode. The attributes used with this command
  540. * are defined in enum qca_wlan_vendor_attr_roam_events.
  541. *
  542. * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Sub-command to set or reset the
  543. * rate mask config for a list of phy types. Userspace shall provide
  544. * an array of the vendor attributes defined in
  545. * enum QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS.
  546. *
  547. * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs
  548. * when two interfaces are active on the same band, using two different
  549. * home channels, and only supported by a single radio. In this scenario
  550. * the device must split the use of the radio between the two interfaces.
  551. * The percentage of time allocated to a given interface is the quota.
  552. * Depending on the configuration, the quota can either be fixed or
  553. * dynamic.
  554. *
  555. * When used as an event, the device will report the quota type, and for
  556. * all interfaces operating in MCC it will report the current quota.
  557. * When used as a command, the device can be configured for a specific
  558. * quota type, and in the case of a fixed quota, the quota to apply to one
  559. * of the interfaces.
  560. *
  561. * Applications can use the event to do TX bitrate control based on the
  562. * information, and can use the command to explicitly set the quota to
  563. * enhance performance in specific scenarios.
  564. *
  565. * The attributes used with this command are defined in
  566. * enum qca_wlan_vendor_attr_mcc_quota.
  567. *
  568. * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the
  569. * user space that the driver is ready for operations again after
  570. * recovering from internal failures. This occurs following a failure
  571. * that was indicated by @QCA_NL80211_VENDOR_SUBCMD_HANG.
  572. *
  573. * @QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX: Vendor command to
  574. * get the WLAN radio combinations matrix supported by the device which
  575. * provides the device simultaneous radio configurations such as
  576. * standalone, dual band simultaneous, and single band simultaneous.
  577. *
  578. * The attributes used with this command are defined in
  579. * enum qca_wlan_vendor_attr_radio_combination_matrix.
  580. *
  581. * @QCA_NL80211_VENDOR_SUBCMD_PASN: Subcommand used to offload preassociation
  582. * security negotiation and key generation to user space.
  583. *
  584. * When used as an event, the driver requests userspace to trigger the PASN
  585. * authentication or dropping of a PTKSA for the indicated peer devices.
  586. * When used as a command response, userspace indicates a consolidated
  587. * status report for all the peers that were requested for.
  588. *
  589. * The attributes used with this command are defined in
  590. * enum qca_wlan_vendor_attr_pasn.
  591. *
  592. * @QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT: Subcommand used to set
  593. * secure ranging context such as TK and LTF keyseed for each peer
  594. * requested by the driver with a @QCA_NL80211_VENDOR_SUBCMD_PASN event.
  595. *
  596. * The attributes used with this command are defined in
  597. * enum qca_wlan_vendor_attr_secure_ranging_ctx.
  598. *
  599. * @QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD: This vendor subcommand is used to
  600. * enable/disable offload processing in firmware during system/runtime
  601. * suspend for CoAP messages (see RFC7252: The Constrained Application
  602. * Protocol) and fetch information of the CoAP messages cached during
  603. * offload processing.
  604. *
  605. * The attributes used with this command are defined in
  606. * enum qca_wlan_vendor_attr_coap_offload.
  607. *
  608. * @QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG: Subcommand to configure
  609. * (add, remove, or change) a Stream Classification Service (SCS) rule.
  610. *
  611. * The attributes used with this event are defined in
  612. * enum qca_wlan_vendor_attr_scs_rule_config.
  613. *
  614. * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY: Fetch SAR capabilities
  615. * supported by the WLAN firmware.
  616. *
  617. * The attributes used with this command are defined in
  618. * enum qca_wlan_vendor_attr_sar_capability.
  619. *
  620. * @QCA_NL80211_VENDOR_SUBCMD_SR: Subcommand used to implement Spatial Reuse
  621. * (SR) feature. This command is used by userspace to configure SR
  622. * parameters to the driver and to get the SR related parameters and
  623. * statistics with synchronous responses from the driver.
  624. * The driver also uses this command to send asynchronous events to
  625. * userspace to indicate suspend/resume of SR feature and changes
  626. * in SR parameters.
  627. *
  628. * The attributes used with this command are defined in
  629. * enum qca_wlan_vendor_attr_sr.
  630. *
  631. * @QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT: Subcommand used to
  632. * notify application layer about the primary netdev of an MLO connection.
  633. * In some implementations, MLO has multiple netdevs out of which one
  634. * netdev is designated as primary to provide a unified interface to the
  635. * bridge. In those implementations this event is sent on every MLO peer
  636. * connection.
  637. *
  638. * The attributes used with this event are defined in
  639. * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event.
  640. *
  641. * @QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT: This vendor command is used by the
  642. * driver to notify different AFC events to userspace. The attributes used
  643. * with this command are defined in enum qca_wlan_vendor_attr_afc_event.
  644. *
  645. * @QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE: This vendor command is used by
  646. * userspace to deliver AFC response data to driver. The attributes used
  647. * with this command are defined in enum qca_wlan_vendor_attr_afc_response.
  648. *
  649. * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP: Subcommand to configure AP interface to
  650. * operate in doze mode.
  651. *
  652. * Userspace uses this command to configure the AP interface to enter or
  653. * exit from doze mode. The driver sends this event after it enters or
  654. * exits the doze mode with the updated AP doze mode settings.
  655. *
  656. * The attributes used with this subcommand are defined in
  657. * enum qca_wlan_vendor_attr_dozed_ap.
  658. *
  659. * @QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE: This vendor subcommand is used
  660. * to get the status of local packet capture of monitor mode. The monitor
  661. * mode can be started using QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE
  662. * subcommand.
  663. *
  664. * The attributes used with this command are defined in enum
  665. * qca_wlan_vendor_attr_get_monitor_mode.
  666. *
  667. * @QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS: This vendor command is used to
  668. * get roam information from the driver to user space. It provides the
  669. * latest several instances of roam information cached in the driver.
  670. * The command is only used for STA mode. The attributes used with this
  671. * command are defined in enum qca_wlan_vendor_attr_roam_cached_stats.
  672. *
  673. * @QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE: This vendor subcommand is used to
  674. * configure and fetch the state information of the MLO links affiliated
  675. * with the STA interface. The attributes used with this command are
  676. * defined in enum qca_wlan_vendor_attr_mlo_link_state.
  677. *
  678. * @QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS: Userspace can use this
  679. * vendor subcommand to trigger channel utilization measurement on entire
  680. * channel width of the connected channel(s). For MLO connection, connected
  681. * channel utilization measurement shall be done on all the MLO links.
  682. * The driver may use regular scan or wideband energy detection feature
  683. * based on the hardware capability for connected channel(s) utilization
  684. * measurement. The driver indicates the connected channel(s) utilization
  685. * measurement completion as an asynchronous event with this command ID to
  686. * userspace. Upon receiving this event, userspace can use
  687. * %NL80211_CMD_GET_INTERFACE to determine the channel width of the current
  688. * connected channel(s) and can derive the channel utilization percentage
  689. * (CU) of each 20 MHz sub-channel of the entire connected channel using
  690. * %NL80211_CMD_GET_SURVEY response.
  691. * CU = %NL80211_SURVEY_INFO_TIME_BUSY * 100 / %NL80211_SURVEY_INFO_TIME.
  692. * This command is only used for STA mode.
  693. */
  694. enum qca_nl80211_vendor_subcmds {
  695. QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
  696. QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
  697. QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
  698. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
  699. QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
  700. QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
  701. QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
  702. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
  703. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
  704. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
  705. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
  706. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
  707. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
  708. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20,
  709. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21,
  710. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22,
  711. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23,
  712. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24,
  713. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25,
  714. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26,
  715. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27,
  716. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28,
  717. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29,
  718. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30,
  719. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31,
  720. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32,
  721. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33,
  722. QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
  723. QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
  724. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
  725. QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
  726. QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
  727. QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
  728. QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
  729. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41,
  730. /* Get Concurrency Matrix */
  731. QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
  732. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
  733. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
  734. QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
  735. /* Deprecated */
  736. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53,
  737. QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
  738. QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
  739. /* Off loaded DFS events */
  740. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
  741. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
  742. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
  743. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
  744. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
  745. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
  746. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
  747. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
  748. QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
  749. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65,
  750. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66,
  751. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67,
  752. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68,
  753. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69,
  754. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70,
  755. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71,
  756. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72,
  757. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73,
  758. /* Wi-Fi Configuration subcommands */
  759. QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
  760. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
  761. QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
  762. QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
  763. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
  764. QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
  765. QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
  766. QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
  767. /* NS Offload enable/disable cmd */
  768. QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
  769. QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
  770. QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
  771. QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
  772. QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
  773. /* OCB commands */
  774. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
  775. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
  776. QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
  777. QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
  778. QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
  779. QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
  780. QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
  781. QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
  782. QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
  783. /* subcommand to get link properties */
  784. QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
  785. /* LFR Subnet Detection */
  786. QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
  787. /* DBS subcommands */
  788. QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
  789. QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
  790. /* Vendor setband command */
  791. QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
  792. /* Vendor scan commands */
  793. QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
  794. QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
  795. /* OTA test subcommand */
  796. QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
  797. /* Tx power scaling subcommands */
  798. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
  799. /* Tx power scaling in db subcommands */
  800. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115,
  801. QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
  802. QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117,
  803. QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
  804. QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
  805. QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
  806. QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121,
  807. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
  808. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
  809. QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
  810. QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
  811. QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
  812. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
  813. /* FTM/indoor location subcommands */
  814. QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
  815. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
  816. QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
  817. QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
  818. QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
  819. QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
  820. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
  821. QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
  822. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
  823. /* Encrypt/Decrypt command */
  824. QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
  825. QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
  826. /* DMG low level RF sector operations */
  827. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
  828. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
  829. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
  830. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
  831. /* Configure the TDLS mode from user space */
  832. QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
  833. QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
  834. /* Vendor abort scan command */
  835. QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
  836. /* Set Specific Absorption Rate(SAR) Power Limits */
  837. QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
  838. /* External Auto channel configuration setting */
  839. QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
  840. QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
  841. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
  842. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
  843. QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
  844. /* Set the trace level for QDF */
  845. QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
  846. QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
  847. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
  848. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
  849. QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
  850. QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
  851. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
  852. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
  853. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
  854. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
  855. QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
  856. QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
  857. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
  858. QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
  859. QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
  860. QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
  861. QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
  862. /* Wi-Fi test configuration subcommand */
  863. QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
  864. QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
  865. QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
  866. QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
  867. QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
  868. QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
  869. QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
  870. QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
  871. QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
  872. QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
  873. QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
  874. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
  875. QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
  876. QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
  877. QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
  878. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
  879. QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
  880. QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
  881. QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
  882. QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
  883. QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
  884. QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
  885. QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
  886. QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
  887. QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
  888. QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197,
  889. QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
  890. QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
  891. QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
  892. QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA = 201,
  893. QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
  894. QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
  895. QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
  896. QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
  897. /* 206..212 - reserved for QCA */
  898. QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
  899. QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
  900. QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
  901. QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
  902. QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217,
  903. QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218,
  904. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219,
  905. QCA_NL80211_VENDOR_SUBCMD_SR = 220,
  906. QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221,
  907. QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222,
  908. QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223,
  909. QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224,
  910. QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE = 225,
  911. QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS = 226,
  912. QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE = 227,
  913. QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS = 228,
  914. };
  915. enum qca_wlan_vendor_tos {
  916. QCA_WLAN_VENDOR_TOS_BK = 0,
  917. QCA_WLAN_VENDOR_TOS_BE = 1,
  918. QCA_WLAN_VENDOR_TOS_VI = 2,
  919. QCA_WLAN_VENDOR_TOS_VO = 3,
  920. };
  921. /**
  922. * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
  923. * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
  924. */
  925. enum qca_wlan_vendor_attr_active_tos {
  926. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
  927. /* Type Of Service - Represented by qca_wlan_vendor_tos */
  928. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
  929. /* Flag attribute representing the start (attribute included) or stop
  930. * (attribute not included) of the respective TOS.
  931. */
  932. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
  933. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3,
  934. };
  935. enum qca_wlan_vendor_hang_reason {
  936. /* Unspecified reason */
  937. QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
  938. /* No Map for the MAC entry for the received frame */
  939. QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
  940. /* peer deletion timeout happened */
  941. QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
  942. /* peer unmap timeout */
  943. QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
  944. /* Scan request timed out */
  945. QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
  946. /* Consecutive Scan attempt failures */
  947. QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
  948. /* Unable to get the message buffer */
  949. QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
  950. /* Current command processing is timedout */
  951. QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
  952. /* Timeout for an ACK from FW for suspend request */
  953. QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
  954. /* Timeout for an ACK from FW for resume request */
  955. QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
  956. /* Transmission timeout for consecutive data frames */
  957. QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
  958. /* Timeout for the TX completion status of data frame */
  959. QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
  960. /* DXE failure for tx/Rx, DXE resource unavailability */
  961. QCA_WLAN_HANG_DXE_FAILURE = 12,
  962. /* WMI pending commands exceed the maximum count */
  963. QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
  964. /* Timeout for peer STA connection accept command's response from the
  965. * FW in AP mode. This command is triggered when a STA (peer) connects
  966. * to AP (DUT).
  967. */
  968. QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
  969. /* Timeout for the AP connection accept command's response from the FW
  970. * in STA mode. This command is triggered when the STA (DUT) connects
  971. * to an AP (peer).
  972. */
  973. QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
  974. /* Timeout waiting for the response to the MAC HW mode change command
  975. * sent to FW as a part of MAC mode switch among DBS (Dual Band
  976. * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
  977. * Channel Concurrency) mode.
  978. */
  979. QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
  980. /* Timeout waiting for the response from FW to configure the MAC HW's
  981. * mode. This operation is to configure the single/two MACs in either
  982. * SCC/MCC/DBS mode.
  983. */
  984. QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
  985. /* Timeout waiting for response of VDEV start command from the FW */
  986. QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
  987. /* Timeout waiting for response of VDEV restart command from the FW */
  988. QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
  989. /* Timeout waiting for response of VDEV stop command from the FW */
  990. QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
  991. /* Timeout waiting for response of VDEV delete command from the FW */
  992. QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
  993. /* Timeout waiting for response of peer all delete request command to
  994. * the FW on a specific VDEV.
  995. */
  996. QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
  997. /* WMI sequence mismatch between WMI command and Tx completion */
  998. QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
  999. /* Write to Device HAL register failed */
  1000. QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
  1001. /* No credit left to send the wow_wakeup_from_sleep to firmware */
  1002. QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
  1003. /* Bus failure */
  1004. QCA_WLAN_HANG_BUS_FAILURE = 26,
  1005. /* tasklet/credit latency found */
  1006. QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
  1007. /* MSDU buffers received in REO error ring, exceeding certain
  1008. * threshold
  1009. */
  1010. QCA_WLAN_HANG_RX_MSDU_BUF_RCVD_IN_ERR_RING = 28,
  1011. /* Vdev SM is out of sync and connect req received
  1012. * when already connected
  1013. */
  1014. QCA_WLAN_HANG_VDEV_SM_OUT_OF_SYNC = 29,
  1015. /* Stats request timeout */
  1016. QCA_WLAN_HANG_STATS_REQ_TIMEOUT = 30,
  1017. /* Leak in TX descriptor for a packet */
  1018. QCA_WLAN_HANG_TX_DESC_LEAK = 31,
  1019. /* Scheduler watchdog timeout */
  1020. QCA_WLAN_HANG_SCHED_TIMEOUT = 32,
  1021. /* Failed to send self peer deletion cmd to firmware */
  1022. QCA_WLAN_HANG_SELF_PEER_DEL_FAIL = 33,
  1023. /* Received del self sta without del bss */
  1024. QCA_WLAN_HANG_DEL_SELF_STA_FAIL = 34,
  1025. /* Recovery needed when sending flush completion to userspace */
  1026. QCA_WLAN_HANG_FLUSH_LOGS = 35,
  1027. /* Host wakeup because of page fault */
  1028. QCA_WLAN_HANG_HOST_WAKEUP_REASON_PAGE_FAULT = 36,
  1029. };
  1030. /**
  1031. * enum qca_wlan_vendor_attr_hang - Used by the vendor command
  1032. * QCA_NL80211_VENDOR_SUBCMD_HANG.
  1033. */
  1034. enum qca_wlan_vendor_attr_hang {
  1035. QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
  1036. /*
  1037. * Reason for the Hang - Represented by enum
  1038. * qca_wlan_vendor_hang_reason.
  1039. */
  1040. QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
  1041. /* The binary blob data associated with the hang reason specified by
  1042. * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
  1043. * contain the required dump to analyze the reason for the hang.
  1044. * NLA_BINARY attribute, the max size is 1024 bytes.
  1045. */
  1046. QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
  1047. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
  1048. QCA_WLAN_VENDOR_ATTR_HANG_MAX =
  1049. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
  1050. };
  1051. /**
  1052. * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level
  1053. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level
  1054. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters
  1055. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace
  1056. level needs to be updated.
  1057. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need
  1058. * to be set.
  1059. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last.
  1060. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute.
  1061. */
  1062. enum qca_vendor_attr_set_trace_level {
  1063. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0,
  1064. /*
  1065. * Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM
  1066. * attributes.
  1067. */
  1068. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1,
  1069. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2,
  1070. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3,
  1071. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST,
  1072. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX =
  1073. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1,
  1074. };
  1075. /**
  1076. * enum qca_wlan_vendor_attr_get_station - Sub commands used by
  1077. * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding
  1078. * station information. The information obtained through these
  1079. * commands signify the current info in connected state and
  1080. * latest cached information during the connected state , if queried
  1081. * when in disconnected state.
  1082. *
  1083. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute
  1084. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info
  1085. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason
  1086. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info
  1087. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last
  1088. */
  1089. enum qca_wlan_vendor_attr_get_station {
  1090. QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0,
  1091. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO,
  1092. QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON,
  1093. QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE,
  1094. /* keep last */
  1095. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST,
  1096. QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX =
  1097. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1,
  1098. };
  1099. /**
  1100. * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
  1101. * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
  1102. *
  1103. * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
  1104. * Used in STA mode. This attribute represents the list of channel center
  1105. * frequencies in MHz (u32) the station has learnt during the last connection
  1106. * or roaming attempt. This information shall not signify the channels for
  1107. * an explicit scan request from the user space. Host drivers can update this
  1108. * information to the user space in both connected and disconnected state.
  1109. * In the disconnected state this information shall signify the channels
  1110. * scanned in the last connection/roam attempt that lead to the disconnection.
  1111. */
  1112. enum qca_wlan_vendor_attr_update_sta_info {
  1113. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
  1114. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
  1115. /* keep last */
  1116. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
  1117. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
  1118. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
  1119. };
  1120. /**
  1121. * enum qca_wlan_802_11_mode - dot11 mode
  1122. * @QCA_WLAN_802_11_MODE_11B: mode B
  1123. * @QCA_WLAN_802_11_MODE_11G: mode G
  1124. * @QCA_WLAN_802_11_MODE_11N: mode N
  1125. * @QCA_WLAN_802_11_MODE_11A: mode A
  1126. * @QCA_WLAN_802_11_MODE_11AC: mode AC
  1127. * @QCA_WLAN_802_11_MODE_11AX: mode AX
  1128. * @QCA_WLAN_802_11_MODE_11BE: mode BE
  1129. * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode
  1130. */
  1131. enum qca_wlan_802_11_mode {
  1132. QCA_WLAN_802_11_MODE_11B,
  1133. QCA_WLAN_802_11_MODE_11G,
  1134. QCA_WLAN_802_11_MODE_11N,
  1135. QCA_WLAN_802_11_MODE_11A,
  1136. QCA_WLAN_802_11_MODE_11AC,
  1137. QCA_WLAN_802_11_MODE_11AX,
  1138. QCA_WLAN_802_11_MODE_11BE,
  1139. QCA_WLAN_802_11_MODE_INVALID,
  1140. };
  1141. /**
  1142. * enum qca_wlan_auth_type - Authentication key management type
  1143. * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type
  1144. * @QCA_WLAN_AUTH_TYPE_OPEN: Open key
  1145. * @QCA_WLAN_AUTH_TYPE_SHARED: shared key
  1146. * @QCA_WLAN_AUTH_TYPE_WPA: wpa key
  1147. * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key
  1148. * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key
  1149. * @QCA_WLAN_AUTH_TYPE_RSN: rsn key
  1150. * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key
  1151. * @QCA_WLAN_AUTH_TYPE_FT: ft key
  1152. * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key
  1153. * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key
  1154. * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk
  1155. * @QCA_WLAN_AUTH_TYPE_WAI: wai key
  1156. * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key
  1157. * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key
  1158. * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key
  1159. * @QCA_WLAN_AUTH_TYPE_AUTOSWITCH: Autoswitch key
  1160. * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm
  1161. * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384
  1162. * @QCA_WLAN_AUTH_TYPE_SAE: SAE key
  1163. * @QCA_WLAN_AUTH_TYPE_FILS_SHA256: FILS SHA 256 key
  1164. * @QCA_WLAN_AUTH_TYPE_FILS_SHA384: FILS SAH 384 key
  1165. * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256: FT FILS SHA 256 key
  1166. * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384: FT FILS SHA 384 key
  1167. * @QCA_WLAN_AUTH_TYPE_DPP_RSN: DPP RSN key
  1168. * @QCA_WLAN_AUTH_TYPE_OWE: owe key
  1169. * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256 : EAP SHA 256 key
  1170. * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384 : EAP SHA 384 key
  1171. */
  1172. enum qca_wlan_auth_type {
  1173. QCA_WLAN_AUTH_TYPE_INVALID,
  1174. QCA_WLAN_AUTH_TYPE_OPEN,
  1175. QCA_WLAN_AUTH_TYPE_SHARED,
  1176. QCA_WLAN_AUTH_TYPE_WPA,
  1177. QCA_WLAN_AUTH_TYPE_WPA_PSK,
  1178. QCA_WLAN_AUTH_TYPE_WPA_NONE,
  1179. QCA_WLAN_AUTH_TYPE_RSN,
  1180. QCA_WLAN_AUTH_TYPE_RSN_PSK,
  1181. QCA_WLAN_AUTH_TYPE_FT,
  1182. QCA_WLAN_AUTH_TYPE_FT_PSK,
  1183. QCA_WLAN_AUTH_TYPE_SHA256,
  1184. QCA_WLAN_AUTH_TYPE_SHA256_PSK,
  1185. QCA_WLAN_AUTH_TYPE_WAI,
  1186. QCA_WLAN_AUTH_TYPE_WAI_PSK,
  1187. QCA_WLAN_AUTH_TYPE_CCKM_WPA,
  1188. QCA_WLAN_AUTH_TYPE_CCKM_RSN,
  1189. QCA_WLAN_AUTH_TYPE_AUTOSWITCH,
  1190. QCA_WLAN_AUTH_TYPE_FT_SAE,
  1191. QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384,
  1192. QCA_WLAN_AUTH_TYPE_SAE,
  1193. QCA_WLAN_AUTH_TYPE_FILS_SHA256,
  1194. QCA_WLAN_AUTH_TYPE_FILS_SHA384,
  1195. QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256,
  1196. QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384,
  1197. QCA_WLAN_AUTH_TYPE_DPP_RSN,
  1198. QCA_WLAN_AUTH_TYPE_OWE,
  1199. QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256,
  1200. QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384,
  1201. };
  1202. /**
  1203. * enum qca_wlan_vendor_attr_get_station_info - Station Info queried
  1204. * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION.
  1205. *
  1206. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute
  1207. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR:
  1208. * Get the standard NL attributes Nested with this attribute.
  1209. * Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link -
  1210. * NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) /
  1211. * NL80211_ATTR_STA_INFO
  1212. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR:
  1213. * Get the standard NL attributes Nested with this attribute.
  1214. * Ex : Query HT/VHT Capability advertized by the AP.
  1215. * NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY
  1216. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT:
  1217. * Number of successful Roam attempts before a
  1218. * disconnect, Unsigned 32 bit value
  1219. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM:
  1220. * Authentication Key Management Type used for the connected session.
  1221. * Signified by enum qca_wlan_auth_type
  1222. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the
  1223. * connected Session, signified by enum qca_wlan_802_11_mode
  1224. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION:
  1225. * HS20 Indication Element
  1226. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON:
  1227. * Status Code Corresponding to the Association Failure.
  1228. * Unsigned 32 bit value.
  1229. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE:
  1230. * Max phy rate of remote station
  1231. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS:
  1232. * TX packets to remote station
  1233. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES:
  1234. * TX bytes to remote station
  1235. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS:
  1236. * RX packets from remote station
  1237. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES:
  1238. * RX bytes from remote station
  1239. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE:
  1240. * Last TX rate with remote station
  1241. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE:
  1242. * Last RX rate with remote station
  1243. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM:
  1244. * Remote station enable/disable WMM
  1245. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE:
  1246. * Remote station connection mode
  1247. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU:
  1248. * Remote station AMPDU enable/disable
  1249. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC:
  1250. * Remote station TX Space-time block coding enable/disable
  1251. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC:
  1252. * Remote station RX Space-time block coding enable/disable
  1253. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH:
  1254. * Remote station channel width
  1255. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE:
  1256. * Remote station short GI enable/disable
  1257. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding
  1258. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES: Binary attribute
  1259. * containing the raw information elements from Beacon frames. Represents
  1260. * the Beacon frames of the current BSS in the connected state. When queried
  1261. * in the disconnected state, these IEs correspond to the last connected BSSID.
  1262. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON: u32, Driver
  1263. * disconnect reason for the last disconnection if the disconnection is
  1264. * triggered from the host driver. The values are referred from
  1265. * enum qca_disconnect_reason_codes. If the disconnect is from
  1266. * peer/userspace this value is QCA_DISCONNECT_REASON_UNSPECIFIED.
  1267. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES: Binary attribute
  1268. * Applicable in AP mode only. It contains the raw information elements
  1269. * from assoc request frame of the given peer station. User queries with the
  1270. * mac address of peer station when it disconnects. Host driver sends
  1271. * assoc request frame of the given station. Host driver doesn't provide
  1272. * the IEs when the peer station is still in connected state.
  1273. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION: Attribute type for
  1274. * sending HE operation info.
  1275. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last
  1276. *
  1277. */
  1278. enum qca_wlan_vendor_attr_get_station_info {
  1279. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0,
  1280. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR,
  1281. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR,
  1282. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT,
  1283. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM,
  1284. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE,
  1285. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION,
  1286. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION,
  1287. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION,
  1288. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON,
  1289. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE,
  1290. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS,
  1291. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES,
  1292. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS,
  1293. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES,
  1294. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE,
  1295. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE,
  1296. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM,
  1297. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE,
  1298. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU,
  1299. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC,
  1300. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC,
  1301. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH,
  1302. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE,
  1303. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD,
  1304. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT,
  1305. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT,
  1306. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_FAILURE,
  1307. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AVG_RSSI_PER_CHAIN,
  1308. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_SUCCEED,
  1309. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_LAST_PKT_RSSI,
  1310. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY,
  1311. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST,
  1312. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_TOTAL_FW,
  1313. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_FW,
  1314. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST_FW,
  1315. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES,
  1316. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON,
  1317. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES,
  1318. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION,
  1319. /* keep last */
  1320. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST,
  1321. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX =
  1322. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1,
  1323. };
  1324. /**
  1325. * enum qca_wlan_vendor_attr_tdls_enable - TDLS enable attribute
  1326. *
  1327. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID: Invalid initial value
  1328. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: An array of 6 x Unsigned 8-bit
  1329. * value
  1330. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: Signed 32-bit value, but lets
  1331. * keep as unsigned for now
  1332. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: operating class
  1333. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: Enable max latency in ms
  1334. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: Enable min bandwidth
  1335. * in KBPS
  1336. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST: After last
  1337. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX: Max value
  1338. */
  1339. enum qca_wlan_vendor_attr_tdls_enable {
  1340. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
  1341. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR,
  1342. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL,
  1343. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS,
  1344. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS,
  1345. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS,
  1346. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
  1347. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
  1348. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
  1349. };
  1350. /**
  1351. * enum qca_wlan_vendor_attr_tdls_disable: tdls disable attribute
  1352. *
  1353. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID: Invalid initial value
  1354. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: An array of 6 x Unsigned
  1355. * 8-bit value
  1356. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST: After last
  1357. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX: Max value
  1358. */
  1359. enum qca_wlan_vendor_attr_tdls_disable {
  1360. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
  1361. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR,
  1362. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
  1363. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
  1364. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
  1365. };
  1366. /**
  1367. * qca_chip_power_save_failure_reason: Power save failure reason
  1368. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure
  1369. * due to protocol/module.
  1370. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure
  1371. * due to hardware
  1372. */
  1373. enum qca_chip_power_save_failure_reason {
  1374. QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
  1375. QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
  1376. };
  1377. /**
  1378. * qca_attr_chip_power_save_failure: attributes to vendor subcmd
  1379. * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite
  1380. * information leading to the power save failure.
  1381. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid
  1382. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason
  1383. * represented by enum qca_chip_power_save_failure_reason
  1384. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last
  1385. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value
  1386. */
  1387. enum qca_attr_chip_power_save_failure {
  1388. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
  1389. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
  1390. /* keep last */
  1391. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
  1392. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
  1393. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
  1394. };
  1395. /**
  1396. * enum qca_wlan_vendor_attr_tdls_get_status - tdls get status attribute
  1397. *
  1398. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID: Invalid initial value
  1399. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: An array of 6 x Unsigned
  1400. * 8-bit value
  1401. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: get status state,
  1402. * unsigned 32-bit value
  1403. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: get status reason
  1404. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: get status channel,
  1405. * unsigned 32-bit value
  1406. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: get operating
  1407. * class, unsigned 32-bit value
  1408. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST: After last
  1409. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX: Max value
  1410. */
  1411. enum qca_wlan_vendor_attr_tdls_get_status {
  1412. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
  1413. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR,
  1414. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE,
  1415. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON,
  1416. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL,
  1417. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS,
  1418. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
  1419. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
  1420. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
  1421. };
  1422. /**
  1423. * enum qca_wlan_vendor_attr_tdls_state - tdls state attribute
  1424. *
  1425. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID: Initial invalid value
  1426. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: An array of 6 x Unsigned
  1427. * 8-bit value
  1428. * @QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE: TDLS new state,
  1429. * unsigned 32-bit value
  1430. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: TDLS state reason
  1431. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: TDLS state channel,
  1432. * unsigned 32-bit value
  1433. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: TDLS state
  1434. * operating class, unsigned 32-bit value
  1435. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST: After last
  1436. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX: Max value
  1437. */
  1438. enum qca_wlan_vendor_attr_tdls_state {
  1439. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
  1440. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR,
  1441. QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE,
  1442. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON,
  1443. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL,
  1444. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS,
  1445. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
  1446. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
  1447. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
  1448. };
  1449. /* enum's to provide TDLS capabilities */
  1450. enum qca_wlan_vendor_attr_get_tdls_capabilities {
  1451. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
  1452. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1,
  1453. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2,
  1454. /* keep last */
  1455. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
  1456. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
  1457. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
  1458. };
  1459. /* Compatibility defines for previously used subcmd names.
  1460. * These values should not be used in any new implementation.
  1461. */
  1462. #define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \
  1463. QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY
  1464. enum qca_wlan_vendor_attr {
  1465. QCA_WLAN_VENDOR_ATTR_INVALID = 0,
  1466. /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
  1467. QCA_WLAN_VENDOR_ATTR_DFS = 1,
  1468. /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
  1469. QCA_WLAN_VENDOR_ATTR_NAN = 2,
  1470. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  1471. QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
  1472. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  1473. QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
  1474. /*
  1475. * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
  1476. * by enum qca_roaming_policy.
  1477. */
  1478. QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
  1479. QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
  1480. /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
  1481. QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
  1482. QCA_WLAN_VENDOR_ATTR_TEST = 8,
  1483. /*
  1484. * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES
  1485. * Unsigned 32-bit value.
  1486. */
  1487. QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
  1488. /* Unsigned 32-bit value */
  1489. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
  1490. /* Unsigned 32-bit value */
  1491. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
  1492. /* Unsigned 32-bit value from enum qca_set_band. Also, the acceptable
  1493. * value for this attribute are only till QCA_SETBAND_2G. This attribute
  1494. * is deprecated. Recommendation is to use
  1495. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. If the band is configured
  1496. * using both the attributes, the ones configured through
  1497. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK take the precedence.
  1498. */
  1499. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
  1500. /* Dummy (NOP) attribute for 64 bit padding */
  1501. QCA_WLAN_VENDOR_ATTR_PAD = 13,
  1502. /*
  1503. * Unique FTM session cookie (Unsigned 64 bit). Specified in
  1504. * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
  1505. * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
  1506. * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
  1507. */
  1508. QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
  1509. /*
  1510. * Indoor location capabilities, returned by
  1511. * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
  1512. * see enum qca_wlan_vendor_attr_loc_capa.
  1513. */
  1514. QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
  1515. /*
  1516. * Array of nested attributes containing information about each peer
  1517. * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
  1518. * for supported attributes for each peer.
  1519. */
  1520. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
  1521. /*
  1522. * Array of nested attributes containing measurement results for
  1523. * one or more peers, reported by the
  1524. * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
  1525. * See enum qca_wlan_vendor_attr_peer_result for list of supported
  1526. * attributes.
  1527. */
  1528. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
  1529. /* Flag attribute for enabling or disabling responder functionality. */
  1530. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
  1531. /*
  1532. * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  1533. * command to specify the LCI report that will be sent by
  1534. * the responder during a measurement exchange. The format is
  1535. * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
  1536. */
  1537. QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
  1538. /*
  1539. * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  1540. * command to specify the location civic report that will
  1541. * be sent by the responder during a measurement exchange.
  1542. * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
  1543. */
  1544. QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
  1545. /*
  1546. * Session/measurement completion status code,
  1547. * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
  1548. * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
  1549. * see enum qca_vendor_attr_loc_session_status.
  1550. */
  1551. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
  1552. /*
  1553. * Initial dialog token used by responder (0 if not specified),
  1554. * unsigned 8 bit value.
  1555. */
  1556. QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
  1557. /*
  1558. * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
  1559. * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
  1560. * AOA measurements are needed as part of an FTM session.
  1561. * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
  1562. * enum qca_wlan_vendor_attr_aoa_type.
  1563. */
  1564. QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
  1565. /*
  1566. * A bit mask (unsigned 32 bit value) of antenna arrays used
  1567. * by indoor location measurements. Refers to the antenna
  1568. * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
  1569. */
  1570. QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
  1571. /*
  1572. * AOA measurement data. Its contents depends on the AOA measurement
  1573. * type and antenna array mask:
  1574. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
  1575. * phase of the strongest CIR path for each antenna in the measured
  1576. * array(s).
  1577. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
  1578. * values, phase and amplitude of the strongest CIR path for each
  1579. * antenna in the measured array(s).
  1580. */
  1581. QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
  1582. /*
  1583. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1584. * to specify the chain number (unsigned 32 bit value) to inquire
  1585. * the corresponding antenna RSSI value */
  1586. QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
  1587. /*
  1588. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1589. * to report the specific antenna RSSI value (unsigned 32 bit value) */
  1590. QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
  1591. /* Frequency in MHz, various uses. Unsigned 32 bit value */
  1592. QCA_WLAN_VENDOR_ATTR_FREQ = 28,
  1593. /*
  1594. * TSF timer value, unsigned 64 bit value.
  1595. * May be returned by various commands.
  1596. */
  1597. QCA_WLAN_VENDOR_ATTR_TSF = 29,
  1598. /*
  1599. * DMG RF sector index, unsigned 16 bit number. Valid values are
  1600. * 0..127 for sector indices or 65535 as special value used to
  1601. * unlock sector selection in
  1602. * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
  1603. */
  1604. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
  1605. /*
  1606. * DMG RF sector type, unsigned 8 bit value. One of the values
  1607. * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
  1608. */
  1609. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
  1610. /*
  1611. * Bitmask of DMG RF modules for which information is requested. Each
  1612. * bit corresponds to an RF module with the same index as the bit
  1613. * number. Unsigned 32 bit number but only low 8 bits can be set since
  1614. * all DMG chips currently have up to 8 RF modules.
  1615. */
  1616. QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
  1617. /*
  1618. * Array of nested attributes where each entry is DMG RF sector
  1619. * configuration for a single RF module.
  1620. * Attributes for each entry are taken from enum
  1621. * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
  1622. * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
  1623. * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
  1624. */
  1625. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
  1626. /*
  1627. * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
  1628. * to report frame aggregation statistics to userspace.
  1629. */
  1630. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
  1631. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
  1632. /*
  1633. * Unsigned 8-bit value representing MBO transition reason code as
  1634. * provided by the AP used by subcommand
  1635. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
  1636. * specified by the userspace in the request to the driver.
  1637. */
  1638. QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
  1639. /*
  1640. * Array of nested attributes, BSSID and status code, used by subcommand
  1641. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
  1642. * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
  1643. * The userspace space specifies the list/array of candidate BSSIDs in
  1644. * the order of preference in the request. The driver specifies the
  1645. * status code, for each BSSID in the list, in the response. The
  1646. * acceptable candidates are listed in the order preferred by the
  1647. * driver.
  1648. */
  1649. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
  1650. /*
  1651. * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
  1652. * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
  1653. */
  1654. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
  1655. /*
  1656. * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
  1657. * to define the number of antennas to use for BRP.
  1658. * different purpose in each ANT_LIMIT_MODE:
  1659. * DISABLE - ignored
  1660. * EFFECTIVE - upper limit to number of antennas to be used
  1661. * FORCE - exact number of antennas to be used
  1662. * unsigned 8 bit value
  1663. */
  1664. QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
  1665. /*
  1666. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1667. * to report the corresponding antenna index to the chain RSSI value
  1668. */
  1669. QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
  1670. /*
  1671. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1672. * to report the specific antenna EVM value (unsigned 32 bit value).
  1673. * With a determinate group of antennas, the driver specifies the
  1674. * EVM value for each antenna ID, and application extract them
  1675. * in user space.
  1676. */
  1677. QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
  1678. /*
  1679. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
  1680. * wlan firmware current state. FW state is an unsigned 8 bit value,
  1681. * one of the values in enum qca_wlan_vendor_attr_fw_state.
  1682. */
  1683. QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
  1684. /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
  1685. * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only the
  1686. * integer values of enum qca_set_band till QCA_SETBAND_2G are valid.
  1687. * This attribute shall consider the bitmask combinations to define
  1688. * the respective Band combinations and always takes precedence over
  1689. * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE.
  1690. */
  1691. QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
  1692. /* keep last */
  1693. QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
  1694. QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1
  1695. };
  1696. enum qca_wlan_vendor_attr_extscan_config_params {
  1697. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
  1698. /* Unsigned 32-bit value */
  1699. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
  1700. /*
  1701. * Attributes for data used by
  1702. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command.
  1703. */
  1704. /* Unsigned 32-bit value */
  1705. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
  1706. = 2,
  1707. /* Unsigned 32-bit value */
  1708. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
  1709. = 3,
  1710. /*
  1711. * Attributes for input params used by
  1712. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command.
  1713. */
  1714. /* Unsigned 32-bit value; channel frequency */
  1715. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4,
  1716. /* Unsigned 32-bit value; dwell time in ms. */
  1717. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
  1718. /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
  1719. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6,
  1720. /* Unsigned 8-bit value; channel class */
  1721. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7,
  1722. /* Unsigned 8-bit value; bucket index, 0 based */
  1723. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8,
  1724. /* Unsigned 8-bit value; band. */
  1725. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9,
  1726. /* Unsigned 32-bit value; desired period, in ms. */
  1727. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10,
  1728. /* Unsigned 8-bit value; report events semantics. */
  1729. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
  1730. /*
  1731. * Unsigned 32-bit value. Followed by a nested array of
  1732. * EXTSCAN_CHANNEL_SPEC_* attributes.
  1733. */
  1734. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
  1735. /*
  1736. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes.
  1737. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  1738. */
  1739. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13,
  1740. /* Unsigned 32-bit value; base timer period in ms. */
  1741. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
  1742. /*
  1743. * Unsigned 32-bit value; number of APs to store in each scan in the
  1744. * BSSID/RSSI history buffer (keep the highest RSSI APs).
  1745. */
  1746. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
  1747. /*
  1748. * Unsigned 8-bit value; in %, when scan buffer is this much full, wake
  1749. * up AP.
  1750. */
  1751. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
  1752. = 16,
  1753. /*
  1754. * Unsigned 8-bit value; number of scan bucket specs; followed by a
  1755. * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size
  1756. * of the array is determined by NUM_BUCKETS.
  1757. */
  1758. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
  1759. /*
  1760. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes.
  1761. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
  1762. */
  1763. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18,
  1764. /* Unsigned 8-bit value */
  1765. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
  1766. = 19,
  1767. /* Unsigned 32-bit value; maximum number of results to be returned. */
  1768. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
  1769. = 20,
  1770. /* An array of 6 x unsigned 8-bit value */
  1771. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
  1772. /* Signed 32-bit value */
  1773. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
  1774. /* Signed 32-bit value */
  1775. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
  1776. /* Unsigned 32-bit value */
  1777. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
  1778. /*
  1779. * Number of hotlist APs as unsigned 32-bit value, followed by a nested
  1780. * array of AP_THRESHOLD_PARAM attributes and values. The size of the
  1781. * array is determined by NUM_AP.
  1782. */
  1783. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
  1784. /*
  1785. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes.
  1786. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  1787. */
  1788. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26,
  1789. /* Unsigned 32-bit value; number of samples for averaging RSSI. */
  1790. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
  1791. = 27,
  1792. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  1793. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
  1794. = 28,
  1795. /* Unsigned 32-bit value; number of APs breaching threshold. */
  1796. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
  1797. /*
  1798. * Unsigned 32-bit value; number of APs. Followed by an array of
  1799. * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
  1800. */
  1801. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
  1802. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  1803. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
  1804. = 31,
  1805. /*
  1806. * Unsigned 32-bit value. If max_period is non zero or different than
  1807. * period, then this bucket is an exponential backoff bucket.
  1808. */
  1809. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
  1810. /* Unsigned 32-bit value. */
  1811. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33,
  1812. /*
  1813. * Unsigned 32-bit value. For exponential back off bucket, number of
  1814. * scans to perform for a given period.
  1815. */
  1816. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34,
  1817. /*
  1818. * Unsigned 8-bit value; in number of scans, wake up AP after these
  1819. * many scans.
  1820. */
  1821. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
  1822. = 35,
  1823. /*
  1824. * Attributes for data used by
  1825. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command.
  1826. */
  1827. /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
  1828. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
  1829. = 36,
  1830. /*
  1831. * Number of hotlist SSIDs as unsigned 32-bit value, followed by a
  1832. * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
  1833. * size of the array is determined by NUM_SSID.
  1834. */
  1835. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
  1836. /*
  1837. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_*
  1838. * attributes.
  1839. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
  1840. */
  1841. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38,
  1842. /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
  1843. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
  1844. /* Unsigned 8-bit value */
  1845. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
  1846. /* Signed 32-bit value */
  1847. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
  1848. /* Signed 32-bit value */
  1849. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
  1850. /* Unsigned 32-bit value; a bitmask with additional extscan config flag.
  1851. */
  1852. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43,
  1853. /* keep last */
  1854. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
  1855. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX =
  1856. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
  1857. };
  1858. enum qca_wlan_vendor_attr_extscan_results {
  1859. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0,
  1860. /*
  1861. * Unsigned 32-bit value; must match the request Id supplied by
  1862. * Wi-Fi HAL in the corresponding subcmd NL msg.
  1863. */
  1864. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1,
  1865. /*
  1866. * Unsigned 32-bit value; used to indicate the status response from
  1867. * firmware/driver for the vendor sub-command.
  1868. */
  1869. QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2,
  1870. /*
  1871. * EXTSCAN Valid Channels attributes */
  1872. /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
  1873. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3,
  1874. /*
  1875. * An array of NUM_CHANNELS x unsigned 32-bit value integers
  1876. * representing channel numbers.
  1877. */
  1878. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4,
  1879. /* EXTSCAN Capabilities attributes */
  1880. /* Unsigned 32-bit value */
  1881. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
  1882. /* Unsigned 32-bit value */
  1883. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
  1884. /* Unsigned 32-bit value */
  1885. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
  1886. = 7,
  1887. /* Unsigned 32-bit value */
  1888. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
  1889. = 8,
  1890. /* Signed 32-bit value */
  1891. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
  1892. = 9,
  1893. /* Unsigned 32-bit value */
  1894. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
  1895. /* Unsigned 32-bit value */
  1896. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
  1897. = 11,
  1898. /* Unsigned 32-bit value */
  1899. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
  1900. = 12,
  1901. /*
  1902. * EXTSCAN Attributes used with
  1903. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command.
  1904. */
  1905. /* Unsigned 32-bit value */
  1906. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
  1907. /*
  1908. * EXTSCAN attributes used with
  1909. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command.
  1910. */
  1911. /*
  1912. * An array of NUM_RESULTS_AVAILABLE x
  1913. * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_*
  1914. */
  1915. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14,
  1916. /* Unsigned 64-bit value; age of sample at the time of retrieval */
  1917. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
  1918. /* 33 x unsigned 8-bit value; NULL terminated SSID */
  1919. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16,
  1920. /* An array of 6 x unsigned 8-bit value */
  1921. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
  1922. /* Unsigned 32-bit value; channel frequency in MHz */
  1923. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
  1924. /* Signed 32-bit value */
  1925. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
  1926. /* Unsigned 32-bit value */
  1927. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20,
  1928. /* Unsigned 32-bit value */
  1929. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
  1930. /* Unsigned 16-bit value */
  1931. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
  1932. /* Unsigned 16-bit value */
  1933. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
  1934. /* Unsigned 32-bit value; size of the IE DATA blob */
  1935. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
  1936. /*
  1937. * An array of IE_LENGTH x unsigned 8-bit value; blob of all the
  1938. * information elements found in the beacon; this data should be a
  1939. * packed list of wifi_information_element objects, one after the
  1940. * other.
  1941. */
  1942. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
  1943. /*
  1944. * Unsigned 8-bit value; set by driver to indicate more scan results are
  1945. * available.
  1946. */
  1947. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
  1948. /*
  1949. * EXTSCAN attributes for
  1950. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command.
  1951. */
  1952. /* Unsigned 8-bit value */
  1953. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
  1954. /* Unsigned 32-bit value */
  1955. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
  1956. /*
  1957. * EXTSCAN attributes for
  1958. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command.
  1959. */
  1960. /*
  1961. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  1962. * to indicate number of results.
  1963. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
  1964. * list of results.
  1965. */
  1966. /*
  1967. * EXTSCAN attributes for
  1968. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command.
  1969. */
  1970. /* An array of 6 x unsigned 8-bit value */
  1971. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
  1972. /* Unsigned 32-bit value */
  1973. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
  1974. = 30,
  1975. /* Unsigned 32-bit value. */
  1976. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
  1977. = 31,
  1978. /*
  1979. * A nested array of signed 32-bit RSSI values. Size of the array is
  1980. * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
  1981. */
  1982. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
  1983. = 32,
  1984. /*
  1985. * EXTSCAN attributes used with
  1986. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command.
  1987. */
  1988. /*
  1989. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  1990. * to indicate number of extscan cached results returned.
  1991. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate
  1992. * the list of extscan cached results.
  1993. */
  1994. /*
  1995. * An array of NUM_RESULTS_AVAILABLE x
  1996. * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_*
  1997. */
  1998. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33,
  1999. /* Unsigned 32-bit value; a unique identifier for the scan unit. */
  2000. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34,
  2001. /*
  2002. * Unsigned 32-bit value; a bitmask w/additional information about scan.
  2003. */
  2004. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35,
  2005. /*
  2006. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  2007. * to indicate number of wifi scan results/bssids retrieved by the scan.
  2008. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
  2009. * list of wifi scan results returned for each cached result block.
  2010. */
  2011. /*
  2012. * EXTSCAN attributes for
  2013. * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
  2014. */
  2015. /*
  2016. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
  2017. * number of results.
  2018. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
  2019. * list of wifi scan results returned for each
  2020. * wifi_passpoint_match_result block.
  2021. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
  2022. */
  2023. /*
  2024. * EXTSCAN attributes for
  2025. * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
  2026. */
  2027. /* Unsigned 32-bit value */
  2028. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
  2029. = 36,
  2030. /*
  2031. * A nested array of
  2032. * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
  2033. * attributes. Array size =
  2034. * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
  2035. */
  2036. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
  2037. /* Unsigned 32-bit value; network block id for the matched network */
  2038. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
  2039. /*
  2040. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
  2041. * list of wifi scan results returned for each
  2042. * wifi_passpoint_match_result block.
  2043. */
  2044. /* Unsigned 32-bit value */
  2045. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
  2046. /*
  2047. * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
  2048. * ANQP data in the information_element format.
  2049. */
  2050. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
  2051. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2052. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
  2053. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2054. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
  2055. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2056. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
  2057. = 43,
  2058. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2059. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
  2060. = 44,
  2061. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45,
  2062. QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
  2063. /* keep last */
  2064. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST,
  2065. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX =
  2066. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1,
  2067. };
  2068. /**
  2069. * enum qca_vendor_interop_issues_ap_type - interop issues type
  2070. * This enum defines the valid set of values of interop issues type. These
  2071. * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
  2072. *
  2073. * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue
  2074. * when the STA's Qpower feature is enabled.
  2075. */
  2076. enum qca_vendor_interop_issues_ap_type {
  2077. QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
  2078. QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
  2079. };
  2080. /**
  2081. * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues
  2082. * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
  2083. *
  2084. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value
  2085. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type
  2086. * 32-bit unsigned value, The type defined in enum
  2087. * qca_vendor_interop_issues_ap_type are used.
  2088. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container
  2089. * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes,
  2090. * it is present and mandatory for the command but is not used for
  2091. * the event since only a single BSSID is reported in an event.
  2092. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid
  2093. * 6-byte MAC address. It is used within the nested
  2094. * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case
  2095. * and without such encapsulation in the event case.
  2096. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
  2097. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
  2098. */
  2099. enum qca_vendor_attr_interop_issues_ap {
  2100. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
  2101. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
  2102. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
  2103. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
  2104. /* keep last */
  2105. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
  2106. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
  2107. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
  2108. };
  2109. #ifdef WLAN_FEATURE_LINK_LAYER_STATS
  2110. /**
  2111. * enum qca_wlan_vendor_attr_ll_stats_set - vendor attribute set stats
  2112. *
  2113. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID: Invalid initial value
  2114. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD: Size threshold
  2115. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING:
  2116. * Aggressive stats gathering
  2117. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST: After last
  2118. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX: Max value
  2119. */
  2120. enum qca_wlan_vendor_attr_ll_stats_set {
  2121. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
  2122. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
  2123. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING,
  2124. /* keep last */
  2125. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
  2126. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
  2127. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1
  2128. };
  2129. /**
  2130. * enum qca_wlan_vendor_attr_ll_stats_get - vendor attribute get stats
  2131. *
  2132. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID: Invalid initial value
  2133. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID: Unsigned 32bit value
  2134. * provided by the caller issuing the GET stats command. When reporting
  2135. * the stats results, the driver uses the same value to indicate which
  2136. * GET request the results correspond to.
  2137. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK: Get config request mask
  2138. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
  2139. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
  2140. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST: After last
  2141. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX: Max value
  2142. */
  2143. enum qca_wlan_vendor_attr_ll_stats_get {
  2144. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
  2145. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID,
  2146. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK,
  2147. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
  2148. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
  2149. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1
  2150. };
  2151. /**
  2152. * enum qca_wlan_vendor_attr_ll_stats_clr - vendor attribute clear stats
  2153. *
  2154. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID: Invalid initial value
  2155. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK: Config request mask
  2156. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ: Config stop mask
  2157. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
  2158. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
  2159. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST: After last
  2160. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX: Max value
  2161. */
  2162. enum qca_wlan_vendor_attr_ll_stats_clr {
  2163. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
  2164. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK,
  2165. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ,
  2166. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK,
  2167. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP,
  2168. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
  2169. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
  2170. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1
  2171. };
  2172. /**
  2173. * enum qca_wlan_vendor_attr_ll_stats_results_type - ll stats result type
  2174. *
  2175. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID: Initial invalid value
  2176. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO: Link layer stats type radio
  2177. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE: Link layer stats type interface
  2178. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER: Link layer stats type peer
  2179. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST: Last value
  2180. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX: Max value
  2181. */
  2182. enum qca_wlan_vendor_attr_ll_stats_results_type {
  2183. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID = 0,
  2184. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO = 1,
  2185. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE,
  2186. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER,
  2187. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST,
  2188. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX =
  2189. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST - 1
  2190. };
  2191. enum qca_wlan_vendor_attr_ll_stats_results {
  2192. QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
  2193. /* Unsigned 32bit value. Used by the driver; must match the request id
  2194. * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
  2195. */
  2196. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
  2197. /* Unsigned 32 bit value */
  2198. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
  2199. /* Unsigned 32 bit value */
  2200. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
  2201. /* Unsigned 32 bit value */
  2202. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
  2203. /* Unsigned 32 bit value */
  2204. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
  2205. /* Signed 32 bit value */
  2206. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
  2207. /* Signed 32 bit value */
  2208. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
  2209. /* Signed 32 bit value */
  2210. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
  2211. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
  2212. * nested within the interface stats.
  2213. */
  2214. /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
  2215. * Type = enum wifi_interface_mode.
  2216. */
  2217. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
  2218. /* Interface MAC address. An array of 6 Unsigned int8 */
  2219. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
  2220. /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
  2221. * AUTHENTICATING, etc. valid for STA, CLI only.
  2222. */
  2223. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
  2224. /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
  2225. */
  2226. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
  2227. /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
  2228. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
  2229. /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
  2230. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
  2231. /* BSSID. An array of 6 unsigned 8 bit values */
  2232. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
  2233. /* Country string advertised by AP. An array of 3 unsigned 8 bit
  2234. * values.
  2235. */
  2236. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
  2237. /* Country string for this association. An array of 3 unsigned 8 bit
  2238. * values.
  2239. */
  2240. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
  2241. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
  2242. * be nested within the interface stats.
  2243. */
  2244. /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
  2245. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
  2246. /* Unsigned int 32 value corresponding to respective AC */
  2247. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
  2248. /* Unsigned int 32 value corresponding to respective AC */
  2249. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
  2250. /* Unsigned int 32 value corresponding to respective AC */
  2251. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
  2252. /* Unsigned int 32 value corresponding to respective AC */
  2253. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
  2254. /* Unsigned int 32 value corresponding to respective AC */
  2255. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
  2256. /* Unsigned int 32 value corresponding to respective AC */
  2257. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
  2258. /* Unsigned int 32 value corresponding to respective AC */
  2259. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
  2260. /* Unsigned int 32 value corresponding to respective AC */
  2261. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
  2262. /* Unsigned int 32 value corresponding to respective AC */
  2263. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
  2264. /* Unsigned int 32 values corresponding to respective AC */
  2265. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
  2266. /* Unsigned int 32 values corresponding to respective AC */
  2267. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
  2268. /* Unsigned int 32 values corresponding to respective AC */
  2269. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
  2270. /* Unsigned int 32 values corresponding to respective AC */
  2271. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
  2272. /* Unsigned int 32 values corresponding to respective AC */
  2273. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
  2274. /* Unsigned 32 bit value. Number of peers */
  2275. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
  2276. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
  2277. * nested within the interface stats.
  2278. */
  2279. /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
  2280. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
  2281. /* MAC addr corresponding to respective peer. An array of 6 unsigned
  2282. * 8 bit values.
  2283. */
  2284. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
  2285. /* Unsigned int 32 bit value representing capabilities corresponding
  2286. * to respective peer.
  2287. */
  2288. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
  2289. /* Unsigned 32 bit value. Number of rates */
  2290. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
  2291. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
  2292. * are nested within the rate stat.
  2293. */
  2294. /* Wi-Fi Rate - separate attributes defined for individual fields */
  2295. /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
  2296. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
  2297. /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
  2298. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
  2299. /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
  2300. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
  2301. /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
  2302. * in the units of 0.5 Mbps HT/VHT it would be MCS index
  2303. */
  2304. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
  2305. /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
  2306. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
  2307. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
  2308. * nested within the peer info stats.
  2309. */
  2310. /* Unsigned int 32 bit value. Number of successfully transmitted data
  2311. * packets, i.e., with ACK received corresponding to the respective
  2312. * rate.
  2313. */
  2314. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
  2315. /* Unsigned int 32 bit value. Number of received data packets
  2316. * corresponding to the respective rate.
  2317. */
  2318. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
  2319. /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
  2320. * received corresponding to the respective rate.
  2321. */
  2322. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
  2323. /* Unsigned int 32 bit value. Total number of data packet retries for
  2324. * the respective rate.
  2325. */
  2326. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
  2327. /* Unsigned int 32 bit value. Total number of short data packet retries
  2328. * for the respective rate.
  2329. */
  2330. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
  2331. /* Unsigned int 32 bit value. Total number of long data packet retries
  2332. * for the respective rate.
  2333. */
  2334. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
  2335. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
  2336. /* Unsigned 32 bit value. Total number of msecs the radio is awake
  2337. * accruing over time.
  2338. */
  2339. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
  2340. /* Unsigned 32 bit value. Total number of msecs the radio is
  2341. * transmitting accruing over time.
  2342. */
  2343. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
  2344. /* Unsigned 32 bit value. Total number of msecs the radio is in active
  2345. * receive accruing over time.
  2346. */
  2347. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
  2348. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2349. * to all scan accruing over time.
  2350. */
  2351. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
  2352. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2353. * to NAN accruing over time.
  2354. */
  2355. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
  2356. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2357. * to GSCAN accruing over time.
  2358. */
  2359. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
  2360. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2361. * to roam scan accruing over time.
  2362. */
  2363. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
  2364. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2365. * to PNO scan accruing over time.
  2366. */
  2367. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
  2368. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2369. * to Hotspot 2.0 scans and GAS exchange accruing over time.
  2370. */
  2371. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
  2372. /* Unsigned 32 bit value. Number of channels. */
  2373. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
  2374. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
  2375. * be nested within the channel stats.
  2376. */
  2377. /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
  2378. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
  2379. /* Unsigned 32 bit value. Primary 20 MHz channel. */
  2380. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
  2381. /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
  2382. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
  2383. /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
  2384. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
  2385. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
  2386. * nested within the radio stats.
  2387. */
  2388. /* Unsigned int 32 bit value representing total number of msecs the
  2389. * radio is awake on that channel accruing over time, corresponding to
  2390. * the respective channel.
  2391. */
  2392. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
  2393. /* Unsigned int 32 bit value representing total number of msecs the CCA
  2394. * register is busy accruing over time corresponding to the respective
  2395. * channel.
  2396. */
  2397. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
  2398. QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
  2399. /* Signifies the nested list of channel attributes
  2400. * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
  2401. */
  2402. QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
  2403. /* Signifies the nested list of peer info attributes
  2404. * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*
  2405. */
  2406. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
  2407. /* Signifies the nested list of rate info attributes
  2408. * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
  2409. */
  2410. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
  2411. /* Signifies the nested list of wmm info attributes
  2412. * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
  2413. */
  2414. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
  2415. /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
  2416. * that more stats, e.g., peers or radio, are to follow in the next
  2417. * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
  2418. * Otherwise, it is set to 0.
  2419. */
  2420. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
  2421. /* Unsigned 64 bit value */
  2422. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
  2423. /* Unsigned 32 bit value */
  2424. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
  2425. /* Unsigned 32 bit value */
  2426. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
  2427. /* Unsigned 32 bit value */
  2428. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
  2429. /* Unsigned 32 bit value */
  2430. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
  2431. /* Unsigned 32 bit value */
  2432. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
  2433. /* Number of msecs the radio spent in transmitting for each power level
  2434. */
  2435. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
  2436. /* Unsigned 32 bit value */
  2437. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
  2438. /* Unsigned 32 bit value */
  2439. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
  2440. /* Unsigned 32 bit value */
  2441. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
  2442. /* Unsigned 32 bit value */
  2443. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
  2444. /* Unsigned int 32 value.
  2445. * Pending MSDUs corresponding to respective AC.
  2446. */
  2447. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
  2448. /* u32 value representing total time in milliseconds for which the radio
  2449. * is transmitting on this channel. This attribute will be nested
  2450. * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
  2451. */
  2452. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
  2453. /* u32 value representing total time in milliseconds for which the radio
  2454. * is receiving all 802.11 frames intended for this device on this
  2455. * channel. This attribute will be nested within
  2456. * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
  2457. */
  2458. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
  2459. /* u8 value representing the channel load percentage. Possible values
  2460. * are 0-100.
  2461. */
  2462. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
  2463. /* u8 value representing the time slicing duty cycle percentage.
  2464. * Possible values are 0-100.
  2465. */
  2466. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
  2467. /* Unsigned 32 bit value. The number of Beacon frames which are received
  2468. * from the associated AP and indicate buffered unicast frame(s) for us
  2469. * in the TIM element.
  2470. */
  2471. QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88,
  2472. /* Unsigned 32 bit value. The total number of Beacon frames received
  2473. * from the associated AP that have wrongly indicated buffered unicast
  2474. * traffic in the TIM element for us.
  2475. * Below scenarios will be considered as wrong TIM element beacon:
  2476. * 1) The related TIM element is set in the beacon for STA but STA
  2477. * doesn’t receive any unicast data after this beacon.
  2478. * 2) The related TIM element is still set in the beacon for STA
  2479. * after STA has indicated power save exit by QoS Null Data frame.
  2480. */
  2481. QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89,
  2482. /* Signed 32 bit value. It represents the noise floor calibration value.
  2483. * Possible values are -120~-50 dBm.
  2484. */
  2485. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NF_CAL_VAL = 90,
  2486. /* keep last */
  2487. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
  2488. QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
  2489. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
  2490. };
  2491. enum qca_wlan_vendor_attr_ll_stats_type {
  2492. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
  2493. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
  2494. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
  2495. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
  2496. /* keep last */
  2497. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
  2498. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
  2499. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
  2500. };
  2501. #endif /* WLAN_FEATURE_LINK_LAYER_STATS */
  2502. /**
  2503. * enum qca_wlan_vendor_attr_get_supported_features - get supported feature
  2504. *
  2505. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value
  2506. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value
  2507. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last
  2508. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
  2509. */
  2510. enum qca_wlan_vendor_attr_get_supported_features {
  2511. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0,
  2512. QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1,
  2513. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST,
  2514. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX =
  2515. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1,
  2516. };
  2517. /**
  2518. * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui
  2519. *
  2520. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value
  2521. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit
  2522. * value
  2523. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last
  2524. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value
  2525. */
  2526. enum qca_wlan_vendor_attr_set_scanning_mac_oui {
  2527. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0,
  2528. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1,
  2529. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST,
  2530. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX =
  2531. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1,
  2532. };
  2533. /**
  2534. * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
  2535. * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
  2536. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
  2537. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
  2538. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
  2539. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
  2540. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
  2541. */
  2542. enum qca_wlan_vendor_scan_priority {
  2543. QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
  2544. QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
  2545. QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
  2546. QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
  2547. QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
  2548. };
  2549. /**
  2550. * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
  2551. *
  2552. * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
  2553. * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
  2554. * with frequencies to be scanned (in MHz)
  2555. * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
  2556. * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
  2557. * rates to be included
  2558. * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
  2559. * at non CCK rate in 2GHz band
  2560. * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
  2561. * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
  2562. * driver for the specific scan request
  2563. * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
  2564. * request decoded as in enum scan_status
  2565. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
  2566. * scan flag is set
  2567. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
  2568. * randomisation
  2569. * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
  2570. * specific BSSID to scan for.
  2571. * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
  2572. * microseconds. This is a common value which applies across all
  2573. * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
  2574. * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
  2575. * other scan requests. It is a u32 attribute and takes values from enum
  2576. * qca_wlan_vendor_scan_priority. This is an optional attribute.
  2577. * If this attribute is not configured, the driver shall use
  2578. * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
  2579. */
  2580. enum qca_wlan_vendor_attr_scan {
  2581. QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
  2582. QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
  2583. QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
  2584. QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
  2585. QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
  2586. QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
  2587. QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
  2588. QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
  2589. QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
  2590. QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
  2591. QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
  2592. QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
  2593. QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
  2594. QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
  2595. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
  2596. QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
  2597. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
  2598. };
  2599. /**
  2600. * enum scan_status - Specifies the valid values the vendor scan attribute
  2601. * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
  2602. * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
  2603. * new scan results
  2604. * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
  2605. */
  2606. enum scan_status {
  2607. VENDOR_SCAN_STATUS_NEW_RESULTS,
  2608. VENDOR_SCAN_STATUS_ABORTED,
  2609. VENDOR_SCAN_STATUS_MAX,
  2610. };
  2611. /**
  2612. * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix
  2613. *
  2614. * NL attributes for data used by
  2615. * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command.
  2616. *
  2617. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value
  2618. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX:
  2619. * Unsigned 32-bit value
  2620. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE:
  2621. * Unsigned 32-bit value
  2622. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An
  2623. * array of SET_SIZE x Unsigned 32bit values representing concurrency
  2624. * combinations
  2625. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last
  2626. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value
  2627. */
  2628. enum qca_wlan_vendor_attr_get_concurrency_matrix {
  2629. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0,
  2630. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX
  2631. = 1,
  2632. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2,
  2633. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3,
  2634. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST,
  2635. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX =
  2636. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1,
  2637. };
  2638. /**
  2639. * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag
  2640. *
  2641. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value
  2642. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value
  2643. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last
  2644. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value
  2645. */
  2646. enum qca_wlan_vendor_attr_set_no_dfs_flag {
  2647. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0,
  2648. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1,
  2649. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST,
  2650. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX =
  2651. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1,
  2652. };
  2653. /**
  2654. * enum qca_vendor_attr_wisa_cmd
  2655. * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr
  2656. * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32)
  2657. * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last
  2658. * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value
  2659. * WISA setup vendor commands
  2660. */
  2661. enum qca_vendor_attr_wisa_cmd {
  2662. QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
  2663. QCA_WLAN_VENDOR_ATTR_WISA_MODE,
  2664. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
  2665. QCA_WLAN_VENDOR_ATTR_WISA_MAX =
  2666. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
  2667. };
  2668. enum qca_roaming_policy {
  2669. QCA_ROAMING_NOT_ALLOWED,
  2670. QCA_ROAMING_ALLOWED_WITHIN_ESS,
  2671. };
  2672. /**
  2673. * enum qca_roam_reason - Represents the reason codes for roaming. Used by
  2674. * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
  2675. *
  2676. * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
  2677. * reasons.
  2678. *
  2679. * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached
  2680. * the configured threshold.
  2681. *
  2682. * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
  2683. * beacon misses from the then connected AP.
  2684. *
  2685. * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
  2686. * by the connected AP.
  2687. *
  2688. * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a
  2689. * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is
  2690. * not poor.
  2691. *
  2692. * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
  2693. * or environment being very noisy / congested.
  2694. *
  2695. * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
  2696. * from the user (user space).
  2697. *
  2698. * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from
  2699. * connected AP.
  2700. *
  2701. * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
  2702. * breaching out the configured threshold.
  2703. *
  2704. * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
  2705. * transition request.
  2706. *
  2707. * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended,
  2708. * there is no data activity with the AP and the current rssi falls below a
  2709. * certain threshold.
  2710. *
  2711. * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to
  2712. * deauthentication or disassociation frames received from the connected AP.
  2713. *
  2714. * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic
  2715. * scan that happens when there is no candidate AP found during the poor
  2716. * RSSI scan trigger.
  2717. *
  2718. * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan
  2719. * results obtained from an external scan (not aimed at roaming).
  2720. *
  2721. * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to bluetooth
  2722. * connection is established when the station is connected in 2.4 Ghz band.
  2723. *
  2724. * @QCA_ROAM_REASON_STA_KICKOUT: Roam triggered due to continuous TX Data frame
  2725. * failures to the connected AP.
  2726. */
  2727. enum qca_roam_reason {
  2728. QCA_ROAM_REASON_UNKNOWN,
  2729. QCA_ROAM_REASON_PER,
  2730. QCA_ROAM_REASON_BEACON_MISS,
  2731. QCA_ROAM_REASON_POOR_RSSI,
  2732. QCA_ROAM_REASON_BETTER_RSSI,
  2733. QCA_ROAM_REASON_CONGESTION,
  2734. QCA_ROAM_REASON_USER_TRIGGER,
  2735. QCA_ROAM_REASON_BTM,
  2736. QCA_ROAM_REASON_BSS_LOAD,
  2737. QCA_ROAM_REASON_WTC,
  2738. QCA_ROAM_REASON_IDLE,
  2739. QCA_ROAM_REASON_DISCONNECTION,
  2740. QCA_ROAM_REASON_PERIODIC_TIMER,
  2741. QCA_ROAM_REASON_BACKGROUND_SCAN,
  2742. QCA_ROAM_REASON_BT_ACTIVITY,
  2743. QCA_ROAM_REASON_STA_KICKOUT,
  2744. };
  2745. /**
  2746. * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming
  2747. *
  2748. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE
  2749. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE
  2750. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status
  2751. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter
  2752. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK
  2753. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK
  2754. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status
  2755. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS:
  2756. * Indicates the status of re-association requested by user space for
  2757. * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
  2758. * Type u16.
  2759. * Represents the status code from AP. Use
  2760. * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
  2761. * real status code for failures.
  2762. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION:
  2763. * This attribute indicates that the old association was maintained when
  2764. * a re-association is requested by user space and that re-association
  2765. * attempt fails (i.e., cannot connect to the requested BSS, but can
  2766. * remain associated with the BSS with which the association was in
  2767. * place when being requested to roam). Used along with
  2768. * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
  2769. * re-association status. Type flag.
  2770. * This attribute is applicable only for re-association failure cases.
  2771. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK
  2772. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID
  2773. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next
  2774. * seq number
  2775. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value
  2776. * representing the reasons for the roaming. Defined by enum
  2777. * qca_roam_reason.
  2778. */
  2779. enum qca_wlan_vendor_attr_roam_auth {
  2780. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
  2781. /* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address
  2782. * of the roamed AP for MLO roaming.
  2783. */
  2784. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
  2785. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
  2786. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
  2787. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
  2788. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
  2789. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
  2790. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
  2791. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
  2792. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
  2793. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
  2794. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK,
  2795. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID,
  2796. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM,
  2797. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON,
  2798. /* A nested attribute containing per-link information of all the links
  2799. * of MLO connection done while roaming. The attributes used inside this
  2800. * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links.
  2801. */
  2802. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15,
  2803. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
  2804. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
  2805. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
  2806. };
  2807. /**
  2808. * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside
  2809. * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS.
  2810. *
  2811. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link.
  2812. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link.
  2813. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link.
  2814. */
  2815. enum qca_wlan_vendor_attr_mlo_links {
  2816. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0,
  2817. QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1,
  2818. QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2,
  2819. QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3,
  2820. /* Keep last */
  2821. QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST,
  2822. QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX =
  2823. QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1,
  2824. };
  2825. /**
  2826. * enum qca_wlan_vendor_attr_wifi_config - wifi config
  2827. *
  2828. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value
  2829. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM
  2830. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor
  2831. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time
  2832. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last
  2833. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value
  2834. */
  2835. enum qca_wlan_vendor_attr_wifi_config {
  2836. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0,
  2837. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1,
  2838. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2,
  2839. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3,
  2840. /* keep last */
  2841. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST,
  2842. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX =
  2843. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1,
  2844. };
  2845. /**
  2846. * enum qca_wlan_epno_type - the type of request to the EPNO command
  2847. * @QCA_WLAN_EPNO: epno type request
  2848. * @QCA_WLAN_PNO: pno type request
  2849. */
  2850. enum qca_wlan_epno_type {
  2851. QCA_WLAN_EPNO,
  2852. QCA_WLAN_PNO
  2853. };
  2854. /**
  2855. * enum qca_wlan_vendor_attr_pno_config_params - pno config params
  2856. *
  2857. * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value
  2858. *
  2859. * NL attributes for data used by
  2860. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
  2861. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM:
  2862. * Unsigned 32-bit value; pno passpoint number of networks
  2863. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY:
  2864. * Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
  2865. * attributes. Array size =
  2866. * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
  2867. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID:
  2868. * Unsigned 32-bit value; network id
  2869. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM:
  2870. * An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded
  2871. * realm, 0 if unspecified.
  2872. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID:
  2873. * An array of 16 x Unsigned 32-bit value; roaming consortium ids
  2874. * to match, 0 if unspecified.
  2875. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN:
  2876. * An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if
  2877. * unspecified.
  2878. *
  2879. * NL attributes for data used by
  2880. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
  2881. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS:
  2882. * Unsigned 32-bit value; set pno number of networks
  2883. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST:
  2884. * Array of nested
  2885. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
  2886. * attributes. Array size =
  2887. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS
  2888. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID:
  2889. * An array of 33 x Unsigned 8-bit value; NULL terminated SSID
  2890. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD:
  2891. * Signed 8-bit value; threshold for considering this SSID as found,
  2892. * required granularity for this threshold is 4dBm to 8dBm
  2893. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS:
  2894. * Unsigned 8-bit value; WIFI_PNO_FLAG_XXX
  2895. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT:
  2896. * Unsigned 8-bit value; auth bit field for matching WPA IE
  2897. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE
  2898. * Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type
  2899. *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST
  2900. * Nested attribute to send the channel list
  2901. *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL
  2902. * Unsigned 32-bit value; indicates the Interval between PNO scan
  2903. * cycles in msec
  2904. *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI
  2905. * Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered
  2906. *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI
  2907. * Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered
  2908. * This attribute is obsolete now.
  2909. *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX
  2910. * Signed 32-bit value; the maximum score that a network
  2911. * can have before bonuses
  2912. *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS
  2913. * Signed 32-bit value; only report when there is a network's
  2914. * score this much higher han the current connection
  2915. *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS
  2916. * Signed 32-bit value; score bonus for all networks with
  2917. * the same network flag
  2918. *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS
  2919. * Signed 32-bit value; score bonus for networks that are not open
  2920. *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS
  2921. * Signed 32-bit value; 5GHz RSSI score bonus applied to all
  2922. * 5GHz networks
  2923. *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID
  2924. * Unsigned 32-bit value, representing the PNO Request ID
  2925. * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last
  2926. * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max
  2927. */
  2928. enum qca_wlan_vendor_attr_pno_config_params {
  2929. QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
  2930. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
  2931. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
  2932. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
  2933. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
  2934. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
  2935. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
  2936. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
  2937. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
  2938. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
  2939. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10,
  2940. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
  2941. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
  2942. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
  2943. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
  2944. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
  2945. QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
  2946. QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
  2947. QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
  2948. QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
  2949. QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
  2950. QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
  2951. QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
  2952. QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
  2953. /* keep last */
  2954. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
  2955. QCA_WLAN_VENDOR_ATTR_PNO_MAX =
  2956. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
  2957. };
  2958. /**
  2959. * enum qca_scan_freq_list_type: Frequency list types
  2960. *
  2961. * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
  2962. * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
  2963. * a preferred frequency list for roaming.
  2964. *
  2965. * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
  2966. * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
  2967. * a specific frequency list for roaming.
  2968. */
  2969. enum qca_scan_freq_list_type {
  2970. QCA_PREFERRED_SCAN_FREQ_LIST = 1,
  2971. QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
  2972. };
  2973. /**
  2974. * enum qca_roam_scan_scheme: scan scheme
  2975. *
  2976. * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No Frequencies specified to scan.
  2977. * Indicates the driver to not scan on a Roam Trigger scenario, but
  2978. * Disconnect.e.g., On a BTM request from the AP driver/firmware shall
  2979. * disconnect from the current connected AP by notifying a failure
  2980. * code in the BTM response.
  2981. *
  2982. * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
  2983. * trigger partial frequency scans. These frequencies are the ones learnt
  2984. * or maintained by the driver based on the probability of finding the
  2985. * BSSID's in the ESS for which the roaming is triggered.
  2986. *
  2987. * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
  2988. * trigger the scan on all the valid frequencies to find the better
  2989. * candidates to roam.
  2990. */
  2991. enum qca_roam_scan_scheme {
  2992. QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
  2993. QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
  2994. QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
  2995. };
  2996. /**
  2997. * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
  2998. *
  2999. * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values.
  3000. * List of frequencies in MHz to be considered for a roam scan.
  3001. *
  3002. * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
  3003. * Type of frequency list scheme being configured/gotten as defined by the
  3004. * enum qca_scan_freq_list_type.
  3005. */
  3006. enum qca_vendor_attr_scan_freq_list_scheme {
  3007. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
  3008. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
  3009. /* keep last */
  3010. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
  3011. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
  3012. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
  3013. };
  3014. /*
  3015. * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
  3016. *
  3017. * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
  3018. * a bad packet error rates (PER).
  3019. * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
  3020. * based on beacon misses from the connected AP.
  3021. * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
  3022. * due to poor RSSI of the connected AP.
  3023. * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
  3024. * upon finding a BSSID with a better RSSI than the connected BSSID.
  3025. * Here the RSSI of the current BSSID need not be poor.
  3026. * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
  3027. * by triggering a periodic scan to find a better AP to roam.
  3028. * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
  3029. * when the connected channel environment is too noisy/congested.
  3030. * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
  3031. * when BTM Request frame is received from the connected AP.
  3032. * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
  3033. * when the channel utilization is goes above the configured threshold.
  3034. * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
  3035. * based on the request from the user (space).
  3036. * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
  3037. * device receives Deauthentication/Disassociation frame from connected
  3038. * AP.
  3039. * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
  3040. * DUT is in idle state (no tx/rx) and suspend mode, if the current RSSI
  3041. * is determined to be a poor one.
  3042. * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
  3043. * based on continuous TX Data Frame failures to the connected AP.
  3044. * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
  3045. * based on the scan results obtained from an external scan (not
  3046. * triggered to aim roaming)
  3047. *
  3048. * Set the corresponding roam trigger reason bit to consider it for roam
  3049. * trigger.
  3050. * Userspace can set multiple bits and send to the driver. The driver shall
  3051. * consider all of them to trigger/initiate a roam scan.
  3052. */
  3053. enum qca_vendor_roam_triggers {
  3054. QCA_ROAM_TRIGGER_REASON_PER = 1 << 0,
  3055. QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1,
  3056. QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2,
  3057. QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3,
  3058. QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4,
  3059. QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5,
  3060. QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6,
  3061. QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7,
  3062. QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8,
  3063. QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9,
  3064. QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10,
  3065. QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11,
  3066. QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12,
  3067. };
  3068. /*
  3069. * enum qca_vendor_roam_fail_reasons: Defines the various roam
  3070. * fail reasons. This enum value is used in
  3071. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
  3072. *
  3073. * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
  3074. * able to trigger the scan.
  3075. * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
  3076. * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
  3077. * scan.
  3078. * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
  3079. * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
  3080. * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
  3081. * status code.
  3082. * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
  3083. * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
  3084. * frame.
  3085. * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
  3086. * with error status code.
  3087. * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
  3088. * received.
  3089. * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
  3090. * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
  3091. * frame.
  3092. * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
  3093. * internally before transmission.
  3094. * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
  3095. * Request frame.
  3096. * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
  3097. * dropped internally.
  3098. * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
  3099. * times out.
  3100. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
  3101. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
  3102. * internally.
  3103. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
  3104. * M2 frame.
  3105. * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
  3106. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
  3107. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
  3108. * internally.
  3109. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
  3110. * frame.
  3111. * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
  3112. * started for final beacon miss case.
  3113. * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
  3114. * received from the AP during roaming handoff.
  3115. * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
  3116. * or host is suspended and gives the indication of the last roamed AP only
  3117. * when the Apps is resumed. If the Apps is resumed while the roaming is in
  3118. * progress, this ongoing roaming is aborted and the last roamed AP is
  3119. * indicated to host.
  3120. * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
  3121. * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
  3122. * out.
  3123. * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
  3124. */
  3125. enum qca_vendor_roam_fail_reasons {
  3126. QCA_ROAM_FAIL_REASON_NONE = 0,
  3127. QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
  3128. QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
  3129. QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
  3130. QCA_ROAM_FAIL_REASON_HOST = 4,
  3131. QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
  3132. QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
  3133. QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
  3134. QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
  3135. QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
  3136. QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
  3137. QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
  3138. QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
  3139. QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
  3140. QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
  3141. QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
  3142. QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
  3143. QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
  3144. QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
  3145. QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
  3146. QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
  3147. QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
  3148. QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
  3149. QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
  3150. QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
  3151. QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
  3152. QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
  3153. QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
  3154. QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
  3155. QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
  3156. };
  3157. /*
  3158. * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
  3159. * invoke fail reasons. This enum value is used in
  3160. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
  3161. *
  3162. * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
  3163. * in roam invoke command.
  3164. * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
  3165. * enabled.
  3166. * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
  3167. * length is invalid.
  3168. * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
  3169. * in progress.
  3170. * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
  3171. * of the AP in the roam invoke command to firmware. This reason is sent by the
  3172. * firmware when the given AP is configured to be ignored or SSID/security
  3173. * does not match.
  3174. * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
  3175. * firmware internal reasons.
  3176. * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
  3177. * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
  3178. * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
  3179. * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
  3180. * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
  3181. * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
  3182. */
  3183. enum qca_vendor_roam_invoke_fail_reasons {
  3184. QCA_ROAM_INVOKE_STATUS_NONE = 0,
  3185. QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
  3186. QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
  3187. QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
  3188. QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
  3189. QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
  3190. QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
  3191. QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
  3192. QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
  3193. QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
  3194. QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
  3195. QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
  3196. QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
  3197. };
  3198. /**
  3199. * enum qca_vendor_attr_roam_candidate_selection_criteria:
  3200. *
  3201. * Each attribute carries a weightage in percentage (%).
  3202. *
  3203. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
  3204. * Represents the weightage to be given for the RSSI selection
  3205. * criteria among other parameters.
  3206. *
  3207. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
  3208. * Represents the weightage to be given for the rate selection
  3209. * criteria among other parameters.
  3210. *
  3211. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
  3212. * Represents the weightage to be given for the band width selection
  3213. * criteria among other parameters.
  3214. *
  3215. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
  3216. * Represents the weightage to be given for the band selection
  3217. * criteria among other parameters.
  3218. *
  3219. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
  3220. * Represents the weightage to be given for the NSS selection
  3221. * criteria among other parameters.
  3222. *
  3223. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
  3224. * Represents the weightage to be given for the channel congestion
  3225. * selection criteria among other parameters.
  3226. *
  3227. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
  3228. * Represents the weightage to be given for the beamforming selection
  3229. * criteria among other parameters.
  3230. *
  3231. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
  3232. * Represents the weightage to be given for the OCE selection
  3233. * criteria among other parameters.
  3234. */
  3235. enum qca_vendor_attr_roam_candidate_selection_criteria {
  3236. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
  3237. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
  3238. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
  3239. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
  3240. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
  3241. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
  3242. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
  3243. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
  3244. /* keep last */
  3245. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
  3246. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
  3247. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
  3248. };
  3249. /**
  3250. * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
  3251. * The following attributes are used to set/get/clear the respective
  3252. * configurations to/from the driver.
  3253. * For the get, the attribute for the configuration to be queried shall
  3254. * carry any of its acceptable values to the driver. In return, the driver
  3255. * shall send the configured values within the same attribute to the user
  3256. * space.
  3257. *
  3258. * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
  3259. * Signifies to enable/disable roam control in driver.
  3260. * 1-enable, 0-disable
  3261. * Enable: Mandates the driver to do the further roams using the
  3262. * configuration parameters set through
  3263. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
  3264. * Disable: Disables the driver/firmware roaming triggered through
  3265. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
  3266. * expected to continue with the default configurations.
  3267. *
  3268. * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
  3269. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
  3270. * Roam control status is obtained through this attribute.
  3271. *
  3272. * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
  3273. * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
  3274. * is to be cleared in the driver.
  3275. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
  3276. * and shall be ignored if used with other sub commands.
  3277. * If this attribute is specified along with subcmd
  3278. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
  3279. * all other attributes, if there are any.
  3280. * If this attribute is not specified when the subcmd
  3281. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
  3282. * clear the data corresponding to the attributes specified.
  3283. *
  3284. * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
  3285. * list of frequencies and its type, represented by
  3286. * enum qca_vendor_attr_scan_freq_list_scheme.
  3287. * Frequency list and its type are mandatory for this attribute to set
  3288. * the frequencies.
  3289. * Frequency type is mandatory for this attribute to get the frequencies
  3290. * and the frequency list is obtained through
  3291. * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
  3292. * Frequency list type is mandatory for this attribute to clear the
  3293. * frequencies.
  3294. *
  3295. * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
  3296. * Carries the value of scan period in seconds to set.
  3297. * The value of scan period is obtained with the same attribute for get.
  3298. * Clears the scan period in the driver when specified with clear command.
  3299. * Scan period is the idle time in seconds between each subsequent
  3300. * channel scans.
  3301. *
  3302. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
  3303. * Carries the value of full scan period in seconds to set.
  3304. * The value of full scan period is obtained with the same attribute for
  3305. * get.
  3306. * Clears the full scan period in the driver when specified with clear
  3307. * command. Full scan period is the idle period in seconds between two
  3308. * successive full channel roam scans.
  3309. *
  3310. * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
  3311. * Carries a bitmap of the roam triggers specified in
  3312. * enum qca_vendor_roam_triggers.
  3313. * The driver shall enable roaming by enabling corresponding roam triggers
  3314. * based on the trigger bits sent with this attribute.
  3315. * If this attribute is not configured, the driver shall proceed with
  3316. * default behavior.
  3317. * The bitmap configured is obtained with the same attribute for get.
  3318. * Clears the bitmap configured in driver when specified with clear
  3319. * command.
  3320. *
  3321. * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
  3322. * weightage in percentage (%) to be given for each selection criteria.
  3323. * Different roam candidate selection criteria are represented by
  3324. * enum qca_vendor_attr_roam_candidate_selection_criteria.
  3325. * The driver shall select the roam candidate based on corresponding
  3326. * candidate selection scores sent.
  3327. *
  3328. * An empty nested attribute is used to indicate that no specific
  3329. * preference score/criteria is configured (i.e., to disable this mechanism
  3330. * in the set case and to show that the mechanism is disabled in the get
  3331. * case).
  3332. *
  3333. * Userspace can send multiple attributes out of this enum to the driver.
  3334. * Since this attribute represents the weight/percentage of preference for
  3335. * the respective selection criteria, it is preferred to configure 100%
  3336. * total weightage. The value in each attribute or cumulative weight of the
  3337. * values in all the nested attributes should not exceed 100%. The driver
  3338. * shall reject such configuration.
  3339. *
  3340. * If the weights configured through this attribute are less than 100%,
  3341. * the driver shall honor the weights (x%) passed for the corresponding
  3342. * selection criteria and choose/distribute rest of the weight (100-x)%
  3343. * for the other selection criteria, based on its internal logic.
  3344. *
  3345. * The selection criteria configured is obtained with the same
  3346. * attribute for get.
  3347. *
  3348. * Clears the selection criteria configured in the driver when specified
  3349. * with clear command.
  3350. *
  3351. * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
  3352. * Represents value of scan frequency scheme from
  3353. * enum qca_roam_scan_scheme.
  3354. *
  3355. * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
  3356. * signifying the RSSI threshold of the current connected AP, indicating
  3357. * the driver to trigger roam only when the current connected AP's RSSI
  3358. * is lesser than this threshold.
  3359. *
  3360. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
  3361. * signifying the RSSI threshold of the candidate AP, indicating
  3362. * the driver to trigger roam only to the candidate AP with RSSI
  3363. * better than this threshold. If RSSI thresholds for candidate APs found
  3364. * in the 2.4GHz, 5GHz and 6Ghz bands are configured separately using
  3365. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
  3366. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
  3367. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, then those values
  3368. * will take precedence over the value configured using
  3369. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
  3370. *
  3371. * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
  3372. * user triggered reason code to be sent to the AP in response to AP's
  3373. * request to trigger the roam if the roaming cannot be triggered.
  3374. * Applies to all the scenarios of AP assisted roaming (e.g., BTM).
  3375. *
  3376. * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
  3377. * Carries a bitmap of the roam triggers specified in
  3378. * enum qca_vendor_roam_triggers.
  3379. * Represents the roam triggers for which the specific scan scheme from
  3380. * enum qca_roam_scan_scheme has to be applied.
  3381. * It's an optional attribute. If this attribute is not configured, but
  3382. * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, then the scan scheme
  3383. * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
  3384. * all the roams.
  3385. * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
  3386. * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
  3387. * driver shall proceed with the default behavior.
  3388. *
  3389. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
  3390. * in dBm, signifying the RSSI threshold of the candidate AP found in
  3391. * 2.4GHz band. The driver/firmware shall trigger roaming to the candidate
  3392. * AP found in 2.4GHz band only if it's RSSI value is better than this
  3393. * threshold. Optional attribute. If this attribute is not included, then
  3394. * threshold value specified by the
  3395. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3396. *
  3397. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
  3398. * dBm, signifying the RSSI threshold of the candidate AP found in 5GHz
  3399. * band. The driver/firmware shall trigger roaming to the candidate AP
  3400. * found in 5GHz band only if it's RSSI value is better than this
  3401. * threshold. Optional attribute. If this attribute is not included, then
  3402. * threshold value specified by the
  3403. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3404. *
  3405. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
  3406. * dBm, signifying the RSSI threshold of the candidate AP found in 6GHz
  3407. * band. The driver/firmware shall trigger roaming to the candidate AP
  3408. * found in 6GHz band only if it's RSSI value is better than this
  3409. * threshold. Optional attribute. If this attribute is not included, then
  3410. * threshold value specified by the
  3411. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3412. *
  3413. * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
  3414. * Carries bitmask value of bits from &enum qca_set_band and represents
  3415. * all the bands in which roaming is allowed. The configuration is valid
  3416. * until next disconnection. If this attribute is not present, the
  3417. * existing configuration shall be used. By default, roaming is allowed
  3418. * on all bands supported by local device. When the value is set to
  3419. * %QCA_SETBAND_AUTO, all supported bands shall be enabled.
  3420. *
  3421. * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps.
  3422. * Optional parameter. RX link speed threshold to disable roaming.
  3423. * If the current RX link speed is above the threshold, roaming is not
  3424. * needed. If this attribute is not configured, or if it is set to 0, the
  3425. * driver will not consider the RX link speed in the roaming decision.
  3426. *
  3427. * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds.
  3428. * Optional parameter. This configuration delays hand-off (in msec) by the
  3429. * specified duration to receive pending rx frames from current BSS.
  3430. *
  3431. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit
  3432. * value.
  3433. * During the roam scan, if there are no desired APs found in the partial
  3434. * frequency list, an immediate full scan on all the supported frequencies
  3435. * is initiated as a fallback. This flag controls the frequency list
  3436. * creation for the full scan on the following lines.
  3437. * 1 - Full scan to exclude the frequencies that were already scanned by
  3438. * the previous partial scan.
  3439. * 0 - Full scan to include all the supported frequencies irrespective of
  3440. * the ones part of the earlier partial scan.
  3441. * If this flag is not specified, a full scan shall include all the
  3442. * supported frequencies irrespective of the ones part of an earlier
  3443. * partial scan.
  3444. *
  3445. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit
  3446. * value.
  3447. * During the roam scan, if there are no desired APs found in the partial
  3448. * frequency list, an immediate full scan on all the supported frequencies
  3449. * is initiated as a fallback. This full scan would add the 2.4/5/6 GHz
  3450. * frequencies, including all PSC frequencies by default. This attribute
  3451. * controls the inclusion of the 6 GHz PSC frequencies for the full scan
  3452. * as following.
  3453. * 1 - Full scan to include the supported 6 GHz PSC frequencies only on the
  3454. * prior discovery of any 6 GHz frequency support in the environment.
  3455. * This discovery can happen through a prior RNR, 11k neighbor
  3456. * request, 11v BTM request, host scan, etc.
  3457. * 0 - Default behavior. Full scan to include all the supported 6 GHz
  3458. * PSC frequencies regardless of whether 6 GHz BSSs have been
  3459. * discovered.
  3460. * The default behavior if this flag is not specified is to include all
  3461. * the supported 6 GHz PSC frequencies in the roam full scan.
  3462. */
  3463. enum qca_vendor_attr_roam_control {
  3464. QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
  3465. QCA_ATTR_ROAM_CONTROL_STATUS = 2,
  3466. QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
  3467. QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
  3468. QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
  3469. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
  3470. QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
  3471. QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
  3472. QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
  3473. QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
  3474. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
  3475. QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
  3476. QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
  3477. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
  3478. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
  3479. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
  3480. QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
  3481. QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD = 24,
  3482. QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25,
  3483. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26,
  3484. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27,
  3485. /* keep last */
  3486. QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
  3487. QCA_ATTR_ROAM_CONTROL_MAX =
  3488. QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
  3489. };
  3490. /**
  3491. * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
  3492. * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
  3493. *
  3494. * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
  3495. * Represents the different roam sub commands referred by
  3496. * enum qca_wlan_vendor_roaming_subcmd.
  3497. *
  3498. * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
  3499. * Represents the Request ID for the specific set of commands.
  3500. * This also helps to map specific set of commands to the respective
  3501. * ID / client. e.g., helps to identify the user entity configuring the
  3502. * Blacklist BSSID and accordingly clear the respective ones with the
  3503. * matching ID.
  3504. *
  3505. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
  3506. * 32-bit value.Represents the number of whitelist SSIDs configured.
  3507. *
  3508. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
  3509. * to carry the list of Whitelist SSIDs.
  3510. *
  3511. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
  3512. * 0..32 octets). Represents the white list SSID. Whitelist SSIDs
  3513. * represent the list of SSIDs to which the firmware/driver can consider
  3514. * to roam to.
  3515. *
  3516. * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
  3517. * comparing with a 2.4GHz BSSID. They are not applied when comparing two
  3518. * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
  3519. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS.
  3520. *
  3521. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
  3522. * value, RSSI threshold above which 5GHz RSSI is favored.
  3523. *
  3524. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
  3525. * value, RSSI threshold below which 5GHz RSSI is penalized.
  3526. *
  3527. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
  3528. * value, factor by which 5GHz RSSI is boosted.
  3529. * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
  3530. *
  3531. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
  3532. * value, factor by which 5GHz RSSI is penalized.
  3533. * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
  3534. *
  3535. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
  3536. * value, maximum boost that can be applied to a 5GHz RSSI.
  3537. *
  3538. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
  3539. * value, boost applied to current BSSID to ensure the currently
  3540. * associated BSSID is favored so as to prevent ping-pong situations.
  3541. *
  3542. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
  3543. * value, RSSI below which "Alert" roam is enabled.
  3544. * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID
  3545. * because the RSSI is low, or because many successive beacons have been
  3546. * lost or other bad link conditions.
  3547. *
  3548. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
  3549. * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
  3550. * firmware is hunting for a better BSSID or white listed SSID even though
  3551. * the RSSI of the link is good. The parameters enabling the roaming are
  3552. * configured through the PARAM_A_BAND_XX attrbutes.
  3553. *
  3554. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
  3555. * represents the BSSIDs preferred over others while evaluating them
  3556. * for the roaming.
  3557. *
  3558. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
  3559. * 32-bit value. Represents the number of preferred BSSIDs set.
  3560. *
  3561. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
  3562. * address representing the BSSID to be preferred.
  3563. *
  3564. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
  3565. * 32-bit value, representing the modifier to be applied to the RSSI of
  3566. * the BSSID for the purpose of comparing it with other roam candidate.
  3567. *
  3568. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
  3569. * represents the BSSIDs to get blacklisted for roaming.
  3570. *
  3571. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
  3572. * 32-bit value, represents the number of blacklisted BSSIDs.
  3573. *
  3574. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
  3575. * address representing the Blacklisted BSSID.
  3576. *
  3577. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
  3578. * indicates this BSSID blacklist as a hint to the driver. The driver can
  3579. * select this BSSID in the worst case (when no other BSSIDs are better).
  3580. *
  3581. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
  3582. * set/get/clear the roam control config as
  3583. * defined @enum qca_vendor_attr_roam_control.
  3584. *
  3585. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last
  3586. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max
  3587. */
  3588. enum qca_wlan_vendor_attr_roaming_config_params {
  3589. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
  3590. QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
  3591. QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
  3592. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
  3593. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
  3594. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
  3595. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
  3596. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
  3597. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
  3598. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
  3599. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
  3600. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
  3601. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
  3602. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
  3603. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
  3604. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
  3605. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
  3606. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
  3607. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
  3608. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
  3609. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
  3610. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
  3611. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
  3612. /* keep last */
  3613. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
  3614. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
  3615. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
  3616. };
  3617. /**
  3618. * enum qca_wlan_vendor_roaming_subcmd: Referred by
  3619. * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
  3620. *
  3621. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
  3622. * configure the white list SSIDs. These are configured through
  3623. * the following attributes.
  3624. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
  3625. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
  3626. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
  3627. *
  3628. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to
  3629. * configure the Roam params. These parameters are evaluated on the extscan
  3630. * results. Refers the attributes PARAM_A_BAND_XX above to configure the
  3631. * params.
  3632. *
  3633. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
  3634. * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
  3635. * to enable/disable Lazy roam.
  3636. *
  3637. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
  3638. * preference. Contains the attribute
  3639. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
  3640. * preference.
  3641. *
  3642. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params
  3643. *
  3644. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist
  3645. * BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to
  3646. * set the same.
  3647. *
  3648. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
  3649. * roam control config to the driver with the attribute
  3650. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3651. *
  3652. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
  3653. * roam control config from driver with the attribute
  3654. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3655. * For the get, the attribute for the configuration to be queried shall
  3656. * carry any of its acceptable value to the driver. In return, the driver
  3657. * shall send the configured values within the same attribute to the user
  3658. * space.
  3659. *
  3660. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
  3661. * roam control config in the driver with the attribute
  3662. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3663. * The driver shall continue with its default roaming behavior when data
  3664. * corresponding to an attribute is cleared.
  3665. */
  3666. enum qca_wlan_vendor_roaming_subcmd {
  3667. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
  3668. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2,
  3669. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
  3670. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
  3671. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
  3672. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
  3673. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
  3674. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
  3675. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
  3676. };
  3677. /**
  3678. * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information
  3679. *
  3680. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value
  3681. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version
  3682. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version
  3683. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index
  3684. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last
  3685. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max
  3686. */
  3687. enum qca_wlan_vendor_attr_get_wifi_info {
  3688. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
  3689. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
  3690. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
  3691. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
  3692. /* KEEP LAST */
  3693. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
  3694. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
  3695. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
  3696. };
  3697. enum qca_wlan_vendor_attr_logger_results {
  3698. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
  3699. /*
  3700. * Unsigned 32-bit value; must match the request Id supplied by
  3701. * Wi-Fi HAL in the corresponding subcmd NL msg.
  3702. */
  3703. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
  3704. /*
  3705. * Unsigned 32-bit value; used to indicate the size of memory
  3706. * dump to be allocated.
  3707. */
  3708. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
  3709. /* keep last */
  3710. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
  3711. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
  3712. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
  3713. };
  3714. /**
  3715. * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
  3716. * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
  3717. */
  3718. enum qca_wlan_vendor_channel_prop_flags {
  3719. /* Bits 0, 1, 2, and 3 are reserved */
  3720. /* Turbo channel */
  3721. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
  3722. /* CCK channel */
  3723. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
  3724. /* OFDM channel */
  3725. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
  3726. /* 2.4 GHz spectrum channel. */
  3727. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
  3728. /* 5 GHz spectrum channel */
  3729. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
  3730. /* Only passive scan allowed */
  3731. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
  3732. /* Dynamic CCK-OFDM channel */
  3733. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
  3734. /* GFSK channel (FHSS PHY) */
  3735. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
  3736. /* Radar found on channel */
  3737. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
  3738. /* 11a static turbo channel only */
  3739. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
  3740. /* Half rate channel */
  3741. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
  3742. /* Quarter rate channel */
  3743. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
  3744. /* HT 20 channel */
  3745. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
  3746. /* HT 40 with extension channel above */
  3747. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
  3748. /* HT 40 with extension channel below */
  3749. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
  3750. /* HT 40 intolerant */
  3751. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
  3752. /* VHT 20 channel */
  3753. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
  3754. /* VHT 40 with extension channel above */
  3755. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
  3756. /* VHT 40 with extension channel below */
  3757. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
  3758. /* VHT 80 channel */
  3759. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
  3760. /* HT 40 intolerant mark bit for ACS use */
  3761. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
  3762. /* Channel temporarily blocked due to noise */
  3763. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
  3764. /* VHT 160 channel */
  3765. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
  3766. /* VHT 80+80 channel */
  3767. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
  3768. /* HE 20 channel */
  3769. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
  3770. /* HE 40 with extension channel above */
  3771. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
  3772. /* HE 40 with extension channel below */
  3773. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
  3774. /* HE 40 intolerant */
  3775. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1U << 31,
  3776. };
  3777. /**
  3778. * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
  3779. * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
  3780. * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
  3781. */
  3782. enum qca_wlan_vendor_channel_prop_flags_2 {
  3783. /* HE 40 intolerant mark bit for ACS use */
  3784. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
  3785. /* HE 80 channel */
  3786. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
  3787. /* HE 160 channel */
  3788. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
  3789. /* HE 80+80 channel */
  3790. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
  3791. };
  3792. /**
  3793. * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
  3794. * each channel. This is used by
  3795. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
  3796. */
  3797. enum qca_wlan_vendor_channel_prop_flags_ext {
  3798. /* Radar found on channel */
  3799. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
  3800. /* DFS required on channel */
  3801. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
  3802. /* DFS required on channel for 2nd band of 80+80 */
  3803. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
  3804. /* If channel has been checked for DFS */
  3805. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
  3806. /* Excluded in 802.11d */
  3807. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
  3808. /* Channel Switch Announcement received on this channel */
  3809. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
  3810. /* Ad-hoc is not allowed */
  3811. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
  3812. /* Station only channel */
  3813. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
  3814. /* DFS radar history for slave device (STA mode) */
  3815. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
  3816. /* DFS CAC valid for slave device (STA mode) */
  3817. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
  3818. };
  3819. /**
  3820. * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
  3821. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
  3822. * information to start/stop the NUD statistics collection.
  3823. */
  3824. enum qca_attr_nud_stats_set {
  3825. QCA_ATTR_NUD_STATS_SET_INVALID = 0,
  3826. /*
  3827. * Flag to start/stop the NUD statistics collection.
  3828. * Start - If included, Stop - If not included
  3829. */
  3830. QCA_ATTR_NUD_STATS_SET_START = 1,
  3831. /* IPv4 address of the default gateway (in network byte order) */
  3832. QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
  3833. /*
  3834. * Represents the data packet type to be monitored.
  3835. * Host driver tracks the stats corresponding to each data frame
  3836. * represented by these flags.
  3837. * These data packets are represented by
  3838. * enum qca_wlan_vendor_nud_stats_set_data_pkt_info.
  3839. */
  3840. QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
  3841. /* keep last */
  3842. QCA_ATTR_NUD_STATS_SET_LAST,
  3843. QCA_ATTR_NUD_STATS_SET_MAX =
  3844. QCA_ATTR_NUD_STATS_SET_LAST - 1,
  3845. };
  3846. /**
  3847. * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd
  3848. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  3849. * information to start / stop the NUD stats collection.
  3850. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats
  3851. * Bitmap to Flag to Start / Stop the NUD stats collection
  3852. * Start - If included , Stop - If not included
  3853. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gateway ipv4 address
  3854. * IPv4 address of Default Gateway (in network byte order)
  3855. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  3856. * information to start / stop the NUD stats collection.
  3857. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats
  3858. * Flag to Start / Stop the NUD stats collection
  3859. * Start - If included , Stop - If not included
  3860. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gateway ipv4 address
  3861. * IPv4 address of Default Gateway (in network byte order)
  3862. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  3863. * information to start / stop the NUD stats collection.
  3864. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats
  3865. * Flag to Start / Stop the NUD stats collection
  3866. * Start - If included , Stop - If not included
  3867. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gateway ipv4 address
  3868. * IPv4 address of Default Gateway (in network byte order)
  3869. */
  3870. enum qca_attr_connectivity_check_stats_set {
  3871. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0,
  3872. QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1,
  3873. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2,
  3874. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3,
  3875. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4,
  3876. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5,
  3877. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6,
  3878. /* keep last */
  3879. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST,
  3880. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX =
  3881. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1,
  3882. };
  3883. /**
  3884. * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
  3885. * data types for which the stats have to get collected.
  3886. */
  3887. enum qca_wlan_vendor_connectivity_check_pkt_flags {
  3888. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0,
  3889. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1,
  3890. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2,
  3891. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3,
  3892. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4,
  3893. /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
  3894. * to represent the stats of respective data type.
  3895. */
  3896. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5,
  3897. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6,
  3898. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7,
  3899. };
  3900. enum qca_attr_connectivity_check_stats {
  3901. QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0,
  3902. /* Data packet type for which the stats are collected.
  3903. * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
  3904. */
  3905. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1,
  3906. /* ID corresponding to the DNS frame for which the respective DNS stats
  3907. * are monitored (u32).
  3908. */
  3909. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2,
  3910. /* source / destination port on which the respective proto stats are
  3911. * collected (u32).
  3912. */
  3913. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3,
  3914. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4,
  3915. /* IPv4/IPv6 address for which the destined data packets are
  3916. * monitored. (in network byte order)
  3917. */
  3918. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5,
  3919. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6,
  3920. /* Data packet Request count received from netdev */
  3921. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
  3922. /* Data packet Request count sent to lower MAC from upper MAC */
  3923. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
  3924. /* Data packet Request count received by lower MAC from upper MAC */
  3925. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
  3926. /* Data packet Request count successfully transmitted by the device */
  3927. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
  3928. /* Data packet Response count received by lower MAC */
  3929. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
  3930. /* Data packet Response count received by upper MAC */
  3931. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
  3932. /* Data packet Response count delivered to netdev */
  3933. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
  3934. /* Data Packet Response count that are dropped out of order */
  3935. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
  3936. /* keep last */
  3937. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST,
  3938. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX =
  3939. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1,
  3940. };
  3941. /**
  3942. * qca_attr_nud_stats_get: Attributes to vendor subcmd
  3943. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
  3944. * NUD statistics collected when queried.
  3945. */
  3946. enum qca_attr_nud_stats_get {
  3947. QCA_ATTR_NUD_STATS_GET_INVALID = 0,
  3948. /* ARP Request count from netdev */
  3949. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
  3950. /* ARP Request count sent to lower MAC from upper MAC */
  3951. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
  3952. /* ARP Request count received by lower MAC from upper MAC */
  3953. QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
  3954. /* ARP Request count successfully transmitted by the device */
  3955. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
  3956. /* ARP Response count received by lower MAC */
  3957. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
  3958. /* ARP Response count received by upper MAC */
  3959. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
  3960. /* ARP Response count delivered to netdev */
  3961. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
  3962. /* ARP Response count delivered to netdev */
  3963. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
  3964. /*
  3965. * Flag indicating if the station's link to the AP is active.
  3966. * Active Link - If included, Inactive link - If not included
  3967. */
  3968. QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
  3969. /*
  3970. * Flag indicating if there is any duplicate address detected (DAD).
  3971. * Yes - If detected, No - If not detected.
  3972. */
  3973. QCA_ATTR_NUD_STATS_IS_DAD = 10,
  3974. /*
  3975. * List of Data types for which the stats are requested.
  3976. * This list does not carry ARP stats as they are done by the
  3977. * above attributes. Represented by enum qca_attr_nud_data_stats.
  3978. */
  3979. QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
  3980. /* keep last */
  3981. QCA_ATTR_NUD_STATS_GET_LAST,
  3982. QCA_ATTR_NUD_STATS_GET_MAX =
  3983. QCA_ATTR_NUD_STATS_GET_LAST - 1,
  3984. };
  3985. enum qca_wlan_btm_candidate_status {
  3986. QCA_STATUS_ACCEPT = 0,
  3987. QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
  3988. QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
  3989. QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
  3990. QCA_STATUS_REJECT_LOW_RSSI = 4,
  3991. QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
  3992. QCA_STATUS_REJECT_UNKNOWN = 6,
  3993. };
  3994. enum qca_wlan_vendor_attr_btm_candidate_info {
  3995. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
  3996. /* 6-byte MAC address representing the BSSID of transition candidate */
  3997. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
  3998. /*
  3999. * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
  4000. * returned by the driver. It says whether the BSSID provided in
  4001. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
  4002. * the driver, if not it specifies the reason for rejection.
  4003. * Note that the user-space can overwrite the transition reject reason
  4004. * codes provided by driver based on more information.
  4005. */
  4006. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
  4007. /* keep last */
  4008. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
  4009. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
  4010. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
  4011. };
  4012. enum qca_attr_trace_level {
  4013. QCA_ATTR_TRACE_LEVEL_INVALID = 0,
  4014. /*
  4015. * Nested array of the following attributes:
  4016. * QCA_ATTR_TRACE_LEVEL_MODULE,
  4017. * QCA_ATTR_TRACE_LEVEL_MASK.
  4018. */
  4019. QCA_ATTR_TRACE_LEVEL_PARAM = 1,
  4020. /*
  4021. * Specific QCA host driver module. Please refer to the QCA host
  4022. * driver implementation to get the specific module ID.
  4023. */
  4024. QCA_ATTR_TRACE_LEVEL_MODULE = 2,
  4025. /* Different trace level masks represented in the QCA host driver. */
  4026. QCA_ATTR_TRACE_LEVEL_MASK = 3,
  4027. /* keep last */
  4028. QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
  4029. QCA_ATTR_TRACE_LEVEL_MAX =
  4030. QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
  4031. };
  4032. /**
  4033. * enum qca_wlan_vendor_attr_get_logger_features - value for logger
  4034. * supported features
  4035. * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid
  4036. * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features
  4037. * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum
  4038. * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type
  4039. *
  4040. * enum values are used for NL attributes for data used by
  4041. * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command.
  4042. */
  4043. enum qca_wlan_vendor_attr_get_logger_features {
  4044. QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
  4045. QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
  4046. /* keep last */
  4047. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
  4048. QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
  4049. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
  4050. };
  4051. /**
  4052. * enum qca_wlan_vendor_attr_link_properties - link properties
  4053. *
  4054. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value
  4055. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to
  4056. * specify the number of spatial streams negotiated
  4057. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value
  4058. * to specify negotiated rate flags i.e. ht, vht and channel width
  4059. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to
  4060. * specify the operating frequency
  4061. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer
  4062. * (STA / AP ) for the connected link.
  4063. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
  4064. * &struct nl80211_sta_flag_update for the respective connected link. MAC
  4065. * address of the peer represented by
  4066. * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
  4067. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last
  4068. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value
  4069. */
  4070. enum qca_wlan_vendor_attr_link_properties {
  4071. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
  4072. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1,
  4073. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2,
  4074. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3,
  4075. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
  4076. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
  4077. /* KEEP LAST */
  4078. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
  4079. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX =
  4080. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
  4081. };
  4082. /**
  4083. * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support
  4084. *
  4085. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid
  4086. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload
  4087. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum
  4088. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type
  4089. *
  4090. * enum values are used for NL attributes for data used by
  4091. * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command.
  4092. */
  4093. enum qca_wlan_vendor_attr_nd_offload {
  4094. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
  4095. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
  4096. /* Keep last */
  4097. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
  4098. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
  4099. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
  4100. };
  4101. /**
  4102. * enum qca_wlan_vendor_features - Vendor device/driver feature flags
  4103. *
  4104. * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
  4105. * management offload, a mechanism where the station's firmware
  4106. * does the exchange with the AP to establish the temporal keys
  4107. * after roaming, rather than having the user space wpa_supplicant do it.
  4108. * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
  4109. * band selection based on channel selection results.
  4110. * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
  4111. * simultaneous off-channel operations.
  4112. * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
  4113. * Listen offload; a mechanism where the station's firmware takes care of
  4114. * responding to incoming Probe Request frames received from other P2P
  4115. * Devices whilst in Listen state, rather than having the user space
  4116. * wpa_supplicant do it. Information from received P2P requests are
  4117. * forwarded from firmware to host whenever the host processor wakes up.
  4118. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
  4119. * specific features.
  4120. * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
  4121. * features.
  4122. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
  4123. * specific features only. If a Device sets this bit but not the
  4124. * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
  4125. * this Device may not support all OCE AP functionalities but can support
  4126. * only OCE STA-CFON functionalities.
  4127. * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
  4128. * managed regulatory.
  4129. * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
  4130. * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
  4131. * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
  4132. * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
  4133. * and applying thermal configuration through
  4134. * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
  4135. * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
  4136. * userspace.
  4137. * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
  4138. * With Adaptive 11r feature, access points advertise the vendor
  4139. * specific IEs and MDE but do not include FT AKM in the RSNE.
  4140. * The Adaptive 11r supported stations are expected to identify
  4141. * such vendor specific IEs and connect to the AP in FT mode though
  4142. * the profile is configured in non-FT mode.
  4143. * The driver-based SME cases also need to have this support for
  4144. * Adaptive 11r to handle the connection and roaming scenarios.
  4145. * This flag indicates the support for the same to the user space.
  4146. * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
  4147. * concurrent network sessions on different Wi-Fi Bands. This feature
  4148. * capability is attributed to the hardware's capability to support
  4149. * the same (e.g., DBS).
  4150. * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
  4151. * responses for the respective TWT operations are asynchronous (separate)
  4152. * event message) from the driver. If not specified, the responses are
  4153. * synchronous (in vendor command reply) to the request. Each TWT
  4154. * operation is specifically mentioned (against its respective)
  4155. * documentation) to support either of these or both modes.
  4156. * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
  4157. * that the driver requires add/del virtual interface path using the
  4158. * generic nl80211 commands for NDP interface create/delete and to
  4159. * register/unregister the netdev instead of creating/deleting the NDP
  4160. * interface using the vendor commands
  4161. * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
  4162. * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
  4163. * (5.12 version onward), interface creation/deletion is not allowed using
  4164. * vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
  4165. * during the register/unregister of netdev. Create and delete NDP
  4166. * interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
  4167. * commands respectively if the driver advertises this capability set.
  4168. * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in
  4169. * station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is
  4170. * set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored.
  4171. * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP
  4172. * mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then
  4173. * QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored.
  4174. * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in
  4175. * station mode supports secure RTT measurement exchange. If
  4176. * NL80211_EXT_FEATURE_SECURE_RTT is set,
  4177. * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored.
  4178. * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP
  4179. * mode supports secure RTT measurement exchange. If
  4180. * NL80211_EXT_FEATURE_SECURE_RTT is set,
  4181. * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored.
  4182. * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that
  4183. * the device in station mode supports protection of range negotiation and
  4184. * measurement management frames. If
  4185. * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
  4186. * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored.
  4187. * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that
  4188. * the device in AP mode supports protection of range negotiation and
  4189. * measurement management frames. If
  4190. * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
  4191. * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored.
  4192. * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
  4193. */
  4194. enum qca_wlan_vendor_features {
  4195. QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
  4196. QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
  4197. QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
  4198. QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
  4199. QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
  4200. QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
  4201. QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
  4202. QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
  4203. QCA_WLAN_VENDOR_FEATURE_TWT = 8,
  4204. QCA_WLAN_VENDOR_FEATURE_11AX = 9,
  4205. QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
  4206. QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
  4207. QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
  4208. QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
  4209. QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
  4210. QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
  4211. QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA = 16,
  4212. QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP = 17,
  4213. QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA = 18,
  4214. QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP = 19,
  4215. QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20,
  4216. QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21,
  4217. NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
  4218. };
  4219. /**
  4220. * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP
  4221. * conditional channel switch
  4222. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial
  4223. * value
  4224. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based
  4225. * frequency list (an array of u32 values in host byte order)
  4226. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the
  4227. * conditional switch (u32)- 0: Success, Non-zero: Failure
  4228. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last
  4229. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max
  4230. */
  4231. enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
  4232. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
  4233. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
  4234. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
  4235. /* Keep Last */
  4236. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
  4237. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
  4238. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
  4239. };
  4240. /**
  4241. * enum wifi_logger_supported_features - values for supported logger features
  4242. * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW
  4243. * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics
  4244. * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events
  4245. * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver
  4246. * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver
  4247. * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health
  4248. * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump
  4249. * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate
  4250. */
  4251. enum wifi_logger_supported_features {
  4252. WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)),
  4253. WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)),
  4254. WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)),
  4255. WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)),
  4256. WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)),
  4257. WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)),
  4258. WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)),
  4259. WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)),
  4260. WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8))
  4261. };
  4262. /**
  4263. * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
  4264. * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
  4265. *
  4266. * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
  4267. * Used with event to notify the primary channel number selected in ACS
  4268. * operation.
  4269. * Note: If both the driver and user-space application supports the 6 GHz band,
  4270. * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
  4271. * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
  4272. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
  4273. * is still used if either of the driver or user space application doesn't
  4274. * support the 6 GHz band.
  4275. *
  4276. * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
  4277. * Used with event to notify the secondary channel number selected in ACS
  4278. * operation.
  4279. * Note: If both the driver and user-space application supports the 6 GHz band,
  4280. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
  4281. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
  4282. * To maintain backward compatibility,
  4283. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
  4284. * the driver or user space application doesn't support 6 GHz band.
  4285. *
  4286. * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
  4287. * (a) Used with command to configure hw_mode from
  4288. * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
  4289. * (b) Also used with event to notify the hw_mode of selected primary channel
  4290. * in ACS operation.
  4291. *
  4292. * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
  4293. * Used with command to configure ACS operation for HT mode.
  4294. * Disable (flag attribute not present) - HT disabled and
  4295. * Enable (flag attribute present) - HT enabled.
  4296. *
  4297. * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
  4298. * Used with command to configure ACS operation for HT40 mode.
  4299. * Disable (flag attribute not present) - HT40 disabled and
  4300. * Enable (flag attribute present) - HT40 enabled.
  4301. *
  4302. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
  4303. * Used with command to configure ACS operation for VHT mode.
  4304. * Disable (flag attribute not present) - VHT disabled and
  4305. * Enable (flag attribute present) - VHT enabled.
  4306. *
  4307. * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
  4308. * mandatory with event.
  4309. * If specified in command path, ACS operation is configured with the given
  4310. * channel width (in MHz).
  4311. * In event path, specifies the channel width of the primary channel selected.
  4312. *
  4313. * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
  4314. * Used with command to configure channel list using an array of
  4315. * channel numbers (u8).
  4316. * Note: If both the driver and user-space application supports the 6 GHz band,
  4317. * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
  4318. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
  4319. *
  4320. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
  4321. * Used with event to notify the VHT segment 0 center channel number selected in
  4322. * ACS operation.
  4323. * Note: If both the driver and user-space application supports the 6 GHz band,
  4324. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
  4325. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
  4326. * To maintain backward compatibility,
  4327. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
  4328. * the driver or user space application doesn't support the 6 GHz band.
  4329. *
  4330. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
  4331. * Used with event to notify the VHT segment 1 center channel number selected in
  4332. * ACS operation.
  4333. * Note: If both the driver and user-space application supports the 6 GHz band,
  4334. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
  4335. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
  4336. * To maintain backward compatibility,
  4337. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
  4338. * the driver or user space application doesn't support the 6 GHz band.
  4339. *
  4340. * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
  4341. * Used with command to configure the channel list using an array of channel
  4342. * center frequencies in MHz (u32).
  4343. * Note: If both the driver and user-space application supports the 6 GHz band,
  4344. * the driver first parses the frequency list and if it fails to get a frequency
  4345. * list, parses the channel list specified using
  4346. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
  4347. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
  4348. *
  4349. * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
  4350. * Used with event to notify the primary channel center frequency (MHz) selected
  4351. * in ACS operation.
  4352. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4353. * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
  4354. *
  4355. * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
  4356. * Used with event to notify the secondary channel center frequency (MHz)
  4357. * selected in ACS operation.
  4358. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4359. * includes this attribute along with
  4360. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
  4361. *
  4362. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
  4363. * Used with event to notify the VHT segment 0 center channel frequency (MHz)
  4364. * selected in ACS operation.
  4365. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4366. * includes this attribute along with
  4367. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
  4368. *
  4369. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
  4370. * Used with event to notify the VHT segment 1 center channel frequency (MHz)
  4371. * selected in ACS operation.
  4372. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4373. * includes this attribute along with
  4374. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
  4375. *
  4376. * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
  4377. * Used with command to notify the driver of EDMG request for ACS
  4378. * operation.
  4379. *
  4380. * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
  4381. * Used with event to notify the EDMG channel number selected in ACS
  4382. * operation.
  4383. * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
  4384. *
  4385. * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
  4386. * Used with event to notify the puncture pattern selected in ACS operation.
  4387. * Encoding for this attribute will follow the convention used in the Disabled
  4388. * Subchannel Bitmap field of the EHT Operation IE.
  4389. *
  4390. * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
  4391. * Used with command to configure ACS operation for EHT mode.
  4392. * Disable (flag attribute not present) - EHT disabled and
  4393. * Enable (flag attribute present) - EHT enabled.
  4394. *
  4395. * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
  4396. * Used with command to configure how older scan can be considered for ACS
  4397. * scoring. In case scan was performed on partial set of channels configured
  4398. * with this command, within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
  4399. * (in ms), then scan only remaining channels.
  4400. */
  4401. enum qca_wlan_vendor_attr_acs_offload {
  4402. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
  4403. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
  4404. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
  4405. QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
  4406. QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
  4407. QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
  4408. QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
  4409. QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
  4410. QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
  4411. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
  4412. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
  4413. QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
  4414. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
  4415. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
  4416. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
  4417. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
  4418. QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
  4419. QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
  4420. QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
  4421. QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
  4422. QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
  4423. /* keep last */
  4424. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
  4425. QCA_WLAN_VENDOR_ATTR_ACS_MAX =
  4426. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
  4427. };
  4428. /**
  4429. * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
  4430. * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
  4431. *
  4432. * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
  4433. * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
  4434. * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
  4435. * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
  4436. * @QCA_ACS_MODE_IEEE80211ANY: all modes
  4437. * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
  4438. */
  4439. enum qca_wlan_vendor_acs_hw_mode {
  4440. QCA_ACS_MODE_IEEE80211B,
  4441. QCA_ACS_MODE_IEEE80211G,
  4442. QCA_ACS_MODE_IEEE80211A,
  4443. QCA_ACS_MODE_IEEE80211AD,
  4444. QCA_ACS_MODE_IEEE80211ANY,
  4445. QCA_ACS_MODE_IEEE80211AX,
  4446. };
  4447. /**
  4448. * enum qca_access_policy - access control policy
  4449. *
  4450. * Access control policy is applied on the configured IE
  4451. * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
  4452. * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
  4453. *
  4454. * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match
  4455. *» with the specific configuration (IE) set, i.e. allow all the
  4456. *» connections which do not match the configuration.
  4457. * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match
  4458. *» with the specific configuration (IE) set, i.e. deny all the
  4459. *» connections which do not match the configuration.
  4460. */
  4461. enum qca_access_policy {
  4462. QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
  4463. QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
  4464. };
  4465. /**
  4466. * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values
  4467. *
  4468. * The valid values for the ignore assoc disallowed
  4469. *
  4470. * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed
  4471. * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed
  4472. *
  4473. */
  4474. enum qca_ignore_assoc_disallowed {
  4475. QCA_IGNORE_ASSOC_DISALLOWED_DISABLE,
  4476. QCA_IGNORE_ASSOC_DISALLOWED_ENABLE
  4477. };
  4478. /* Attributes for data used by
  4479. * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
  4480. * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
  4481. */
  4482. #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES\
  4483. QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
  4484. #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL\
  4485. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
  4486. #define QCA_WLAN_VENDOR_ATTR_ROAM_REASON\
  4487. QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON
  4488. enum qca_wlan_vendor_attr_config {
  4489. QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
  4490. /*
  4491. * Unsigned 32-bit value to set the DTIM period.
  4492. * Whether the wifi chipset wakes at every dtim beacon or a multiple of
  4493. * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
  4494. * DTIM beacons.
  4495. */
  4496. QCA_WLAN_VENDOR_ATTR_CONFIG_MODULATED_DTIM = 1,
  4497. /*
  4498. * Unsigned 32-bit value to set the wifi_iface stats averaging factor
  4499. * used to calculate statistics like average the TSF offset or average
  4500. * number of frame leaked.
  4501. * For instance, upon Beacon frame reception:
  4502. * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
  4503. * For instance, when evaluating leaky APs:
  4504. * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
  4505. */
  4506. QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
  4507. /*
  4508. * Unsigned 32-bit value to configure guard time, i.e., when
  4509. * implementing IEEE power management based on frame control PM bit, how
  4510. * long the driver waits before shutting down the radio and after
  4511. * receiving an ACK frame for a Data frame with PM bit set.
  4512. */
  4513. QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
  4514. /* Unsigned 32-bit value to change the FTM capability dynamically */
  4515. QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
  4516. /* Unsigned 16-bit value to configure maximum TX rate dynamically */
  4517. QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
  4518. /*
  4519. * Unsigned 32-bit value to configure the number of continuous
  4520. * Beacon Miss which shall be used by the firmware to penalize
  4521. * the RSSI.
  4522. */
  4523. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
  4524. /*
  4525. * Unsigned 8-bit value to configure the channel avoidance indication
  4526. * behavior. Firmware to send only one indication and ignore duplicate
  4527. * indications when set to avoid multiple Apps wakeups.
  4528. */
  4529. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
  4530. /*
  4531. * 8-bit unsigned value to configure the maximum TX MPDU for
  4532. * aggregation.
  4533. */
  4534. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
  4535. /*
  4536. * 8-bit unsigned value to configure the maximum RX MPDU for
  4537. * aggregation.
  4538. */
  4539. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
  4540. /*
  4541. * 8-bit unsigned value to configure the Non aggregrate/11g sw
  4542. * retry threshold (0 disable, 31 max).
  4543. */
  4544. QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
  4545. /*
  4546. * 8-bit unsigned value to configure the aggregrate sw
  4547. * retry threshold (0 disable, 31 max).
  4548. */
  4549. QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
  4550. /*
  4551. * 8-bit unsigned value to configure the MGMT frame
  4552. * retry threshold (0 disable, 31 max).
  4553. */
  4554. QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
  4555. /*
  4556. * 8-bit unsigned value to configure the CTRL frame
  4557. * retry threshold (0 disable, 31 max).
  4558. */
  4559. QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
  4560. /*
  4561. * 8-bit unsigned value to configure the propagation delay for
  4562. * 2G/5G band (0~63, units in us)
  4563. */
  4564. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
  4565. /*
  4566. * Unsigned 32-bit value to configure the number of unicast TX fail
  4567. * packet count. The peer is disconnected once this threshold is
  4568. * reached.
  4569. */
  4570. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
  4571. /*
  4572. * Attribute used to set scan default IEs to the driver.
  4573. *
  4574. * These IEs can be used by scan operations that will be initiated by
  4575. * the driver/firmware.
  4576. *
  4577. * For further scan requests coming to the driver, these IEs should be
  4578. * merged with the IEs received along with scan request coming to the
  4579. * driver. If a particular IE is present in the scan default IEs but not
  4580. * present in the scan request, then that IE should be added to the IEs
  4581. * sent in the Probe Request frames for that scan request.
  4582. */
  4583. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
  4584. /* Unsigned 32-bit attribute for generic commands */
  4585. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
  4586. /* Unsigned 32-bit value attribute for generic commands */
  4587. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
  4588. /* Unsigned 32-bit data attribute for generic command response */
  4589. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
  4590. /*
  4591. * Unsigned 32-bit length attribute for
  4592. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  4593. */
  4594. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
  4595. /*
  4596. * Unsigned 32-bit flags attribute for
  4597. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  4598. */
  4599. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
  4600. /*
  4601. * Unsigned 32-bit, defining the access policy.
  4602. * See enum qca_access_policy. Used with
  4603. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
  4604. */
  4605. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
  4606. /*
  4607. * Sets the list of full set of IEs for which a specific access policy
  4608. * has to be applied. Used along with
  4609. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
  4610. * Zero length payload can be used to clear this access constraint.
  4611. */
  4612. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
  4613. /*
  4614. * Unsigned 32-bit, specifies the interface index (netdev) for which the
  4615. * corresponding configurations are applied. If the interface index is
  4616. * not specified, the configurations are attributed to the respective
  4617. * wiphy.
  4618. */
  4619. QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
  4620. /*
  4621. * 8-bit unsigned value to trigger QPower:
  4622. * 1-Enable, 0-Disable
  4623. */
  4624. QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
  4625. /*
  4626. * 8-bit unsigned value to configure the driver and below layers to
  4627. * ignore the assoc disallowed set by APs while connecting
  4628. * 1-Ignore, 0-Don't ignore
  4629. */
  4630. QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
  4631. /*
  4632. * 32-bit unsigned value to trigger antenna diversity features:
  4633. * 1-Enable, 0-Disable
  4634. */
  4635. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
  4636. /* 32-bit unsigned value to configure specific chain antenna */
  4637. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
  4638. /*
  4639. * 32-bit unsigned value to trigger cycle selftest
  4640. * 1-Enable, 0-Disable
  4641. */
  4642. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
  4643. /*
  4644. * 32-bit unsigned to configure the cycle time of selftest
  4645. * the unit is micro-second
  4646. */
  4647. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
  4648. /* 32-bit unsigned value to set reorder timeout for AC_VO */
  4649. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
  4650. /* 32-bit unsigned value to set reorder timeout for AC_VI */
  4651. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
  4652. /* 32-bit unsigned value to set reorder timeout for AC_BE */
  4653. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
  4654. /* 32-bit unsigned value to set reorder timeout for AC_BK */
  4655. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
  4656. /* 6-byte MAC address to point out the specific peer */
  4657. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
  4658. /* 32-bit unsigned value to set window size for specific peer */
  4659. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
  4660. /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
  4661. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
  4662. /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
  4663. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
  4664. /*
  4665. * 32-bit unsigned value to configure 5 or 10 MHz channel width for
  4666. * station device while in disconnect state. The attribute use the
  4667. * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
  4668. * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
  4669. * 10 MHz channel width, the station will not connect to a BSS using 20
  4670. * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
  4671. * clear this constraint.
  4672. */
  4673. QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
  4674. /*
  4675. * 32-bit unsigned value to configure the propagation absolute delay
  4676. * for 2G/5G band (units in us)
  4677. */
  4678. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
  4679. /* 32-bit unsigned value to set probe period */
  4680. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
  4681. /* 32-bit unsigned value to set stay period */
  4682. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
  4683. /* 32-bit unsigned value to set snr diff */
  4684. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
  4685. /* 32-bit unsigned value to set probe dwell time */
  4686. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
  4687. /* 32-bit unsigned value to set mgmt snr weight */
  4688. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
  4689. /* 32-bit unsigned value to set data snr weight */
  4690. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
  4691. /* 32-bit unsigned value to set ack snr weight */
  4692. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
  4693. /*
  4694. * 32-bit unsigned value to configure the listen interval.
  4695. * This is in units of beacon intervals. This configuration alters
  4696. * the negotiated listen interval with the AP during the connection.
  4697. * It is highly recommended to configure a value less than or equal to
  4698. * the one negotiated during the association. Configuring any greater
  4699. * value can have adverse effects (frame loss, AP disassociating STA,
  4700. * etc.).
  4701. */
  4702. QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
  4703. /*
  4704. * 8 bit unsigned value that is set on an AP/GO virtual interface to
  4705. * disable operations that would cause the AP/GO to leave its operating
  4706. * channel.
  4707. *
  4708. * This will restrict the scans to the AP/GO operating channel and the
  4709. * channels of the other band, if DBS is supported.A STA/CLI interface
  4710. * brought up after this setting is enabled, will be restricted to
  4711. * connecting to devices only on the AP/GO interface's operating channel
  4712. * or on the other band in DBS case. P2P supported channel list is
  4713. * modified, to only include AP interface's operating-channel and the
  4714. * channels of the other band if DBS is supported.
  4715. *
  4716. * These restrictions are only applicable as long as the AP/GO interface
  4717. * is alive. If the AP/GO interface is brought down then this
  4718. * setting/restriction is forgotten.
  4719. *
  4720. * If this variable is set on an AP/GO interface while a multi-channel
  4721. * concurrent session is active, it has no effect on the operation of
  4722. * the current interfaces, other than restricting the scan to the AP/GO
  4723. * operating channel and the other band channels if DBS is supported.
  4724. * However, if the STA is brought down and restarted then the new STA
  4725. * connection will either be formed on the AP/GO channel or on the
  4726. * other band in a DBS case. This is because of the scan being
  4727. * restricted on these channels as mentioned above.
  4728. *
  4729. * 1-Disable offchannel operations, 0-Enable offchannel operations.
  4730. */
  4731. QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
  4732. /*
  4733. * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
  4734. * on an interface.
  4735. * 1 - Enable , 0 - Disable.
  4736. */
  4737. QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
  4738. /*
  4739. * 8 bit unsigned value to globally enable/disable scan
  4740. * 1 - Enable, 0 - Disable.
  4741. */
  4742. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
  4743. /* 8-bit unsigned value to set the total beacon miss count */
  4744. QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
  4745. /*
  4746. * Unsigned 32-bit value to configure the number of continuous
  4747. * Beacon Miss which shall be used by the firmware to penalize
  4748. * the RSSI for BTC.
  4749. */
  4750. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
  4751. /*
  4752. * 8-bit unsigned value to configure the driver and below layers to
  4753. * enable/disable all fils features.
  4754. * 0-enable, 1-disable
  4755. */
  4756. QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
  4757. /* 16-bit unsigned value to configure the level of WLAN latency
  4758. * module. See enum qca_wlan_vendor_attr_config_latency_level.
  4759. */
  4760. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
  4761. /*
  4762. * 8-bit unsigned value indicating the driver to use the RSNE as-is from
  4763. * the connect interface. Exclusively used for the scenarios where the
  4764. * device is used as a test bed device with special functionality and
  4765. * not recommended for production. This helps driver to not validate the
  4766. * RSNE passed from user space and thus allow arbitrary IE data to be
  4767. * used for testing purposes.
  4768. * 1-enable, 0-disable.
  4769. * Applications set/reset this configuration. If not reset, this
  4770. * parameter remains in use until the driver is unloaded.
  4771. */
  4772. QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
  4773. /*
  4774. * 8-bit unsigned value to trigger green Tx power saving.
  4775. * 1-Enable, 0-Disable
  4776. */
  4777. QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
  4778. /*
  4779. * Attribute to configure disconnect IEs to the driver.
  4780. * This carries an array of unsigned 8-bit characters.
  4781. *
  4782. * If this is configured, driver shall fill the IEs in disassoc/deauth
  4783. * frame.
  4784. * These IEs are expected to be considered only for the next
  4785. * immediate disconnection (disassoc/deauth frame) originated by
  4786. * the DUT, irrespective of the entity (user space/driver/firmware)
  4787. * triggering the disconnection.
  4788. * The host drivers are not expected to use the IEs set through
  4789. * this interface for further disconnections after the first immediate
  4790. * disconnection initiated post the configuration.
  4791. * If the IEs are also updated through cfg80211 interface (after the
  4792. * enhancement to cfg80211_disconnect), host driver is expected to
  4793. * take the union of IEs from both of these interfaces and send in
  4794. * further disassoc/deauth frames.
  4795. */
  4796. QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
  4797. /* 8-bit unsigned value for ELNA bypass.
  4798. * 0 - Disable eLNA bypass.
  4799. * 1 - Enable eLNA bypass.
  4800. * 2 - Reset eLNA bypass configuration, the driver should
  4801. * revert to the default configuration of eLNA bypass.
  4802. */
  4803. QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
  4804. /* 8-bit unsigned value. This attribute enables/disables the host driver
  4805. * to send the Beacon Report response with failure reason for the
  4806. * scenarios where STA cannot honor the Beacon report request from AP.
  4807. * 1-Enable, 0-Disable.
  4808. */
  4809. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
  4810. /* 8-bit unsigned value. This attribute enables/disables the host driver
  4811. * to send roam reason information in the reassociation request to the
  4812. * AP. 1-Enable, 0-Disable.
  4813. */
  4814. QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
  4815. /* 32-bit unsigned value to configure different PHY modes to the
  4816. * driver/firmware. The possible values are defined in
  4817. * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
  4818. * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
  4819. * the driver.
  4820. */
  4821. QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
  4822. /* 8-bit unsigned value to configure the maximum supported channel width
  4823. * for STA mode. If this value is configured when STA is in connected
  4824. * state, it should not exceed the negotiated channel width. If it is
  4825. * configured when STA is in disconnected state, the configured value
  4826. * will take effect for the next immediate connection.
  4827. * Possible values are:
  4828. * NL80211_CHAN_WIDTH_20
  4829. * NL80211_CHAN_WIDTH_40
  4830. * NL80211_CHAN_WIDTH_80
  4831. * NL80211_CHAN_WIDTH_80P80
  4832. * NL80211_CHAN_WIDTH_160
  4833. */
  4834. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
  4835. /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
  4836. * This attribute is only applicable for STA mode. When dynamic
  4837. * bandwidth adjustment is disabled, STA will use static channel width
  4838. * the value of which is negotiated during connection.
  4839. * 1-enable (default), 0-disable
  4840. */
  4841. QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
  4842. /* 8-bit unsigned value to configure the maximum number of subframes of
  4843. * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
  4844. * it is decided by hardware.
  4845. */
  4846. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
  4847. /* 8-bit unsigned value to configure the maximum number of subframes of
  4848. * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
  4849. * it is decided by hardware.
  4850. */
  4851. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
  4852. /* 8-bit unsigned value. This attribute is used to dynamically
  4853. * enable/disable the LDPC capability of the device. When configured in
  4854. * the disconnected state, the updated configuration will be considered
  4855. * for the immediately following connection attempt. If this
  4856. * configuration is modified while the device is in the connected state,
  4857. * the LDPC TX will be updated with this configuration immediately,
  4858. * while the LDPC RX configuration update will take place starting from
  4859. * the subsequent association attempt.
  4860. * 1-Enable, 0-Disable.
  4861. */
  4862. QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
  4863. /* 8-bit unsigned value. This attribute is used to dynamically
  4864. * enable/disable the TX STBC capability of the device. When configured
  4865. * in the disconnected state, the updated configuration will be
  4866. * considered for the immediately following connection attempt. If the
  4867. * connection is formed with TX STBC enabled and if this configuration
  4868. * is disabled during that association, the TX will be impacted
  4869. * immediately. Further connection attempts will disable TX STBC.
  4870. * However, enabling the TX STBC for a connected session with disabled
  4871. * capability is not allowed and will fail.
  4872. * 1-Enable, 0-Disable.
  4873. */
  4874. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
  4875. /* 8-bit unsigned value. This attribute is used to dynamically
  4876. * enable/disable the RX STBC capability of the device. When configured
  4877. * in the disconnected state, the updated configuration will be
  4878. * considered for the immediately following connection attempt. If the
  4879. * configuration is modified in the connected state, there will be no
  4880. * impact for the current association, but further connection attempts
  4881. * will use the updated configuration.
  4882. * 1-Enable, 0-Disable.
  4883. */
  4884. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
  4885. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4886. * the number of spatial streams. When configured in the disconnected
  4887. * state, the updated configuration will be considered for the
  4888. * immediately following connection attempt. If the NSS is updated after
  4889. * the connection, the updated NSS value is notified to the peer using
  4890. * the Operating Mode Notification/Spatial Multiplexing Power Save
  4891. * frame. The updated NSS value after the connection shall not be
  4892. * greater than the one negotiated during the connection. Any such
  4893. * higher value configuration shall be returned with a failure.
  4894. * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
  4895. * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
  4896. * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
  4897. * configure the asymmetric NSS configuration (such as 1X2).
  4898. */
  4899. QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
  4900. /*
  4901. * 8-bit unsigned value to trigger Optimized Power Management:
  4902. * 1-Enable, 0-Disable
  4903. */
  4904. QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
  4905. /* 8-bit unsigned value. This attribute takes the QOS/access category
  4906. * value represented by the enum qca_wlan_ac_type and expects the driver
  4907. * to upgrade the UDP frames to this QOS. The value of QCA_WLAN_AC_ALL
  4908. * is invalid for this attribute. This will override the DSCP value
  4909. * configured in the frame with the intention to only upgrade the QOS.
  4910. * That said, it is not intended to downgrade the QOS for the frames.
  4911. * Set the value to 0 ( corresponding to BE ) if the QOS upgrade needs
  4912. * to disable.
  4913. *
  4914. * If only UDP frames of BE or BK access category needs to be upgraded
  4915. * without changing the access category of VO or VI UDP frames, refer to
  4916. * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK.
  4917. *
  4918. * This attribute is not recommended to be used as it blindly forces all
  4919. * UDP packets to a higher access category which could impact the
  4920. * traffic pattern of all apps using UDP and can cause unknown behavior.
  4921. */
  4922. QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
  4923. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4924. * the number of chains to be used for transmitting data. This
  4925. * configuration is allowed only when in connected state and will be
  4926. * effective until disconnected. The driver rejects this configuration
  4927. * if the number of spatial streams being used in the current connection
  4928. * cannot be supported by this configuration.
  4929. */
  4930. QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
  4931. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4932. * the number of chains to be used for receiving data. This
  4933. * configuration is allowed only when in connected state and will be
  4934. * effective until disconnected. The driver rejects this configuration
  4935. * if the number of spatial streams being used in the current connection
  4936. * cannot be supported by this configuration.
  4937. */
  4938. QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
  4939. /* 8-bit unsigned value to configure ANI setting type.
  4940. * See &enum qca_wlan_ani_setting for possible values.
  4941. */
  4942. QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
  4943. /* 32-bit signed value to configure ANI level. This is used when
  4944. * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
  4945. * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
  4946. * is invalid, the driver will return a failure.
  4947. */
  4948. QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
  4949. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4950. * the number of spatial streams used for transmitting the data. When
  4951. * configured in the disconnected state, the configured value will
  4952. * be considered for the following connection attempt.
  4953. * If the NSS is updated after the connection, the updated NSS value
  4954. * is notified to the peer using the Operating Mode Notification/Spatial
  4955. * Multiplexing Power Save frame.
  4956. * The TX NSS value configured after the connection shall not be greater
  4957. * than the value negotiated during the connection. Any such higher
  4958. * value configuration shall be treated as invalid configuration by
  4959. * the driver. This attribute shall be configured along with
  4960. * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
  4961. * configuration (such as 2X2 or 1X1) or the asymmetric
  4962. * configuration (such as 1X2).
  4963. * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
  4964. * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
  4965. * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
  4966. */
  4967. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
  4968. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4969. * the number of spatial streams used for receiving the data. When
  4970. * configured in the disconnected state, the configured value will
  4971. * be considered for the following connection attempt.
  4972. * If the NSS is updated after the connection, the updated NSS value
  4973. * is notified to the peer using the Operating Mode Notification/Spatial
  4974. * Multiplexing Power Save frame.
  4975. * The RX NSS value configured after the connection shall not be greater
  4976. * than the value negotiated during the connection. Any such higher
  4977. * value configuration shall be treated as invalid configuration by
  4978. * the driver. This attribute shall be configured along with
  4979. * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
  4980. * configuration (such as 2X2 or 1X1) or the asymmetric
  4981. * configuration (such as 1X2).
  4982. * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
  4983. * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
  4984. * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
  4985. */
  4986. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
  4987. /*
  4988. * 8-bit unsigned value. This attribute, when set, indicates whether the
  4989. * specified interface is the primary STA interface when there are more
  4990. * than one STA interfaces concurrently active.
  4991. *
  4992. * This configuration helps the firmware/hardware to support certain
  4993. * features (e.g., roaming) on this primary interface, if the same
  4994. * cannot be supported on the concurrent STA interfaces simultaneously.
  4995. *
  4996. * This configuration is only applicable for a single STA interface on
  4997. * a device and gives the priority for it only over other concurrent STA
  4998. * interfaces.
  4999. *
  5000. * If the device is a multi wiphy/soc, this configuration applies to a
  5001. * single STA interface across the wiphys.
  5002. *
  5003. * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
  5004. */
  5005. QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
  5006. /*
  5007. * 8-bit unsigned value. This attribute can be used to configure the
  5008. * driver to enable/disable FT-over-DS feature. Possible values for
  5009. * this attribute are 1-Enable and 0-Disable.
  5010. */
  5011. QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
  5012. /*
  5013. * 8-bit unsigned value. This attribute can be used to configure the
  5014. * firmware to enable/disable ARP/NS offload feature. Possible values
  5015. * for this attribute are 0-Disable and 1-Enable.
  5016. *
  5017. * This attribute is only applicable for STA/P2P-Client interface,
  5018. * and is optional, default behavior is APR/NS offload Enable.
  5019. *
  5020. * This attribute can be set in disconncted and connected state, and
  5021. * will restore to default behavior if interface is closed.
  5022. */
  5023. QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
  5024. /*
  5025. * 8-bit unsigned value. This attribute can be used to configure the
  5026. * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values
  5027. * for this attribute are defined in the enum qca_dbam_config.
  5028. */
  5029. QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
  5030. /* 8-bit unsigned value. This attribute takes the QoS/access category
  5031. * value represented by the enum qca_wlan_ac_type and expects the driver
  5032. * to upgrade the UDP frames of BE or BK access category to this access
  5033. * category. This attribute will not modify UDP frames of VO or VI
  5034. * access category. The value of QCA_WLAN_AC_ALL is invalid for this
  5035. * attribute.
  5036. *
  5037. * This will override the DSCP value configured in the frame with the
  5038. * intention to only upgrade the access category. That said, it is not
  5039. * intended to downgrade the access category for the frames.
  5040. * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
  5041. * disabled, as BK is of the lowest priority and an upgrade to it does
  5042. * not result in any changes for the frames.
  5043. *
  5044. * This attribute behavior is similar to
  5045. * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that
  5046. * only UDP frames of BE or BK access category are upgraded and not
  5047. * UDP frames of VI or VO access category.
  5048. *
  5049. * This attribute is not recommended to be used as it blindly forces all
  5050. * UDP packets of BE or BK access category to a higher access category
  5051. * which could impact the traffic pattern of all apps using UDP and can
  5052. * cause unknown behavior.
  5053. */
  5054. QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84,
  5055. /* 8-bit unsigned value to configure the driver to enable/disable the
  5056. * periodic sounding for Tx beamformer functionality. The default
  5057. * behavior uses algorithm to do sounding based on packet stats.
  5058. *
  5059. * 0 - Default behavior.
  5060. * 1 - Enable the periodic sounding for Tx beamformer.
  5061. * This attribute is used for testing purposes.
  5062. */
  5063. QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85,
  5064. /* 8-bit unsigned value, whenever wifi calling (wfc) begin or end,
  5065. * Userspace sends this information to driver/firmware to configure
  5066. * wfc state. Driver/Firmware uses this information to
  5067. * optimize power savings, rate adaption, roaming, etc.
  5068. *
  5069. * 1 - wfc is on.
  5070. * 0 - wfc is off.
  5071. */
  5072. QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86,
  5073. /* 8-bit unsigned value to configure the driver to enable/disable the
  5074. * EHT EML capability in management frame EHT capabilities.
  5075. * 1 - Enable, 0 - Disable.
  5076. */
  5077. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_EML_CAPABILITY = 87,
  5078. /* 8-bit unsigned value to configure the driver with EHT MLO max
  5079. * simultaneous links to be used for MLO connection.
  5080. * The range of the value is 0 to 14.
  5081. */
  5082. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_SIMULTANEOUS_LINKS = 88,
  5083. /* 8-bit unsigned value to configure the driver with EHT MLO maximum
  5084. * number of links to be used for MLO connection.
  5085. * The range of the value is 1 to 16.
  5086. */
  5087. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_NUM_LINKS = 89,
  5088. /* 8-bit unsigned value to configure the driver with EHT MLO mode.
  5089. * Uses enum qca_wlan_eht_mlo_mode values.
  5090. */
  5091. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MODE = 90,
  5092. /* keep last */
  5093. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
  5094. QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
  5095. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
  5096. };
  5097. /**
  5098. * enum qca_dbam_config - Specifies DBAM config mode
  5099. * @QCA_DBAM_DISABLE: Firmware disables DBAM
  5100. * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when
  5101. * internal criteria are met.
  5102. * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully.
  5103. */
  5104. enum qca_dbam_config {
  5105. QCA_DBAM_DISABLE = 0,
  5106. QCA_DBAM_ENABLE = 1,
  5107. QCA_DBAM_FORCE_ENABLE = 2,
  5108. };
  5109. /**
  5110. * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting
  5111. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute
  5112. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID
  5113. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level
  5114. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag
  5115. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value
  5116. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value
  5117. */
  5118. enum qca_wlan_vendor_attr_wifi_logger_start {
  5119. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
  5120. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
  5121. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
  5122. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
  5123. /* keep last */
  5124. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
  5125. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX =
  5126. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
  5127. };
  5128. /*
  5129. * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data
  5130. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute
  5131. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID
  5132. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value
  5133. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value
  5134. */
  5135. enum qca_wlan_vendor_attr_wifi_logger_get_ring_data {
  5136. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0,
  5137. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1,
  5138. /* keep last */
  5139. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST,
  5140. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX =
  5141. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1,
  5142. };
  5143. #ifdef WLAN_FEATURE_OFFLOAD_PACKETS
  5144. /**
  5145. * enum wlan_offloaded_packets_control - control commands
  5146. * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets
  5147. * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets
  5148. *
  5149. */
  5150. enum wlan_offloaded_packets_control {
  5151. WLAN_START_OFFLOADED_PACKETS = 1,
  5152. WLAN_STOP_OFFLOADED_PACKETS = 2
  5153. };
  5154. /**
  5155. * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
  5156. *
  5157. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
  5158. * the offloaded data.
  5159. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
  5160. * data.
  5161. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
  5162. * indication.
  5163. */
  5164. enum qca_wlan_vendor_attr_data_offload_ind {
  5165. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
  5166. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
  5167. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
  5168. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
  5169. /* keep last */
  5170. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
  5171. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
  5172. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
  5173. };
  5174. /**
  5175. * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
  5176. * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
  5177. */
  5178. enum qca_wlan_vendor_attr_offloaded_packets {
  5179. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
  5180. /* Takes valid value from the enum
  5181. * qca_wlan_offloaded_packets_sending_control
  5182. * Unsigned 32-bit value
  5183. */
  5184. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
  5185. /* Unsigned 32-bit value */
  5186. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
  5187. /* array of u8 len: Max packet size */
  5188. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
  5189. /* 6-byte MAC address used to represent source MAC address */
  5190. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
  5191. /* 6-byte MAC address used to represent destination MAC address */
  5192. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
  5193. /* Unsigned 32-bit value, in milli seconds */
  5194. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
  5195. /* This optional unsigned 16-bit attribute is used for specifying
  5196. * ethernet protocol type. If not specified ethertype defaults to IPv4.
  5197. */
  5198. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
  5199. /* keep last */
  5200. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
  5201. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
  5202. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
  5203. };
  5204. #endif /* WLAN_FEATURE_OFFLOAD_PACKETS */
  5205. /**
  5206. * enum qca_wlan_rssi_monitoring_control - rssi control commands
  5207. * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid
  5208. * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start
  5209. * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop
  5210. */
  5211. enum qca_wlan_rssi_monitoring_control {
  5212. QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
  5213. QCA_WLAN_RSSI_MONITORING_START,
  5214. QCA_WLAN_RSSI_MONITORING_STOP,
  5215. };
  5216. /**
  5217. * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring
  5218. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid
  5219. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control
  5220. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi
  5221. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi
  5222. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid
  5223. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi
  5224. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last
  5225. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max
  5226. */
  5227. enum qca_wlan_vendor_attr_rssi_monitoring {
  5228. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
  5229. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
  5230. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
  5231. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
  5232. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
  5233. /* attributes to be used/received in callback */
  5234. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
  5235. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
  5236. /* keep last */
  5237. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
  5238. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
  5239. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
  5240. };
  5241. /**
  5242. * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
  5243. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  5244. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID
  5245. * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd
  5246. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID:
  5247. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicates a service info
  5248. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz
  5249. * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC
  5250. * address
  5251. * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being
  5252. * created
  5253. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use
  5254. * NCS_SK_TYPE/PMK/SCID instead
  5255. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS
  5256. * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info
  5257. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id
  5258. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids
  5259. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response
  5260. * code: accept/reject
  5261. * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address
  5262. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by
  5263. * driver
  5264. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by
  5265. * driver
  5266. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration
  5267. * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type
  5268. * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO
  5269. * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the
  5270. * PMKID
  5271. * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase
  5272. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name
  5273. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule
  5274. * update:
  5275. * BIT_0: NSS Update
  5276. * BIT_1: Channel list update
  5277. * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss
  5278. * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL
  5279. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH:
  5280. * 0:20 MHz,
  5281. * 1:40 MHz,
  5282. * 2:80 MHz,
  5283. * 3:160 MHz
  5284. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width
  5285. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute
  5286. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type
  5287. * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array
  5288. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating
  5289. * transport port used by NDP.
  5290. * QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating
  5291. * protocol used by NDP and assigned by the Internet Assigned Numbers Authority
  5292. * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
  5293. * QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT: Unsigned 8-bit value indicating if
  5294. * NDP remote peer supports NAN NDPE. 1:support 0:not support
  5295. * QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID: As per Wi-Fi Aware Specification v3.2
  5296. * Service Id is the first 48 bits of the SHA-256 hash of the Service Name.
  5297. * A lower-case representation of the Service Name shall be used to
  5298. * calculate the Service ID.
  5299. * Array of u8: length is 6 bytes
  5300. * This attribute is used and optional for ndp indication.
  5301. */
  5302. enum qca_wlan_vendor_attr_ndp_params {
  5303. QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
  5304. QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1,
  5305. QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2,
  5306. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3,
  5307. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4,
  5308. QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5,
  5309. QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6,
  5310. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7,
  5311. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8,
  5312. QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9,
  5313. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10,
  5314. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11,
  5315. QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12,
  5316. QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13,
  5317. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14,
  5318. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15,
  5319. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16,
  5320. QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17,
  5321. QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18,
  5322. QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19,
  5323. QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20,
  5324. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21,
  5325. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22,
  5326. QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23,
  5327. QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24,
  5328. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25,
  5329. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26,
  5330. QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
  5331. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
  5332. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
  5333. QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
  5334. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
  5335. /* keep last */
  5336. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
  5337. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
  5338. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
  5339. };
  5340. /**
  5341. * enum qca_wlan_ndp_sub_cmd - NDP sub comands types for
  5342. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  5343. * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value
  5344. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: Command to create a NAN
  5345. * data path interface.
  5346. * This command was initially designed to both create and start a NAN
  5347. * data path interface. However, changes to Linux 5.12 no longer allow
  5348. * interface creation via vendor commands. When the driver advertises
  5349. * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
  5350. * userspace must explicitly first create the interface using
  5351. * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
  5352. * to start the interface.
  5353. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: command to delete a NAN
  5354. * data path interface.
  5355. * This command was initially designed to both stop and delete a NAN
  5356. * data path interface. However, changes to Linux 5.12 no longer allow
  5357. * interface deletion via vendor commands. When the driver advertises
  5358. * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
  5359. * userspace must explicitly delete the interface using
  5360. * NL80211_CMD_DEL_INTERFACE after calling this command.
  5361. * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above
  5362. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session
  5363. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above
  5364. * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end
  5365. * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above
  5366. * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request
  5367. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete
  5368. * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request
  5369. * being received
  5370. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule
  5371. * update
  5372. */
  5373. enum qca_wlan_ndp_sub_cmd {
  5374. QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
  5375. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
  5376. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
  5377. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
  5378. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
  5379. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
  5380. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
  5381. QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
  5382. QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
  5383. QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
  5384. QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
  5385. QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
  5386. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
  5387. };
  5388. /**
  5389. * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
  5390. * information. These attributes are sent as part of
  5391. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
  5392. * attributes correspond to a single channel.
  5393. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16)
  5394. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  5395. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16)
  5396. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  5397. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency
  5398. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum
  5399. * regulatory transmission power
  5400. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum
  5401. * transmission power
  5402. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum
  5403. * transmission power
  5404. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory
  5405. * class id
  5406. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum
  5407. * antenna gain in dbm
  5408. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0
  5409. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1
  5410. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0: Segment 0
  5411. * center frequency in MHz.
  5412. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht
  5413. * segment 0 in center freq in MHz. (this is the legacy alias)
  5414. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1: Segment 1
  5415. * center frequency in MHz.
  5416. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht
  5417. * segment 1 in center freq in MHz. (this is the legacy alias)
  5418. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES: 3-bits
  5419. * flag indicating the AP power modes supported by the channel, as given by
  5420. * enum qca_wlan_vendor_external_acs_chan_power_level.
  5421. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR: Array of nested
  5422. * attributes for each power mode. It takes attr as defined in enum
  5423. * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
  5424. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1:
  5425. * This indicates the overlapping 320 MHz center frequency in MHz, if the
  5426. * given primary channel supports more than one 320 MHz channel bonding.
  5427. *
  5428. */
  5429. enum qca_wlan_vendor_external_acs_event_chan_info_attr {
  5430. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
  5431. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
  5432. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
  5433. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
  5434. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
  5435. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
  5436. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
  5437. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
  5438. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
  5439. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
  5440. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
  5441. /*
  5442. * A bitmask (u32) with flags specified in
  5443. * enum qca_wlan_vendor_channel_prop_flags_2.
  5444. */
  5445. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
  5446. /*
  5447. * Segment 0 in MHz (u32).
  5448. *
  5449. * For 20/40/80 MHz bandwidth, this indicates the channel center
  5450. * frequency index for the 20/40/80 MHz operating channel.
  5451. * For 160 MHz bandwidth, this indicates the channel center
  5452. * frequency of the primary 80 MHz channel.
  5453. * For 320 MHz bandwidth, indicates the channel center frequency
  5454. * of the primary 160 MHz channel.
  5455. *
  5456. * To maintain backward compatibility,
  5457. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5458. * is also maintained.
  5459. */
  5460. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12,
  5461. /* Legacy alias for the Segment 0 attribute.
  5462. *
  5463. * VHT segment 0 in MHz (u32) and the attribute is mandatory.
  5464. * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
  5465. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5466. * along with
  5467. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
  5468. *
  5469. * If both the driver and user-space application supports the 6 GHz
  5470. * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
  5471. * is deprecated and
  5472. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5473. * should be used.
  5474. *
  5475. * To maintain backward compatibility,
  5476. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5477. * is still used if either of the driver or user space application
  5478. * doesn't support the 6 GHz band.
  5479. */
  5480. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 =
  5481. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0,
  5482. /*
  5483. * Segment 1 in MHz (u32).
  5484. *
  5485. * For 20/40/80 MHz bandwidth, this is set to 0.
  5486. * For 160 MHz bandwidth, indicates the channel center frequency of the
  5487. * 160 MHz channel.
  5488. * For 320 MHz bandwidth, indicates the channel center frequency of the
  5489. * 320 MHz channel.
  5490. *
  5491. * To maintain backward compatibility,
  5492. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5493. * is also maintained.
  5494. */
  5495. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13,
  5496. /* Legacy alias for the Segment 1 attribute.
  5497. *
  5498. * VHT segment 1 in MHz (u32) and the attribute is mandatory.
  5499. * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
  5500. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5501. * along with
  5502. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
  5503. *
  5504. * If both the driver and user-space application supports the 6 GHz
  5505. * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
  5506. * is deprecated and
  5507. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5508. * should be considered.
  5509. *
  5510. * To maintain backward compatibility,
  5511. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5512. * is still used if either of the driver or user space application
  5513. * doesn't support the 6 GHz band.
  5514. */
  5515. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 =
  5516. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1,
  5517. /*
  5518. * 16-bit attribute of bits indicating the AP power modes supported by
  5519. * the channel (u16).
  5520. * Note: Currently, only 3 bits are used in the attribute and each bit
  5521. * corresponds to the power mode mentioned in enum
  5522. * qca_wlan_vendor_external_acs_chan_power_level and a given bit is
  5523. * set if the associated mode is supported.
  5524. */
  5525. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
  5526. = 14,
  5527. /* Array of nested attributes for each power mode. It takes attr as
  5528. * defined in enum
  5529. * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
  5530. */
  5531. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR = 15,
  5532. /*
  5533. * This indicates the overlapping 320 MHz center frequency in MHz
  5534. * (u32), if the given primary channel supports more than one
  5535. * 320 MHz channel bonding.
  5536. *
  5537. * Example:
  5538. * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0
  5539. * center frequency (primary 160 MHz) is 6185 MHz and there can be two
  5540. * possible segment 2 frequencies for this (320 MHz center
  5541. * frequencies):
  5542. *
  5543. * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding
  5544. * from frequency 5945 MHz - 6265 MHz
  5545. * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding
  5546. * from frequency 6105 MHz - 6425 MHz
  5547. *
  5548. * In this case,
  5549. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will
  5550. * return 6185 MHz.
  5551. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will
  5552. * return 6105 MHz.
  5553. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
  5554. * will return 6265 MHz.
  5555. */
  5556. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
  5557. = 16,
  5558. /* keep last */
  5559. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
  5560. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
  5561. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
  5562. };
  5563. /**
  5564. * qca_wlan_vendor_external_acs_chan_power_level - Specifies the valid
  5565. * values that the vendor external ACS channel power attribute
  5566. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
  5567. * take.
  5568. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
  5569. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
  5570. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
  5571. */
  5572. enum qca_wlan_vendor_external_acs_chan_power_level {
  5573. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
  5574. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
  5575. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
  5576. };
  5577. /**
  5578. * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
  5579. * attributes for power mode type and power values corresponding to that.
  5580. * These attributes are sent as part of
  5581. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
  5582. */
  5583. enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
  5584. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
  5585. /*
  5586. * Power mode (u8) takes the values defined in enum
  5587. * qca_wlan_vendor_external_acs_chan_power_mode
  5588. */
  5589. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
  5590. = 1,
  5591. /*
  5592. * Indicates if power value is a PSD/EIRP value (flag). If flag is
  5593. * present, it indicates a PSD value.
  5594. */
  5595. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
  5596. /*
  5597. * Power value (u32) PSD/EIRP as indicated by
  5598. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
  5599. * for power mode corresponding to the
  5600. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
  5601. * Units for PSD - dBm/MHz
  5602. * Units for EIRP - dBm
  5603. */
  5604. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
  5605. = 3,
  5606. /* keep last */
  5607. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
  5608. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
  5609. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
  5610. };
  5611. /**
  5612. * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command
  5613. * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host
  5614. * driver.
  5615. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to
  5616. * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why
  5617. * ACS need to be started
  5618. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does
  5619. * driver supports spectral scanning or not
  5620. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is
  5621. * offloaded to firmware.
  5622. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver
  5623. * provides additional channel capability as part of scan operation.
  5624. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate
  5625. * interface status is UP
  5626. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of
  5627. * interface. It takes one of nl80211_iftype values.
  5628. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound
  5629. * of chan width. ACS logic should try to get a channel with specified width
  5630. * if not found then look for lower values.
  5631. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands
  5632. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as
  5633. * a/b/g/n/ac.
  5634. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list
  5635. * among which ACS should choose best frequency.
  5636. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the
  5637. * driver which will have <channel(u8), weight(u8)> format as array of
  5638. * nested values.
  5639. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute
  5640. * for each channel. It takes attr as defined in
  5641. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as
  5642. * PCL mandatory, PCL preferred, etc.It uses values defined in enum
  5643. * qca_wlan_vendor_attr_external_acs_policy.
  5644. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF
  5645. * Operating Parameter (RROP) availability information (u16). It uses values
  5646. * defined in enum qca_wlan_vendor_attr_rropavail_info.
  5647. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY: Flag attribute to
  5648. * indicate if driver supports 6 GHz AFC trigger for External ACS.
  5649. */
  5650. enum qca_wlan_vendor_attr_external_acs_event {
  5651. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
  5652. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
  5653. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
  5654. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
  5655. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
  5656. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
  5657. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
  5658. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
  5659. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
  5660. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
  5661. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
  5662. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
  5663. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
  5664. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
  5665. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
  5666. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
  5667. /* keep last */
  5668. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
  5669. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
  5670. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
  5671. };
  5672. enum qca_iface_type {
  5673. QCA_IFACE_TYPE_STA,
  5674. QCA_IFACE_TYPE_AP,
  5675. QCA_IFACE_TYPE_P2P_CLIENT,
  5676. QCA_IFACE_TYPE_P2P_GO,
  5677. QCA_IFACE_TYPE_IBSS,
  5678. QCA_IFACE_TYPE_TDLS,
  5679. };
  5680. /**
  5681. * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command
  5682. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
  5683. * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
  5684. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value
  5685. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number
  5686. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight
  5687. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency
  5688. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask
  5689. */
  5690. enum qca_wlan_vendor_attr_pcl_config {
  5691. QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
  5692. QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
  5693. QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
  5694. QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
  5695. QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
  5696. };
  5697. enum qca_set_band {
  5698. QCA_SETBAND_AUTO = 0,
  5699. QCA_SETBAND_5G = BIT(0),
  5700. QCA_SETBAND_2G = BIT(1),
  5701. QCA_SETBAND_6G = BIT(2),
  5702. };
  5703. /**
  5704. * enum set_reset_packet_filter - set packet filter control commands
  5705. * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter
  5706. * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter
  5707. * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data
  5708. * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data
  5709. * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter
  5710. * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter
  5711. */
  5712. enum set_reset_packet_filter {
  5713. QCA_WLAN_SET_PACKET_FILTER = 1,
  5714. QCA_WLAN_GET_PACKET_FILTER = 2,
  5715. QCA_WLAN_WRITE_PACKET_FILTER = 3,
  5716. QCA_WLAN_READ_PACKET_FILTER = 4,
  5717. QCA_WLAN_ENABLE_PACKET_FILTER = 5,
  5718. QCA_WLAN_DISABLE_PACKET_FILTER = 6,
  5719. };
  5720. /**
  5721. * enum qca_wlan_vendor_attr_packet_filter - APF control commands
  5722. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid
  5723. * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID
  5724. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version
  5725. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length
  5726. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset
  5727. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions
  5728. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program
  5729. * section in packet filter buffer
  5730. */
  5731. enum qca_wlan_vendor_attr_packet_filter {
  5732. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
  5733. QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER,
  5734. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
  5735. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
  5736. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
  5737. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
  5738. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
  5739. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH,
  5740. /* keep last */
  5741. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
  5742. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
  5743. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
  5744. };
  5745. /**
  5746. * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
  5747. * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
  5748. */
  5749. enum qca_wlan_vendor_attr_wake_stats {
  5750. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
  5751. /* Unsigned 32-bit value indicating the total count of wake event */
  5752. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
  5753. /* Array of individual wake count, each index representing wake reason
  5754. */
  5755. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
  5756. /* Unsigned 32-bit value representing wake count array */
  5757. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
  5758. /* Unsigned 32-bit total wake count value of driver/fw */
  5759. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
  5760. /* Array of wake stats of driver/fw */
  5761. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
  5762. /* Unsigned 32-bit total wake count value of driver/fw */
  5763. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
  5764. /* Unsigned 32-bit total wake count value of packets received */
  5765. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
  5766. /* Unsigned 32-bit wake count value unicast packets received */
  5767. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
  5768. /* Unsigned 32-bit wake count value multicast packets received */
  5769. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
  5770. /* Unsigned 32-bit wake count value broadcast packets received */
  5771. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
  5772. /* Unsigned 32-bit wake count value of ICMP packets */
  5773. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
  5774. /* Unsigned 32-bit wake count value of ICMP6 packets */
  5775. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
  5776. /* Unsigned 32-bit value ICMP6 router advertisement */
  5777. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
  5778. /* Unsigned 32-bit value ICMP6 neighbor advertisement */
  5779. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
  5780. /* Unsigned 32-bit value ICMP6 neighbor solicitation */
  5781. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
  5782. /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
  5783. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
  5784. /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
  5785. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
  5786. /* Unsigned 32-bit wake count value of receive side multicast */
  5787. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
  5788. /* Unsigned 32-bit wake count value of a given RSSI breach */
  5789. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
  5790. /* Unsigned 32-bit wake count value of low RSSI */
  5791. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
  5792. /* Unsigned 32-bit value GSCAN count */
  5793. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
  5794. /* Unsigned 32-bit value PNO complete count */
  5795. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
  5796. /* Unsigned 32-bit value PNO match count */
  5797. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
  5798. /* keep last */
  5799. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
  5800. QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
  5801. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
  5802. };
  5803. /**
  5804. * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
  5805. * configured by userspace to the driver/firmware. The values will be
  5806. * encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL attribute.
  5807. * The driver/firmware takes necessary actions requested by userspace
  5808. * such as throttling wifi tx etc. in order to mitigate high temperature.
  5809. *
  5810. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
  5811. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle tx lightly.
  5812. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle tx moderately.
  5813. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle tx severely.
  5814. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
  5815. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
  5816. */
  5817. enum qca_wlan_vendor_thermal_level {
  5818. QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
  5819. QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
  5820. QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
  5821. QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
  5822. QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
  5823. QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
  5824. };
  5825. /**
  5826. * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
  5827. * cmd value. Used for NL attributes for data used by
  5828. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
  5829. */
  5830. enum qca_wlan_vendor_attr_thermal_cmd {
  5831. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
  5832. /* The value of command, driver will implement different operations
  5833. * according to this value. It uses values defined in
  5834. * enum qca_wlan_vendor_attr_thermal_cmd_type.
  5835. * u32 attribute.
  5836. */
  5837. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
  5838. /* Userspace uses this attribute to configure thermal level to the
  5839. * driver/firmware, or get thermal level from the driver/firmware.
  5840. * Used in request or response, u32 attribute,
  5841. * possible values are defined in enum qca_wlan_vendor_thermal_level.
  5842. */
  5843. QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
  5844. /* Userspace uses this attribute to configure the time in which the
  5845. * driver/firmware should complete applying settings it received from
  5846. * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
  5847. * command type. Used in request, u32 attribute, value is in
  5848. * milliseconds. A value of zero indicates to apply the settings
  5849. * immediately. The driver/firmware can delay applying the configured
  5850. * thermal settings within the time specified in this attribute if
  5851. * there is any critical ongoing operation.
  5852. */
  5853. QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
  5854. /* Nested attribute, driver/firmware uses this attribute to report
  5855. * thermal stats of different thermal levels to userspace when requested
  5856. * using QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
  5857. * type. This attribute contains nested array of records of thermal
  5858. * statistics of multiple levels. The attributes used inside this nested
  5859. * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
  5860. */
  5861. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
  5862. /* keep last */
  5863. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
  5864. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
  5865. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
  5866. };
  5867. /**
  5868. * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
  5869. * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
  5870. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
  5871. * thermal command types sent to driver.
  5872. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
  5873. * get thermal shutdown configuration parameters for display. Parameters
  5874. * responded from driver are defined in
  5875. * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
  5876. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
  5877. * get temperature. Host should respond with a temperature data. It is defined
  5878. * in enum qca_wlan_vendor_attr_thermal_get_temperature.
  5879. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
  5880. * suspend action.
  5881. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
  5882. * resume action.
  5883. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
  5884. * the driver/firmware.
  5885. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
  5886. * thermal level from the driver/firmware. The driver should respond with a
  5887. * thermal level defined in enum qca_wlan_vendor_thermal_level.
  5888. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
  5889. * current thermal stats from the driver/firmware. The driver should respond
  5890. * with stats of all thermal levels encapsulated in attribute
  5891. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
  5892. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
  5893. * the current thermal stats all thermal levels maintained in the
  5894. * driver/firmware and start counting from zero again.
  5895. */
  5896. enum qca_wlan_vendor_attr_thermal_cmd_type {
  5897. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
  5898. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
  5899. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
  5900. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
  5901. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
  5902. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
  5903. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
  5904. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
  5905. };
  5906. /**
  5907. * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
  5908. * to get chip temperature by user.
  5909. * enum values are used for NL attributes for data used by
  5910. * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
  5911. * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
  5912. */
  5913. enum qca_wlan_vendor_attr_thermal_get_temperature {
  5914. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
  5915. /* Temperature value (degree Celsius) from driver.
  5916. * u32 attribute.
  5917. */
  5918. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
  5919. /* keep last */
  5920. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
  5921. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
  5922. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
  5923. };
  5924. /**
  5925. * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
  5926. * report thermal events from driver to user space.
  5927. * enum values are used for NL attributes for data used by
  5928. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
  5929. */
  5930. enum qca_wlan_vendor_attr_thermal_event {
  5931. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
  5932. /* Temperature value (degree Celsius) from driver.
  5933. * u32 attribute.
  5934. */
  5935. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
  5936. /* Indication of resume completion from power save mode.
  5937. * NLA_FLAG attribute.
  5938. */
  5939. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
  5940. /* Thermal level from the driver.
  5941. * u32 attribute. Possible values are defined in
  5942. * enum qca_wlan_vendor_thermal_level.
  5943. */
  5944. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
  5945. /* keep last */
  5946. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
  5947. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
  5948. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
  5949. };
  5950. /**
  5951. * enum qca_vendor_element_id - QCA Vendor Specific element types
  5952. *
  5953. * These values are used to identify QCA Vendor Specific elements. The
  5954. * payload of the element starts with the three octet OUI (OUI_QCA) and
  5955. * is followed by a single octet type which is defined by this enum.
  5956. *
  5957. * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
  5958. * This element can be used to specify preference order for supported
  5959. * channels. The channels in this list are in preference order (the first
  5960. * one has the highest preference) and are described as a pair of
  5961. * (global) Operating Class and Channel Number (each one octet) fields.
  5962. *
  5963. * This extends the standard P2P functionality by providing option to have
  5964. * more than one preferred operating channel. When this element is present,
  5965. * it replaces the preference indicated in the Operating Channel attribute.
  5966. * For supporting other implementations, the Operating Channel attribute is
  5967. * expected to be used with the highest preference channel. Similarly, all
  5968. * the channels included in this Preferred channel list element are
  5969. * expected to be included in the Channel List attribute.
  5970. *
  5971. * This vendor element may be included in GO Negotiation Request, P2P
  5972. * Invitation Request, and Provision Discovery Request frames.
  5973. *
  5974. * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
  5975. * This element can be used for pre-standard publication testing of HE
  5976. * before P802.11ax draft assigns the element ID. The payload of this
  5977. * vendor specific element is defined by the latest P802.11ax draft.
  5978. * Please note that the draft is still work in progress and this element
  5979. * payload is subject to change.
  5980. *
  5981. * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
  5982. * This element can be used for pre-standard publication testing of HE
  5983. * before P802.11ax draft assigns the element ID. The payload of this
  5984. * vendor specific element is defined by the latest P802.11ax draft.
  5985. * Please note that the draft is still work in progress and this element
  5986. * payload is subject to change.
  5987. *
  5988. * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
  5989. * element).
  5990. * This element can be used for pre-standard publication testing of HE
  5991. * before P802.11ax draft assigns the element ID extension. The payload of
  5992. * this vendor specific element is defined by the latest P802.11ax draft
  5993. * (not including the Element ID Extension field). Please note that the
  5994. * draft is still work in progress and this element payload is subject to
  5995. * change.
  5996. *
  5997. * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
  5998. * This element can be used for pre-standard publication testing of HE
  5999. * before P802.11ax draft assigns the element ID extension. The payload of
  6000. * this vendor specific element is defined by the latest P802.11ax draft
  6001. * (not including the Element ID Extension field). Please note that the
  6002. * draft is still work in progress and this element payload is subject to
  6003. * change.
  6004. *
  6005. * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
  6006. * This element can be used for pre-standard publication testing of HE
  6007. * before P802.11ax draft assigns the element ID extension. The payload of
  6008. * this vendor specific element is defined by the latest P802.11ax draft
  6009. * (not including the Element ID Extension field). Please note that the
  6010. * draft is still work in progress and this element payload is subject to
  6011. * change.
  6012. */
  6013. enum qca_vendor_element_id {
  6014. QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
  6015. QCA_VENDOR_ELEM_HE_CAPAB = 1,
  6016. QCA_VENDOR_ELEM_HE_OPER = 2,
  6017. QCA_VENDOR_ELEM_RAPS = 3,
  6018. QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
  6019. QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
  6020. };
  6021. /**
  6022. * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
  6023. * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
  6024. * Specify the TSF command. Possible values are defined in
  6025. * &enum qca_tsf_cmd.
  6026. * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
  6027. * This attribute contains TSF timer value. This attribute is only available
  6028. * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
  6029. * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
  6030. * This attribute contains SOC timer value at TSF capture. This attribute is
  6031. * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
  6032. * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
  6033. * This attribute is used to provide TSF sync interval and only applicable when
  6034. * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
  6035. * driver will use the default value. Time unit is in milliseconds.
  6036. */
  6037. enum qca_vendor_attr_tsf_cmd {
  6038. QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
  6039. QCA_WLAN_VENDOR_ATTR_TSF_CMD,
  6040. QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
  6041. QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
  6042. QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
  6043. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
  6044. QCA_WLAN_VENDOR_ATTR_TSF_MAX =
  6045. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
  6046. };
  6047. /**
  6048. * enum qca_tsf_cmd: TSF driver commands
  6049. * @QCA_TSF_CAPTURE: Initiate TSF Capture
  6050. * @QCA_TSF_GET: Get TSF capture value
  6051. * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
  6052. * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
  6053. * will automatically send TSF report to the host. To query
  6054. * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
  6055. * initiated first.
  6056. * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
  6057. * will not automatically send TSF report to the host. If
  6058. * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
  6059. * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
  6060. * operation needs to be initiated.
  6061. * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
  6062. * fetches TSF and host time mapping from the firmware with interval configured
  6063. * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
  6064. * interval value is not provided the driver will use the default value. The
  6065. * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
  6066. * command.
  6067. * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
  6068. */
  6069. enum qca_tsf_cmd {
  6070. QCA_TSF_CAPTURE,
  6071. QCA_TSF_GET,
  6072. QCA_TSF_SYNC_GET,
  6073. QCA_TSF_AUTO_REPORT_ENABLE,
  6074. QCA_TSF_AUTO_REPORT_DISABLE,
  6075. QCA_TSF_SYNC_START,
  6076. QCA_TSF_SYNC_STOP,
  6077. };
  6078. /**
  6079. * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list
  6080. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value
  6081. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type
  6082. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list
  6083. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight
  6084. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last
  6085. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max
  6086. */
  6087. enum qca_vendor_attr_get_preferred_freq_list {
  6088. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
  6089. /* A 32-unsigned value; the interface type/mode for which the preferred
  6090. * frequency list is requested (see enum qca_iface_type for possible
  6091. * values); used in both south- and north-bound.
  6092. */
  6093. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
  6094. /* An array of 32-unsigned values; values are frequency (MHz); used
  6095. * in north-bound only.
  6096. */
  6097. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
  6098. /* An array of nested values as per enum
  6099. * qca_wlan_vendor_attr_pcl_config attribute.
  6100. * Each element contains frequency (MHz), weight, and flag
  6101. * bit mask indicating how the frequency should be used in P2P
  6102. * negotiation.
  6103. */
  6104. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
  6105. /* keep last */
  6106. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
  6107. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
  6108. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
  6109. };
  6110. /**
  6111. * enum qca_vendor_attr_probable_oper_channel - channel hint
  6112. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value
  6113. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type
  6114. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value
  6115. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last
  6116. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max
  6117. */
  6118. enum qca_vendor_attr_probable_oper_channel {
  6119. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
  6120. /* 32-bit unsigned value; indicates the connection/iface type likely to
  6121. * come on this channel (see enum qca_iface_type).
  6122. */
  6123. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
  6124. /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
  6125. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
  6126. /* keep last */
  6127. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
  6128. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
  6129. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
  6130. };
  6131. /**
  6132. * enum qca_wlan_vendor_attr_gw_param_config - gateway param config
  6133. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid
  6134. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr
  6135. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr
  6136. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr
  6137. */
  6138. enum qca_wlan_vendor_attr_gw_param_config {
  6139. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0,
  6140. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR,
  6141. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR,
  6142. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR,
  6143. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST,
  6144. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX =
  6145. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1,
  6146. };
  6147. /**
  6148. * enum drv_dbs_capability - DBS capability
  6149. * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled
  6150. * @DRV_DBS_CAPABILITY_1X1: 1x1
  6151. * @DRV_DBS_CAPABILITY_2X2: 2x2
  6152. */
  6153. enum drv_dbs_capability {
  6154. DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */
  6155. DRV_DBS_CAPABILITY_1X1,
  6156. DRV_DBS_CAPABILITY_2X2,
  6157. };
  6158. /**
  6159. * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
  6160. *
  6161. * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
  6162. */
  6163. enum qca_vendor_attr_txpower_decr_db {
  6164. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
  6165. /*
  6166. * 8-bit unsigned value to indicate the reduction of TX power in dB for
  6167. * a virtual interface.
  6168. */
  6169. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
  6170. /* keep last */
  6171. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
  6172. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
  6173. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
  6174. };
  6175. /**
  6176. * enum qca_vendor_attr_ota_test - Enable OTA test
  6177. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value
  6178. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test
  6179. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last
  6180. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max
  6181. */
  6182. enum qca_vendor_attr_ota_test {
  6183. QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
  6184. /* 8-bit unsigned value to indicate if OTA test is enabled */
  6185. QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
  6186. /* keep last */
  6187. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
  6188. QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
  6189. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
  6190. };
  6191. /** enum qca_vendor_attr_txpower_scale - vendor sub commands index
  6192. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value
  6193. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
  6194. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value
  6195. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value
  6196. */
  6197. enum qca_vendor_attr_txpower_scale {
  6198. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
  6199. /* 8-bit unsigned value to indicate the scaling of tx power */
  6200. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
  6201. /* keep last */
  6202. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
  6203. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
  6204. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
  6205. };
  6206. /**
  6207. * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index
  6208. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value
  6209. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value
  6210. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value
  6211. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value
  6212. */
  6213. enum qca_vendor_attr_txpower_scale_decr_db {
  6214. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID,
  6215. /* 8-bit unsigned value to indicate the scaling of tx power */
  6216. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB,
  6217. /* keep last */
  6218. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST,
  6219. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX =
  6220. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1
  6221. };
  6222. /**
  6223. * enum dfs_mode - state of DFS mode
  6224. * @DFS_MODE_NONE: DFS mode attribute is none
  6225. * @DFS_MODE_ENABLE: DFS mode is enabled
  6226. * @DFS_MODE_DISABLE: DFS mode is disabled
  6227. * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning
  6228. */
  6229. enum dfs_mode {
  6230. DFS_MODE_NONE,
  6231. DFS_MODE_ENABLE,
  6232. DFS_MODE_DISABLE,
  6233. DFS_MODE_DEPRIORITIZE
  6234. };
  6235. /**
  6236. * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
  6237. * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
  6238. *
  6239. * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
  6240. * DFS mode for ACS operation from enum qca_acs_dfs_mode.
  6241. *
  6242. * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
  6243. * channel number hint for ACS operation, if valid channel is specified then
  6244. * ACS operation gives priority to this channel.
  6245. * Note: If both the driver and user space application supports the 6 GHz band,
  6246. * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
  6247. * should be used.
  6248. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
  6249. * is still used if either of the driver or user space application doesn't
  6250. * support the 6 GHz band.
  6251. *
  6252. * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
  6253. * Channel center frequency (MHz) hint for ACS operation, if a valid center
  6254. * frequency is specified, ACS operation gives priority to this channel.
  6255. */
  6256. enum qca_wlan_vendor_attr_acs_config {
  6257. QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
  6258. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
  6259. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
  6260. QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
  6261. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
  6262. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
  6263. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
  6264. };
  6265. /**
  6266. * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
  6267. */
  6268. enum qca_wlan_vendor_attr_get_hw_capability {
  6269. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
  6270. /*
  6271. * Antenna isolation
  6272. * An attribute used in the response.
  6273. * The content of this attribute is encoded in a byte array. Each byte
  6274. * value is an antenna isolation value. The array length is the number
  6275. * of antennas.
  6276. */
  6277. QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
  6278. /*
  6279. * Request HW capability
  6280. * An attribute used in the request.
  6281. * The content of this attribute is a u32 array for one or more of
  6282. * hardware capabilities (attribute IDs) that are being requested. Each
  6283. * u32 value has a value from this
  6284. * enum qca_wlan_vendor_attr_get_hw_capability
  6285. * identifying which capabilities are requested.
  6286. */
  6287. QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
  6288. /* keep last */
  6289. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
  6290. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
  6291. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
  6292. };
  6293. /**
  6294. * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config -
  6295. * config params for sta roam policy
  6296. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid
  6297. * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels
  6298. * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL:
  6299. * If sta should skip unsafe channels or not in scanning
  6300. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST:
  6301. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute
  6302. */
  6303. enum qca_wlan_vendor_attr_sta_connect_roam_policy_config {
  6304. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0,
  6305. QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE,
  6306. QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL,
  6307. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST,
  6308. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX =
  6309. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1,
  6310. };
  6311. /* Attributes for FTM commands and events */
  6312. /**
  6313. * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
  6314. *
  6315. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
  6316. * enum qca_wlan_vendor_attr_loc_capa_flags.
  6317. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
  6318. * of measurement sessions that can run concurrently.
  6319. * Default is one session (no session concurrency).
  6320. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
  6321. * peers that are supported in running sessions. For example,
  6322. * if the value is 8 and maximum number of sessions is 2, you can
  6323. * have one session with 8 unique peers, or 2 sessions with 4 unique
  6324. * peers each, and so on.
  6325. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
  6326. * of bursts per peer, as an exponent (2^value). Default is 0,
  6327. * meaning no multi-burst support.
  6328. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
  6329. * of measurement exchanges allowed in a single burst.
  6330. * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
  6331. * types. A bit mask (unsigned 32 bit value), each bit corresponds
  6332. * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
  6333. */
  6334. enum qca_wlan_vendor_attr_loc_capa {
  6335. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
  6336. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
  6337. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
  6338. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
  6339. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
  6340. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
  6341. QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
  6342. /* keep last */
  6343. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
  6344. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
  6345. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
  6346. };
  6347. /**
  6348. * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
  6349. *
  6350. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
  6351. * can be configured as an FTM responder (for example, an AP that
  6352. * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  6353. * will be supported if set.
  6354. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
  6355. * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
  6356. * will be supported if set.
  6357. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
  6358. * supports immediate (ASAP) response.
  6359. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
  6360. * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
  6361. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
  6362. * requesting AOA measurements as part of an FTM session.
  6363. */
  6364. enum qca_wlan_vendor_attr_loc_capa_flags {
  6365. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
  6366. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
  6367. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
  6368. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
  6369. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
  6370. };
  6371. /**
  6372. * enum qca_wlan_ani_setting - ANI setting type
  6373. * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
  6374. * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
  6375. */
  6376. enum qca_wlan_ani_setting {
  6377. QCA_WLAN_ANI_SETTING_AUTO = 0,
  6378. QCA_WLAN_ANI_SETTING_FIXED = 1,
  6379. };
  6380. /**
  6381. * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
  6382. *
  6383. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
  6384. * Channel number on which Access Point should restart.
  6385. * Note: If both the driver and user space application supports the 6 GHz band,
  6386. * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
  6387. * should be used.
  6388. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
  6389. * is still used if either of the driver or user space application doesn't
  6390. * support the 6 GHz band.
  6391. *
  6392. * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required
  6393. * Nested attribute to hold list of center frequencies on which AP is
  6394. * expected to operate. This is irrespective of ACS configuration.
  6395. * This list is a priority based one and is looked for before the AP is
  6396. * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC)
  6397. * co-exist in the system.
  6398. *
  6399. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
  6400. * Channel center frequency (MHz) on which the access point should restart.
  6401. */
  6402. enum qca_wlan_vendor_attr_sap_config {
  6403. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
  6404. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
  6405. QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
  6406. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
  6407. /* Keep last */
  6408. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
  6409. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
  6410. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
  6411. };
  6412. /**
  6413. * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
  6414. * a single peer in a measurement session.
  6415. *
  6416. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
  6417. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
  6418. * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
  6419. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
  6420. * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
  6421. * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
  6422. * list of supported attributes.
  6423. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
  6424. * secure measurement.
  6425. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
  6426. * measurement every <value> bursts. If 0 or not specified,
  6427. * AOA measurements will be disabled for this peer.
  6428. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
  6429. * the measurement frames are exchanged. Optional; if not
  6430. * specified, try to locate the peer in the kernel scan
  6431. * results cache and use frequency from there.
  6432. */
  6433. enum qca_wlan_vendor_attr_ftm_peer_info {
  6434. QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
  6435. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
  6436. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
  6437. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
  6438. QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
  6439. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
  6440. QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
  6441. /* keep last */
  6442. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
  6443. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
  6444. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
  6445. };
  6446. /**
  6447. * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
  6448. * per-peer
  6449. *
  6450. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
  6451. * immediate (ASAP) response from peer.
  6452. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
  6453. * LCI report from peer. The LCI report includes the absolute
  6454. * location of the peer in "official" coordinates (similar to GPS).
  6455. * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
  6456. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
  6457. * Location civic report from peer. The LCR includes the location
  6458. * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
  6459. * 11.24.6.7 for more information.
  6460. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
  6461. * request a secure measurement.
  6462. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
  6463. */
  6464. enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
  6465. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
  6466. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
  6467. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
  6468. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
  6469. };
  6470. /**
  6471. * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
  6472. *
  6473. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
  6474. * to perform in a single burst.
  6475. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
  6476. * perform, specified as an exponent (2^value).
  6477. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
  6478. * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
  6479. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
  6480. * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
  6481. * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
  6482. */
  6483. enum qca_wlan_vendor_attr_ftm_meas_param {
  6484. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
  6485. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
  6486. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
  6487. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
  6488. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
  6489. /* keep last */
  6490. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
  6491. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
  6492. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
  6493. };
  6494. /**
  6495. * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
  6496. *
  6497. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
  6498. * peer.
  6499. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
  6500. * request for this peer.
  6501. * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
  6502. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
  6503. * to measurement results for this peer.
  6504. * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
  6505. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
  6506. * request failed and peer requested not to send an additional request
  6507. * for this number of seconds.
  6508. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
  6509. * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  6510. * 9.4.2.22.10.
  6511. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
  6512. * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  6513. * 9.4.2.22.13.
  6514. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
  6515. * overridden some measurement request parameters. See
  6516. * enum qca_wlan_vendor_attr_ftm_meas_param.
  6517. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
  6518. * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
  6519. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
  6520. * results. Each entry is a nested attribute defined
  6521. * by enum qca_wlan_vendor_attr_ftm_meas.
  6522. */
  6523. enum qca_wlan_vendor_attr_ftm_peer_result {
  6524. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
  6525. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
  6526. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
  6527. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
  6528. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
  6529. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
  6530. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
  6531. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
  6532. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
  6533. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
  6534. /* keep last */
  6535. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
  6536. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
  6537. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
  6538. };
  6539. /**
  6540. * enum qca_wlan_vendor_attr_ftm_peer_result_status
  6541. *
  6542. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
  6543. * will be provided. Peer may have overridden some measurement parameters,
  6544. * in which case overridden parameters will be report by
  6545. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
  6546. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
  6547. * of performing the measurement request. No more results will be sent
  6548. * for this peer in this session.
  6549. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
  6550. * failed, and requested not to send an additional request for number
  6551. * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
  6552. * attribute.
  6553. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
  6554. * failed. Request was not sent over the air.
  6555. */
  6556. enum qca_wlan_vendor_attr_ftm_peer_result_status {
  6557. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
  6558. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
  6559. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
  6560. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
  6561. };
  6562. /**
  6563. * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
  6564. * for measurement result, per-peer
  6565. *
  6566. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
  6567. * measurement completed for this peer. No more results will be reported
  6568. * for this peer in this session.
  6569. */
  6570. enum qca_wlan_vendor_attr_ftm_peer_result_flags {
  6571. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
  6572. };
  6573. /**
  6574. * enum qca_vendor_attr_loc_session_status: Session completion status code
  6575. *
  6576. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
  6577. * successfully.
  6578. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
  6579. * by request.
  6580. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
  6581. * was invalid and was not started.
  6582. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
  6583. * and did not complete normally (for example out of resources).
  6584. */
  6585. enum qca_vendor_attr_loc_session_status {
  6586. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
  6587. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
  6588. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
  6589. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
  6590. };
  6591. /**
  6592. * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
  6593. *
  6594. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
  6595. * recorded by responder, in picoseconds.
  6596. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6597. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
  6598. * initiator, in picoseconds.
  6599. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6600. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
  6601. * initiator, in picoseconds.
  6602. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6603. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
  6604. * responder, in picoseconds.
  6605. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6606. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
  6607. * during this measurement exchange. Optional and will be provided if
  6608. * the hardware can measure it.
  6609. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
  6610. * responder. Not always provided.
  6611. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6612. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
  6613. * responder. Not always provided.
  6614. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6615. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
  6616. * initiator. Not always provided.
  6617. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6618. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
  6619. * initiator. Not always provided.
  6620. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6621. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
  6622. */
  6623. enum qca_wlan_vendor_attr_ftm_meas {
  6624. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
  6625. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
  6626. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
  6627. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
  6628. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
  6629. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
  6630. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
  6631. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
  6632. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
  6633. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
  6634. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
  6635. /* keep last */
  6636. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
  6637. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
  6638. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
  6639. };
  6640. /**
  6641. * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index
  6642. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value
  6643. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL:
  6644. * A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
  6645. * of the social channels.
  6646. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period
  6647. * A 32-bit unsigned value; the P2P listen offload period (ms).
  6648. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL:
  6649. * A 32-bit unsigned value; the P2P listen interval duration (ms).
  6650. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT:
  6651. * A 32-bit unsigned value; number of interval times the Firmware needs
  6652. * to run the offloaded P2P listen operation before it stops.
  6653. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types
  6654. * An array of unsigned 8-bit characters; vendor information elements.
  6655. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs
  6656. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW
  6657. * A 32-bit unsigned value; a control flag to indicate whether listen
  6658. * results need to be flushed to wpa_supplicant.
  6659. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason
  6660. * A 8-bit unsigned value; reason code for P2P listen offload stop
  6661. * event.
  6662. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value
  6663. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value
  6664. */
  6665. enum qca_wlan_vendor_attr_p2p_listen_offload {
  6666. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
  6667. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
  6668. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
  6669. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
  6670. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
  6671. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
  6672. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
  6673. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
  6674. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
  6675. /* keep last */
  6676. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
  6677. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
  6678. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
  6679. };
  6680. /**
  6681. * enum qca_wlan_vendor_drv_info - WLAN driver info
  6682. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid
  6683. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info
  6684. * between Firmware & Host.
  6685. */
  6686. enum qca_wlan_vendor_drv_info {
  6687. QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
  6688. QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
  6689. /* keep last */
  6690. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
  6691. QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
  6692. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
  6693. };
  6694. /**
  6695. * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
  6696. *
  6697. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
  6698. * CIR (channel impulse response) path for each antenna.
  6699. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
  6700. * of the strongest CIR path for each antenna.
  6701. */
  6702. enum qca_wlan_vendor_attr_aoa_type {
  6703. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
  6704. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
  6705. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
  6706. };
  6707. /**
  6708. * enum qca_wlan_vendor_attr_encryption_test - Attributes to
  6709. * validate encryption engine
  6710. *
  6711. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
  6712. * This will be included if the request is for decryption; if not included,
  6713. * the request is treated as a request for encryption by default.
  6714. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
  6715. * indicating the key cipher suite. Takes same values as
  6716. * NL80211_ATTR_KEY_CIPHER.
  6717. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
  6718. * Key Id to be used for encryption
  6719. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
  6720. * Key (TK) to be used for encryption/decryption
  6721. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
  6722. * Packet number to be specified for encryption/decryption
  6723. * 6 bytes for TKIP/CCMP/GCMP.
  6724. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
  6725. * representing the 802.11 packet (header + payload + FCS) that
  6726. * needs to be encrypted/decrypted.
  6727. * Encrypted/decrypted response from the driver will also be sent
  6728. * to userspace with the same attribute.
  6729. */
  6730. enum qca_wlan_vendor_attr_encryption_test {
  6731. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
  6732. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
  6733. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
  6734. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
  6735. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
  6736. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
  6737. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
  6738. /* keep last */
  6739. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
  6740. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
  6741. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
  6742. };
  6743. /**
  6744. * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
  6745. * sector for DMG RF sector operations.
  6746. *
  6747. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
  6748. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
  6749. */
  6750. enum qca_wlan_vendor_attr_dmg_rf_sector_type {
  6751. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
  6752. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
  6753. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
  6754. };
  6755. /**
  6756. * enum qca_wlan_vendor_attr_fw_state - State of firmware
  6757. *
  6758. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
  6759. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
  6760. */
  6761. enum qca_wlan_vendor_attr_fw_state {
  6762. QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
  6763. QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
  6764. QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
  6765. };
  6766. /**
  6767. * BRP antenna limit mode
  6768. *
  6769. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
  6770. * antenna limit, BRP will be performed as usual.
  6771. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
  6772. * antennas limit. the hardware may use less antennas than the
  6773. * maximum limit.
  6774. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
  6775. * use exactly the specified number of antennas for BRP.
  6776. */
  6777. enum qca_wlan_vendor_attr_brp_ant_limit_mode {
  6778. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
  6779. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
  6780. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
  6781. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
  6782. };
  6783. /**
  6784. * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
  6785. * DMG RF sector configuration for a single RF module.
  6786. * The values are defined in a compact way which closely matches
  6787. * the way it is stored in HW registers.
  6788. * The configuration provides values for 32 antennas and 8 distribution
  6789. * amplifiers, and together describes the characteristics of the RF
  6790. * sector - such as a beam in some direction with some gain.
  6791. *
  6792. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
  6793. * of RF module for this configuration.
  6794. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
  6795. * amplifier gain index. Unsigned 32 bit number containing
  6796. * bits for all 32 antennas.
  6797. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
  6798. * amplifier gain index. Unsigned 32 bit number containing
  6799. * bits for all 32 antennas.
  6800. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
  6801. * amplifier gain index. Unsigned 32 bit number containing
  6802. * bits for all 32 antennas.
  6803. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
  6804. * for first 16 antennas, 2 bits per antenna.
  6805. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
  6806. * for last 16 antennas, 2 bits per antenna.
  6807. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
  6808. * DTYPE values (3 bits) for each distribution amplifier, followed
  6809. * by X16 switch bits for each distribution amplifier. There are
  6810. * total of 8 distribution amplifiers.
  6811. */
  6812. enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
  6813. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
  6814. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
  6815. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
  6816. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
  6817. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
  6818. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
  6819. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
  6820. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
  6821. /* keep last */
  6822. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
  6823. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
  6824. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
  6825. };
  6826. /**
  6827. * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
  6828. * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver.
  6829. *
  6830. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
  6831. * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
  6832. * represents the different TDLS trigger modes.
  6833. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
  6834. * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
  6835. * of packets shall meet the criteria for implicit TDLS setup.
  6836. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx
  6837. * packets within a duration.
  6838. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate
  6839. * a TDLS setup.
  6840. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
  6841. * a TDLS Discovery to the Peer.
  6842. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
  6843. * discovery attempts to know the TDLS capability of the peer. A peer is
  6844. * marked as TDLS not capable if there is no response for all the attempts.
  6845. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
  6846. * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
  6847. * number of TX / RX frames meet the criteria for TDLS teardown.
  6848. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number
  6849. * (u32) of Tx/Rx packets within a duration
  6850. * CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link
  6851. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
  6852. * corresponding to the RSSI of the peer below which a TDLS
  6853. * setup is triggered.
  6854. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
  6855. * corresponding to the RSSI of the peer above which
  6856. * a TDLS teardown is triggered.
  6857. */
  6858. enum qca_wlan_vendor_attr_tdls_configuration {
  6859. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
  6860. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
  6861. /* Attributes configuring the TDLS Implicit Trigger */
  6862. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
  6863. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
  6864. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
  6865. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
  6866. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
  6867. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
  6868. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
  6869. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
  6870. /* keep last */
  6871. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
  6872. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
  6873. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
  6874. };
  6875. /**
  6876. * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
  6877. * the driver.
  6878. *
  6879. * The following are the different values for
  6880. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
  6881. *
  6882. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to
  6883. * initiate/teardown the TDLS connection to a respective peer comes
  6884. * from the user space. wpa_supplicant provides the commands
  6885. * TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this.
  6886. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
  6887. * setup/teardown to the eligible peer once the configured criteria
  6888. * (such as TX/RX threshold, RSSI) is met. The attributes
  6889. * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
  6890. * the different configuration criteria for the TDLS trigger from the
  6891. * host driver.
  6892. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
  6893. * the TDLS setup / teardown through the implicit mode, only to the
  6894. * configured MAC addresses(wpa_supplicant, with tdls_external_control = 1,
  6895. * configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands).
  6896. * External mode works on top of the implicit mode, thus the host Driver
  6897. * is expected to be configured in TDLS Implicit mode too to operate in
  6898. * External mode. Configuring External mode alone without Implicit
  6899. * mode is invalid.
  6900. *
  6901. * All the above implementations work as expected only when the host driver
  6902. * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP -
  6903. * representing that the TDLS message exchange is not internal to the host
  6904. * driver, but depends on wpa_supplicant to do the message exchange.
  6905. */
  6906. enum qca_wlan_vendor_tdls_trigger_mode {
  6907. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
  6908. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
  6909. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
  6910. };
  6911. /**
  6912. * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
  6913. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
  6914. * that is hard-coded in the Board Data File (BDF).
  6915. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
  6916. * that is hard-coded in the Board Data File (BDF).
  6917. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
  6918. * that is hard-coded in the Board Data File (BDF).
  6919. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
  6920. * that is hard-coded in the Board Data File (BDF).
  6921. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
  6922. * that is hard-coded in the Board Data File (BDF).
  6923. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
  6924. * source of SAR power limits, thereby disabling the SAR power
  6925. * limit feature.
  6926. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
  6927. * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  6928. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
  6929. * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  6930. *
  6931. * This enumerates the valid set of values that may be supplied for
  6932. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
  6933. * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
  6934. * the response to an instance of the
  6935. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  6936. */
  6937. enum qca_vendor_attr_sar_limits_selections {
  6938. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
  6939. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
  6940. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
  6941. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
  6942. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
  6943. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
  6944. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
  6945. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
  6946. };
  6947. /**
  6948. * enum qca_vendor_attr_sar_limits_spec_modulations -
  6949. * SAR limits specification modulation
  6950. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
  6951. * CCK modulation
  6952. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
  6953. * OFDM modulation
  6954. *
  6955. * This enumerates the valid set of values that may be supplied for
  6956. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
  6957. * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
  6958. * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
  6959. * command or in the response to an instance of the
  6960. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  6961. */
  6962. enum qca_vendor_attr_sar_limits_spec_modulations {
  6963. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
  6964. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
  6965. };
  6966. /**
  6967. * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
  6968. *
  6969. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
  6970. * select which SAR power limit table should be used. Valid
  6971. * values are enumerated in enum
  6972. * %qca_vendor_attr_sar_limits_selections. The existing SAR
  6973. * power limit selection is unchanged if this attribute is not
  6974. * present.
  6975. *
  6976. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
  6977. * which specifies the number of SAR power limit specifications
  6978. * which will follow.
  6979. *
  6980. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
  6981. * limit specifications. The number of specifications is
  6982. * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
  6983. * specification contains a set of
  6984. * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
  6985. * specification is uniquely identified by the attributes
  6986. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
  6987. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
  6988. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
  6989. * contains as a payload the attribute
  6990. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
  6991. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
  6992. * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
  6993. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
  6994. * needed based upon the value of
  6995. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
  6996. *
  6997. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
  6998. * indicate for which band this specification applies. Valid
  6999. * values are enumerated in enum %nl80211_band (although not all
  7000. * bands may be supported by a given device). If the attribute is
  7001. * not supplied then the specification will be applied to all
  7002. * supported bands.
  7003. *
  7004. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
  7005. * to indicate for which antenna chain this specification
  7006. * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
  7007. * attribute is not supplied then the specification will be
  7008. * applied to all chains.
  7009. *
  7010. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
  7011. * value to indicate for which modulation scheme this
  7012. * specification applies. Valid values are enumerated in enum
  7013. * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
  7014. * is not supplied then the specification will be applied to all
  7015. * modulation schemes.
  7016. *
  7017. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
  7018. * value to specify the actual power limit value in units of 0.5
  7019. * dBm (i.e., a value of 11 represents 5.5 dBm).
  7020. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  7021. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
  7022. *
  7023. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
  7024. * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
  7025. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  7026. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
  7027. *
  7028. * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
  7029. * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
  7030. */
  7031. enum qca_vendor_attr_sar_limits {
  7032. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
  7033. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
  7034. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
  7035. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
  7036. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
  7037. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
  7038. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
  7039. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
  7040. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
  7041. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
  7042. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
  7043. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
  7044. };
  7045. /**
  7046. * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
  7047. * offload which is an extension for LL_STATS.
  7048. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
  7049. * If MAC counters do not exceed the threshold, FW will report monitored
  7050. * link layer counters periodically as this setting. The first report is
  7051. * always triggered by this timer.
  7052. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
  7053. * For each MAC layer counter, FW holds two copies. One is the current value.
  7054. * The other is the last report. Once a current counter's increment is larger
  7055. * than the threshold, FW will indicate that counter to host even if the
  7056. * monitoring timer does not expire.
  7057. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
  7058. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
  7059. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
  7060. * failure code.
  7061. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
  7062. * 1: TX packet discarded
  7063. * 2: No ACK
  7064. * 3: Postpone
  7065. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
  7066. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
  7067. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
  7068. * Threshold for all monitored parameters. If per counter dedicated threshold
  7069. * is not enabled, this threshold will take effect.
  7070. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
  7071. * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
  7072. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
  7073. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
  7074. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
  7075. * Bit0: TX counter unit in MSDU
  7076. * Bit1: TX counter unit in MPDU
  7077. * Bit2: TX counter unit in PPDU
  7078. * Bit3: TX counter unit in byte
  7079. * Bit4: Dropped MSDUs
  7080. * Bit5: Dropped Bytes
  7081. * Bit6: MPDU retry counter
  7082. * Bit7: MPDU failure counter
  7083. * Bit8: PPDU failure counter
  7084. * Bit9: MPDU aggregation counter
  7085. * Bit10: MCS counter for ACKed MPDUs
  7086. * Bit11: MCS counter for Failed MPDUs
  7087. * Bit12: TX Delay counter
  7088. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
  7089. * Bit0: MAC RX counter unit in MPDU
  7090. * Bit1: MAC RX counter unit in byte
  7091. * Bit2: PHY RX counter unit in PPDU
  7092. * Bit3: PHY RX counter unit in byte
  7093. * Bit4: Disorder counter
  7094. * Bit5: Retry counter
  7095. * Bit6: Duplication counter
  7096. * Bit7: Discard counter
  7097. * Bit8: MPDU aggregation size counter
  7098. * Bit9: MCS counter
  7099. * Bit10: Peer STA power state change (wake to sleep) counter
  7100. * Bit11: Peer STA power save counter, total time in PS mode
  7101. * Bit12: Probe request counter
  7102. * Bit13: Other management frames counter
  7103. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
  7104. * Bit0: Idle time
  7105. * Bit1: TX time
  7106. * Bit2: time RX in current bss
  7107. * Bit3: Out of current bss time
  7108. * Bit4: Wireless medium busy time
  7109. * Bit5: RX in bad condition time
  7110. * Bit6: TX in bad condition time
  7111. * Bit7: time wlan card not available
  7112. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
  7113. * Bit0: Per channel SNR counter
  7114. * Bit1: Per channel noise floor counter
  7115. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
  7116. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
  7117. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
  7118. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
  7119. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
  7120. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
  7121. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
  7122. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
  7123. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
  7124. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
  7125. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
  7126. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
  7127. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
  7128. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
  7129. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
  7130. * aggregation stats buffer length
  7131. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
  7132. * buffer for ACKed MPDUs.
  7133. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
  7134. * buffer for failed MPDUs.
  7135. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
  7136. * length of delay stats array.
  7137. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
  7138. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
  7139. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
  7140. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
  7141. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
  7142. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
  7143. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
  7144. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
  7145. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
  7146. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
  7147. * flagged as retransmissions
  7148. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
  7149. * flagged as duplicated
  7150. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
  7151. * packets discarded
  7152. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
  7153. * stats buffer.
  7154. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
  7155. * stats buffer.
  7156. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
  7157. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
  7158. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
  7159. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
  7160. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
  7161. * requests received
  7162. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
  7163. * frames received
  7164. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
  7165. * there is no TX, nor RX, nor interference.
  7166. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
  7167. * transmitting packets.
  7168. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
  7169. * for receiving.
  7170. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
  7171. * interference detected.
  7172. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
  7173. * receiving packets with errors.
  7174. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
  7175. * TX no-ACK.
  7176. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
  7177. * the chip is unable to work in normal conditions.
  7178. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
  7179. * receiving packets in current BSS.
  7180. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
  7181. * receiving packets not in current BSS.
  7182. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
  7183. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
  7184. * This is a container for per antenna signal stats.
  7185. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
  7186. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
  7187. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
  7188. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
  7189. */
  7190. enum qca_wlan_vendor_attr_ll_stats_ext {
  7191. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
  7192. /* Attributes for configurations */
  7193. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
  7194. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
  7195. /* Peer STA power state change */
  7196. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
  7197. /* TX failure event */
  7198. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
  7199. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
  7200. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
  7201. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
  7202. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
  7203. /* MAC counters */
  7204. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
  7205. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
  7206. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
  7207. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
  7208. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
  7209. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
  7210. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
  7211. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
  7212. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
  7213. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
  7214. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
  7215. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
  7216. /* Sub-attributes for PEER_AC_TX */
  7217. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
  7218. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
  7219. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
  7220. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
  7221. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
  7222. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
  7223. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
  7224. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
  7225. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
  7226. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
  7227. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
  7228. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
  7229. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
  7230. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
  7231. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
  7232. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
  7233. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
  7234. /* Sub-attributes for PEER_AC_RX */
  7235. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
  7236. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
  7237. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
  7238. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
  7239. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
  7240. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
  7241. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
  7242. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
  7243. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
  7244. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
  7245. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
  7246. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
  7247. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
  7248. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
  7249. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
  7250. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
  7251. /* Sub-attributes for CCA_BSS */
  7252. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
  7253. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
  7254. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
  7255. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
  7256. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
  7257. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
  7258. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
  7259. /* sub-attribute for BSS_RX_TIME */
  7260. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
  7261. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
  7262. /* Sub-attributes for PEER_SIGNAL */
  7263. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
  7264. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
  7265. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
  7266. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
  7267. /* Sub-attributes for IFACE_BSS */
  7268. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
  7269. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
  7270. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
  7271. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
  7272. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
  7273. };
  7274. /**
  7275. * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
  7276. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
  7277. * in priority order as decided after ACS operation in userspace.
  7278. *
  7279. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
  7280. * One of reason code from enum qca_wlan_vendor_acs_select_reason.
  7281. *
  7282. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
  7283. * Array of nested values for each channel with following attributes:
  7284. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  7285. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  7286. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  7287. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  7288. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7289. * Note: If both the driver and user-space application supports the 6 GHz band,
  7290. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
  7291. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
  7292. * To maintain backward compatibility,
  7293. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
  7294. * is still used if either of the driver or user space application doesn't
  7295. * support the 6 GHz band.
  7296. *
  7297. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
  7298. * Primary channel number
  7299. * Note: If both the driver and user-space application supports the 6 GHz band,
  7300. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
  7301. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
  7302. * To maintain backward compatibility,
  7303. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
  7304. * is still used if either of the driver or user space application doesn't
  7305. * support the 6 GHz band.
  7306. *
  7307. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
  7308. * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
  7309. * Note: If both the driver and user-space application supports the 6 GHz band,
  7310. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
  7311. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
  7312. * To maintain backward compatibility,
  7313. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
  7314. * is still used if either of the driver or user space application
  7315. * doesn't support the 6 GHz band.
  7316. *
  7317. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
  7318. * VHT seg0 channel number
  7319. * Note: If both the driver and user-space application supports the 6 GHz band,
  7320. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
  7321. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
  7322. * To maintain backward compatibility,
  7323. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
  7324. * is still used if either of the driver or user space application
  7325. * doesn't support the 6 GHz band.
  7326. *
  7327. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
  7328. * VHT seg1 channel number
  7329. * Note: If both the driver and user-space application supports the 6 GHz band,
  7330. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
  7331. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
  7332. * To maintain backward compatibility,
  7333. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
  7334. * is still used if either of the driver or user space application
  7335. * doesn't support the 6 GHz band.
  7336. *
  7337. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
  7338. * Takes one of enum nl80211_chan_width values.
  7339. *
  7340. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
  7341. * Array of nested values for each channel with following attributes:
  7342. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
  7343. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
  7344. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
  7345. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
  7346. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7347. * Note: If user-space application has no support of the 6 GHz band, this
  7348. * attribute is optional.
  7349. *
  7350. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
  7351. * Primary channel frequency in MHz
  7352. * Note: If user-space application has no support of the 6 GHz band, this
  7353. * attribute is optional.
  7354. *
  7355. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
  7356. * Secondary channel frequency in MHz used for HT 40 MHz channels.
  7357. * Note: If user-space application has no support of the 6 GHz band, this
  7358. * attribute is optional.
  7359. *
  7360. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
  7361. * VHT seg0 channel frequency in MHz
  7362. * Note: If user-space application has no support of the 6GHz band, this
  7363. * attribute is optional.
  7364. *
  7365. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
  7366. * VHT seg1 channel frequency in MHz
  7367. * Note: If user-space application has no support of the 6 GHz band, this
  7368. * attribute is optional.
  7369. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16)
  7370. * Puncture Bitmap for selected primary channel. Optional if no support
  7371. * for EHT (IEEE 802.11be). Encoding for this attribute follows the
  7372. * convention used in the Disabled Subchannel Bitmap field of the EHT Operation
  7373. * element.
  7374. */
  7375. enum qca_wlan_vendor_attr_external_acs_channels {
  7376. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
  7377. /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
  7378. */
  7379. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
  7380. /* Array of nested values for each channel with following attributes:
  7381. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
  7382. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  7383. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  7384. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  7385. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  7386. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7387. */
  7388. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
  7389. /* This (u8) will hold values of one of enum nl80211_bands */
  7390. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
  7391. /* Primary channel (u8) */
  7392. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
  7393. /* Secondary channel (u8) used for HT 40 MHz channels */
  7394. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
  7395. /* VHT seg0 channel (u8) */
  7396. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
  7397. /* VHT seg1 channel (u8) */
  7398. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
  7399. /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
  7400. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
  7401. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
  7402. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
  7403. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
  7404. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
  7405. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
  7406. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14,
  7407. /* keep last */
  7408. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
  7409. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
  7410. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
  7411. };
  7412. /**
  7413. * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
  7414. * the ACS has to be triggered. These values are used by
  7415. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
  7416. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
  7417. */
  7418. enum qca_wlan_vendor_acs_select_reason {
  7419. /* Represents the reason that the ACS triggered during the AP start */
  7420. QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
  7421. /* Represents the reason that DFS found with the current channel */
  7422. QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
  7423. /* Represents the reason that LTE co-exist in the current band. */
  7424. QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
  7425. /* Represents the reason that generic, uncategorized interference has
  7426. * been found in the current channel.
  7427. */
  7428. QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
  7429. /* Represents the reason that excessive 802.11 interference has been
  7430. * found in the current channel.
  7431. */
  7432. QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
  7433. /* Represents the reason that generic Continuous Wave (CW) interference
  7434. * has been found in the current channel.
  7435. */
  7436. QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
  7437. /* Represents the reason that Microwave Oven (MWO) interference has been
  7438. * found in the current channel.
  7439. */
  7440. QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
  7441. /* Represents the reason that generic Frequency-Hopping Spread Spectrum
  7442. * (FHSS) interference has been found in the current channel. This may
  7443. * include 802.11 waveforms.
  7444. */
  7445. QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
  7446. /* Represents the reason that non-802.11 generic Frequency-Hopping
  7447. * Spread Spectrum (FHSS) interference has been found in the current
  7448. * channel.
  7449. */
  7450. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
  7451. /* Represents the reason that generic Wideband (WB) interference has
  7452. * been found in the current channel. This may include 802.11 waveforms.
  7453. */
  7454. QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
  7455. /* Represents the reason that non-802.11 generic Wideband (WB)
  7456. * interference has been found in the current channel.
  7457. */
  7458. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
  7459. /* Represents the reason that Jammer interference has been found in the
  7460. * current channel.
  7461. */
  7462. QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
  7463. /* Represents the reason that ACS triggered by AFC */
  7464. QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
  7465. };
  7466. /**
  7467. * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
  7468. *
  7469. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
  7470. * value to specify the gpio command, please refer to enum qca_gpio_cmd_type
  7471. * to get the available value that this item can use.
  7472. *
  7473. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
  7474. * value to specify the gpio number.
  7475. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7476. * %QCA_WLAN_VENDOR_GPIO_CONFIG or %.QCA_WLAN_VENDOR_GPIO_OUTPUT.
  7477. *
  7478. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
  7479. * value to specify the gpio output level, please refer to enum qca_gpio_value
  7480. * to get the available value that this item can use.
  7481. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7482. * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
  7483. *
  7484. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
  7485. * value to specify the gpio pull type, please refer to enum qca_gpio_pull_type
  7486. * to get the available value that this item can use.
  7487. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7488. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7489. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7490. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7491. * attribute is present.
  7492. *
  7493. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
  7494. * value to specify the gpio interrupt mode, please refer to enum
  7495. * qca_gpio_interrupt_mode to get the available value that this item can use.
  7496. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7497. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7498. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7499. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7500. * attribute is present.
  7501. *
  7502. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
  7503. * value to specify the gpio direction, please refer to enum qca_gpio_direction
  7504. * to get the available value that this item can use.
  7505. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7506. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7507. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7508. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7509. * attribute is present.
  7510. *
  7511. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
  7512. * Value to specify the mux config. Meaning of a given value is dependent
  7513. * on the target chipset and gpio pin. Must be of the range 0-15.
  7514. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7515. * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
  7516. *
  7517. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
  7518. * Value to specify the drive, Refer to enum qca_gpio_drive.
  7519. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7520. * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
  7521. *
  7522. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
  7523. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7524. * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
  7525. * other parameters for the given GPIO will be obtained from internal
  7526. * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
  7527. * specified to indicate the GPIO pin being configured.
  7528. */
  7529. enum qca_wlan_gpio_attr {
  7530. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
  7531. /* Unsigned 32-bit attribute for GPIO command */
  7532. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
  7533. /* Unsigned 32-bit attribute for GPIO PIN number to configure */
  7534. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
  7535. /* Unsigned 32-bit attribute for GPIO value to configure */
  7536. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
  7537. /* Unsigned 32-bit attribute for GPIO pull type */
  7538. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
  7539. /* Unsigned 32-bit attribute for GPIO interrupt mode */
  7540. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
  7541. /* Unsigned 32-bit attribute for GPIO direction to configure */
  7542. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
  7543. /* Unsigned 32-bit attribute for GPIO mux config */
  7544. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
  7545. /* Unsigned 32-bit attribute for GPIO drive */
  7546. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
  7547. /* Flag attribute for using internal gpio configuration */
  7548. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
  7549. /* keep last */
  7550. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
  7551. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
  7552. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1,
  7553. };
  7554. /**
  7555. * enum gpio_cmd_type - GPIO configuration command type
  7556. * @QCA_WLAN_VENDOR_GPIO_CONFIG: set gpio configuration info
  7557. * @QCA_WLAN_VENDOR_GPIO_OUTPUT: set gpio output level
  7558. */
  7559. enum qca_gpio_cmd_type {
  7560. QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
  7561. QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
  7562. };
  7563. /**
  7564. * enum qca_gpio_pull_type - GPIO pull type
  7565. * @QCA_WLAN_GPIO_PULL_NONE: set gpio pull type to none
  7566. * @QCA_WLAN_GPIO_PULL_UP: set gpio pull up
  7567. * @QCA_WLAN_GPIO_PULL_DOWN: set gpio pull down
  7568. */
  7569. enum qca_gpio_pull_type {
  7570. QCA_WLAN_GPIO_PULL_NONE = 0,
  7571. QCA_WLAN_GPIO_PULL_UP = 1,
  7572. QCA_WLAN_GPIO_PULL_DOWN = 2,
  7573. QCA_WLAN_GPIO_PULL_MAX,
  7574. };
  7575. /**
  7576. * enum qca_gpio_direction - GPIO direction
  7577. * @QCA_WLAN_GPIO_INPUT: set gpio as input mode
  7578. * @QCA_WLAN_GPIO_OUTPUT: set gpio as output mode
  7579. * @QCA_WLAN_GPIO_VALUE_MAX: invalid value
  7580. */
  7581. enum qca_gpio_direction {
  7582. QCA_WLAN_GPIO_INPUT = 0,
  7583. QCA_WLAN_GPIO_OUTPUT = 1,
  7584. QCA_WLAN_GPIO_DIR_MAX,
  7585. };
  7586. /**
  7587. * enum qca_gpio_value - GPIO Value
  7588. * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
  7589. * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
  7590. * @QCA_WLAN_GPIO_LEVEL_MAX: invalid value
  7591. */
  7592. enum qca_gpio_value {
  7593. QCA_WLAN_GPIO_LEVEL_LOW = 0,
  7594. QCA_WLAN_GPIO_LEVEL_HIGH = 1,
  7595. QCA_WLAN_GPIO_LEVEL_MAX,
  7596. };
  7597. /**
  7598. * enum gpio_interrupt_mode - GPIO interrupt mode
  7599. * @QCA_WLAN_GPIO_INTMODE_DISABLE: disable interrupt trigger
  7600. * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: interrupt with gpio rising edge trigger
  7601. * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: interrupt with gpio falling edge trigger
  7602. * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: interrupt with gpio both edge trigger
  7603. * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: interrupt with gpio level low trigger
  7604. * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: interrupt with gpio level high trigger
  7605. * @QCA_WLAN_GPIO_INTMODE_MAX: invalid value
  7606. */
  7607. enum qca_gpio_interrupt_mode {
  7608. QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
  7609. QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
  7610. QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
  7611. QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
  7612. QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
  7613. QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
  7614. QCA_WLAN_GPIO_INTMODE_MAX,
  7615. };
  7616. /**
  7617. * enum gpio_drive - GPIO drive
  7618. * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
  7619. * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
  7620. * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
  7621. * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
  7622. * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
  7623. * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
  7624. * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
  7625. * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
  7626. * @QCA_WLAN_GPIO_DRIVE_MAX: invalid gpio drive
  7627. */
  7628. enum qca_gpio_drive {
  7629. QCA_WLAN_GPIO_DRIVE_2MA = 0,
  7630. QCA_WLAN_GPIO_DRIVE_4MA = 1,
  7631. QCA_WLAN_GPIO_DRIVE_6MA = 2,
  7632. QCA_WLAN_GPIO_DRIVE_8MA = 3,
  7633. QCA_WLAN_GPIO_DRIVE_10MA = 4,
  7634. QCA_WLAN_GPIO_DRIVE_12MA = 5,
  7635. QCA_WLAN_GPIO_DRIVE_14MA = 6,
  7636. QCA_WLAN_GPIO_DRIVE_16MA = 7,
  7637. QCA_WLAN_GPIO_DRIVE_MAX,
  7638. };
  7639. /**
  7640. * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
  7641. * MSDUQ depth threshold per peer per tid in the target
  7642. *
  7643. * Associated Vendor Command:
  7644. * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
  7645. */
  7646. enum qca_wlan_set_qdepth_thresh_attr {
  7647. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
  7648. /* 6-byte MAC address */
  7649. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
  7650. /* Unsigned 32-bit attribute for holding the TID */
  7651. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
  7652. /* Unsigned 32-bit attribute for holding the update mask
  7653. * bit 0 - Update high priority msdu qdepth threshold
  7654. * bit 1 - Update low priority msdu qdepth threshold
  7655. * bit 2 - Update UDP msdu qdepth threshold
  7656. * bit 3 - Update Non UDP msdu qdepth threshold
  7657. * rest of bits are reserved
  7658. */
  7659. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
  7660. /* Unsigned 32-bit attribute for holding the threshold value */
  7661. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
  7662. /* keep last */
  7663. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
  7664. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
  7665. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
  7666. };
  7667. /**
  7668. * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
  7669. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
  7670. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
  7671. * external ACS policies to select the channels w.r.t. the PCL weights.
  7672. * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
  7673. * their PCL weights.)
  7674. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
  7675. * select a channel with non-zero PCL weight.
  7676. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
  7677. * channel with non-zero PCL weight.
  7678. *
  7679. */
  7680. enum qca_wlan_vendor_attr_external_acs_policy {
  7681. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
  7682. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
  7683. };
  7684. /**
  7685. * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
  7686. */
  7687. enum qca_wlan_vendor_attr_spectral_scan {
  7688. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
  7689. /*
  7690. * Number of times the chip enters spectral scan mode before
  7691. * deactivating spectral scans. When set to 0, chip will enter spectral
  7692. * scan mode continuously. u32 attribute.
  7693. */
  7694. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
  7695. /*
  7696. * Spectral scan period. Period increment resolution is 256*Tclk,
  7697. * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
  7698. */
  7699. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
  7700. /* Spectral scan priority. u32 attribute. */
  7701. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
  7702. /* Number of FFT data points to compute. u32 attribute. */
  7703. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
  7704. /*
  7705. * Enable targeted gain change before starting the spectral scan FFT.
  7706. * u32 attribute.
  7707. */
  7708. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
  7709. /* Restart a queued spectral scan. u32 attribute. */
  7710. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
  7711. /*
  7712. * Noise floor reference number for the calculation of bin power.
  7713. * u32 attribute.
  7714. */
  7715. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
  7716. /*
  7717. * Disallow spectral scan triggers after TX/RX packets by setting
  7718. * this delay value to roughly SIFS time period or greater.
  7719. * u32 attribute.
  7720. */
  7721. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
  7722. /*
  7723. * Number of strong bins (inclusive) per sub-channel, below
  7724. * which a signal is declared a narrow band tone. u32 attribute.
  7725. */
  7726. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
  7727. /*
  7728. * Specify the threshold over which a bin is declared strong (for
  7729. * scan bandwidth analysis). u32 attribute.
  7730. */
  7731. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
  7732. /* Spectral scan report mode. u32 attribute. */
  7733. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
  7734. /*
  7735. * RSSI report mode, if the ADC RSSI is below
  7736. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
  7737. * then FFTs will not trigger, but timestamps and summaries get
  7738. * reported. u32 attribute.
  7739. */
  7740. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
  7741. /*
  7742. * ADC RSSI must be greater than or equal to this threshold (signed dB)
  7743. * to ensure spectral scan reporting with normal error code.
  7744. * u32 attribute.
  7745. */
  7746. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
  7747. /*
  7748. * Format of frequency bin magnitude for spectral scan triggered FFTs:
  7749. * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
  7750. * u32 attribute.
  7751. */
  7752. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
  7753. /*
  7754. * Format of FFT report to software for spectral scan triggered FFTs.
  7755. * 0: No FFT report (only spectral scan summary report)
  7756. * 1: 2-dword summary of metrics for each completed FFT + spectral scan
  7757. * report
  7758. * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
  7759. * bins (in-band) per FFT + spectral scan summary report
  7760. * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
  7761. * bins (all) per FFT + spectral scan summary report
  7762. * u32 attribute.
  7763. */
  7764. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
  7765. /*
  7766. * Number of LSBs to shift out in order to scale the FFT bins.
  7767. * u32 attribute.
  7768. */
  7769. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
  7770. /*
  7771. * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
  7772. * in dBm power. u32 attribute.
  7773. */
  7774. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
  7775. /*
  7776. * Per chain enable mask to select input ADC for search FFT.
  7777. * u32 attribute.
  7778. */
  7779. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
  7780. /*
  7781. * An unsigned 64-bit integer provided by host driver to identify the
  7782. * spectral scan request. This attribute is included in the scan
  7783. * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
  7784. * and used as an attribute in
  7785. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
  7786. * specific scan to be stopped.
  7787. */
  7788. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
  7789. /* Skip interval for FFT reports. u32 attribute */
  7790. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
  7791. /* Set to report only one set of FFT results.
  7792. * u32 attribute.
  7793. */
  7794. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
  7795. /* Debug level for spectral module in driver.
  7796. * 0 : Verbosity level 0
  7797. * 1 : Verbosity level 1
  7798. * 2 : Verbosity level 2
  7799. * 3 : Matched filterID display
  7800. * 4 : One time dump of FFT report
  7801. * u32 attribute.
  7802. */
  7803. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
  7804. /* Type of spectral scan request. u32 attribute.
  7805. * It uses values defined in enum
  7806. * qca_wlan_vendor_attr_spectral_scan_request_type.
  7807. */
  7808. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
  7809. /* This specifies the frequency span over which spectral
  7810. * scan would be carried out. Its value depends on the
  7811. * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
  7812. * the relation is as follows.
  7813. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
  7814. * Not applicable. Spectral scan would happen in the
  7815. * operating span.
  7816. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
  7817. * Center frequency (in MHz) of the span of interest or
  7818. * for convenience, center frequency (in MHz) of any channel
  7819. * in the span of interest. For 80+80 MHz agile spectral scan
  7820. * request it represents center frequency (in MHz) of the primary
  7821. * 80 MHz span or for convenience, center frequency (in MHz) of any
  7822. * channel in the primary 80 MHz span. If agile spectral scan is
  7823. * initiated without setting a valid frequency it returns the
  7824. * error code
  7825. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
  7826. * u32 attribute.
  7827. */
  7828. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
  7829. /* Spectral scan mode. u32 attribute.
  7830. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  7831. * If this attribute is not present, it is assumed to be
  7832. * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
  7833. */
  7834. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
  7835. /* Spectral scan error code. u32 attribute.
  7836. * It uses values defined in enum
  7837. * qca_wlan_vendor_spectral_scan_error_code.
  7838. * This attribute is included only in failure scenarios.
  7839. */
  7840. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
  7841. /* 8-bit unsigned value to enable/disable debug of the
  7842. * Spectral DMA ring.
  7843. * 1-enable, 0-disable
  7844. */
  7845. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
  7846. /* 8-bit unsigned value to enable/disable debug of the
  7847. * Spectral DMA buffers.
  7848. * 1-enable, 0-disable
  7849. */
  7850. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
  7851. /* This specifies the frequency span over which spectral scan would be
  7852. * carried out. Its value depends on the value of
  7853. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
  7854. * follows.
  7855. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
  7856. * Not applicable. Spectral scan would happen in the operating span.
  7857. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
  7858. * This attribute is applicable only for agile spectral scan
  7859. * requests in 80+80 MHz mode. It represents center frequency (in
  7860. * MHz) of the secondary 80 MHz span or for convenience, center
  7861. * frequency (in MHz) of any channel in the secondary 80 MHz span.
  7862. * u32 attribute.
  7863. */
  7864. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
  7865. /* This attribute specifies the bandwidth to be used for Spectral scan
  7866. * operation. This is an u8 attribute and uses the values in enum
  7867. * nl80211_chan_width. This is an optional attribute.
  7868. * If this attribute is not populated, the driver should configure the
  7869. * Spectral scan bandwidth to the maximum value supported by the target
  7870. * for the current operating bandwidth.
  7871. */
  7872. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
  7873. /* Spectral FFT recapture flag attribute, to enable/disable FFT
  7874. * recapture. Recapture can only be enabled for Scan period greater
  7875. * than 52us.
  7876. * If this attribute is enabled, re-triggers will be enabled in uCode
  7877. * when AGC gain changes.
  7878. */
  7879. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
  7880. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
  7881. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
  7882. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
  7883. };
  7884. /**
  7885. * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
  7886. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
  7887. */
  7888. enum qca_wlan_vendor_attr_spectral_diag_stats {
  7889. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
  7890. /* Number of spectral TLV signature mismatches.
  7891. * u64 attribute.
  7892. */
  7893. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
  7894. /* Number of spectral phyerror events with insufficient length when
  7895. * parsing for secondary 80 search FFT report. u64 attribute.
  7896. */
  7897. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
  7898. /* Number of spectral phyerror events without secondary 80
  7899. * search FFT report. u64 attribute.
  7900. */
  7901. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
  7902. /* Number of spectral phyerror events with vht operation segment 1 id
  7903. * mismatches in search fft report. u64 attribute.
  7904. */
  7905. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
  7906. /* Number of spectral phyerror events with vht operation segment 2 id
  7907. * mismatches in search fft report. u64 attribute.
  7908. */
  7909. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
  7910. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
  7911. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
  7912. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
  7913. };
  7914. /**
  7915. * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
  7916. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
  7917. */
  7918. enum qca_wlan_vendor_attr_spectral_cap {
  7919. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
  7920. /* Flag attribute to indicate phydiag capability */
  7921. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
  7922. /* Flag attribute to indicate radar detection capability */
  7923. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
  7924. /* Flag attribute to indicate spectral capability */
  7925. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
  7926. /* Flag attribute to indicate advanced spectral capability */
  7927. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
  7928. /* Spectral hardware generation. u32 attribute.
  7929. * It uses values defined in enum
  7930. * qca_wlan_vendor_spectral_scan_cap_hw_gen.
  7931. */
  7932. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
  7933. /* Spectral bin scaling formula ID. u16 attribute.
  7934. * It uses values defined in enum
  7935. * qca_wlan_vendor_spectral_scan_cap_formula_id.
  7936. */
  7937. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
  7938. /* Spectral bin scaling param - low level offset.
  7939. * s16 attribute.
  7940. */
  7941. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
  7942. /* Spectral bin scaling param - high level offset.
  7943. * s16 attribute.
  7944. */
  7945. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
  7946. /* Spectral bin scaling param - RSSI threshold.
  7947. * s16 attribute.
  7948. */
  7949. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
  7950. /* Spectral bin scaling param - default AGC max gain.
  7951. * u8 attribute.
  7952. */
  7953. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
  7954. /* Flag attribute to indicate agile spectral scan capability
  7955. * for 20/40/80 MHz modes.
  7956. */
  7957. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
  7958. /* Flag attribute to indicate agile spectral scan capability
  7959. * for 160 MHz mode.
  7960. */
  7961. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
  7962. /* Flag attribute to indicate agile spectral scan capability
  7963. * for 80+80 MHz mode.
  7964. */
  7965. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
  7966. /* Number of spectral detectors used for scan in 20 MHz.
  7967. * u32 attribute.
  7968. */
  7969. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
  7970. /* Number of spectral detectors used for scan in 40 MHz.
  7971. * u32 attribute.
  7972. */
  7973. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
  7974. /* Number of spectral detectors used for scan in 80 MHz.
  7975. * u32 attribute.
  7976. */
  7977. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
  7978. /* Number of spectral detectors used for scan in 160 MHz.
  7979. * u32 attribute.
  7980. */
  7981. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
  7982. /* Number of spectral detectors used for scan in 80+80 MHz.
  7983. * u32 attribute.
  7984. */
  7985. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
  7986. /* Flag attribute to indicate agile spectral scan capability
  7987. * for 320 MHz mode.
  7988. */
  7989. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
  7990. /* Number of spectral detectors used for scan in 320 MHz.
  7991. * u32 attribute.
  7992. */
  7993. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
  7994. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
  7995. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
  7996. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
  7997. };
  7998. /**
  7999. * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
  8000. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
  8001. */
  8002. enum qca_wlan_vendor_attr_spectral_scan_status {
  8003. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
  8004. /* Flag attribute to indicate whether spectral scan is enabled */
  8005. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
  8006. /* Flag attribute to indicate whether spectral scan is in progress*/
  8007. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
  8008. /* Spectral scan mode. u32 attribute.
  8009. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  8010. * If this attribute is not present, normal mode
  8011. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
  8012. * requested.
  8013. */
  8014. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
  8015. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
  8016. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
  8017. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
  8018. };
  8019. /**
  8020. * enum qca_wlan_vendor_attr_config_latency_level - Level for
  8021. * wlan latency module.
  8022. *
  8023. * There will be various of Wi-Fi functionality like scan/roaming/adaptive
  8024. * power saving which would causing data exchange out of service, this
  8025. * would be a big impact on latency. For latency sensitive applications over
  8026. * Wi-Fi are intolerant to such operations and thus would configure them
  8027. * to meet their respective needs. It is well understood by such applications
  8028. * that altering the default behavior would degrade the Wi-Fi functionality
  8029. * w.r.t the above pointed WLAN operations.
  8030. *
  8031. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
  8032. * Default WLAN operation level which throughput orientated.
  8033. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
  8034. * Use XR level to benefit XR (extended reality) application to achieve
  8035. * latency and power by via constraint scan/roaming/adaptive PS.
  8036. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
  8037. * Use low latency level to benefit application like concurrent
  8038. * downloading or video streaming via constraint scan/adaptive PS.
  8039. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
  8040. * Use ultra low latency level to benefit for gaming/voice
  8041. * application via constraint scan/roaming/adaptive PS.
  8042. */
  8043. enum qca_wlan_vendor_attr_config_latency_level {
  8044. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
  8045. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
  8046. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
  8047. /* legacy name */
  8048. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
  8049. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
  8050. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
  8051. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
  8052. /* keep last */
  8053. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
  8054. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
  8055. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
  8056. };
  8057. /**
  8058. * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
  8059. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
  8060. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
  8061. * spectral scan request types.
  8062. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
  8063. * set the spectral parameters and start scan.
  8064. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
  8065. * only set the spectral parameters.
  8066. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
  8067. * only start the spectral scan.
  8068. */
  8069. enum qca_wlan_vendor_attr_spectral_scan_request_type {
  8070. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
  8071. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
  8072. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
  8073. };
  8074. /**
  8075. * qca_wlan_vendor_spectral_scan_mode: Attribute values for
  8076. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
  8077. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
  8078. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
  8079. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
  8080. * spectral scan modes.
  8081. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
  8082. * spectral scan in the current operating span.
  8083. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
  8084. * spectral scan in the configured agile span.
  8085. */
  8086. enum qca_wlan_vendor_spectral_scan_mode {
  8087. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
  8088. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
  8089. };
  8090. /**
  8091. * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
  8092. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
  8093. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
  8094. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
  8095. * of a parameter is not supported.
  8096. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
  8097. * mode is not supported.
  8098. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
  8099. * has invalid value.
  8100. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
  8101. * is not initialized.
  8102. */
  8103. enum qca_wlan_vendor_spectral_scan_error_code {
  8104. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
  8105. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
  8106. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
  8107. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
  8108. };
  8109. /**
  8110. * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
  8111. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
  8112. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  8113. * spectral hardware generation.
  8114. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
  8115. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
  8116. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
  8117. */
  8118. enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
  8119. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
  8120. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
  8121. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
  8122. };
  8123. /**
  8124. * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
  8125. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
  8126. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  8127. * Spectral bin scaling formula ID.
  8128. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
  8129. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
  8130. * and RSSI threshold based formula.
  8131. */
  8132. enum qca_wlan_vendor_spectral_scan_cap_formula_id {
  8133. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
  8134. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
  8135. };
  8136. /**
  8137. * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
  8138. * RF Operating Parameter (RROP) information is available, and if so, at which
  8139. * point in the application-driver interaction sequence it can be retrieved by
  8140. * the application from the driver. This point may vary by architecture and
  8141. * other factors. This is a u16 value.
  8142. */
  8143. enum qca_wlan_vendor_attr_rropavail_info {
  8144. /* RROP information is unavailable. */
  8145. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
  8146. /* RROP information is available and the application can retrieve the
  8147. * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
  8148. * event from the driver.
  8149. */
  8150. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
  8151. /* RROP information is available only after a vendor specific scan
  8152. * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
  8153. * successfully completed. The application can retrieve the information
  8154. * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
  8155. * the driver.
  8156. */
  8157. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
  8158. };
  8159. /**
  8160. * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
  8161. * Representative RF Operating Parameter (RROP) information. It is sent for the
  8162. * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
  8163. * intended for use by external Auto Channel Selection applications. It provides
  8164. * guidance values for some RF parameters that are used by the system during
  8165. * operation. These values could vary by channel, band, radio, and so on.
  8166. */
  8167. enum qca_wlan_vendor_attr_rrop_info {
  8168. QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
  8169. /* Representative Tx Power List (RTPL) which has an array of nested
  8170. * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
  8171. */
  8172. QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
  8173. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
  8174. QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
  8175. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
  8176. };
  8177. /**
  8178. * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
  8179. * entry instances in the Representative Tx Power List (RTPL). It provides
  8180. * simplified power values intended for helping external Auto channel Selection
  8181. * applications compare potential Tx power performance between channels, other
  8182. * operating conditions remaining identical. These values are not necessarily
  8183. * the actual Tx power values that will be used by the system. They are also not
  8184. * necessarily the max or average values that will be used. Instead, they are
  8185. * relative, summarized keys for algorithmic use computed by the driver or
  8186. * underlying firmware considering a number of vendor specific factors.
  8187. */
  8188. enum qca_wlan_vendor_attr_rtplinst {
  8189. QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
  8190. /* Primary channel number (u8).
  8191. * Note: If both the driver and user space application support the
  8192. * 6 GHz band, this attribute is deprecated and
  8193. * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
  8194. * maintain backward compatibility,
  8195. * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
  8196. * driver or user space application or both do not support the 6 GHz
  8197. * band.
  8198. */
  8199. QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
  8200. /* Representative Tx power in dBm (s32) with emphasis on throughput. */
  8201. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
  8202. /* Representative Tx power in dBm (s32) with emphasis on range. */
  8203. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
  8204. /* Primary channel center frequency (u32) in MHz */
  8205. QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
  8206. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
  8207. QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
  8208. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
  8209. };
  8210. /**
  8211. * enum qca_wlan_vendor_attr_mac - Used by the vendor command
  8212. * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  8213. *
  8214. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an
  8215. * array of nested values as per attributes in
  8216. * enum qca_wlan_vendor_attr_mac_mode_info.
  8217. */
  8218. enum qca_wlan_vendor_attr_mac {
  8219. QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
  8220. QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
  8221. /* keep last */
  8222. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
  8223. QCA_WLAN_VENDOR_ATTR_MAC_MAX =
  8224. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
  8225. };
  8226. /**
  8227. * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
  8228. * WiFi netdev interface on a respective MAC. Used by the attribute
  8229. * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
  8230. *
  8231. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32).
  8232. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of
  8233. * the connected Wi-Fi interface(u32).
  8234. */
  8235. enum qca_wlan_vendor_attr_mac_iface_info {
  8236. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
  8237. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
  8238. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
  8239. /* keep last */
  8240. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
  8241. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
  8242. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
  8243. };
  8244. /**
  8245. * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
  8246. * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
  8247. * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  8248. *
  8249. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the
  8250. * MAC (u32)
  8251. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC
  8252. * at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described
  8253. * in enum nl80211_band.
  8254. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev
  8255. * interfaces associated with this MAC. Represented by enum
  8256. * qca_wlan_vendor_attr_mac_iface_info.
  8257. */
  8258. enum qca_wlan_vendor_attr_mac_info {
  8259. QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
  8260. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
  8261. QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
  8262. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
  8263. /* keep last */
  8264. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
  8265. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
  8266. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
  8267. };
  8268. /**
  8269. * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
  8270. * to get thermal status from driver/firmware.
  8271. * enum values are used for NL attributes encapsulated inside
  8272. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
  8273. *
  8274. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
  8275. * of a thermal level in Celsius. u32 size.
  8276. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
  8277. * of a thermal level in Celsius. u32 size.
  8278. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
  8279. * thermal level in milliseconds. u32 size.
  8280. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
  8281. * of times the temperature crossed into the temperature range defined by the
  8282. * thermal level from both higher and lower directions. u32 size.
  8283. */
  8284. enum qca_wlan_vendor_attr_thermal_stats {
  8285. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
  8286. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
  8287. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
  8288. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
  8289. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
  8290. /* keep last */
  8291. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
  8292. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
  8293. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
  8294. };
  8295. /**
  8296. * enum he_fragmentation_val - HE fragmentation support values
  8297. * Indicates level of dynamic fragmentation that is supported by
  8298. * a STA as a recipient.
  8299. * HE fragmentation values are defined as per 11ax spec and are used in
  8300. * HE capability IE to advertise the support. These values are validated
  8301. * in the driver to check the device capability and advertised in the HE
  8302. * capability element.
  8303. *
  8304. * @HE_FRAG_DISABLE: no support for dynamic fragmentation
  8305. * @HE_FRAG_LEVEL1: support for dynamic fragments that are
  8306. * contained within an MPDU or S-MPDU, no support for dynamic fragments
  8307. * within an A-MPDU that is not an S-MPDU.
  8308. * @HE_FRAG_LEVEL2: support for dynamic fragments that are
  8309. * contained within an MPDU or S-MPDU and support for up to one dynamic
  8310. * fragment for each MSDU, each A-MSDU if supported by the recipient, and
  8311. * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
  8312. * MPDU or S-MPDU.
  8313. * @HE_FRAG_LEVEL3: support for dynamic fragments that are
  8314. * contained within an MPDU or S-MPDU and support for multiple dynamic
  8315. * fragments for each MSDU and for each A-MSDU if supported by the
  8316. * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
  8317. * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
  8318. */
  8319. enum he_fragmentation_val {
  8320. HE_FRAG_DISABLE,
  8321. HE_FRAG_LEVEL1,
  8322. HE_FRAG_LEVEL2,
  8323. HE_FRAG_LEVEL3,
  8324. };
  8325. /**
  8326. * enum he_mcs_config - HE MCS support configuration
  8327. *
  8328. * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
  8329. * These values are used in driver to configure the HE MCS map to advertise
  8330. * Tx/Rx MCS map in HE capability and these values are applied for all the
  8331. * streams supported by the device. To configure MCS for different bandwidths,
  8332. * vendor command needs to be sent using this attribute with appropriate value.
  8333. * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
  8334. * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS
  8335. * for HE_160_MCS0_11 send this command using HE MCS config attribute with
  8336. * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11;
  8337. *
  8338. * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7
  8339. * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9
  8340. * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11
  8341. * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7
  8342. * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9
  8343. * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11
  8344. * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7
  8345. * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9
  8346. * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11
  8347. */
  8348. enum he_mcs_config {
  8349. HE_80_MCS0_7 = 0,
  8350. HE_80_MCS0_9 = 1,
  8351. HE_80_MCS0_11 = 2,
  8352. HE_160_MCS0_7 = 4,
  8353. HE_160_MCS0_9 = 5,
  8354. HE_160_MCS0_11 = 6,
  8355. HE_80p80_MCS0_7 = 8,
  8356. HE_80p80_MCS0_9 = 9,
  8357. HE_80p80_MCS0_11 = 10,
  8358. };
  8359. /**
  8360. * enum qca_wlan_ba_session_config - BA session configuration
  8361. *
  8362. * Indicates the configuration values for BA session configuration attribute.
  8363. *
  8364. * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
  8365. * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
  8366. */
  8367. enum qca_wlan_ba_session_config {
  8368. QCA_WLAN_ADD_BA = 1,
  8369. QCA_WLAN_DELETE_BA = 2,
  8370. };
  8371. /**
  8372. * enum qca_wlan_ac_type - access category type
  8373. *
  8374. * Indicates the access category type value.
  8375. *
  8376. * @QCA_WLAN_AC_BE: BE access category
  8377. * @QCA_WLAN_AC_BK: BK access category
  8378. * @QCA_WLAN_AC_VI: VI access category
  8379. * @QCA_WLAN_AC_VO: VO access category
  8380. * @QCA_WLAN_AC_ALL: All ACs
  8381. */
  8382. enum qca_wlan_ac_type {
  8383. QCA_WLAN_AC_BE = 0,
  8384. QCA_WLAN_AC_BK = 1,
  8385. QCA_WLAN_AC_VI = 2,
  8386. QCA_WLAN_AC_VO = 3,
  8387. QCA_WLAN_AC_ALL = 4,
  8388. };
  8389. /**
  8390. * enum qca_wlan_he_ltf_cfg - HE LTF configuration
  8391. *
  8392. * Indicates the HE LTF configuration value.
  8393. *
  8394. * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to
  8395. * the mandatory HE-LTF based on the GI setting
  8396. * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
  8397. * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
  8398. * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
  8399. */
  8400. enum qca_wlan_he_ltf_cfg {
  8401. QCA_WLAN_HE_LTF_AUTO = 0,
  8402. QCA_WLAN_HE_LTF_1X = 1,
  8403. QCA_WLAN_HE_LTF_2X = 2,
  8404. QCA_WLAN_HE_LTF_4X = 3,
  8405. };
  8406. /**
  8407. * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
  8408. *
  8409. * Indicates the HE trigger frame MAC padding duration value.
  8410. *
  8411. * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
  8412. * process the trigger frame.
  8413. * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
  8414. * trigger frame.
  8415. * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
  8416. * trigger frame.
  8417. */
  8418. enum qca_wlan_he_mac_padding_dur {
  8419. QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
  8420. QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
  8421. QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
  8422. };
  8423. /**
  8424. * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
  8425. *
  8426. * Indicates the HE Operating mode control channel width setting value.
  8427. *
  8428. * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
  8429. * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
  8430. * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
  8431. * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
  8432. */
  8433. enum qca_wlan_he_om_ctrl_ch_bw {
  8434. QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
  8435. QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
  8436. QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
  8437. QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
  8438. };
  8439. /**
  8440. * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
  8441. *
  8442. * Indicates the frame types to use for keep alive data.
  8443. *
  8444. * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
  8445. * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
  8446. * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
  8447. */
  8448. enum qca_wlan_keep_alive_data_type {
  8449. QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
  8450. QCA_WLAN_KEEP_ALIVE_DATA = 1,
  8451. QCA_WLAN_KEEP_ALIVE_MGMT = 2,
  8452. };
  8453. /**
  8454. * enum eht_mcs_config - EHT MCS support configuration
  8455. *
  8456. * Configures the EHT Tx/Rx MCS map in EHT Capability element.
  8457. * These values are used in the driver to configure the EHT MCS map to advertise
  8458. * Tx/Rx MCS map in EHT capability and these values are applied for all the
  8459. * streams supported by the device.
  8460. * @EHT_MCS0_7: EHT MCS 0 to 7 support
  8461. * @EHT_MCS0_9: EHT MCS 0 to 9 support
  8462. * @EHT_MCS0_11: EHT MCS 0 to 11 support
  8463. * @EHT_MCS0_13: EHT MCS 0 to 13 support
  8464. */
  8465. enum eht_mcs_config {
  8466. EHT_MCS0_7 = 0,
  8467. EHT_MCS0_9 = 1,
  8468. EHT_MCS0_11 = 2,
  8469. EHT_MCS0_13 = 3,
  8470. };
  8471. /**
  8472. * enum qca_wlan_eht_mlo_mode: EHT MLO mode configuration.
  8473. * @QCA_WLAN_EHT_MODE_INVALID: Invalid.
  8474. * @QCA_WLAN_EHT_MLSR: Multi-link single radio mode
  8475. * @QCA_WLAN_EHT_EMLSR: Enhanced multi-link single radio mode.
  8476. * @QCA_WLAN_EHT_NON_STR_MLMR: Non simultaneous transmit and receive
  8477. * multi-link multi radio mode.
  8478. * @QCA_WLAN_EHT_STR_MLMR: Simultaneous transmit and receive
  8479. * multi-link multi radio mode.
  8480. */
  8481. enum qca_wlan_eht_mlo_mode {
  8482. QCA_WLAN_EHT_MODE_INVALID = 0,
  8483. QCA_WLAN_EHT_MLSR = 1,
  8484. QCA_WLAN_EHT_EMLSR = 2,
  8485. QCA_WLAN_EHT_NON_STR_MLMR = 3,
  8486. QCA_WLAN_EHT_STR_MLMR = 4,
  8487. };
  8488. /**
  8489. * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for
  8490. * HE operating mode control transmit request. These attributes are
  8491. * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and
  8492. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  8493. *
  8494. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
  8495. * indicates the maximum number of spatial streams, NSS, that the STA
  8496. * supports in reception for PPDU bandwidths less than or equal to 80 MHz
  8497. * and is set to NSS - 1.
  8498. *
  8499. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
  8500. * indicates the operating channel width supported by the STA for both
  8501. * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
  8502. *
  8503. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
  8504. * indicates the all trigger based UL MU operations by the STA.
  8505. * 0 - UL MU operations are enabled by the STA.
  8506. * 1 - All triggered UL MU transmissions are suspended by the STA.
  8507. *
  8508. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
  8509. * indicates the maximum number of space-time streams, NSTS, that
  8510. * the STA supports in transmission and is set to NSTS - 1.
  8511. *
  8512. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
  8513. * combined with the UL MU Disable subfield and the recipient's setting
  8514. * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
  8515. * capabilities to determine which HE TB PPDUs are possible by the
  8516. * STA to transmit.
  8517. * 0 - UL MU data operations are enabled by the STA.
  8518. * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
  8519. * bit is not set, else UL MU Tx is suspended.
  8520. *
  8521. */
  8522. enum qca_wlan_vendor_attr_he_omi_tx {
  8523. QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
  8524. QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
  8525. QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
  8526. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
  8527. QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
  8528. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
  8529. /* keep last */
  8530. QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST,
  8531. QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX =
  8532. QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1,
  8533. };
  8534. /**
  8535. * enum qca_wlan_vendor_phy_mode - Different PHY modes
  8536. * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
  8537. *
  8538. * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
  8539. * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
  8540. * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
  8541. * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
  8542. * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
  8543. * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
  8544. * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
  8545. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
  8546. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
  8547. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
  8548. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
  8549. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
  8550. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
  8551. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
  8552. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
  8553. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
  8554. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
  8555. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
  8556. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
  8557. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
  8558. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
  8559. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
  8560. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
  8561. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
  8562. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
  8563. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
  8564. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
  8565. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
  8566. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
  8567. */
  8568. enum qca_wlan_vendor_phy_mode {
  8569. QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
  8570. QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
  8571. QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
  8572. QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
  8573. QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
  8574. QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
  8575. QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
  8576. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
  8577. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
  8578. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
  8579. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
  8580. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
  8581. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
  8582. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
  8583. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
  8584. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
  8585. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
  8586. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
  8587. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
  8588. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
  8589. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
  8590. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
  8591. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
  8592. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
  8593. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
  8594. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
  8595. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
  8596. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
  8597. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
  8598. };
  8599. /* Attributes for data used by
  8600. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
  8601. */
  8602. enum qca_wlan_vendor_attr_wifi_test_config {
  8603. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
  8604. /* 8-bit unsigned value to configure the driver to enable/disable
  8605. * WMM feature. This attribute is used to configure testbed device.
  8606. * 1-enable, 0-disable
  8607. */
  8608. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
  8609. /* 8-bit unsigned value to configure the driver to accept/reject
  8610. * the addba request from peer. This attribute is used to configure
  8611. * the testbed device.
  8612. * 1-accept addba, 0-reject addba
  8613. */
  8614. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
  8615. /* 8-bit unsigned value to configure the driver to send or not to
  8616. * send the addba request to peer.
  8617. * This attribute is used to configure the testbed device.
  8618. * 1-send addba, 0-do not send addba
  8619. */
  8620. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
  8621. /* 8-bit unsigned value to indicate the HE fragmentation support.
  8622. * Uses enum he_fragmentation_val values.
  8623. * This attribute is used to configure the testbed device to
  8624. * allow the advertised hardware capabilities to be downgraded
  8625. * for testing purposes.
  8626. */
  8627. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
  8628. /* 8-bit unsigned value to indicate the HE MCS support.
  8629. * Uses enum he_mcs_config values.
  8630. * This attribute is used to configure the testbed device to
  8631. * allow the advertised hardware capabilities to be downgraded
  8632. * for testing purposes.
  8633. */
  8634. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
  8635. /* 8-bit unsigned value to configure the driver to allow or not to
  8636. * allow the connection with WEP/TKIP in HT/VHT/HE modes.
  8637. * This attribute is used to configure the testbed device.
  8638. * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip
  8639. */
  8640. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
  8641. /* 8-bit unsigned value to configure the driver to add a
  8642. * new BA session or delete the existing BA session for
  8643. * given TID. ADDBA command uses the buffer size and tid
  8644. * configuration if user specifies the values else default
  8645. * value for buffer size is used for all tids if the tid
  8646. * also not specified. For DEL_BA command TID value is
  8647. * required to process the command.
  8648. * Uses enum qca_wlan_ba_session_config values.
  8649. * This attribute is used to configure the testbed device.
  8650. */
  8651. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
  8652. /* 16-bit unsigned value to configure the buffer size in addba
  8653. * request and response frames.
  8654. * This attribute is used to configure the testbed device.
  8655. * The range of the value is 0 to 256.
  8656. */
  8657. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
  8658. /* 8-bit unsigned value to configure the buffer size in addba
  8659. * request and response frames.
  8660. * This attribute is used to configure the testbed device.
  8661. */
  8662. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
  8663. /* 8-bit unsigned value to configure the no ack policy.
  8664. * To configure no ack policy, access category value
  8665. * is required to process the command.
  8666. * This attribute is used to configure the testbed device.
  8667. * 1 - enable no ack, 0 - disable no ack
  8668. */
  8669. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
  8670. /* 8-bit unsigned value to configure the AC for no ack policy
  8671. * This attribute is used to configure the testbed device.
  8672. * uses the enum qca_wlan_ac_type values
  8673. */
  8674. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
  8675. /* 8-bit unsigned value to configure the HE LTF
  8676. * This attribute is used to configure the testbed device.
  8677. * Uses the enum qca_wlan_he_ltf_cfg values.
  8678. */
  8679. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
  8680. /* 8-bit unsigned value to configure the tx beamformee.
  8681. * This attribute is used to configure the testbed device.
  8682. * 1 - enable, 0 - disable.
  8683. */
  8684. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
  8685. /* 8-bit unsigned value to configure the tx beamformee number of
  8686. * space-time streams.
  8687. * This attribute is used to configure the testbed device.
  8688. * The range of the value is 0 to 8
  8689. */
  8690. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
  8691. /* 8-bit unsigned value to configure the MU EDCA params for given AC
  8692. * This attribute is used to configure the testbed device.
  8693. * Uses the enum qca_wlan_ac_type values.
  8694. */
  8695. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
  8696. /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
  8697. * To configure MU EDCA AIFSN value, MU EDCA access category value
  8698. * is required to process the command.
  8699. * This attribute is used to configure the testbed device.
  8700. */
  8701. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
  8702. /* 8-bit unsigned value to configure the MU EDCA ECW min value for
  8703. * given AC.
  8704. * To configure MU EDCA ECW min value, MU EDCA access category value
  8705. * is required to process the command.
  8706. * This attribute is used to configure the testbed device.
  8707. */
  8708. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
  8709. /* 8-bit unsigned value to configure the MU EDCA ECW max value for
  8710. * given AC.
  8711. * To configure MU EDCA ECW max value, MU EDCA access category value
  8712. * is required to process the command.
  8713. * This attribute is used to configure the testbed device.
  8714. */
  8715. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
  8716. /* 8-bit unsigned value to configure the MU EDCA timer for given AC
  8717. * To configure MU EDCA timer value, MU EDCA access category value
  8718. * is required to process the command.
  8719. * This attribute is used to configure the testbed device.
  8720. */
  8721. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
  8722. /* 8-bit unsigned value to configure the HE trigger frame MAC padding
  8723. * duration.
  8724. * This attribute is used to configure the testbed device.
  8725. * Uses the enum qca_wlan_he_mac_padding_dur values.
  8726. */
  8727. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
  8728. /* 8-bit unsigned value to override the MU EDCA params to defaults
  8729. * regardless of the AP beacon MU EDCA params. If it is enabled use
  8730. * the default values else use the MU EDCA params from AP beacon.
  8731. * This attribute is used to configure the testbed device.
  8732. * 1 - enable override, 0 - disable.
  8733. */
  8734. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
  8735. /* 8-bit unsigned value to configure the support for receiving
  8736. * an MPDU that contains an operating mode control subfield.
  8737. * This attribute is used to configure the testbed device.
  8738. * 1-enable, 0-disable.
  8739. */
  8740. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
  8741. /* Nested attribute values required to setup the TWT session.
  8742. * enum qca_wlan_vendor_attr_twt_setup provides the necessary
  8743. * information to set up the session. It contains broadcast flags,
  8744. * set_up flags, trigger value, flow type, flow ID, wake interval
  8745. * exponent, protection, target wake time, wake duration, wake interval
  8746. * mantissa. These nested attributes are used to setup a host triggered
  8747. * TWT session.
  8748. */
  8749. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
  8750. /* This nested attribute is used to terminate the current TWT session.
  8751. * It does not currently carry any attributes.
  8752. */
  8753. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
  8754. /* This nested attribute is used to suspend the current TWT session.
  8755. * It does not currently carry any attributes.
  8756. */
  8757. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
  8758. /* Nested attribute values to indicate the request for resume.
  8759. * This attribute is used to resume the TWT session.
  8760. * enum qca_wlan_vendor_attr_twt_resume provides the necessary
  8761. * parameters required to resume the TWT session.
  8762. */
  8763. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
  8764. /* 8-bit unsigned value to set the HE operating mode control
  8765. * (OM CTRL) Channel Width subfield.
  8766. * The Channel Width subfield indicates the operating channel width
  8767. * supported by the STA for both reception and transmission.
  8768. * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
  8769. * This setting is cleared with the
  8770. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  8771. * flag attribute to reset defaults.
  8772. * This attribute is used to configure the testbed device.
  8773. */
  8774. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
  8775. /* 8-bit unsigned value to configure the number of spatial
  8776. * streams in HE operating mode control field.
  8777. * This setting is cleared with the
  8778. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  8779. * flag attribute to reset defaults.
  8780. * This attribute is used to configure the testbed device.
  8781. */
  8782. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
  8783. /* Flag attribute to configure the UL MU disable bit in
  8784. * HE operating mode control field.
  8785. * This setting is cleared with the
  8786. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  8787. * flag attribute to reset defaults.
  8788. * This attribute is used to configure the testbed device.
  8789. */
  8790. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
  8791. /* Flag attribute to clear the previously set HE operating mode
  8792. * control field configuration.
  8793. * This attribute is used to configure the testbed device to reset
  8794. * defaults to clear any previously set HE operating mode control
  8795. * field configuration.
  8796. */
  8797. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
  8798. /* 8-bit unsigned value to configure HE single user PPDU
  8799. * transmission. By default this setting is disabled and it
  8800. * is disabled in the reset defaults of the device configuration.
  8801. * This attribute is used to configure the testbed device.
  8802. * 1-enable, 0-disable
  8803. */
  8804. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
  8805. /* 8-bit unsigned value to configure action frame transmission
  8806. * in HE trigger based PPDU transmission.
  8807. * By default this setting is disabled and it is disabled in
  8808. * the reset defaults of the device configuration.
  8809. * This attribute is used to configure the testbed device.
  8810. * 1-enable, 0-disable
  8811. */
  8812. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
  8813. /* Nested attribute to indicate HE operating mode control field
  8814. * transmission. It contains operating mode control field Nss,
  8815. * channel bandwidth, Tx Nsts and UL MU disable attributes.
  8816. * These nested attributes are used to send HE operating mode control
  8817. * with configured values.
  8818. * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes.
  8819. * This attribute is used to configure the testbed device.
  8820. */
  8821. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33,
  8822. /* 8-bit unsigned value to configure +HTC_HE support to indicate the
  8823. * support for the reception of a frame that carries an HE variant
  8824. * HT Control field.
  8825. * This attribute is used to configure the testbed device.
  8826. * 1-enable, 0-disable
  8827. */
  8828. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
  8829. /* 8-bit unsigned value to configure VHT support in 2.4G band.
  8830. * This attribute is used to configure the testbed device.
  8831. * 1-enable, 0-disable
  8832. */
  8833. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
  8834. /* 8-bit unsigned value to configure HE testbed defaults.
  8835. * This attribute is used to configure the testbed device.
  8836. * 1-set the device HE capabilities to testbed defaults.
  8837. * 0-reset the device HE capabilities to supported config.
  8838. */
  8839. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
  8840. /* 8-bit unsigned value to configure twt request support.
  8841. * This attribute is used to configure the testbed device.
  8842. * 1-enable, 0-disable.
  8843. */
  8844. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
  8845. /* 8-bit unsigned value to configure protection for Management
  8846. * frames when PMF is enabled for the association.
  8847. * This attribute is used to configure the testbed device.
  8848. * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
  8849. */
  8850. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
  8851. /* Flag attribute to inject Disassociation frame to the connected AP.
  8852. * This attribute is used to configure the testbed device.
  8853. */
  8854. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
  8855. /* 8-bit unsigned value to configure an override for the RSNXE Used
  8856. * subfield in the MIC control field of the FTE in FT Reassociation
  8857. * Request frame.
  8858. * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
  8859. * This attribute is used to configure the testbed device.
  8860. * This attribute can be configured when STA is in disconnected or
  8861. * associated state and the configuration is valid until the next
  8862. * disconnection.
  8863. */
  8864. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
  8865. /* 8-bit unsigned value to configure the driver to ignore CSA (Channel
  8866. * Switch Announcement) when STA is in connected state.
  8867. * 0 - Default behavior, 1 - Ignore CSA.
  8868. * This attribute is used to configure the testbed device.
  8869. * This attribute can be configured when STA is in disconnected or
  8870. * associated state and the configuration is valid until the next
  8871. * disconnection.
  8872. */
  8873. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
  8874. /* Nested attribute values required to configure OCI (Operating Channel
  8875. * Information). Attributes defined in enum
  8876. * qca_wlan_vendor_attr_oci_override are nested within this attribute.
  8877. * This attribute is used to configure the testbed device.
  8878. * This attribute can be configured when STA is in disconnected or
  8879. * associated state and the configuration is valid until the next
  8880. * disconnection.
  8881. */
  8882. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
  8883. /* 8-bit unsigned value to configure the driver/firmware to ignore SA
  8884. * Query timeout. If this configuration is enabled STA shall not send
  8885. * Deauthentication frmae when SA Query times out (mainly, after a
  8886. * channel switch when OCV is enabled).
  8887. * 0 - Default behavior, 1 - Ignore SA Query timeout.
  8888. * This attribute is used to configure the testbed device.
  8889. * This attribute can be configured only when STA is in associated state
  8890. * and the configuration is valid until the disconnection.
  8891. */
  8892. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
  8893. /* 8-bit unsigned value to configure the driver/firmware to start or
  8894. * stop transmitting FILS discovery frames.
  8895. * 0 - Stop transmitting FILS discovery frames
  8896. * 1 - Start transmitting FILS discovery frames
  8897. * This attribute is used to configure the testbed device.
  8898. * This attribute can be configured only in AP mode and the
  8899. * configuration is valid until AP restart.
  8900. */
  8901. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
  8902. /* 8-bit unsigned value to configure the driver/firmware to enable or
  8903. * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
  8904. * information field.
  8905. * 0 - Disable full bandwidth UL MU-MIMO subfield
  8906. * 1 - Enable full bandwidth UL MU-MIMO subfield
  8907. * This attribute is used to configure the testbed device.
  8908. */
  8909. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
  8910. /* 16-bit unsigned value to configure the driver with a specific BSS
  8911. * max idle period to advertise in the BSS Max Idle Period element
  8912. * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
  8913. * This attribute is used to configure the testbed device.
  8914. */
  8915. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
  8916. /* 8-bit unsigned value to configure the driver to use only RU 242 tone
  8917. * for data transmission.
  8918. * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
  8919. * This attribute is used to configure the testbed device.
  8920. */
  8921. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
  8922. /* 8-bit unsigned value to configure the driver to disable data and
  8923. * management response frame transmission to test the BSS max idle
  8924. * feature.
  8925. * 0 - Default behavior, 1 - Disable data and management response Tx.
  8926. * This attribute is used to configure the testbed device.
  8927. */
  8928. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
  8929. /* 8-bit unsigned value to configure the driver/firmware to enable or
  8930. * disable Punctured Preamble Rx subfield in the HE PHY capabilities
  8931. * information field.
  8932. * 0 - Disable Punctured Preamble Rx subfield
  8933. * 1 - Enable Punctured Preamble Rx subfield
  8934. * This attribute is used to configure the testbed device.
  8935. */
  8936. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
  8937. /* 8-bit unsigned value to configure the driver to ignore the SAE H2E
  8938. * requirement mismatch for 6 GHz connection.
  8939. * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
  8940. * This attribute is used to configure the testbed device.
  8941. */
  8942. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
  8943. /* 8-bit unsigned value to configure the driver to allow 6 GHz
  8944. * connection with all security modes.
  8945. * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
  8946. * modes.
  8947. * This attribute is used for testing purposes.
  8948. */
  8949. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
  8950. /* 8-bit unsigned value to configure the driver to transmit data with
  8951. * ER SU PPDU type.
  8952. *
  8953. * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
  8954. * This attribute is used for testing purposes.
  8955. */
  8956. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
  8957. /* 8-bit unsigned value to configure the driver to use Data or
  8958. * Management frame type for keep alive data.
  8959. * Uses enum qca_wlan_keep_alive_data_type values.
  8960. *
  8961. * This attribute is used for testing purposes.
  8962. */
  8963. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
  8964. /* 8-bit unsigned value to configure the driver to use scan request
  8965. * BSSID value in Probe Request frame RA(A1) during the scan. The
  8966. * driver saves this configuration and applies this setting to all user
  8967. * space scan requests until the setting is cleared. If this
  8968. * configuration is set, the driver uses the BSSID value from the scan
  8969. * request to set the RA(A1) in the Probe Request frames during the
  8970. * scan.
  8971. *
  8972. * 0 - Default behavior uses the broadcast RA in Probe Request frames.
  8973. * 1 - Uses the scan request BSSID in RA in Probe Request frames.
  8974. * This attribute is used for testing purposes.
  8975. */
  8976. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
  8977. /* 8-bit unsigned value to configure the driver to enable/disable the
  8978. * BSS max idle period support.
  8979. *
  8980. * 0 - Disable the BSS max idle support.
  8981. * 1 - Enable the BSS max idle support.
  8982. * This attribute is used for testing purposes.
  8983. */
  8984. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
  8985. /* 8-bit unsigned value to configure the driver/firmware to enable or
  8986. * disable Rx control frame to MultiBSS subfield in the HE MAC
  8987. * capabilities information field.
  8988. * 0 - Disable Rx control frame to MultiBSS subfield
  8989. * 1 - Enable Rx control frame to MultiBSS subfield
  8990. * This attribute is used to configure the testbed device.
  8991. */
  8992. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
  8993. /* 8-bit unsigned value to configure the driver/firmware to enable or
  8994. * disable Broadcast TWT support subfield in the HE MAC capabilities
  8995. * information field.
  8996. * 0 - Disable Broadcast TWT support subfield
  8997. * 1 - Enable Broadcast TWT support subfield
  8998. * This attribute is used to configure the testbed device.
  8999. */
  9000. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
  9001. /* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
  9002. * mode for 802.11be MLO capable devices. If the attribute is set to 1,
  9003. * and if the FW supports this capability too, then the STA host
  9004. * advertises this capability to AP over assoc request frame. This
  9005. * attribute will not have any effect on legacy devices with no 802.11be
  9006. * support.
  9007. * 0 - Default behavior
  9008. * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
  9009. * This attribute is used to configure the testbed device.
  9010. */
  9011. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
  9012. /* 8-bit unsigned value to configure the driver to enable/disable the
  9013. * periodic sounding for Tx beamformer functionality. The default
  9014. * behavior uses algorithm to do sounding based on packet stats.
  9015. *
  9016. * 0 - Default behavior.
  9017. * 1 - Enable the periodic sounding for Tx beamformer.
  9018. * This attribute is used for testing purposes.
  9019. */
  9020. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59,
  9021. /* 8-bit unsigned value to configure beamformee SS EHT capability
  9022. * to indicate the maximum number of spatial streams that the STA
  9023. * can receive in an EHT sounding NDP for <= 80 MHz bandwidth.
  9024. * The range of the value is 3 to 7.
  9025. * This attribute is used to configure the testbed device.
  9026. */
  9027. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_80MHZ = 60,
  9028. /* 8-bit unsigned value to configure beamformee SS EHT capability
  9029. * to indicate the maximum number of spatial streams that the STA
  9030. * can receive in an EHT sounding NDP for 160 MHz bandwidth.
  9031. * The range of the value is 3 to 7.
  9032. * This attribute is used to configure the testbed device.
  9033. */
  9034. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_160MHZ = 61,
  9035. /* 8-bit unsigned value to configure beamformee SS EHT capability
  9036. * to indicate the maximum number of spatial streams that the STA
  9037. * can receive in an EHT sounding NDP for 320 MHz bandwidth.
  9038. * The range of the value is 3 to 7.
  9039. * This attribute is used to configure the testbed device.
  9040. */
  9041. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_320MHZ = 62,
  9042. /* 8-bit unsigned value to configure the driver to exclude station
  9043. * profile in Probe Request frame Multi-Link element.
  9044. * 0 - Default behavior, sends the Probe Request frame with station
  9045. * profile data included in the Multi-Link element.
  9046. * 1 - Exclude station profile in Probe Request frame Multi-Link
  9047. * element.
  9048. * This attribute is used to configure the testbed device.
  9049. */
  9050. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EXCLUDE_STA_PROF_IN_PROBE_REQ = 63,
  9051. /* 8-bit unsigned value to configure EHT testbed defaults.
  9052. * This attribute is used to configure the testbed device.
  9053. * 1 - Set the device EHT capabilities to testbed defaults.
  9054. * 0 - Reset the device EHT capabilities to supported config.
  9055. */
  9056. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_EHT_TESTBED_DEFAULTS = 64,
  9057. /* 8-bit unsigned value to indicate the EHT MCS support.
  9058. * Uses enum eht_mcs_config values.
  9059. * This attribute is used to configure the testbed device to
  9060. * allow the advertised hardware capabilities to be downgraded
  9061. * for testing purposes.
  9062. */
  9063. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MCS = 65,
  9064. /* 8-bit unsigned value to configure EHT TB Sounding Feedback
  9065. * Rate Limit capability.
  9066. * This attribute is used to configure the testbed device.
  9067. * 0 - Indicates no maximum supported data rate limitation.
  9068. * 1 - Indicates the maximum supported data rate is the lower of
  9069. * the 1500 Mb/s and the maximum supported data rate.
  9070. */
  9071. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_TB_SOUNDING_FB_RL = 66,
  9072. /* keep last */
  9073. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
  9074. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
  9075. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
  9076. };
  9077. /**
  9078. * enum qca_wlan_twt_operation - Operation of the config TWT request
  9079. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
  9080. * The response for the respective operations can be either synchronous or
  9081. * asynchronous (wherever specified). If synchronous, the response to this
  9082. * operation is obtained in the corresponding vendor command reply to the user
  9083. * space. For the asynchronous case the response is obtained as an event with
  9084. * the same operation type.
  9085. *
  9086. * Drivers shall support either of these modes but not both simultaneously.
  9087. * This support for asynchronous mode is advertised through the flag
  9088. * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
  9089. * the driver shall support synchronous mode.
  9090. *
  9091. * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
  9092. * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9093. * qca_wlan_vendor_attr_twt_setup. Depending upon the
  9094. * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
  9095. * synchronous or asynchronous operation.
  9096. *
  9097. * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
  9098. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9099. * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
  9100. *
  9101. * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
  9102. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9103. * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
  9104. * This terminate can either get triggered by the user space or can as well be
  9105. * a notification from the firmware if it initiates a terminate.
  9106. * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
  9107. * the request from user space can either be a synchronous or asynchronous
  9108. * operation.
  9109. *
  9110. * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
  9111. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9112. * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
  9113. * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
  9114. * this is either a synchronous or asynchronous operation.
  9115. *
  9116. * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
  9117. * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9118. * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
  9119. * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
  9120. * request.
  9121. * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
  9122. * capability, this is either a synchronous or asynchronous operation.
  9123. *
  9124. * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
  9125. * combination of suspend and resume in a single request. Required parameters
  9126. * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
  9127. * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
  9128. * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
  9129. * capability, this is either a synchronous or asynchronous operation.
  9130. *
  9131. * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
  9132. * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
  9133. * session is setup. It's a synchronous operation.
  9134. *
  9135. * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
  9136. * Valid only after the TWT session is setup. It's a synchronous operation.
  9137. *
  9138. * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
  9139. * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
  9140. * operation.
  9141. *
  9142. * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is
  9143. * ready for a new TWT session setup after it issued a twt teardown.
  9144. *
  9145. * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
  9146. * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
  9147. * the enum qca_wlan_vendor_attr_twt_set_param.
  9148. *
  9149. * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
  9150. * related information for example TWT required bit in AP capabilities etc.
  9151. * The reason for the notification is sent using
  9152. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
  9153. */
  9154. enum qca_wlan_twt_operation {
  9155. QCA_WLAN_TWT_SET = 0,
  9156. QCA_WLAN_TWT_GET = 1,
  9157. QCA_WLAN_TWT_TERMINATE = 2,
  9158. QCA_WLAN_TWT_SUSPEND = 3,
  9159. QCA_WLAN_TWT_RESUME = 4,
  9160. QCA_WLAN_TWT_NUDGE = 5,
  9161. QCA_WLAN_TWT_GET_STATS = 6,
  9162. QCA_WLAN_TWT_CLEAR_STATS = 7,
  9163. QCA_WLAN_TWT_GET_CAPABILITIES = 8,
  9164. QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
  9165. QCA_WLAN_TWT_SET_PARAM = 10,
  9166. QCA_WLAN_TWT_NOTIFY = 11,
  9167. };
  9168. /* enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
  9169. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT
  9170. *
  9171. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION:
  9172. * u8 attribute. Specify the TWT operation of this request. Possible values
  9173. * are defined in enum qca_wlan_twt_operation. The parameters for the
  9174. * respective operation is specified through
  9175. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
  9176. *
  9177. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
  9178. * parameters configured for TWT. These parameters are represented by
  9179. * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
  9180. * enum qca_wlan_vendor_attr_twt_set_param or
  9181. * enum qca_wlan_vendor_attr_twt_stats based on the operation.
  9182. *
  9183. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
  9184. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
  9185. * The values used by this attribute are defined in
  9186. * enum qca_wlan_vendor_twt_status.
  9187. */
  9188. enum qca_wlan_vendor_attr_config_twt {
  9189. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
  9190. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
  9191. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
  9192. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
  9193. /* keep last */
  9194. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
  9195. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
  9196. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
  9197. };
  9198. /**
  9199. * qca_wlan_twt_setup_state: Represents the TWT session states.
  9200. *
  9201. * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
  9202. * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
  9203. * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
  9204. */
  9205. enum qca_wlan_twt_setup_state {
  9206. QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
  9207. QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
  9208. QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
  9209. };
  9210. /**
  9211. * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
  9212. * TWT (Target Wake Time) setup request. These attributes are sent as part of
  9213. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
  9214. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
  9215. * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9216. *
  9217. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
  9218. * Disable (flag attribute not present) - Individual TWT
  9219. * Enable (flag attribute present) - Broadcast TWT.
  9220. * Individual means the session is between the STA and the AP.
  9221. * This session is established using a separate negotiation between
  9222. * STA and AP.
  9223. * Broadcast means the session is across multiple STAs and an AP. The
  9224. * configuration parameters are announced in Beacon frames by the AP.
  9225. * This is used in
  9226. * 1. TWT SET Request and Response
  9227. * 2. TWT GET Response
  9228. *
  9229. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
  9230. * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
  9231. * specify the TWT request type. This is used in TWT SET operation.
  9232. *
  9233. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
  9234. * Enable (flag attribute present) - TWT with trigger support.
  9235. * Disable (flag attribute not present) - TWT without trigger support.
  9236. * Trigger means the AP will send the trigger frame to allow STA to send data.
  9237. * Without trigger, the STA will wait for the MU EDCA timer before
  9238. * transmitting the data.
  9239. * This is used in
  9240. * 1. TWT SET Request and Response
  9241. * 2. TWT GET Response
  9242. *
  9243. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
  9244. * 0 - Announced TWT - In this mode, STA may skip few service periods to
  9245. * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
  9246. * NULL frame to AP.
  9247. * 1 - Unannounced TWT - The STA will wakeup during every SP.
  9248. * This is a required parameter for
  9249. * 1. TWT SET Request and Response
  9250. * 2. TWT GET Response
  9251. *
  9252. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
  9253. * Flow ID is the unique identifier for each TWT session.
  9254. * If not provided then dialog ID will be set to zero.
  9255. * This is an optional parameter for
  9256. * 1. TWT SET Request and Response
  9257. * 2. TWT GET Request and Response
  9258. * 3. TWT TERMINATE Request and Response
  9259. * 4. TWT SUSPEND Request and Response
  9260. * Flow Id values from 0 to 254 represent a single TWT session
  9261. * Flow ID value of 255 represents all twt sessions for the following
  9262. * 1. TWT TERMINATE Request and Response
  9263. * 2. TWT SUSPEND Request and Response
  9264. * 4. TWT CLEAR STATISTICS request
  9265. * 5. TWT GET STATISTICS request and response
  9266. * If an invalid dialog id is provided, status
  9267. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  9268. *
  9269. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
  9270. * This attribute (exp) is used along with the mantissa to derive the
  9271. * wake interval using the following formula:
  9272. * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
  9273. * Wake interval is the interval between 2 successive SP.
  9274. * This is a required parameter for
  9275. * 1. TWT SET Request and Response
  9276. * 2. TWT GET Response
  9277. *
  9278. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
  9279. * Enable (flag attribute present) - Protection required.
  9280. * Disable (flag attribute not present) - Protection not required.
  9281. * If protection is enabled, then the AP will use protection
  9282. * mechanism using RTS/CTS to self to reserve the airtime.
  9283. * This is used in
  9284. * 1. TWT SET Request and Response
  9285. * 2. TWT GET Response
  9286. *
  9287. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
  9288. * This attribute is used as the SP offset which is the offset from
  9289. * TSF after which the wake happens. The units are in microseconds. If
  9290. * this attribute is not provided, then the value will be set to zero.
  9291. * This is an optional parameter for
  9292. * 1. TWT SET Request and Response
  9293. * 2. TWT GET Response
  9294. *
  9295. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
  9296. * This is the duration of the service period. This is specified as
  9297. * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
  9298. * This is a required parameter for
  9299. * 1. TWT SET Request and Response
  9300. * 2. TWT GET Response
  9301. *
  9302. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
  9303. * This attribute is used to configure wake interval mantissa.
  9304. * The units are in TU.
  9305. * This is a required parameter for
  9306. * 1. TWT SET Request and Response
  9307. * 2. TWT GET Response
  9308. *
  9309. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
  9310. * This field is applicable for TWT response only.
  9311. * This contains status values in enum qca_wlan_vendor_twt_status
  9312. * and is passed to the userspace. This is used in TWT SET operation.
  9313. * This is a required parameter for
  9314. * 1. TWT SET Response
  9315. * 2. TWT TERMINATE Response
  9316. * 3. TWT SUSPEND Response
  9317. * 4. TWT RESUME Response
  9318. * 5. TWT NUDGE Response
  9319. *
  9320. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
  9321. * This field is applicable for TWT response only.
  9322. * This field contains response type from the TWT responder and is
  9323. * passed to the userspace. The values for this field are defined in
  9324. * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
  9325. * response.
  9326. *
  9327. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
  9328. * In TWT setup command this field contains absolute TSF that will
  9329. * be used by TWT requester during setup.
  9330. * In TWT response this field contains absolute TSF value of the
  9331. * wake time received from the TWT responder and is passed to
  9332. * the userspace.
  9333. * This is an optional parameter for
  9334. * 1. TWT SET Request
  9335. * This is a required parameter for
  9336. * 1. TWT SET Response
  9337. * 2. TWT GET Response
  9338. *
  9339. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
  9340. * Enable (flag attribute present) - Indicates that the TWT responder
  9341. * supports reception of TWT information frame from the TWT requestor.
  9342. * Disable (flag attribute not present) - Indicates that the responder
  9343. * doesn't support reception of TWT information frame from requestor.
  9344. * This is used in
  9345. * 1. TWT SET Response
  9346. * 2. TWT GET Response
  9347. *
  9348. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
  9349. * Represents the MAC address of the peer for which the TWT session
  9350. * is being configured. This is used in AP mode to represent the respective
  9351. * client
  9352. * In AP mode, this is a required parameter in response for
  9353. * 1. TWT SET
  9354. * 2. TWT GET
  9355. * 3. TWT TERMINATE
  9356. * 4. TWT SUSPEND
  9357. * In STA mode, this is an optional parameter in request and response for
  9358. * the above four TWT operations.
  9359. * In AP mode, this is a required parameter in request for
  9360. * 1. TWT GET
  9361. * 2. TWT TERMINATE
  9362. *
  9363. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
  9364. * Minimum tolerance limit of wake interval parameter in microseconds.
  9365. *
  9366. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
  9367. * Maximum tolerance limit of wake interval parameter in microseconds.
  9368. *
  9369. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
  9370. * Minimum tolerance limit of wake duration parameter in microseconds.
  9371. *
  9372. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
  9373. * Maximum tolerance limit of wake duration parameter in microseconds.
  9374. *
  9375. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
  9376. * TWT state for the given dialog id. The values for this are represented
  9377. * by enum qca_wlan_twt_setup_state.
  9378. * This is obtained through TWT GET operation.
  9379. *
  9380. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
  9381. * This attribute is used to configure wake interval mantissa.
  9382. * The unit is microseconds. This attribute, when specified, takes
  9383. * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
  9384. * This parameter is used for
  9385. * 1. TWT SET Request and Response
  9386. * 2. TWT GET Response
  9387. *
  9388. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
  9389. * This attribute is used to configure Broadcast TWT ID.
  9390. * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
  9391. * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
  9392. * This parameter is used for
  9393. * 1. TWT SET Request
  9394. * 2. TWT TERMINATE Request
  9395. *
  9396. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
  9397. * This attribute is used to configure Broadcast TWT recommendation.
  9398. * The Broadcast TWT Recommendation subfield contains a value that indicates
  9399. * recommendations on the types of frames that are transmitted by TWT
  9400. * scheduled STAs and scheduling AP during the broadcast TWT SP.
  9401. * The allowed values are 0 - 3.
  9402. * This parameter is used for
  9403. * 1. TWT SET Request
  9404. *
  9405. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
  9406. * This attribute is used to configure Broadcast TWT Persistence.
  9407. * The Broadcast TWT Persistence subfield indicates the number of
  9408. * TBTTs during which the Broadcast TWT SPs corresponding to this
  9409. * broadcast TWT Parameter set are present. The number of beacon intervals
  9410. * during which the Broadcast TWT SPs are present is equal to the value in the
  9411. * Broadcast TWT Persistence subfield plus 1 except that the value 255
  9412. * indicates that the Broadcast TWT SPs are present until explicitly terminated.
  9413. * This parameter is used for
  9414. * 1. TWT SET Request
  9415. *
  9416. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
  9417. * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
  9418. * from TWT response frame.
  9419. * This parameter is used for
  9420. * 1. TWT SET Response
  9421. * 2. TWT GET Response
  9422. *
  9423. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
  9424. * This attribute is used to configure the announce timeout value (in us) in
  9425. * firmware. This timeout value is only applicable for announced TWT. If
  9426. * timeout value is non-zero then firmware waits upto timeout value to use
  9427. * data frame as announcement frame. If timeout value is 0 then firmware sends
  9428. * explicit QoS NULL frame as announcement frame on SP start. Default value in
  9429. * firmware is 0.
  9430. * This parameter is used for
  9431. * 1. TWT SET Request
  9432. */
  9433. enum qca_wlan_vendor_attr_twt_setup {
  9434. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
  9435. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
  9436. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
  9437. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
  9438. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
  9439. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
  9440. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
  9441. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
  9442. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
  9443. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
  9444. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
  9445. /* TWT Response only attributes */
  9446. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
  9447. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
  9448. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
  9449. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
  9450. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
  9451. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
  9452. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
  9453. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
  9454. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
  9455. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
  9456. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
  9457. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
  9458. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
  9459. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
  9460. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
  9461. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
  9462. /* keep last */
  9463. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
  9464. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
  9465. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
  9466. };
  9467. /**
  9468. * enum qca_wlan_vendor_twt_status - Represents the status of the requested
  9469. * TWT operation
  9470. *
  9471. * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
  9472. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
  9473. * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
  9474. * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
  9475. * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
  9476. * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
  9477. * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
  9478. * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
  9479. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
  9480. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
  9481. * request/response frame
  9482. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
  9483. * frame
  9484. * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
  9485. * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
  9486. * unknown reason
  9487. * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
  9488. * suspend state
  9489. * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
  9490. * invalid IE in the received TWT frame
  9491. * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
  9492. * the responder are not in the specified range
  9493. * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
  9494. * session due to request from the responder. Used on the TWT_TERMINATE
  9495. * notification from the firmware.
  9496. * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
  9497. * session due to roaming. Used on the TWT_TERMINATE notification from the
  9498. * firmware.
  9499. * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
  9500. * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel)
  9501. * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
  9502. * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
  9503. * request due to roaming in progress.
  9504. * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
  9505. * setup request due to channel switch in progress.
  9506. * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
  9507. * request due to scan in progress.
  9508. * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
  9509. * terminate an existing TWT session on power save exit request from userspace.
  9510. * Used on the TWT_TERMINATE notification from the driver/firmware.
  9511. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
  9512. * required bit in its capabilities.
  9513. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
  9514. * the TWT required bit(1->0) in its capabilities.
  9515. */
  9516. enum qca_wlan_vendor_twt_status {
  9517. QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
  9518. QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
  9519. QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
  9520. QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
  9521. QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
  9522. QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
  9523. QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
  9524. QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
  9525. QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
  9526. QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
  9527. QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
  9528. QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
  9529. QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
  9530. QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
  9531. QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
  9532. QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
  9533. QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
  9534. QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
  9535. QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
  9536. QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
  9537. QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
  9538. QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
  9539. QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
  9540. QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
  9541. QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
  9542. };
  9543. /**
  9544. * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
  9545. * TWT (Target Wake Time) resume request. These attributes are sent as part of
  9546. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
  9547. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
  9548. * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9549. *
  9550. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
  9551. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
  9552. * These attributes are used as the SP offset which is the offset from TSF after
  9553. * which the wake happens. The units are in microseconds. Please note that
  9554. * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
  9555. * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
  9556. * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
  9557. * will be set to zero.
  9558. *
  9559. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
  9560. * This attribute represents the next TWT subfield size.
  9561. * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
  9562. * and 4 for 64 bits.
  9563. *
  9564. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
  9565. * Flow ID is the unique identifier for each TWT session. This attribute
  9566. * represents the respective TWT session to resume.
  9567. * Flow Id values from 0 to 254 represent a single TWT session
  9568. * Flow ID value of 255 represents all TWT sessions.
  9569. * If an invalid dialog id is provided, status
  9570. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  9571. *
  9572. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
  9573. * Represents the MAC address of the peer to which TWT Resume is
  9574. * being sent. This is used in AP mode to represent the respective
  9575. * client and is a required parameter. In STA mode, this is an optional
  9576. * parameter
  9577. *
  9578. */
  9579. enum qca_wlan_vendor_attr_twt_resume {
  9580. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
  9581. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
  9582. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
  9583. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
  9584. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
  9585. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
  9586. /* keep last */
  9587. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
  9588. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
  9589. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
  9590. };
  9591. /**
  9592. * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
  9593. * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
  9594. * and resume in a single request. These attributes are sent as part of
  9595. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9596. *
  9597. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
  9598. * Flow ID is the unique identifier for each TWT session. This attribute
  9599. * represents the respective TWT session to suspend and resume.
  9600. *
  9601. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
  9602. * Flow ID is the unique identifier for each TWT session. This attribute
  9603. * represents the respective TWT session to suspend and resume.
  9604. * Flow Id values from 0 to 254 represent a single TWT session
  9605. * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
  9606. * and response.
  9607. * If an invalid dialog id is provided, status
  9608. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  9609. *
  9610. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
  9611. * This attribute is used as the SP offset which is the offset from
  9612. * TSF after which the wake happens. The units are in microseconds.
  9613. *
  9614. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
  9615. * This attribute represents the next TWT subfield size.
  9616. * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
  9617. * and 4 for 64 bits.
  9618. *
  9619. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
  9620. * Represents the MAC address of the peer to which TWT Suspend and Resume is
  9621. * being sent. This is used in AP mode to represent the respective
  9622. * client and is a required parameter. In STA mode, this is an optional
  9623. * parameter.
  9624. *
  9625. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
  9626. * This field contains absolute TSF value of the time at which twt
  9627. * sesion will be resumed.
  9628. *
  9629. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32)
  9630. * This field will be used when device supports Flexible TWT.
  9631. * This field contains an offset value by which to shift the starting time
  9632. * of the next service period. The value of offset can be negative or positive.
  9633. * If provided, this attribute will override
  9634. * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds.
  9635. */
  9636. enum qca_wlan_vendor_attr_twt_nudge {
  9637. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
  9638. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
  9639. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
  9640. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
  9641. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
  9642. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
  9643. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6,
  9644. /* keep last */
  9645. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
  9646. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
  9647. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
  9648. };
  9649. /**
  9650. * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
  9651. * TWT (Target Wake Time) get statistics and clear statistics request.
  9652. * These attributes are sent as part of
  9653. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9654. *
  9655. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
  9656. * Flow ID is the unique identifier for each TWT session. This attribute
  9657. * represents the respective TWT session for get and clear TWT statistics.
  9658. * Flow Id values from 0 to 254 represent a single TWT session
  9659. * Flow ID value of 255 represents all TWT sessions in
  9660. * 1) TWT GET STATISTICS request and response
  9661. * 2) TWT CLEAR STATISTICS request
  9662. *
  9663. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
  9664. * Represents the MAC address of the peer for which TWT Statistics
  9665. * is required.
  9666. * In AP mode this is used to represent the respective
  9667. * client and is a required parameter for
  9668. * 1) TWT GET STATISTICS request and response
  9669. * 2) TWT CLEAR STATISTICS request and response
  9670. * In STA mode, this is an optional parameter.
  9671. *
  9672. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
  9673. * This is the duration of the service period in microseconds.
  9674. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9675. *
  9676. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
  9677. * Average of actual wake duration observed so far. Unit is microseconds.
  9678. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9679. *
  9680. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
  9681. * Number of TWT service period elapsed so far.
  9682. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9683. *
  9684. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
  9685. * This is the minimum value of wake duration observed across
  9686. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
  9687. * microseconds.
  9688. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9689. *
  9690. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
  9691. * This is the maximum value of wake duration observed across
  9692. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
  9693. * microseconds.
  9694. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9695. *
  9696. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
  9697. * Average number of MPDU's transmitted successfully across
  9698. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  9699. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9700. *
  9701. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
  9702. * Average number of MPDU's received successfully across
  9703. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  9704. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9705. *
  9706. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
  9707. * Average number of bytes transmitted successfully across
  9708. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  9709. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9710. *
  9711. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET SIZE: Required (u32)
  9712. * Average number of bytes received successfully across
  9713. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  9714. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9715. *
  9716. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
  9717. * Status of the TWT GET STATISTICS request.
  9718. * This contains status values in enum qca_wlan_vendor_twt_status
  9719. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9720. */
  9721. enum qca_wlan_vendor_attr_twt_stats {
  9722. QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
  9723. QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
  9724. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
  9725. QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
  9726. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
  9727. QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
  9728. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
  9729. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
  9730. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
  9731. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
  9732. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
  9733. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
  9734. QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
  9735. /* keep last */
  9736. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
  9737. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
  9738. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
  9739. };
  9740. /**
  9741. * qca_wlan_twt_get_capa - Represents the Bitmap of TWT capabilities
  9742. * supported by the device and peer.
  9743. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
  9744. *
  9745. * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
  9746. * TWT non-scheduling STA. This capability is advertised in the HE
  9747. * capability/Extended capabilities information element in the
  9748. * Association request frame by the device.
  9749. *
  9750. * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised
  9751. * by the TWT scheduling AP. This capability is advertised in the extended
  9752. * capabilities/HE capabilities information element.
  9753. *
  9754. * @QCA_WLAN_TWT_CAPA_BROADCAST: On requestor side, this indicates support
  9755. * for the broadcast TWT functionality. On responder side, this indicates
  9756. * support for the role of broadcast TWT scheduling functionality. This
  9757. * capability is advertised in the HE capabilities information element.
  9758. *
  9759. * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: Device supports flexible TWT schedule.
  9760. * This capability is advertised in the HE capabilities information element.
  9761. *
  9762. * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
  9763. * that it mandates the associated HE STAs to support TWT. This capability is
  9764. * advertised by AP in the HE Operation Parameters field of the HE operation
  9765. * information element.
  9766. */
  9767. enum qca_wlan_twt_capa {
  9768. QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
  9769. QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
  9770. QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
  9771. QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3),
  9772. QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4),
  9773. };
  9774. /**
  9775. * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT
  9776. * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
  9777. * operation.
  9778. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
  9779. * Represents the MAC address of the peer for which the TWT capabilities
  9780. * are being queried. This is used in AP mode to represent the respective
  9781. * client. In STA mode, this is an optional parameter.
  9782. *
  9783. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
  9784. * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
  9785. * enum qca_wlan_twt_capa.
  9786. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
  9787. * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
  9788. * enum qca_wlan_twt_capa.
  9789. */
  9790. enum qca_wlan_vendor_attr_twt_capability {
  9791. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
  9792. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
  9793. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
  9794. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
  9795. /* keep last */
  9796. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
  9797. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
  9798. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
  9799. };
  9800. /**
  9801. * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
  9802. * TWT (Target Wake Time) related parameters. It is used when
  9803. * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
  9804. * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9805. *
  9806. * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
  9807. * This attribute configures AC parameters to be used for all TWT
  9808. * sessions in AP mode.
  9809. * Uses the enum qca_wlan_ac_type values.
  9810. */
  9811. enum qca_wlan_vendor_attr_twt_set_param {
  9812. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
  9813. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
  9814. /* keep last */
  9815. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
  9816. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
  9817. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
  9818. };
  9819. /**
  9820. * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
  9821. * the TWT responder
  9822. *
  9823. * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
  9824. * parameters that are different from TWT requesting STA suggested
  9825. * or demanded TWT parameters
  9826. * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
  9827. * parameters that are different from TWT requesting STA TWT suggested
  9828. * or demanded parameters
  9829. * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
  9830. * setup
  9831. * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
  9832. * setup.
  9833. */
  9834. enum qca_wlan_vendor_twt_setup_resp_type {
  9835. QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
  9836. QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
  9837. QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
  9838. QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
  9839. };
  9840. /**
  9841. * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
  9842. * Represents the setup type being requested for TWT.
  9843. * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
  9844. * parameters but relying on AP to fill the parameters during the negotiation.
  9845. * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
  9846. * values which the AP may accept or AP may provide alternative parameters
  9847. * which the STA may accept.
  9848. * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
  9849. * alternate parameters than the requested ones.
  9850. */
  9851. enum qca_wlan_vendor_twt_setup_req_type {
  9852. QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
  9853. QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
  9854. QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
  9855. };
  9856. /**
  9857. * enum qca_wlan_throughput_level - Current throughput level
  9858. *
  9859. * Indicates the current level of throughput calculated by driver. The driver
  9860. * may choose different thresholds to decide whether the throughput level is
  9861. * low or medium or high based on variety of parameters like physical link
  9862. * capacity of current connection, number of pakcets being dispatched per
  9863. * second etc. The throughput level events might not be consistent with the
  9864. * actual current throughput value being observed.
  9865. *
  9866. * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
  9867. * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
  9868. * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
  9869. */
  9870. enum qca_wlan_throughput_level {
  9871. QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
  9872. QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
  9873. QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
  9874. };
  9875. /**
  9876. * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
  9877. * report throughput changes from driver to user space. enum values are used
  9878. * for NL attributes sent with
  9879. * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
  9880. */
  9881. enum qca_wlan_vendor_attr_throughput_change {
  9882. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
  9883. /*
  9884. * Indicates the direction of throughput in which the change is being
  9885. * reported. u8 attribute. Value is 0 for TX and 1 for RX.
  9886. */
  9887. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
  9888. /*
  9889. * Indicates the newly observed throughput level.
  9890. * qca_wlan_throughput_level describes the possible range of values.
  9891. * u8 attribute.
  9892. */
  9893. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
  9894. /*
  9895. * Indicates the driver's guidance on the new value to be set to
  9896. * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver
  9897. * may optionally include this attribute.
  9898. */
  9899. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
  9900. /*
  9901. * Indicates the driver's guidance on the new value to be set to
  9902. * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible
  9903. * values are from -31 to 31. Driver may optionally include this
  9904. * attribute.
  9905. */
  9906. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
  9907. /*
  9908. * Indicates the driver's guidance on the new value to be set to
  9909. * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may
  9910. * optionally include this attribute.
  9911. */
  9912. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
  9913. /* keep last */
  9914. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
  9915. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
  9916. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
  9917. };
  9918. /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
  9919. * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
  9920. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  9921. */
  9922. enum qca_wlan_nan_ext_subcmd_type {
  9923. /* Subcmd of type NAN Enable Request */
  9924. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
  9925. /* Subcmd of type NAN Disable Request */
  9926. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
  9927. };
  9928. /**
  9929. * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
  9930. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  9931. */
  9932. enum qca_wlan_vendor_attr_nan_params {
  9933. QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
  9934. /* Carries NAN command for firmware component. Every vendor command
  9935. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
  9936. * payload containing the NAN command. NLA_BINARY attribute.
  9937. */
  9938. QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
  9939. /* Indicates the type of NAN command sent with
  9940. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
  9941. * describes the possible range of values. This attribute is mandatory
  9942. * if the command being issued is either
  9943. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
  9944. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
  9945. */
  9946. QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
  9947. /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
  9948. * band. This attribute is mandatory when command type is
  9949. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
  9950. */
  9951. QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
  9952. /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
  9953. * band. This attribute is optional and should be included when command
  9954. * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
  9955. * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
  9956. */
  9957. QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
  9958. /* keep last */
  9959. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
  9960. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
  9961. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
  9962. };
  9963. /**
  9964. * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
  9965. * transport modes and is used by attribute
  9966. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as part of vendor command
  9967. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
  9968. * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use RELAY FS to send CFR data.
  9969. * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
  9970. * data. The data shall be encapsulated within
  9971. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with vendor sub command
  9972. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
  9973. */
  9974. enum qca_wlan_vendor_cfr_data_transport_modes {
  9975. QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
  9976. QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
  9977. };
  9978. /**
  9979. * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
  9980. * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
  9981. * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
  9982. * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QOS Null frame.
  9983. * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QOS Null frame
  9984. * with phase
  9985. * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using probe response frame
  9986. */
  9987. enum qca_wlan_vendor_cfr_method {
  9988. QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
  9989. QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
  9990. QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
  9991. };
  9992. /**
  9993. * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
  9994. * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
  9995. * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
  9996. * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
  9997. * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
  9998. * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
  9999. * is provided by one or more of below attributes:
  10000. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
  10001. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
  10002. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
  10003. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
  10004. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
  10005. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
  10006. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
  10007. * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
  10008. * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
  10009. */
  10010. enum qca_wlan_vendor_cfr_capture_type {
  10011. QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
  10012. QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
  10013. QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
  10014. QCA_WLAN_VENDOR_CFR_TA_RA = 3,
  10015. QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
  10016. QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
  10017. };
  10018. /**
  10019. * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
  10020. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
  10021. * Channel Frequency Response capture parameters and enable periodic CFR
  10022. * capture.
  10023. *
  10024. * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
  10025. * MAC address of peer. This is for CFR version 1 only.
  10026. *
  10027. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
  10028. * Enable peer CFR Capture. This attribute is mandatory to
  10029. * enable peer CFR capture. If this attribute is not present,
  10030. * peer CFR capture is disabled.
  10031. *
  10032. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
  10033. * BW of measurement, attribute uses the values in enum nl80211_chan_width
  10034. * Supported values: 20, 40, 80, 80+80, 160.
  10035. * Note that all targets may not support all bandwidths.
  10036. * This attribute is mandatory for version 1 if attribute
  10037. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  10038. *
  10039. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
  10040. * Periodicity of CFR measurement in msec.
  10041. * Periodicity should be a multiple of Base timer.
  10042. * Current Base timer value supported is 10 msecs (default).
  10043. * 0 for one shot capture.
  10044. * This attribute is mandatory for version 1 if attribute
  10045. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  10046. *
  10047. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
  10048. * Method used to capture Channel Frequency Response.
  10049. * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
  10050. * This attribute is mandatory for version 1 if attribute
  10051. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  10052. *
  10053. * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
  10054. * Enable periodic CFR capture.
  10055. * This attribute is mandatory for version 1 to enable Periodic CFR capture.
  10056. * If this attribute is not present, periodic CFR capture is disabled.
  10057. *
  10058. * @QCA_WLAN_VENDOR_ATTR_CFR_VERSION: Optional (u8)
  10059. * Value is 1 or 2 since there are two versions of CFR capture. Two versions
  10060. * can't be enabled at same time. This attribute is mandatory if target
  10061. * support both versions and use one of them.
  10062. *
  10063. * @QCA_WLAN_VENDOR_ATTR_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
  10064. * This attribute is mandatory for version 2 if
  10065. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
  10066. * Bits 15:0 Bit fields indicating which group to be enabled.
  10067. * Bits 31:16 Reserved for future use.
  10068. *
  10069. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
  10070. * CFR capture duration in microsecond. This attribute is mandatory for
  10071. * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
  10072. *
  10073. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
  10074. * CFR capture interval in microsecond. This attribute is mandatory for
  10075. * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
  10076. *
  10077. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
  10078. * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
  10079. * This attribute is mandatory for version 2.
  10080. *
  10081. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
  10082. * Bit fields indicating which user in the current UL MU
  10083. * transmissions are enabled for CFR capture. Bits 36 to 0 indicating
  10084. * user indexes for 37 users in a UL MU transmission. If bit 0 is set,
  10085. * then the CFR capture will happen for user index 0 in the current
  10086. * UL MU transmission. If bits 0,2 are set, then CFR capture for UL MU
  10087. * TX corresponds to user indices 0 and 2. Bits 63:37 Reserved for future use.
  10088. * This is for CFR version 2 only.
  10089. *
  10090. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
  10091. * Indicates the number of consecutive Rx packets to be skipped
  10092. * before CFR capture is enabled again.
  10093. * This is for CFR version 2 only.
  10094. *
  10095. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
  10096. * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
  10097. *
  10098. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
  10099. * the following GROUP attributes:
  10100. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
  10101. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
  10102. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
  10103. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
  10104. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
  10105. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
  10106. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
  10107. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
  10108. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
  10109. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
  10110. *
  10111. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
  10112. * Target support multiple groups for some configurations. Group number could be
  10113. * any value between 0 and 15. This is for CFR version 2 only.
  10114. *
  10115. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
  10116. * Transmitter address which is used to filter packets, this MAC address takes
  10117. * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK.
  10118. * This is for CFR version 2 only.
  10119. *
  10120. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
  10121. * Receiver address which is used to filter packets, this MAC address takes
  10122. * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK.
  10123. * This is for CFR version 2 only.
  10124. *
  10125. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
  10126. * Mask of transmitter address which is used to filter packets.
  10127. * This is for CFR version 2 only.
  10128. *
  10129. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
  10130. * Mask of receiver address which is used to filter packets.
  10131. * This is for CFR version 2 only.
  10132. *
  10133. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
  10134. * Indicates packets with a specific NSS will be filtered for CFR capture.
  10135. * This is for CFR version 2 only. This is a bitmask. Bits 7:0, CFR capture will
  10136. * be done for packets matching the NSS specified within this bitmask.
  10137. * Bits 31:8 Reserved for future use. Bits 7:0 map to NSS:
  10138. * bit 0 : NSS 1
  10139. * bit 1 : NSS 2
  10140. * ...
  10141. * bit 7 : NSS 8
  10142. *
  10143. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
  10144. * Indicates packets with a specific BW will be filtered for CFR capture.
  10145. * This is for CFR version 2 only. This is a bitmask. Bits 4:0, CFR capture
  10146. * will be done for packets matching the bandwidths specified within this
  10147. * bitmask. Bits 31:5 Reserved for future use. Bits 4:0 map to bandwidth
  10148. * numerated in enum nl80211_band (although not all bands may be supported
  10149. * by a given device).
  10150. *
  10151. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
  10152. * Management packets matching the subtype filter categories will be
  10153. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  10154. * represents the corresponding mgmt subtype value as per
  10155. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  10156. * For example, beacon frame control type is 8, its value is 1<<8 = 0x100.
  10157. * This is for CFR version 2 only
  10158. *
  10159. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
  10160. * Control packets matching the subtype filter categories will be
  10161. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  10162. * represents the corresponding control subtype value as per
  10163. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  10164. * This is for CFR version 2 only.
  10165. *
  10166. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
  10167. * Data packets matching the subtype filter categories will be
  10168. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  10169. * represents the corresponding data subtype value as per
  10170. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  10171. * This is for CFR version 2 only.
  10172. *
  10173. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
  10174. * Userspace can use this attribute to specify the driver about which transport
  10175. * mode shall be used by the driver to send CFR data to userspace. Uses values
  10176. * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
  10177. * not present, driver shall choose the default transport mechanism which is
  10178. * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
  10179. *
  10180. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
  10181. * Userspace can use this attribute to specify the nl port id of the application
  10182. * which receives the CFR data and processes it further so that the drivers can
  10183. * unicast the NL events to a specific application. Optionally included when
  10184. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
  10185. * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
  10186. * shall multicast the netlink events when this attribute is not included.
  10187. *
  10188. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
  10189. * This attribute will be used by the driver to encapsulate and send CFR data
  10190. * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
  10191. * asynchronous event when the driver is configured to send CFR data using NL
  10192. * events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS
  10193. *
  10194. */
  10195. enum qca_wlan_vendor_peer_cfr_capture_attr {
  10196. QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
  10197. QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
  10198. QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
  10199. QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
  10200. QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
  10201. QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
  10202. QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
  10203. QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
  10204. QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
  10205. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
  10206. QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
  10207. QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
  10208. QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
  10209. QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
  10210. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
  10211. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
  10212. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
  10213. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
  10214. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
  10215. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
  10216. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
  10217. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
  10218. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
  10219. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
  10220. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
  10221. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
  10222. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
  10223. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
  10224. QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
  10225. /* Keep last */
  10226. QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
  10227. QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
  10228. QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
  10229. };
  10230. /**
  10231. * enum qca_coex_config_profiles - This enum defines different types of
  10232. * traffic streams that can be prioritized one over the other during coex
  10233. * scenarios.
  10234. * The types defined in this enum are categorized in the below manner.
  10235. * 0 - 31 values corresponds to WLAN
  10236. * 32 - 63 values corresponds to BT
  10237. * 64 - 95 values corresponds to Zigbee
  10238. * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
  10239. * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
  10240. * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
  10241. * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
  10242. * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
  10243. * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
  10244. * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
  10245. * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
  10246. * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
  10247. * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
  10248. * @QCA_BT_A2DP: Prioritize BT A2DP
  10249. * @QCA_BT_BLE: Prioritize BT BLE
  10250. * @QCA_BT_SCO: Prioritize BT SCO
  10251. * @QCA_ZB_LOW: Prioritize Zigbee Low
  10252. * @QCA_ZB_HIGH: Prioritize Zigbee High
  10253. */
  10254. enum qca_coex_config_profiles {
  10255. /* 0 - 31 corresponds to WLAN */
  10256. QCA_WIFI_STA_DISCOVERY = 0,
  10257. QCA_WIFI_STA_CONNECTION = 1,
  10258. QCA_WIFI_STA_CLASS_3_MGMT = 2,
  10259. QCA_WIFI_STA_DATA = 3,
  10260. QCA_WIFI_STA_ALL = 4,
  10261. QCA_WIFI_SAP_DISCOVERY = 5,
  10262. QCA_WIFI_SAP_CONNECTION = 6,
  10263. QCA_WIFI_SAP_CLASS_3_MGMT = 7,
  10264. QCA_WIFI_SAP_DATA = 8,
  10265. QCA_WIFI_SAP_ALL = 9,
  10266. QCA_WIFI_CASE_MAX = 31,
  10267. /* 32 - 63 corresponds to BT */
  10268. QCA_BT_A2DP = 32,
  10269. QCA_BT_BLE = 33,
  10270. QCA_BT_SCO = 34,
  10271. QCA_BT_CASE_MAX = 63,
  10272. /* 64 - 95 corresponds to Zigbee */
  10273. QCA_ZB_LOW = 64,
  10274. QCA_ZB_HIGH = 65,
  10275. QCA_ZB_CASE_MAX = 95,
  10276. /* 0xff is default value if the u8 profile value is not set. */
  10277. QCA_PROFILE_DEFAULT_VALUE = 255
  10278. };
  10279. /**
  10280. * enum qca_vendor_attr_coex_config_types - Coex configurations types.
  10281. * This enum defines the valid set of values of coex configuration types. These
  10282. * values may used by attribute
  10283. * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
  10284. *
  10285. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
  10286. * weights to default values.
  10287. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
  10288. * weights with configurability value.
  10289. */
  10290. enum qca_vendor_attr_coex_config_types {
  10291. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
  10292. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
  10293. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
  10294. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX
  10295. };
  10296. /**
  10297. * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
  10298. * attributes
  10299. * Attributes for data used by
  10300. * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
  10301. *
  10302. * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
  10303. * Indicate config type.
  10304. * the config types are 32-bit values from qca_vendor_attr_coex_config_types
  10305. *
  10306. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
  10307. * Indicate the Priority 1 profiles.
  10308. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10309. * In same priority level, maximum to 4 profiles can be set here.
  10310. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
  10311. * Indicate the Priority 2 profiles.
  10312. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10313. * In same priority level, maximum to 4 profiles can be set here.
  10314. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
  10315. * Indicate the Priority 3 profiles.
  10316. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10317. * In same priority level, maximum to 4 profiles can be set here.
  10318. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
  10319. * Indicate the Priority 4 profiles.
  10320. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10321. * In same priority level, maximum to 4 profiles can be set here.
  10322. * NOTE:
  10323. * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
  10324. * arrangement:
  10325. * 1: In the same u32 attribute(priority x), the profiles enum values own
  10326. * same priority level.
  10327. * 2: 0xff is default value if the u8 profile value is not set.
  10328. * 3: max to 4 rules/profiles in same priority level.
  10329. * 4: max to 4 priority level (priority 1 - priority 4)
  10330. * 5: one priority level only supports one scenario from WLAN/BT/ZB,
  10331. * hybrid rules not support.
  10332. * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
  10333. * remain blank to reset all parameters.
  10334. * For example:
  10335. *
  10336. * If the attributes as follow:
  10337. * priority 1:
  10338. * ------------------------------------
  10339. * | 0xff | 0 | 1 | 2 |
  10340. * ------------------------------------
  10341. * priority 2:
  10342. * -------------------------------------
  10343. * | 0xff | 0xff | 0xff | 32 |
  10344. * -------------------------------------
  10345. * priority 3:
  10346. * -------------------------------------
  10347. * | 0xff | 0xff | 0xff | 65 |
  10348. * -------------------------------------
  10349. * then it means:
  10350. * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  10351. * owns same priority level.
  10352. * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  10353. * has priority over BT_A2DP and ZB_HIGH.
  10354. * 3: BT_A2DP has priority over ZB_HIGH.
  10355. */
  10356. enum qca_vendor_attr_coex_config_three_way {
  10357. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
  10358. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
  10359. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
  10360. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
  10361. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
  10362. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
  10363. /* Keep last */
  10364. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
  10365. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
  10366. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
  10367. };
  10368. /**
  10369. * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
  10370. * This enum defines the valid set of values of peer stats cache types. These
  10371. * values are used by attribute
  10372. * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID.
  10373. *
  10374. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics.
  10375. * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics.
  10376. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn
  10377. * statistics
  10378. */
  10379. enum qca_vendor_attr_peer_stats_cache_type {
  10380. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
  10381. QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
  10382. QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
  10383. QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
  10384. };
  10385. /**
  10386. * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
  10387. * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
  10388. * Attributes are required to flush peer rate statistics from driver to
  10389. * user application.
  10390. *
  10391. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
  10392. * Indicate peer stats cache type.
  10393. * The statistics types are 32-bit values from
  10394. * qca_vendor_attr_peer_stats_cache_type
  10395. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
  10396. * of size 6, representing peer mac address.
  10397. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
  10398. * containing buffer of statistics to send event to application layer entity.
  10399. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
  10400. * representing cookie for peer unique session.
  10401. */
  10402. enum qca_wlan_vendor_attr_peer_stats_cache_params {
  10403. QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
  10404. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
  10405. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
  10406. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
  10407. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
  10408. /* Keep last */
  10409. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
  10410. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
  10411. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
  10412. };
  10413. /**
  10414. * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee.
  10415. * this enum defines all the possible state of zigbee, which can be
  10416. * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE.
  10417. *
  10418. * @ZIGBEE_IDLE: zigbee in idle state
  10419. * @ZIGBEE_FORM_NETWORK: zibee forming network
  10420. * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network
  10421. * @ZIGBEE_JOIN: zigbee joining network
  10422. * @ZIGBEE_NETWORK_UP: zigbee network is up
  10423. * @ZIGBEE_HMI: zigbee in HMI mode
  10424. */
  10425. enum qca_mpta_helper_attr_zigbee_state {
  10426. ZIGBEE_IDLE = 0,
  10427. ZIGBEE_FORM_NETWORK = 1,
  10428. ZIGBEE_WAIT_JOIN = 2,
  10429. ZIGBEE_JOIN = 3,
  10430. ZIGBEE_NETWORK_UP = 4,
  10431. ZIGBEE_HMI = 5,
  10432. };
  10433. /**
  10434. * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by
  10435. * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
  10436. */
  10437. enum qca_mpta_helper_vendor_attr {
  10438. QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
  10439. /* Optional attribute used to update zigbee state.
  10440. * enum qca_mpta_helper_attr_zigbee_state.
  10441. * NLA_U32 attribute.
  10442. */
  10443. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
  10444. /* Optional attribute used to configure wlan duration for Shape-OCS
  10445. * during interrupt.
  10446. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
  10447. * Value range 0 ~ 300 (ms).
  10448. * NLA_U32 attribute.
  10449. */
  10450. QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
  10451. /* Optional attribute used to configure non wlan duration for Shape-OCS
  10452. * during interrupt.
  10453. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
  10454. * Value range 0 ~ 300 (ms).
  10455. * NLA_U32 attribute.
  10456. */
  10457. QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
  10458. /* Optional attribute used to configure wlan duration for Shape-OCS
  10459. * monitor period.
  10460. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
  10461. * Value range 0 ~ 300 (ms)
  10462. * NLA_U32 attribute
  10463. */
  10464. QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
  10465. /* Optional attribute used to configure non wlan duration for Shape-OCS
  10466. * monitor period.
  10467. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
  10468. * Value range 0 ~ 300 (ms)
  10469. * NLA_U32 attribute
  10470. */
  10471. QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
  10472. /* Optional attribute used to configure ocs interrupt duration.
  10473. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
  10474. * Value range 1000 ~ 20000 (ms)
  10475. * NLA_U32 attribute
  10476. */
  10477. QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
  10478. /* Optional attribute used to configure ocs monitor duration.
  10479. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
  10480. * Value range 1000 ~ 20000 (ms)
  10481. * NLA_U32 attribute
  10482. */
  10483. QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
  10484. /* Optional attribute used to notify wlan FW current zigbee channel.
  10485. * Value range 11 ~ 26
  10486. * NLA_U32 attribute
  10487. */
  10488. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
  10489. /* Optional attribute used to configure wlan mute duration.
  10490. * Value range 0 ~ 400 (ms)
  10491. * NLA_U32 attribute
  10492. */
  10493. QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
  10494. /* keep last */
  10495. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
  10496. QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
  10497. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
  10498. };
  10499. /**
  10500. * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
  10501. * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be
  10502. * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
  10503. *
  10504. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
  10505. * to request the driver to start reporting Beacon frames.
  10506. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver
  10507. * to request the driver to stop reporting Beacon frames.
  10508. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
  10509. * userspace to report received Beacon frames.
  10510. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
  10511. * to indicate that the driver is going to pause reporting Beacon frames.
  10512. */
  10513. enum qca_wlan_vendor_beacon_reporting_op_types {
  10514. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
  10515. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
  10516. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
  10517. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
  10518. };
  10519. /**
  10520. * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different
  10521. * types of reasons for which the driver is pausing reporting Beacon frames.
  10522. * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
  10523. *
  10524. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
  10525. * reasons.
  10526. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
  10527. * driver/firmware is starting a scan.
  10528. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
  10529. * driver/firmware disconnects from the ESS and indicates the disconnection to
  10530. * userspace (non-seamless roaming case). This reason code will be used by the
  10531. * driver/firmware to indicate stopping of beacon report events. Userspace
  10532. * will need to start beacon reporting again (if desired) by sending vendor
  10533. * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
  10534. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
  10535. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
  10536. * completed.
  10537. */
  10538. enum qca_wlan_vendor_beacon_reporting_pause_reasons {
  10539. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
  10540. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
  10541. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
  10542. };
  10543. /*
  10544. * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
  10545. * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
  10546. */
  10547. enum qca_wlan_vendor_attr_beacon_reporting_params {
  10548. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
  10549. /* Specifies the type of operation that the vendor command/event is
  10550. * intended for. Possible values for this attribute are defined in
  10551. * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
  10552. */
  10553. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
  10554. /* Optionally set by userspace to request the driver to report Beacon
  10555. * frames using asynchronous vendor events when the
  10556. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10557. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  10558. * If this flag is not set, the driver will only update Beacon frames
  10559. * in cfg80211 scan cache but not send any vendor events.
  10560. */
  10561. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
  10562. /* Optionally used by userspace to request the driver/firmware to
  10563. * report Beacon frames periodically when the
  10564. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10565. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
  10566. * u32 attribute, indicates the period of Beacon frames to be reported
  10567. * and in the units of beacon interval.
  10568. * If this attribute is missing in the command, then the default value
  10569. * of 1 will be assumed by driver, i.e., to report every Beacon frame.
  10570. * Zero is an invalid value.
  10571. * If a valid value is received for this attribute, the driver will
  10572. * update the cfg80211 scan cache periodically as per the value
  10573. * received in this attribute in addition to updating the cfg80211 scan
  10574. * cache when there is significant change in Beacon frame IEs.
  10575. */
  10576. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
  10577. /* Used by the driver to encapsulate the SSID when the
  10578. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10579. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  10580. * u8 array with a maximum size of 32.
  10581. *
  10582. * When generating beacon report from non-MBSSID Beacon frame, the SSID
  10583. * will be taken from the SSID element of the received Beacon frame.
  10584. *
  10585. * When generating beacon report from Multiple BSSID Beacon frame and
  10586. * if the BSSID of the current connected BSS matches the BSSID of the
  10587. * transmitting BSS, the SSID will be taken from the SSID element of
  10588. * the received Beacon frame.
  10589. *
  10590. * When generating beacon report from Multiple BSSID Beacon frame and
  10591. * if the BSSID of the current connected BSS matches the BSSID of one
  10592. * of the* nontransmitting BSSs, the SSID will be taken from the SSID
  10593. * field included in the nontransmitted BSS profile whose derived BSSI
  10594. * is same as the BSSID of the current connected BSS. When there is no
  10595. * nontransmitted BSS profile whose derived BSSID is same as the BSSID
  10596. * of current connected* BSS, this attribute will not be present.
  10597. */
  10598. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
  10599. /* Used by the driver to encapsulate the BSSID of the AP to which STA
  10600. * is currently connected to when the
  10601. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10602. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
  10603. * fixed size of 6 bytes.
  10604. *
  10605. * When generating beacon report from a Multiple BSSID beacon and the
  10606. * current connected BSSID matches one of the nontransmitted BSSIDs in
  10607. * a Multiple BSSID set, this BSSID will be that particular
  10608. * nontransmitted BSSID and not the transmitted BSSID (i.e., the
  10609. * transmitting address of the Beacon frame).
  10610. */
  10611. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
  10612. /* Used by the driver to encapsulate the frequency in MHz on which
  10613. * the Beacon frame was received when the
  10614. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
  10615. * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  10616. * u32 attribute.
  10617. */
  10618. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
  10619. /* Used by the driver to encapsulate the Beacon interval
  10620. * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10621. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  10622. * u16 attribute. The value will be copied from the Beacon frame and
  10623. * the units are TUs.
  10624. */
  10625. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
  10626. /* Used by the driver to encapsulate the Timestamp field from the
  10627. * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE
  10628. * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  10629. * u64 attribute.
  10630. */
  10631. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
  10632. /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
  10633. * Beacon frame is received in the driver when the
  10634. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10635. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
  10636. * the units of nanoseconds. This value is expected to have accuracy of
  10637. * about 10 ms.
  10638. */
  10639. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
  10640. /* Used by the driver to encapsulate the IEs of the Beacon frame from
  10641. * which this event is generated when the
  10642. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10643. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
  10644. */
  10645. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
  10646. /* Used by the driver to specify the reason for the driver/firmware to
  10647. * pause sending beacons to userspace when the
  10648. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10649. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
  10650. * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
  10651. * attribute.
  10652. */
  10653. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
  10654. /* Used by the driver to specify whether the driver will automatically
  10655. * resume reporting beacon events to userspace later (for example after
  10656. * the ongoing off-channel activity is completed etc.) when the
  10657. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10658. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
  10659. */
  10660. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
  10661. /* Optionally set by userspace to request the driver not to resume
  10662. * beacon reporting after a pause is completed, when the
  10663. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10664. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  10665. * If this flag is set, the driver will not resume beacon reporting
  10666. * after any pause in beacon reporting is completed. Userspace has to
  10667. * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
  10668. * to initiate beacon reporting again. If this flag is set in the recent
  10669. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
  10670. * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
  10671. * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
  10672. * set by the driver. Setting this flag until and unless there is a
  10673. * specific need is not recommended as there is a chance of some beacons
  10674. * received after pause command and next start command being not
  10675. * reported.
  10676. */
  10677. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
  10678. /* Keep last */
  10679. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
  10680. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
  10681. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
  10682. };
  10683. /**
  10684. * enum qca_vendor_oem_device_type - Represents the target device in firmware.
  10685. * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
  10686. *
  10687. * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
  10688. * a virtual device.
  10689. *
  10690. * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
  10691. * a physical device.
  10692. */
  10693. enum qca_vendor_oem_device_type {
  10694. QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
  10695. QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
  10696. };
  10697. /*
  10698. * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command
  10699. * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
  10700. *
  10701. * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
  10702. * used to set/query the data to/from the firmware. On query, the same
  10703. * attribute is used to carry the respective data in the reply sent by the
  10704. * driver to userspace. The request to set/query the data and the format of the
  10705. * respective data from the firmware are embedded in the attribute. The
  10706. * maximum size of the attribute payload is 1024 bytes.
  10707. *
  10708. * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
  10709. * based on this field. This optional attribute is included to specify whether
  10710. * the device type is a virtual device or a physical device for the command.
  10711. * This attribute can be omitted for a virtual device (default) command.
  10712. * This u8 attribute is used to carry information for the device type using
  10713. * values defined by enum qca_vendor_oem_device_type.
  10714. *
  10715. * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
  10716. * attribute when the data is queried from the firmware.
  10717. *
  10718. * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
  10719. * is set when the userspace queries data from the firmware. This attribute
  10720. * should not be set when userspace sets the OEM data to the firmware.
  10721. */
  10722. enum qca_wlan_vendor_attr_oem_data_params {
  10723. QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
  10724. QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
  10725. QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
  10726. QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
  10727. /* keep last */
  10728. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
  10729. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
  10730. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
  10731. };
  10732. /**
  10733. * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
  10734. * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
  10735. *
  10736. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
  10737. * Nested attribute containing multiple ranges with following attributes:
  10738. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
  10739. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
  10740. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
  10741. *
  10742. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
  10743. * Starting center frequency in MHz.
  10744. *
  10745. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
  10746. * Ending center frequency in MHz.
  10747. *
  10748. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
  10749. * s32 attribute, optional. It is a per frequency range attribute.
  10750. * The maximum TX power limit from user space is to be applied on an
  10751. * unrestricted interface for corresponding frequency range. It is also
  10752. * possible that the actual TX power may be even lower than this cap due to
  10753. * other considerations such as regulatory compliance, SAR, etc. In absence of
  10754. * this attribute the driver shall follow current behavior which means
  10755. * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
  10756. * power derived by the driver based on regulatory/SAR during interface up.
  10757. *
  10758. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
  10759. * u32 attribute, optional. Indicates all the interface types which are
  10760. * restricted for all frequency ranges provided in
  10761. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
  10762. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
  10763. * This attribute encapsulates bitmasks of interface types defined in
  10764. * enum nl80211_iftype. If an interface is marked as restricted the driver must
  10765. * move to a safe channel and if no safe channel is available the driver shall
  10766. * terminate that interface functionality. In absence of this attribute,
  10767. * interface (SAP/P2P) can still continue operating on an unsafe channel with
  10768. * TX power limit derived from either
  10769. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
  10770. * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
  10771. * is not provided.
  10772. */
  10773. enum qca_wlan_vendor_attr_avoid_frequency_ext {
  10774. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
  10775. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
  10776. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
  10777. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
  10778. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
  10779. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
  10780. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
  10781. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
  10782. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
  10783. };
  10784. /*
  10785. * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
  10786. * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
  10787. */
  10788. enum qca_wlan_vendor_attr_add_sta_node_params {
  10789. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
  10790. /* 6 byte MAC address of STA */
  10791. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
  10792. /* Authentication algorithm used by the station of size u16;
  10793. * defined in enum nl80211_auth_type.
  10794. */
  10795. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
  10796. /* keep last */
  10797. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
  10798. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
  10799. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
  10800. };
  10801. /**
  10802. * enum qca_btc_chain_mode - Specifies BT coex chain mode.
  10803. * This enum defines the valid set of values of BT coex chain mode.
  10804. * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
  10805. * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
  10806. *
  10807. * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared.
  10808. * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are
  10809. * separated, hybrid mode.
  10810. * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are
  10811. * separated, fixed FDD mode.
  10812. */
  10813. enum qca_btc_chain_mode {
  10814. QCA_BTC_CHAIN_SHARED = 0,
  10815. QCA_BTC_CHAIN_SEPARATED_HYBRID = 1,
  10816. QCA_BTC_CHAIN_SEPARATED_FDD = 2,
  10817. };
  10818. /* deprecated legacy name */
  10819. #define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID
  10820. /**
  10821. * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
  10822. * chain mode.
  10823. * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
  10824. *
  10825. * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
  10826. * Indicates the BT coex chain mode, are 32-bit values from
  10827. * enum qca_btc_chain_mode. This attribute is mandatory.
  10828. *
  10829. * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
  10830. * If set, vdev should be restarted when BT coex chain mode is updated.
  10831. * This attribute is optional.
  10832. */
  10833. enum qca_vendor_attr_btc_chain_mode {
  10834. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
  10835. QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
  10836. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
  10837. /* Keep last */
  10838. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
  10839. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
  10840. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
  10841. };
  10842. /**
  10843. * enum qca_vendor_wlan_sta_flags - Station feature flags
  10844. * Bits will be set to 1 if the corresponding features are enabled.
  10845. * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
  10846. * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
  10847. for the station
  10848. * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
  10849. for the station
  10850. */
  10851. enum qca_vendor_wlan_sta_flags {
  10852. QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
  10853. QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
  10854. QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
  10855. };
  10856. /**
  10857. * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
  10858. * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
  10859. * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
  10860. * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
  10861. * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
  10862. */
  10863. enum qca_vendor_wlan_sta_guard_interval {
  10864. QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
  10865. QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
  10866. QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
  10867. QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
  10868. };
  10869. /**
  10870. * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
  10871. * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
  10872. *
  10873. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
  10874. * Required attribute in request for AP mode only, 6-byte MAC address,
  10875. * corresponding to the station's MAC address for which information is
  10876. * requested. For STA mode this is not required as the info always correspond
  10877. * to the self STA and the current/last association.
  10878. *
  10879. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
  10880. * Optionally used in response, u32 attribute, contains a bitmap of different
  10881. * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
  10882. *
  10883. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
  10884. * Optionally used in response, u32 attribute, possible values are defined in
  10885. * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
  10886. * Guard interval used by the station.
  10887. *
  10888. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
  10889. * Optionally used in response, u32 attribute, used in AP mode only.
  10890. * Value indicates the number of data frames received from station with retry
  10891. * bit set to 1 in FC.
  10892. *
  10893. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
  10894. * Optionally used in response, u32 attribute, used in AP mode only.
  10895. * Counter for number of data frames with broadcast or multicast address in
  10896. * the destination address received from the station.
  10897. *
  10898. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
  10899. * Optionally used in response, u32 attribute, used in both STA and AP modes.
  10900. * Value indicates the number of data frames successfully transmitted only
  10901. * after retrying the packets and for which the TX status has been updated
  10902. * back to host from target.
  10903. *
  10904. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
  10905. * Optionally used in response, u32 attribute, used in both STA and AP mode.
  10906. * Value indicates the number of data frames not transmitted successfully even
  10907. * after retrying the packets for the number of times equal to the total number
  10908. * of retries allowed for that packet and for which the TX status has been
  10909. * updated back to host from target.
  10910. *
  10911. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
  10912. * Optionally used in response, u32 attribute, used in AP mode only.
  10913. * Counter in the target for the number of data frames successfully transmitted
  10914. * to the station.
  10915. *
  10916. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
  10917. * Optionally used in response, u32 attribute, used in AP mode only.
  10918. * Value indicates the number of data frames successfully transmitted only
  10919. * after retrying the packets.
  10920. *
  10921. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
  10922. * Optionally used in response, u32 attribute, used in both STA & AP mode.
  10923. * Value indicates the number of data frames not transmitted successfully even
  10924. * after retrying the packets for the number of times equal to the total number
  10925. * of retries allowed for that packet.
  10926. *
  10927. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
  10928. * the STA mode only. Represent the number of probe requests sent by the STA
  10929. * while attempting to roam on missing certain number of beacons from the
  10930. * connected AP. If queried in the disconnected state, this represents the
  10931. * count for the last connected state.
  10932. *
  10933. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
  10934. * the STA mode. Represent the number of probe responses received by the station
  10935. * while attempting to roam on missing certain number of beacons from the
  10936. * connected AP. When queried in the disconnected state, this represents the
  10937. * count when in last connected state.
  10938. *
  10939. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
  10940. * STA mode only. Represents the total number of frames sent out by STA
  10941. * including Data, ACK, RTS, CTS, Control Management. This data is maintained
  10942. * only for the connect session. Represents the count of last connected session,
  10943. * when queried in the disconnected state.
  10944. *
  10945. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
  10946. * Total number of RTS sent out by the STA. This data is maintained per connect
  10947. * session. Represents the count of last connected session, when queried in the
  10948. * disconnected state.
  10949. *
  10950. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
  10951. * STA mode.Represent the number of RTS transmission failure that reach retry
  10952. * limit. This data is maintained per connect session. Represents the count of
  10953. * last connected session, when queried in the disconnected state.
  10954. *
  10955. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
  10956. * the STA mode. Represent the total number of non aggregated frames transmitted
  10957. * by the STA. This data is maintained per connect session. Represents the count
  10958. * of last connected session, when queried in the disconnected state.
  10959. *
  10960. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
  10961. * STA mode. Represent the total number of aggregated frames transmitted by the
  10962. * STA. This data is maintained per connect session. Represents the count of
  10963. * last connected session, when queried in the disconnected state.
  10964. *
  10965. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
  10966. * the STA mode. Represents the number of received frames with a good PLCP. This
  10967. * data is maintained per connect session. Represents the count of last
  10968. * connected session, when queried in the disconnected state.
  10969. *
  10970. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
  10971. * used in the STA mode. Represents the number of occasions that no valid
  10972. * delimiter is detected by A-MPDU parser. This data is maintained per connect
  10973. * session. Represents the count of last connected session, when queried in the
  10974. * disconnected state.
  10975. *
  10976. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
  10977. * STA mode. Represents the number of frames for which CRC check failed in the
  10978. * MAC. This data is maintained per connect session. Represents the count of
  10979. * last connected session, when queried in the disconnected state.
  10980. *
  10981. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
  10982. * STA mode. Represents the number of unicast ACKs received with good FCS. This
  10983. * data is maintained per connect session. Represents the count of last
  10984. * connected session, when queried in the disconnected state.
  10985. *
  10986. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
  10987. * mode. Represents the number of received Block Acks. This data is maintained
  10988. * per connect session. Represents the count of last connected session, when
  10989. * queried in the disconnected state.
  10990. *
  10991. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
  10992. * mode. Represents the number of beacons received from the connected BSS. This
  10993. * data is maintained per connect session. Represents the count of last
  10994. * connected session, when queried in the disconnected state.
  10995. *
  10996. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
  10997. * STA mode. Represents the number of beacons received by the other BSS when in
  10998. * connected state (through the probes done by the STA). This data is maintained
  10999. * per connect session. Represents the count of last connected session, when
  11000. * queried in the disconnected state.
  11001. *
  11002. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
  11003. * the STA mode. Represents the number of received DATA frames with good FCS and
  11004. * matching Receiver Address when in connected state. This data is maintained
  11005. * per connect session. Represents the count of last connected session, when
  11006. * queried in the disconnected state.
  11007. *
  11008. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
  11009. * STA mode. Represents the number of RX Data multicast frames dropped by the HW
  11010. * when in the connected state. This data is maintained per connect session.
  11011. * Represents the count of last connected session, when queried in the
  11012. * disconnected state.
  11013. *
  11014. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
  11015. * STA mode. This represents the target power in dBm for the transmissions done
  11016. * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
  11017. * connect session. Represents the count of last connected session, when
  11018. * queried in the disconnected state.
  11019. *
  11020. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
  11021. * STA mode. This represents the Target power in dBm for transmissions done to
  11022. * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
  11023. * session. Represents the count of last connected session, when queried in the
  11024. * disconnected state.
  11025. *
  11026. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
  11027. * STA mode. This represents the Target power in dBm for transmissions done to
  11028. * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
  11029. * Represents the count of last connected session, when queried in the
  11030. * disconnected state.
  11031. *
  11032. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
  11033. * STA mode. This represents the Target power in dBm for transmissions done to
  11034. * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
  11035. * session. Represents the count of last connected session, when queried in
  11036. * the disconnected state.
  11037. *
  11038. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
  11039. * STA mode. This represents the Target power in dBm for for transmissions done
  11040. * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
  11041. * Represents the count of last connected session, when queried in the
  11042. * disconnected state.
  11043. *
  11044. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
  11045. * in the STA mode. This represents the Nested attribute representing the
  11046. * overflow counts of each receive buffer allocated to the hardware during the
  11047. * STA's connection. The number of hw buffers might vary for each WLAN
  11048. * solution and hence this attribute represents the nested array of all such
  11049. * HW buffer count. This data is maintained per connect session. Represents
  11050. * the count of last connected session, when queried in the disconnected state.
  11051. *
  11052. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
  11053. * allowed as per the regulatory requirements for the current or last connected
  11054. * session. Used in the STA mode.
  11055. *
  11056. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
  11057. * (dBm) used by the station in its latest unicast frame while communicating
  11058. * to the AP in the connected state. When queried in the disconnected state,
  11059. * this represents the TX power used by the STA with last AP communication
  11060. * when in connected state.
  11061. *
  11062. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
  11063. * level used to adjust the RX sensitivity. Represents the current ANI level
  11064. * when queried in the connected state. When queried in the disconnected
  11065. * state, this corresponds to the latest ANI level at the instance of
  11066. * disconnection.
  11067. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
  11068. * only. This represents the number of group addressed robust management frames
  11069. * received from this station with an invalid MIC or a missing MME when PMF is
  11070. * enabled.
  11071. *
  11072. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
  11073. * only. This represents the number of group addressed robust management frames
  11074. * received from this station with the packet number less than or equal to the
  11075. * last received packet number when PMF is enabled.
  11076. *
  11077. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
  11078. * mode only. This represents the number of Beacon frames received from this
  11079. * station with an invalid MIC or a missing MME when beacon protection is
  11080. * enabled.
  11081. *
  11082. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
  11083. * only. This represents number of Beacon frames received from this station with
  11084. * the packet number less than or equal to the last received packet number when
  11085. * beacon protection is enabled.
  11086. *
  11087. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
  11088. * STA mode only. Driver uses this attribute to populate the connection failure
  11089. * reason codes and the values are defined in
  11090. * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
  11091. * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
  11092. * connection failure from driver. The driver shall not include this attribute
  11093. * in response to QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no
  11094. * connection failure observed in the last attempted connection.
  11095. *
  11096. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
  11097. * used by the station in its last TX frame while communicating to the AP in the
  11098. * connected state. When queried in the disconnected state, this represents the
  11099. * rate used by the STA in the last TX frame to the AP when it was connected.
  11100. * This attribute is used for STA mode only.
  11101. *
  11102. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
  11103. * This represents the rate index used by the STA for the last TX frame to the
  11104. * AP. When queried in the disconnected state, this gives the last RIX used by
  11105. * the STA in the last TX frame to the AP when it was connected.
  11106. *
  11107. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
  11108. * mode only. This represents the number of times the STA TSF goes out of sync
  11109. * from the AP after the connection. If queried in the disconnected state, this
  11110. * gives the count of TSF out of sync for the last connection.
  11111. *
  11112. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
  11113. * mode only. This represents the roam trigger reason for the last roaming
  11114. * attempted by the firmware. This can be queried either in connected state or
  11115. * disconnected state. Each bit of this attribute represents the different
  11116. * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
  11117. *
  11118. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
  11119. * only. This represents the roam fail reason for the last failed roaming
  11120. * attempt by the firmware. Different roam failure reason codes are specified
  11121. * in enum qca_vendor_roam_fail_reasons. This can be queried either in
  11122. * connected state or disconnected state.
  11123. *
  11124. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
  11125. * STA mode only. This represents the roam invoke fail reason for the last
  11126. * failed roam invoke. Different roam invoke failure reason codes
  11127. * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
  11128. * queried either in connected state or disconnected state.
  11129. *
  11130. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
  11131. * This represents the average congestion duration of uplink frames in MAC
  11132. * queue in unit of ms. This can be queried either in connected state or
  11133. * disconnected state.
  11134. *
  11135. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Mandatory u32 Nested
  11136. * attribute, used in AP mode. This represents the MPDU packet count per MCS
  11137. * rate value of TX packets. Every index of this nested attribute corresponds
  11138. * to MCS index, for example Index 0 represents MCS0 TX rate. This can be
  11139. * queried in connected state.
  11140. *
  11141. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Mandatory u32 Nested
  11142. * attribute, used in AP mode. This represents the MPDU packet count per MCS
  11143. * rate value of RX packets. Every index of this nested attribute corresponds
  11144. * to MCS index, for example Index 0 represents MCS0 RX rate. This can be
  11145. * queried in connected state.
  11146. */
  11147. enum qca_wlan_vendor_attr_get_sta_info {
  11148. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
  11149. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
  11150. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
  11151. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
  11152. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
  11153. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
  11154. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
  11155. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
  11156. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
  11157. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
  11158. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
  11159. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
  11160. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
  11161. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
  11162. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
  11163. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
  11164. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
  11165. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
  11166. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
  11167. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
  11168. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
  11169. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
  11170. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
  11171. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
  11172. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
  11173. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
  11174. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
  11175. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
  11176. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
  11177. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
  11178. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
  11179. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
  11180. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
  11181. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
  11182. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
  11183. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
  11184. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
  11185. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
  11186. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
  11187. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
  11188. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
  11189. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
  11190. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
  11191. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
  11192. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
  11193. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
  11194. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
  11195. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
  11196. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51,
  11197. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52,
  11198. /* keep last */
  11199. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
  11200. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
  11201. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
  11202. };
  11203. /**
  11204. * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
  11205. * Used when the driver triggers the STA to disconnect from the AP.
  11206. *
  11207. * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
  11208. * disconnection with the AP due to unspecified reasons.
  11209. *
  11210. * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
  11211. * disconnection with the AP due to a roaming failure. This roaming is triggered
  11212. * internally (host driver/firmware).
  11213. *
  11214. * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
  11215. * the AP when the user/external triggered roaming fails.
  11216. *
  11217. * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
  11218. * by the host driver whenever gateway reachability failure is detected and the
  11219. * driver disconnects with AP.
  11220. *
  11221. * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
  11222. * the AP on a channel switch announcement from it with an unsupported channel.
  11223. *
  11224. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
  11225. * with indoor channels disabled and if the STA is connected on one of these
  11226. * disabled channels, the host driver disconnected the STA with this reason
  11227. * code.
  11228. *
  11229. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
  11230. * explicit request from the user to disable the current operating channel.
  11231. *
  11232. * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
  11233. * the internal host driver/firmware recovery.
  11234. *
  11235. * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
  11236. * a timeout for the key installations from the user space.
  11237. *
  11238. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
  11239. * STA on a band change request from the user space to a different band from the
  11240. * current operation channel/band.
  11241. *
  11242. * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
  11243. * interface down trigger from the user space.
  11244. *
  11245. * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
  11246. * STA on getting continuous transmission failures for multiple Data frames.
  11247. *
  11248. * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
  11249. * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
  11250. * represents inactivity from AP on such transmissions.
  11251. * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
  11252. * disconnection when SA Query times out (AP does not respond to SA Query).
  11253. *
  11254. * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
  11255. * STA on missing the beacons continuously from the AP.
  11256. *
  11257. * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
  11258. * able to move to the channel mentioned by the AP in CSA.
  11259. *
  11260. * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
  11261. */
  11262. enum qca_disconnect_reason_codes {
  11263. QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
  11264. QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
  11265. QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
  11266. QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
  11267. QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
  11268. QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
  11269. QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
  11270. QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
  11271. QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
  11272. QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
  11273. QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
  11274. QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
  11275. QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
  11276. QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
  11277. QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
  11278. QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
  11279. QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
  11280. };
  11281. /**
  11282. * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
  11283. * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
  11284. *
  11285. * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
  11286. * This attribute represents the driver specific reason codes (local
  11287. * driver/firmware initiated reasons for disconnection) defined
  11288. * in enum qca_disconnect_reason_codes.
  11289. */
  11290. enum qca_wlan_vendor_attr_driver_disconnect_reason {
  11291. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
  11292. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
  11293. /* keep last */
  11294. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
  11295. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
  11296. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
  11297. };
  11298. /**
  11299. * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
  11300. *
  11301. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
  11302. */
  11303. enum qca_wlan_tspec_operation {
  11304. QCA_WLAN_TSPEC_ADD = 0,
  11305. QCA_WLAN_TSPEC_DEL = 1,
  11306. QCA_WLAN_TSPEC_GET = 2,
  11307. };
  11308. /**
  11309. * enum qca_wlan_tspec_direction - Direction in TSPEC
  11310. * As what is defined in IEEE Std 802.11-2016, Table 9-139.
  11311. *
  11312. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
  11313. */
  11314. enum qca_wlan_tspec_direction {
  11315. QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
  11316. QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
  11317. QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
  11318. QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
  11319. };
  11320. /**
  11321. * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC
  11322. * As what is defined in IEEE Std 802.11-2016, Table 9-141.
  11323. *
  11324. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
  11325. */
  11326. enum qca_wlan_tspec_ack_policy {
  11327. QCA_WLAN_TSPEC_NORMAL_ACK = 0,
  11328. QCA_WLAN_TSPEC_NO_ACK = 1,
  11329. /* Reserved */
  11330. QCA_WLAN_TSPEC_BLOCK_ACK = 3,
  11331. };
  11332. /**
  11333. * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
  11334. * used by QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
  11335. *
  11336. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
  11337. * u8 attribute. Specify the TSPEC operation of this request. Possible values
  11338. * are defined in enum qca_wlan_tspec_operation.
  11339. * Mandatory attribute for all kinds of config TSPEC requests.
  11340. *
  11341. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
  11342. * u8 attribute. TS ID. Possible values are 0-7.
  11343. * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
  11344. * QCA_WLAN_TSPEC_GET. A mandatory attribute.
  11345. *
  11346. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
  11347. * u8 attribute. Direction of data carried by the TS. Possible values are
  11348. * defined in enum qca_wlan_tspec_direction.
  11349. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11350. *
  11351. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
  11352. * Flag attribute. Indicate whether APSD is enabled for the traffic associated
  11353. * with the TS. set - enabled, not set - disabled.
  11354. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11355. *
  11356. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
  11357. * u8 attribute. User priority to be used for the transport of MSDUs/ -MSDUs
  11358. * belonging to this TS. Possible values are 0-7.
  11359. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11360. *
  11361. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
  11362. * u8 attribute. Indicate whether MAC acknowledgements are required for
  11363. * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
  11364. * Possible values are defined in enum qca_wlan_tspec_ack_policy.
  11365. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11366. *
  11367. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
  11368. * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
  11369. * belonging to this TS.
  11370. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11371. *
  11372. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
  11373. * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
  11374. * belonging to this TS.
  11375. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11376. *
  11377. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
  11378. * u32 attribute. Specify the minimum interval in microseconds between the
  11379. * start of two successive SPs.
  11380. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11381. *
  11382. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
  11383. * u32 attribute. Specify the maximum interval in microseconds between the
  11384. * start of two successive SPs.
  11385. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11386. *
  11387. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
  11388. * u32 attribute. Specify the minimum interval in microseconds that can elapse
  11389. * without arrival or transfer of an MPDU belonging to the TS before this TS
  11390. * is deleted by the MAC entity at the HC.
  11391. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11392. *
  11393. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
  11394. * u32 attribute. Specify the minimum interval in microseconds that can elapse
  11395. * without arrival or transfer of an MSDU belonging to the TS before the
  11396. * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
  11397. * 0xFFFFFFFF disables the suspension interval. The value of the suspension
  11398. * interval is always less than or equal to the inactivity interval.
  11399. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11400. *
  11401. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
  11402. * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
  11403. * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
  11404. * bounds of this TSPEC.
  11405. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11406. *
  11407. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
  11408. * u32 attribute. Indicate the average data rate in bps specified at the MAC
  11409. * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
  11410. * bounds of this TSPEC.
  11411. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11412. *
  11413. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
  11414. * u32 attribute. Indicate the maximum allowable data rate in bps specified at
  11415. * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
  11416. * the bounds of this TSPEC.
  11417. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11418. *
  11419. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
  11420. * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
  11421. * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
  11422. * value of 0 indicates that there are no bursts.
  11423. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11424. *
  11425. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
  11426. * u32 attribute. Indicate the minimum PHY rate in bps for transport of
  11427. * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
  11428. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11429. *
  11430. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
  11431. * u16 attribute. Specify the excess allocation of time (and bandwidth) over
  11432. * and above the stated application rates required to transport an MSDU/A-MSDU
  11433. * belonging to the TS in this TSPEC.
  11434. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11435. */
  11436. enum qca_wlan_vendor_attr_config_tspec {
  11437. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
  11438. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
  11439. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
  11440. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
  11441. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
  11442. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
  11443. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
  11444. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
  11445. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
  11446. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
  11447. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
  11448. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
  11449. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
  11450. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
  11451. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
  11452. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
  11453. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
  11454. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
  11455. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
  11456. /* keep last */
  11457. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
  11458. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
  11459. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
  11460. };
  11461. /**
  11462. * enum qca_wlan_medium_assess_type - Type of medium assess request
  11463. *
  11464. * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
  11465. */
  11466. enum qca_wlan_medium_assess_type {
  11467. QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
  11468. QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
  11469. };
  11470. /**
  11471. * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
  11472. * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
  11473. *
  11474. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
  11475. * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
  11476. * Specify the type of medium assess request and indicate its type in response.
  11477. * Possible values are defined in enum qca_wlan_medium_assess_type.
  11478. *
  11479. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
  11480. * u32 attribute. Mandatory in CCA request.
  11481. * Specify the assessment period in terms of seconds. Assessment result will be
  11482. * sent as the response to the CCA request after the assessment period.
  11483. *
  11484. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
  11485. * u32 attribute. Mandatory in response to CCA request.
  11486. * Total timer tick count of the assessment cycle.
  11487. *
  11488. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
  11489. * u32 attribute. Mandatory in response to CCA request.
  11490. * Timer tick count of idle time in the assessment cycle.
  11491. *
  11492. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
  11493. * u32 attribute. Mandatory in response to CCA request.
  11494. * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
  11495. *
  11496. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
  11497. * u32 attribute. Mandatory in response to CCA request.
  11498. * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
  11499. *
  11500. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
  11501. * s32 attribute. Mandatory in response to CCA request.
  11502. * Maximum RSSI of Intra BSS traffic in the assessment cycle.
  11503. *
  11504. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
  11505. * s32 attribute. Mandatory in response to CCA request.
  11506. * Minimum RSSI of Intra BSS traffic in the assessment cycle.
  11507. *
  11508. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
  11509. * u8 attribute. Mandatory in congestion report request.
  11510. * 1-enable 0-disable.
  11511. *
  11512. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
  11513. * u8 attribute. Mandatory in congestion report enable request and will be
  11514. * ignored if present in congestion report disable request. Possible values are
  11515. * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
  11516. * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
  11517. * congestion percentage reaches the configured threshold.
  11518. *
  11519. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
  11520. * u8 attribute. Optional in congestion report enable request and will be
  11521. * ignored if present in congestion report disable request.
  11522. * Specify the interval of congestion report event in terms of seconds. Possible
  11523. * values are 1-255. Default value 1 will be used if this attribute is omitted
  11524. * or using invalid values.
  11525. *
  11526. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
  11527. * u8 attribute. Mandatory in congestion report event.
  11528. * Indicate the actual congestion percentage. Possible values are 0-100.
  11529. */
  11530. enum qca_wlan_vendor_attr_medium_assess {
  11531. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
  11532. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
  11533. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
  11534. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
  11535. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
  11536. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
  11537. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
  11538. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
  11539. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
  11540. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
  11541. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
  11542. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
  11543. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
  11544. /* keep last */
  11545. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
  11546. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
  11547. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
  11548. };
  11549. /**
  11550. * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
  11551. * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
  11552. *
  11553. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
  11554. * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
  11555. * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
  11556. * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
  11557. *
  11558. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
  11559. * u8 attribute, required. 1 means Tx VDEV up event.0 mean Tx VDEV down event.
  11560. *
  11561. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
  11562. * u8 attribute, required. indicates group id of Tx VDEV
  11563. *
  11564. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
  11565. * Nested attribute. This attribute shall be used by the driver to send
  11566. * group information. The attributes defined in enum
  11567. * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
  11568. * are nested in this attribute.
  11569. */
  11570. enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
  11571. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
  11572. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
  11573. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
  11574. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
  11575. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
  11576. /* keep last */
  11577. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
  11578. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
  11579. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
  11580. };
  11581. /**
  11582. * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
  11583. * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
  11584. *
  11585. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
  11586. * u32 attribute, required. contains interface index.
  11587. *
  11588. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
  11589. * u8 attribute, required. 0 - means vdev is in down state.
  11590. * 1- means vdev is in up state.
  11591. */
  11592. enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
  11593. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
  11594. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
  11595. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
  11596. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
  11597. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
  11598. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
  11599. };
  11600. /**
  11601. * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
  11602. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
  11603. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
  11604. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
  11605. * frame
  11606. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
  11607. * Request frame.
  11608. */
  11609. enum qca_wlan_vendor_oci_override_frame_type {
  11610. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
  11611. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
  11612. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
  11613. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
  11614. };
  11615. /**
  11616. * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
  11617. *
  11618. * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
  11619. * STA interface has to be given while selecting the connection policies
  11620. * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
  11621. * An interface is set as primary through the attribute
  11622. * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
  11623. * applicable if the primary interface has not been set earlier.
  11624. *
  11625. * The intention is not to downgrade the primary STA performance, such as:
  11626. * - Do not reduce the number of TX/RX chains of primary connection.
  11627. * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
  11628. * chains.
  11629. * - If using MCC, should set the MCC duty cycle of the primary connection to
  11630. * be higher than the secondary connection.
  11631. *
  11632. * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
  11633. * subsequent STA connection shall be chosen to balance with the existing
  11634. * concurrent STA's performance.
  11635. * Such as
  11636. * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
  11637. * capability.
  11638. * - If using MCC, set the MCC duty cycle of the primary connection to be equal
  11639. * to the secondary.
  11640. * - Prefer BSSID candidates which will help provide the best "overall"
  11641. * performance for all the STA connections.
  11642. */
  11643. enum qca_wlan_concurrent_sta_policy_config {
  11644. QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
  11645. QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
  11646. };
  11647. /**
  11648. * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies
  11649. *
  11650. * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP
  11651. * interface.
  11652. *
  11653. * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies
  11654. * to meet gaming audio latency requirements.
  11655. *
  11656. * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface
  11657. * concurrencies to meet lossless audio streaming requirements.
  11658. *
  11659. * @QCA_WLAN_CONCURRENT_AP_POLICY_XR: Select interface concurrencies to meet
  11660. * XR (eXtended Reality) requirements.
  11661. */
  11662. enum qca_wlan_concurrent_ap_policy_config {
  11663. QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0,
  11664. QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1,
  11665. QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2,
  11666. QCA_WLAN_CONCURRENT_AP_POLICY_XR = 3,
  11667. };
  11668. /**
  11669. * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes
  11670. * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command.
  11671. *
  11672. * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG:
  11673. * u8 attribute. Configures the concurrent STA policy configuration.
  11674. * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
  11675. * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG:
  11676. * u8 attribute. Configures the concurrent AP policy configuration.
  11677. * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config.
  11678. */
  11679. enum qca_wlan_vendor_attr_concurrent_policy {
  11680. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0,
  11681. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1,
  11682. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2,
  11683. /* keep last */
  11684. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST,
  11685. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX =
  11686. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1,
  11687. };
  11688. /* Compatibility defines for previously used enum
  11689. * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used
  11690. * in any new implementation.
  11691. */
  11692. #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \
  11693. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG
  11694. #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \
  11695. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX
  11696. #define qca_wlan_vendor_attr_concurrent_sta_policy \
  11697. qca_wlan_vendor_attr_concurrent_policy
  11698. /**
  11699. * enum qca_sta_connect_fail_reason_codes - Defines values carried
  11700. * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
  11701. * attribute.
  11702. * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No probe response frame received
  11703. * for unicast probe request.
  11704. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
  11705. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
  11706. * ath request.
  11707. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
  11708. * received from AP.
  11709. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send assoc
  11710. * request.
  11711. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
  11712. * assoc request.
  11713. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Assoc response is not
  11714. * received from AP.
  11715. */
  11716. enum qca_sta_connect_fail_reason_codes {
  11717. QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
  11718. QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
  11719. QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
  11720. QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
  11721. QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
  11722. QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
  11723. QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
  11724. };
  11725. /**
  11726. * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
  11727. * OCI override request. These attributes are used inside nested attribute
  11728. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
  11729. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  11730. *
  11731. * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
  11732. * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
  11733. * attribute to specify the frame type in which the OCI is to be overridden.
  11734. *
  11735. * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
  11736. * OCI frequency (in MHz) to override in the specified frame type.
  11737. */
  11738. enum qca_wlan_vendor_attr_oci_override {
  11739. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
  11740. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
  11741. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
  11742. /* keep last */
  11743. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
  11744. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
  11745. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
  11746. };
  11747. /**
  11748. * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
  11749. * filters defined in this enum are used in attribute
  11750. * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
  11751. *
  11752. * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
  11753. * shall filter the channels which are not usable because of coexistence with
  11754. * cellular radio.
  11755. * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
  11756. * shall filter the channels which are not usable because of existing active
  11757. * interfaces in the driver and will result in Multi Channel Concurrency, etc.
  11758. *
  11759. */
  11760. enum qca_wlan_vendor_usable_channels_filter {
  11761. QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
  11762. QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
  11763. };
  11764. /**
  11765. * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
  11766. * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
  11767. *
  11768. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
  11769. * u32 attribute, required. Indicates the center frequency of the primary
  11770. * channel in MHz.
  11771. *
  11772. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
  11773. * u32 attribute. Indicates the center frequency of the primary segment of the
  11774. * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
  11775. * 160 MHz, and 320 MHz channels.
  11776. *
  11777. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
  11778. * u32 attribute. Indicates the center frequency of the secondary segment of
  11779. * 80+80 channel in MHz. This attribute is required only when
  11780. * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
  11781. *
  11782. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
  11783. * u32 attribute, required. Indicates the bandwidth of the channel, possible
  11784. * values are defined in enum nl80211_chan_width.
  11785. *
  11786. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
  11787. * u32 attribute, required. Indicates all the interface types for which this
  11788. * channel is usable. This attribute encapsulates bitmasks of interface types
  11789. * defined in enum nl80211_iftype.
  11790. *
  11791. */
  11792. enum qca_wlan_vendor_attr_chan_info {
  11793. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
  11794. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
  11795. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
  11796. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
  11797. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
  11798. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
  11799. /* keep last */
  11800. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
  11801. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
  11802. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
  11803. };
  11804. /**
  11805. * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
  11806. * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
  11807. *
  11808. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
  11809. * u32 attribute. Indicates the bands from which the channels should be reported
  11810. * in response. This attribute encapsulates bit masks of bands defined in enum
  11811. * nl80211_band. Optional attribute, if not present in the request the driver
  11812. * shall return channels from all supported bands.
  11813. *
  11814. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
  11815. * u32 attribute. Indicates all the interface types for which the usable
  11816. * channels information is requested. This attribute encapsulates bitmasks of
  11817. * interface types defined in enum nl80211_iftype. Optional attribute, if not
  11818. * present in the request the driver shall send information of all supported
  11819. * interface modes.
  11820. *
  11821. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
  11822. * u32 attribute. This attribute carries information of all filters that shall
  11823. * be applied while populating usable channels information by the driver. This
  11824. * attribute carries bit masks of different filters defined in enum
  11825. * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
  11826. * in the request the driver shall send information of channels without applying
  11827. * any of the filters that can be configured through this attribute.
  11828. *
  11829. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
  11830. * Nested attribute. This attribute shall be used by the driver to send
  11831. * usability information of each channel. The attributes defined in enum
  11832. * qca_wlan_vendor_attr_chan_info are used inside this attribute.
  11833. */
  11834. enum qca_wlan_vendor_attr_usable_channels {
  11835. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
  11836. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
  11837. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
  11838. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
  11839. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
  11840. /* keep last */
  11841. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
  11842. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
  11843. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
  11844. };
  11845. /**
  11846. * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
  11847. * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
  11848. *
  11849. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
  11850. * the list of radar history entries.
  11851. * Each entry contains freq, timestamp, and radar signal detect flag.
  11852. * The driver shall add an entry when CAC has finished, or radar signal
  11853. * has been detected post AP beaconing. The driver shall maintain at least
  11854. * 8 entries in order to save CAC result for a 160 MHz channel.
  11855. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
  11856. * Channel frequency in MHz.
  11857. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
  11858. * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
  11859. * or radar detection.
  11860. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
  11861. * This flag indicates radar signal has been detected.
  11862. */
  11863. enum qca_wlan_vendor_attr_radar_history {
  11864. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
  11865. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
  11866. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
  11867. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
  11868. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
  11869. /* keep last */
  11870. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
  11871. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
  11872. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
  11873. };
  11874. /**
  11875. * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
  11876. *
  11877. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
  11878. * target exited MCC state and cleared the quota information. In the
  11879. * command it clears MCC quota setting and restores adaptive scheduling.
  11880. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
  11881. * will not be changed.
  11882. * This quota type is present in command/event.
  11883. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
  11884. * and the target may change the quota based on the data activity.
  11885. * This quota type is only present in event.
  11886. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY: Channel time quota is optimized
  11887. * by the target for low latency.
  11888. * This quota type is only present in command.
  11889. */
  11890. enum qca_wlan_vendor_mcc_quota_type {
  11891. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
  11892. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
  11893. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
  11894. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY = 3,
  11895. };
  11896. /**
  11897. * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
  11898. * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
  11899. * quota information or as a command to set the required MCC quota for an
  11900. * interface.
  11901. *
  11902. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
  11903. * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
  11904. * In a command this specifies the MCC quota type to be set for the interface.
  11905. * In an event this provides the current quota type in force.
  11906. * This is required in a command and an event.
  11907. *
  11908. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
  11909. * the list of channel quota entries.
  11910. * In an event each entry contains the frequency and respective time quota for
  11911. * all the MCC interfaces.
  11912. * In a command it specifies the interface index and respective time quota.
  11913. * In a command only one entry (ifindex, quota pair) may be specified.
  11914. *
  11915. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
  11916. * Channel frequency in MHz. This is present only in an event.
  11917. *
  11918. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
  11919. * Channel time quota expressed as percentage.
  11920. * This is present in an event and a command.
  11921. * In an command, the user shall specify the quota to be allocated for the
  11922. * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
  11923. * In an event this provides the existing quota for the channel.
  11924. *
  11925. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
  11926. * Specifies the interface index (netdev) for which the corresponding
  11927. * configurations are applied. This is required in a command only. Only one
  11928. * interface index may be specified. If not specified, the configuration is
  11929. * rejected.
  11930. *
  11931. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE
  11932. * 8-bit unsigned value to enable/disable Multi-Channel Concurrency
  11933. * low latency mode. The firmware will do optimization for low
  11934. * latency in Multi-Channel concurrency state if enabled. And all existing
  11935. * user quota setting will be overwritten by the target.
  11936. * 0 - disable(default), 1 - enable.
  11937. * It is only present in a command with quota type of
  11938. * QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY.
  11939. */
  11940. enum qca_wlan_vendor_attr_mcc_quota {
  11941. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
  11942. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
  11943. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
  11944. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
  11945. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
  11946. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
  11947. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE = 6,
  11948. /* keep last */
  11949. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
  11950. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
  11951. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
  11952. };
  11953. /**
  11954. * enum qca_wlan_roam_stats_invoke_reason - Roam invoke reason. These values
  11955. * are used by the attribute
  11956. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON.
  11957. *
  11958. * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED: Default value when target
  11959. * invoke roam.
  11960. * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE: Neighbor unreachable
  11961. * detection failed when the roam trigger.
  11962. * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE: Invoke from user space.
  11963. */
  11964. enum qca_wlan_roam_stats_invoke_reason {
  11965. QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED = 0,
  11966. QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE = 1,
  11967. QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE = 2,
  11968. };
  11969. /**
  11970. * enum qca_wlan_roam_stats_tx_failures_reason - Roam TX failures reason. These
  11971. * values are used by the attribute
  11972. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON.
  11973. *
  11974. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED: Default value when
  11975. * roam by kickout.
  11976. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY: Excessive retry when roam
  11977. * trigger by kickout.
  11978. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY: Station inactivity when
  11979. * roam trigger by kickout.
  11980. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT: IBSS disconnect when
  11981. * roam trigger by kickout.
  11982. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT: TDLS peer has
  11983. * disappeared, and all TX is failing when roam trigger by kickout.
  11984. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT: SA query process
  11985. * timeout when roam trigger by kickout.
  11986. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT: Directly connected
  11987. * peer has roamed to a repeater.
  11988. */
  11989. enum qca_wlan_roam_stats_tx_failures_reason {
  11990. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED = 0,
  11991. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY = 1,
  11992. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY = 2,
  11993. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT = 3,
  11994. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT = 4,
  11995. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT = 5,
  11996. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT = 6,
  11997. };
  11998. /**
  11999. * enum qca_wlan_roam_stats_abort_reason - Roam abort reason. These values
  12000. * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON.
  12001. *
  12002. * @QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED: Target did not specify the
  12003. * detailed reason for roam scan being aborted.
  12004. * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH: Roam scan is not
  12005. * started due to high data RSSI during LOW-RSSI roaming.
  12006. * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD: Roam scan is not
  12007. * started due to good link speed during LOW-RSSI roaming.
  12008. * @QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH: Roam scan is not started
  12009. * due to high data RSSI during background roaming.
  12010. * @QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD: Roam scan is not
  12011. * started due to high beacon RSSI during background roaming
  12012. */
  12013. enum qca_wlan_roam_stats_abort_reason {
  12014. QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED = 0,
  12015. QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH = 1,
  12016. QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD = 2,
  12017. QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH = 3,
  12018. QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD = 4,
  12019. };
  12020. /**
  12021. * enum qca_wlan_roam_stats_scan_type - Roam scan type define.
  12022. * These values are used by the attribute
  12023. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE.
  12024. *
  12025. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL: Partial channel scan
  12026. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL: Full channel scan
  12027. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN: No roam scan was triggered.
  12028. * This is generally used in BTM events to indicate BTM frame exchange logs.
  12029. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ: Higher band roam scan
  12030. * from 2.4 GHz to 5 GHz or 6 GHz
  12031. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ: Higher band roam scan from
  12032. * 5 GHz to 6 GHz
  12033. */
  12034. enum qca_wlan_roam_stats_scan_type {
  12035. QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL = 0,
  12036. QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL = 1,
  12037. QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN = 2,
  12038. QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ = 3,
  12039. QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ = 4,
  12040. };
  12041. /**
  12042. * enum qca_wlan_roam_stats_scan_dwell_type - Roam scan dwell type.
  12043. * These values are used by the attribute
  12044. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE.
  12045. *
  12046. * @QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED: Target did not specify the
  12047. * detailed roam scan type.
  12048. * @QCA_WLAN_ROAM_STATS_DWELL_ACTIVE_TYPE: Active scan during roam.
  12049. * @QCA_WLAN_ROAM_STATS_DWELL_PASSIVE_TYPE: Passive scan during roam.
  12050. */
  12051. enum qca_wlan_roam_stats_scan_dwell_type {
  12052. QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED = 0,
  12053. QCA_WLAN_ROAM_STATS_DWELL_TYPE_ACTIVE = 1,
  12054. QCA_WLAN_ROAM_STATS_DWELL_TYPE_PASSIVE = 2,
  12055. };
  12056. /**
  12057. * enum qca_wlan_vendor_attr_roam_stats_scan_chan_info - Attributes used inside
  12058. * the %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO nested attribute.
  12059. */
  12060. enum qca_wlan_vendor_attr_roam_stats_scan_chan_info {
  12061. /* 32-bit unsigned value to indicate center frequency of the primary
  12062. * channel in MHz for each roam scan channel.
  12063. */
  12064. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHANNEL_FREQ = 1,
  12065. /* 8-bit unsigned value to indicate channel scan type for each
  12066. * roam scan channel, values in qca_wlan_roam_stats_scan_dwell_type.
  12067. */
  12068. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE = 2,
  12069. /* 32-bit unsigned value to indicate maximum scan time in milliseconds
  12070. * for each roam scan channel.
  12071. */
  12072. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX_DWELL_TIME = 3,
  12073. /* keep last */
  12074. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST,
  12075. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_FRAME_MAX =
  12076. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST - 1,
  12077. };
  12078. /**
  12079. * enum qca_wlan_roam_stats_frame_subtype - Roam frame subtypes. These values
  12080. * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE.
  12081. *
  12082. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH: Pre-authentication frame
  12083. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC: Reassociation frame
  12084. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1: EAPOL-Key M1 frame
  12085. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2: EAPOL-Key M2 frame
  12086. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3: EAPOL-Key M3 frame
  12087. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4: EAPOL-Key M4 frame
  12088. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1: EAPOL-Key GTK M1 frame
  12089. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2: EAPOL-Key GTK M2 frame
  12090. */
  12091. enum qca_wlan_roam_stats_frame_subtype {
  12092. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH = 1,
  12093. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC = 2,
  12094. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1 = 3,
  12095. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2 = 4,
  12096. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3 = 5,
  12097. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4 = 6,
  12098. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1 = 7,
  12099. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2 = 8,
  12100. };
  12101. /**
  12102. * enum roam_frame_status - Specifies the valid values the vendor roam frame
  12103. * attribute QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS can take.
  12104. *
  12105. * @QCA_WLAN_ROAM_FRAME_STATUS_SUCCESS: It indicates the roam frame was
  12106. * sent or received successfully.
  12107. * @QCA_WLAN_ROAM_FRAME_STATUS_FAIL: It indicates the roam frame sending or
  12108. * receiving failed.
  12109. */
  12110. enum qca_wlan_roam_stats_frame_status {
  12111. QCA_WLAN_ROAM_STATS_FRAME_STATUS_SUCCESS = 0,
  12112. QCA_WLAN_ROAM_STATS_FRAME_STATUS_FAIL = 1,
  12113. };
  12114. /**
  12115. * enum qca_wlan_vendor_attr_roam_stats_frame_info - Attributes used within the
  12116. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO nested attribute.
  12117. */
  12118. enum qca_wlan_vendor_attr_roam_stats_frame_info {
  12119. /* 8-bit unsigned value to indicate the frame subtype during
  12120. * roaming, one of the values in qca_wlan_roam_stats_frame_subtype.
  12121. */
  12122. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE = 1,
  12123. /* 8-bit unsigned value to indicate the frame is successful or failed
  12124. * during roaming, one of the values in
  12125. * qca_wlan_roam_stats_frame_status.
  12126. */
  12127. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS = 2,
  12128. /* 64-bit unsigned value to indicate the timestamp for frame of
  12129. * preauthentication/reassociation/EAPOL-M1/EAPOL-M2/EAPOL-M3/EAPOL-M4
  12130. * when sent or received during roaming, timestamp in milliseconds
  12131. * from system boot.
  12132. */
  12133. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3,
  12134. /* keep last */
  12135. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST,
  12136. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_MAX =
  12137. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST - 1,
  12138. };
  12139. /**
  12140. * enum qca_wlan_vendor_attr_roam_stats_info - Used by the attribute
  12141. * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO.
  12142. */
  12143. enum qca_wlan_vendor_attr_roam_stats_info {
  12144. /* 64-bit unsigned value to indicate the timestamp when roam was
  12145. * triggered by the firmware, timestamp in milliseconds from system
  12146. * boot.
  12147. */
  12148. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_TRIGGER_TIMESTAMP = 1,
  12149. /* 32-bit unsigned value to indicate the roam trigger reason for the
  12150. * last roaming attempted by the firmware. This can be queried either
  12151. * in a connected state or disconnected state. The values of this
  12152. * attribute represent the roam trigger reason codes, which
  12153. * are defined in enum qca_roam_reason.
  12154. */
  12155. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TRIGGER_REASON = 2,
  12156. /* 8-bit unsigned value to indicate percentage of packets for which
  12157. * the RX rate is lower than the RX rate threshold in total RX packets,
  12158. * used for roaming trigger by per.
  12159. */
  12160. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_RXRATE_THRESHOLD_PERCENT = 3,
  12161. /* 8-bit unsigned value to indicate percentage of packets for which
  12162. * the TX rate is lower than TX rate threshold in total TX packets,
  12163. * used for roaming trigger by per.
  12164. */
  12165. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_TXRATE_THRESHOLD_PERCENT = 4,
  12166. /* 32-bit unsigned value to indicate final beacon miss count for
  12167. * trigger reason of beacon miss.
  12168. */
  12169. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FINAL_BMISS_CNT = 5,
  12170. /* 32-bit unsigned value to indicate consecutive beacon miss count
  12171. * for trigger reason of beacon miss.
  12172. */
  12173. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONSECUTIVE_BMISS_CNT = 6,
  12174. /* 8-bit unsigned value to indicate QOS-NULL TX status for trigger
  12175. * reason of beacon miss, 0 - success, 1 - fail.
  12176. * If QOS-NULL TX status is successful, beacon miss final count and
  12177. * consecutive beacon miss count will be reset to zero, and roam will
  12178. * not be triggered. If QOS-NULL TX status is failed, beacon miss final
  12179. * count and consecutive beacon miss count continue to calculate until
  12180. * roaming trigger by beacon miss.
  12181. */
  12182. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BMISS_QOS_NULL_SUCCESS = 7,
  12183. /* 8-bit signed value to indicate connected AP RSSI in dBm
  12184. * for trigger reason of poor RSSI.
  12185. */
  12186. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_CURRENT_RSSI = 8,
  12187. /* 8-bit signed value to indicate RSSI threshold value in dBm
  12188. * for trigger reason of poor RSSI.
  12189. */
  12190. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_ROAM_RSSI_THRESHOLD = 9,
  12191. /* 8-bit unsigned value to indicate RX link speed status
  12192. * for trigger reason of poor RSSI, 0 - good link speed,
  12193. * 1 - bad link speed.
  12194. */
  12195. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_RX_LINKSPEED_STATUS = 10,
  12196. /* 8-bit signed value to indicate connected AP RSSI in dBm
  12197. * for trigger reason of better RSSI.
  12198. */
  12199. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_CURRENT_RSSI = 11,
  12200. /* 8-bit signed value to indicate RSSI threshold value in dBm
  12201. * for trigger reason of better RSSI.
  12202. */
  12203. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_HIGH_RSSI_THRESHOLD = 12,
  12204. /* 32-bit unsigned value to indicate RX throughput in bytes per second
  12205. * for trigger reason of congestion.
  12206. */
  12207. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_RX_TPUT = 13,
  12208. /* 32-bit unsigned value to indicate TX throughput in bytes per second
  12209. * for trigger reason of congestion.
  12210. */
  12211. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_TX_TPUT = 14,
  12212. /* 8-bit unsigned value to indicate roamable AP count
  12213. * for trigger reason of congestion.
  12214. */
  12215. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_ROAMABLE_CNT = 15,
  12216. /* 8-bit unsigned value to indicate invoke reason, one of the values
  12217. * defined in qca_wlan_roam_stats_invoke_reason.
  12218. */
  12219. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON = 16,
  12220. /* 8-bit unsigned value to indicate request mode for trigger reason
  12221. * of BTM, values are defined in IEEE Std 802.11-2020, 9.6.13.9.
  12222. */
  12223. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQUEST_MODE = 17,
  12224. /* 32-bit unsigned value to indicate disassociate time in milliseconds
  12225. * for trigger reason of BTM.
  12226. */
  12227. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_DISASSOC_IMMINENT_TIME = 18,
  12228. /* 32-bit unsigned value to indicate preferred candidate list valid
  12229. * interval in milliseconds for trigger reason of BTM.
  12230. */
  12231. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_VALID_INTERNAL = 19,
  12232. /* 8-bit unsigned value to indicate the number of preferred
  12233. * candidates for trigger reason of BTM.
  12234. */
  12235. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_CANDIDATE_LIST_CNT = 20,
  12236. /* 8-bit unsigned value to indicate response status for trigger
  12237. * reason of BTM, values are defined in IEEE Std 802.11-2020,
  12238. * Table 9-428 (BTM status code definitions).
  12239. */
  12240. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_RESPONSE_STATUS_CODE = 21,
  12241. /* 32-bit unsigned value to indicate BSS termination timeout value
  12242. * in milliseconds for trigger reason of BTM.
  12243. */
  12244. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_BSS_TERMINATION_TIMEOUT = 22,
  12245. /* 32-bit unsigned value to indicate MBO associate retry timeout
  12246. * value in milliseconds for trigger reason of BTM.
  12247. */
  12248. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_MBO_ASSOC_RETRY_TIMEOUT = 23,
  12249. /* 8-bit unsigned value to indicate dialog token number
  12250. * for trigger reason of BTM.
  12251. */
  12252. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQ_DIALOG_TOKEN = 24,
  12253. /* 8-bit unsigned value to indicate percentage of connected AP
  12254. * channel congestion utilization for trigger reason of BSS load.
  12255. */
  12256. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BSS_CU_LOAD = 25,
  12257. /* 8-bit unsigned value to indicate disconnection type
  12258. * for trigger reason of disconnection. 1 - Deauthentication,
  12259. * 2 - Disassociation.
  12260. */
  12261. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_TYPE = 26,
  12262. /* 16-bit unsigned value to indicate deauthentication or disassociation
  12263. * reason for trigger reason of disconnection, values are defined
  12264. * in IEEE Std 802.11-2020, Table 9-49 (Reason codes).
  12265. */
  12266. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_REASON = 27,
  12267. /* 32-bit unsigned value to indicate milliseconds of roam scan
  12268. * periodicity when needing to roam to find a better AP for trigger
  12269. * reason of periodic timer.
  12270. */
  12271. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PERIODIC_TIMER_MS = 28,
  12272. /* 8-bit signed value to indicate connected AP RSSI in dBm for
  12273. * trigger reason of background scan.
  12274. */
  12275. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_CURRENT_RSSI = 29,
  12276. /* 8-bit signed value to indicate data RSSI in dBm for trigger reason
  12277. * of background scan.
  12278. */
  12279. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI = 30,
  12280. /* 8-bit signed value to indicate data RSSI threshold in dBm
  12281. * for trigger reason of background scan.
  12282. */
  12283. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI_THRESH = 31,
  12284. /* 32-bit unsigned value to indicate consecutive TX failure threshold
  12285. * for trigger reason of TX failures.
  12286. */
  12287. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_THRESHOLD = 32,
  12288. /* 8-bit unsigned value to indicate TX failure reason for trigger
  12289. * reason of TX failures, one of the values defined in
  12290. * qca_wlan_roam_stats_tx_failures_reason.
  12291. */
  12292. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON = 33,
  12293. /* 8-bit unsigned value to indicate detail abort reason. One of the
  12294. * values in enum qca_wlan_roam_stats_abort_reason.
  12295. */
  12296. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON = 34,
  12297. /* 8-bit signed value to indicate data RSSI in dBm when aborting the
  12298. * roam scan.
  12299. */
  12300. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI = 35,
  12301. /* 8-bit signed value to indicate data RSSI threshold in dBm when
  12302. * aborting the roam scan.
  12303. */
  12304. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI_THRESHOLD = 36,
  12305. /* 8-bit unsigned value to indicate data RSSI threshold in RX link
  12306. * speed status when aborting the roam scan.
  12307. * 0 - good link speed, 1 - bad link speed
  12308. */
  12309. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RX_LINKSPEED_STATUS = 37,
  12310. /* 8-bit unsigned value to indicate roaming scan type.
  12311. * One of the values in enum qca_wlan_roam_stats_scan_type.
  12312. */
  12313. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE = 38,
  12314. /* 8-bit unsigned value to indicate roaming result, used in STA mode
  12315. * only.
  12316. * 0-Roaming is successful, 1-Roaming is failed
  12317. */
  12318. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS = 39,
  12319. /* 8-bit unsigned value to indicate the roam fail reason for the
  12320. * last failed roaming attempt by the firmware. Different roam failure
  12321. * reason codes are specified in enum qca_vendor_roam_fail_reasons.
  12322. * This can be queried either in connected state or disconnected state.
  12323. */
  12324. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FAIL_REASON = 40,
  12325. /* Nested attribute. Indicate roam scan info for each channel, the
  12326. * attributes defined in enum
  12327. * qca_wlan_vendor_attr_roam_stats_scan_chan_info are used inside
  12328. * this attribute.
  12329. */
  12330. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO = 41,
  12331. /* 32-bit unsigned value to indicate total scan time during roam scan
  12332. * all channels, time in milliseconds.
  12333. */
  12334. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TOTAL_SCAN_TIME = 42,
  12335. /* Nested attribute. This attribute shall be used by the driver to
  12336. * send roam information of each subtype. The attributes defined in
  12337. * enum qca_wlan_vendor_attr_roam_stats_frame_info are used inside
  12338. * this attribute.
  12339. */
  12340. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO = 43,
  12341. /* keep last */
  12342. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST,
  12343. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX =
  12344. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST - 1,
  12345. };
  12346. /**
  12347. * enum qca_wlan_vendor_attr_roam_cached_stats - Vendor subcmd attributes to
  12348. * report cached roam info from the driver to user space, enum values are used
  12349. * for netlink attributes sent with the
  12350. * %QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS sub command.
  12351. */
  12352. enum qca_wlan_vendor_attr_roam_cached_stats {
  12353. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INVALID = 0,
  12354. /* Nested attribute, this attribute contains nested array roam info
  12355. * statistics defined in enum qca_wlan_vendor_attr_roam_stats_info.
  12356. */
  12357. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO = 1,
  12358. /* keep last */
  12359. QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST,
  12360. QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_MAX =
  12361. QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST - 1,
  12362. };
  12363. /**
  12364. * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
  12365. * radio configurations present in each radio combination.
  12366. *
  12367. * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
  12368. * the band info in the radio configuration. Uses the enum qca_set_band values.
  12369. *
  12370. * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
  12371. * the number of antennas info in the radio configuration.
  12372. */
  12373. enum qca_wlan_vendor_attr_supported_radio_cfg {
  12374. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
  12375. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
  12376. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
  12377. /* keep last */
  12378. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
  12379. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
  12380. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
  12381. };
  12382. /**
  12383. * enum qca_wlan_vendor_attr_radio_combination - Attributes for
  12384. * radio combinations supported by the device.
  12385. *
  12386. * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
  12387. * provides the radio configurations present in the radio combination.
  12388. * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
  12389. * This attribute provides the values for radio combination matrix.
  12390. * For standalone config, the number of config values is one and the config
  12391. * carries the band and antenna information for standalone configuration. For
  12392. * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
  12393. * configuration the number of config values is two and the config carries the
  12394. * band and antenna information for each simultaneous radio.
  12395. */
  12396. enum qca_wlan_vendor_attr_radio_combination {
  12397. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
  12398. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
  12399. /* keep last */
  12400. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
  12401. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
  12402. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
  12403. };
  12404. /**
  12405. * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
  12406. * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
  12407. *
  12408. * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
  12409. * provides the radio combinations supported by the device.
  12410. * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
  12411. * For example, in the radio combination matrix for a device which has two
  12412. * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
  12413. * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
  12414. * combinations is 5 and the radio combinations are
  12415. * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
  12416. * {{5 GHz 2X2}}, //Standalone 5 GHz
  12417. * {{6 GHz 2X2}}, //Standalone 6 GHz
  12418. * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
  12419. * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
  12420. * The band and antenna info together as nested data provides one radio config.
  12421. * Standalone configuration has one config with band and antenna nested data.
  12422. * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
  12423. * have two nested band and antenna info data.
  12424. */
  12425. enum qca_wlan_vendor_attr_radio_combination_matrix {
  12426. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
  12427. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
  12428. /* keep last */
  12429. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
  12430. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
  12431. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
  12432. };
  12433. /**
  12434. * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
  12435. * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
  12436. *
  12437. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
  12438. * Enable mDNS offload. This attribute is mandatory to enable
  12439. * mDNS offload feature. If this attribute is not present, mDNS offload
  12440. * is disabled.
  12441. *
  12442. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
  12443. * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
  12444. * attribute is mandatory when enabling the feature, and not required when
  12445. * disabling the feature.
  12446. *
  12447. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
  12448. * the following attributes:
  12449. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
  12450. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
  12451. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
  12452. *
  12453. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
  12454. * It consists of a hostname and ".local" as the domain name. The character
  12455. * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
  12456. * It is used to compare the domain the in the "QU" query. Only 1 FQDN is
  12457. * supported per vdev.
  12458. * For example: myphone.local
  12459. *
  12460. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
  12461. * u16 attribute. It specifies the total number of resource records present
  12462. * in the answer section of the answer payload. This attribute is needed by the
  12463. * firmware to populate the mDNS response frame for mNDS queries without having
  12464. * to parse the answer payload.
  12465. *
  12466. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required Binary blob
  12467. * attribute sent by the mdnsResponder from userspace. It contains resource
  12468. * records of various types (Eg: A, AAAA, PTR, TXT) and service list. This
  12469. * payload is passed down to firmware and is transmitted in response to
  12470. * mDNS queries.
  12471. * The maximum size of the answer payload supported is 512 bytes.
  12472. */
  12473. enum qca_wlan_vendor_attr_mdns_offload {
  12474. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
  12475. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
  12476. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
  12477. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
  12478. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
  12479. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
  12480. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
  12481. /* keep last */
  12482. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
  12483. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
  12484. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
  12485. };
  12486. /**
  12487. * enum qca_vendor_attr_diag_event_type - Attributes used by
  12488. * %QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute.
  12489. *
  12490. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING: Diag event sent from
  12491. * driver/firmware during Connection request from Userspace. Uses the
  12492. * following attributes of enum qca_wlan_vendor_attr_diag:
  12493. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12494. * QCA_WLAN_VENDOR_ATTR_DIAG_SSID,
  12495. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12496. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT,
  12497. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  12498. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT,
  12499. * QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE,
  12500. * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE,
  12501. * QCA_WLAN_VENDOR_ATTR_DIAG_AKM,
  12502. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  12503. * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE,
  12504. * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE,
  12505. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12506. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12507. *
  12508. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL: Diag event sent from
  12509. * driver/firmware when a connection is failed. Uses the
  12510. * following attributes of enum qca_wlan_vendor_attr_diag:
  12511. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12512. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12513. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  12514. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12515. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12516. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12517. *
  12518. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ: Diag event sent from
  12519. * driver/firmware during Authentication request from a device. Uses the
  12520. * following attributes of enum qca_wlan_vendor_attr_diag:
  12521. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12522. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12523. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12524. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  12525. * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
  12526. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12527. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  12528. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12529. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12530. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12531. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12532. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12533. *
  12534. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP: Diag event sent from
  12535. * driver/firmware when device receives an authentication response. Uses the
  12536. * following attributes of enum qca_wlan_vendor_attr_diag:
  12537. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12538. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12539. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  12540. * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
  12541. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12542. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  12543. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12544. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12545. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12546. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12547. *
  12548. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ: Diag event sent from
  12549. * driver/firmware when device sends an association request. Uses the
  12550. * following attributes of enum qca_wlan_vendor_attr_diag:
  12551. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12552. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12553. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12554. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12555. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12556. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12557. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12558. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12559. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12560. *
  12561. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP: Diag event sent from
  12562. * driver/firmware when device receives an association response. Uses the
  12563. * following attributes of enum qca_wlan_vendor_attr_diag:
  12564. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12565. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12566. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12567. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  12568. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12569. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12570. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12571. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  12572. * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID.
  12573. *
  12574. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX: Diag event sent from
  12575. * driver/userspace when device receives a deauthentication response. Uses the
  12576. * following attributes of enum qca_wlan_vendor_attr_diag:
  12577. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12578. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12579. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12580. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12581. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12582. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12583. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12584. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12585. *
  12586. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX: Diag event sent from
  12587. * driver/userspace when device sends a deauthentication request. Uses the
  12588. * following attributes of enum qca_wlan_vendor_attr_diag:
  12589. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12590. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12591. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12592. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12593. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12594. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12595. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12596. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12597. *
  12598. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX: Diag event sent from
  12599. * driver/firmware when device receives a disassociation response. Uses the
  12600. * following attributes of enum qca_wlan_vendor_attr_diag:
  12601. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12602. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12603. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12604. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12605. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12606. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12607. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12608. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12609. *
  12610. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX: Diag event sent from
  12611. * driver/firmware when device sends a disassociation request. Uses the
  12612. * following attributes of enum qca_wlan_vendor_attr_diag:
  12613. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12614. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12615. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12616. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12617. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12618. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12619. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12620. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12621. *
  12622. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN: Diag event sent from
  12623. * driver/firmware when device did not receive beacon packets during connection.
  12624. * Uses the following attributes of enum qca_wlan_vendor_attr_diag:
  12625. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12626. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12627. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12628. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12629. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12630. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12631. *
  12632. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START: Diag event sent from
  12633. * driver/firmware when Roaming scan is triggered. Uses the following
  12634. * attributes of enum qca_wlan_vendor_attr_diag:
  12635. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12636. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON,
  12637. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON,
  12638. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12639. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  12640. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE,
  12641. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD,
  12642. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12643. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12644. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12645. *
  12646. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE: Diag event sent from
  12647. * driver/firmware Roam scanning is processed. Uses the following
  12648. * attributes of enum qca_wlan_vendor_attr_diag:
  12649. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12650. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  12651. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST,
  12652. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT,
  12653. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  12654. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12655. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12656. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  12657. * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE.
  12658. *
  12659. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP: Diag event sent from
  12660. * driver/firmware to provide Roam information of the current AP. Uses the
  12661. * following attributes of enum qca_wlan_vendor_attr_diag:
  12662. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12663. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12664. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12665. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  12666. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  12667. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
  12668. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12669. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12670. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12671. *
  12672. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP: Diag event sent from
  12673. * driver/firmware to provide Roam information of the candid AP. Uses the
  12674. * following attributes of enum qca_wlan_vendor_attr_diag:
  12675. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12676. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12677. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12678. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  12679. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  12680. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
  12681. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP,
  12682. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  12683. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12684. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12685. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12686. *
  12687. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT: Diag event sent from
  12688. * driver/firmware to provide Roam result after selecting a candidate. Uses the
  12689. * following attributes of enum qca_wlan_vendor_attr_diag:
  12690. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12691. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL,
  12692. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12693. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12694. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12695. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12696. *
  12697. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL: Diag event sent from
  12698. * driver/firmware to indicate Roam Cancellation due to higher priority events.
  12699. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12700. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12701. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12702. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12703. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12704. *
  12705. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ: Diag event sent from driver
  12706. * /firmware when STA sends a BTM request frame. Uses the following attributes
  12707. * of enum qca_wlan_vendor_attr_diag:
  12708. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12709. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  12710. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE,
  12711. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER,
  12712. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL,
  12713. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT,
  12714. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12715. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12716. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12717. *
  12718. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY: Diag event sent from
  12719. * driver/firmware when STA queries about BTM transition. Uses the following
  12720. * attributes of enum qca_wlan_vendor_attr_diag:
  12721. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12722. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  12723. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON,
  12724. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12725. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12726. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12727. *
  12728. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP: Diag event sent from driver
  12729. * /firmware when STA receives BTM response frame. Uses the following
  12730. * attributes of enum qca_wlan_vendor_attr_diag:
  12731. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12732. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  12733. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE,
  12734. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY,
  12735. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID,
  12736. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12737. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12738. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12739. *
  12740. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI: Diag event sent from
  12741. * driver/firmware to provide BTM request candidate information. Uses the
  12742. * following attributes of enum qca_wlan_vendor_attr_diag:
  12743. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12744. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12745. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE,
  12746. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  12747. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12748. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12749. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12750. *
  12751. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC: Diag event sent from driver
  12752. * /firmware when ROAM WTC trigger happens. Uses the following attributes of
  12753. * enum qca_wlan_vendor_attr_diag:
  12754. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12755. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE,
  12756. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12757. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION,
  12758. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12759. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12760. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12761. *
  12762. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER: Diag event sent from
  12763. * driver/firmware to indicate DHCP discovery to AP. Uses the following
  12764. * attributes of enum qca_wlan_vendor_attr_diag:
  12765. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12766. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12767. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12768. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12769. *
  12770. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER: Diag event sent from
  12771. * driver/firmware to indicate DHCP offering to AP. Uses the following
  12772. * attributes of enum qca_wlan_vendor_attr_diag:
  12773. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12774. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12775. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12776. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12777. *
  12778. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST: Diag event sent from
  12779. * driver/firmware to indicate driver sent DHCP packets. Uses the following
  12780. * attributes of enum qca_wlan_vendor_attr_diag:
  12781. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12782. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12783. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12784. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12785. *
  12786. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK: Diag event sent from driver
  12787. * /firmware to indicate acknowledgement of DHCP packets. Uses the following
  12788. * attributes of enum qca_wlan_vendor_attr_diag:
  12789. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12790. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12791. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12792. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12793. *
  12794. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK: Diag event sent from driver
  12795. * /firmware to indicate negative acknowledgement of DHCP packets. Uses the
  12796. * following attributes of enum qca_wlan_vendor_attr_diag:
  12797. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12798. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12799. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12800. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12801. *
  12802. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1: Diag event sent from driver
  12803. * /firmware to indicate EAPOL M1 message. Uses the following attributes of
  12804. * enum qca_wlan_vendor_attr_diag:
  12805. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12806. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12807. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12808. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12809. *
  12810. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2: Diag event sent from driver
  12811. * /firmware to indicate EAPOL M2 message. Uses the following attributes of
  12812. * enum qca_wlan_vendor_attr_diag:
  12813. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12814. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12815. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12816. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12817. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12818. *
  12819. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3: Diag event sent from driver
  12820. * /firmware to indicate EAPOL M3 message. Uses the following attributes of
  12821. * enum qca_wlan_vendor_attr_diag:
  12822. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12823. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12824. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12825. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12826. *
  12827. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4: Diag event sent from driver
  12828. * /firmware to indicate EAPOL M4 message. Uses the following attributes of
  12829. * enum qca_wlan_vendor_attr_diag:
  12830. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12831. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12832. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12833. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12834. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12835. *
  12836. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1: Diag event sent from driver
  12837. * /firmware to indicate GTK rekey M1 frame. Uses the following attributes of
  12838. * enum qca_wlan_vendor_attr_diag:
  12839. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12840. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12841. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12842. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12843. *
  12844. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2: Diag event sent from driver
  12845. * /firmware to indicate GTK Rekey M2 frame. Uses the following attributes of
  12846. * enum qca_wlan_vendor_attr_diag:
  12847. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12848. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12849. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12850. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12851. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12852. *
  12853. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST: Diag event sent from driver
  12854. * /firmware to indicate device sent EAP request. Uses the following attributes
  12855. * of enum qca_wlan_vendor_attr_diag:
  12856. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12857. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
  12858. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
  12859. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12860. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12861. *
  12862. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE: Diag event sent from driver
  12863. * /firmware to indicate device received EAP response. Uses the following
  12864. * attributes of enum qca_wlan_vendor_attr_diag:
  12865. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12866. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
  12867. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
  12868. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12869. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12870. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12871. *
  12872. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS: Diag event sent from driver
  12873. * /firmware to indicate EAP frame transmission is success. Uses the following
  12874. * attributes of enum qca_wlan_vendor_attr_diag:
  12875. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12876. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12877. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12878. *
  12879. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE: Diag event sent from driver
  12880. * /firmware to indicate EAP frame transmission is failed. Uses the following
  12881. * attributes of enum qca_wlan_vendor_attr_diag:
  12882. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12883. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12884. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12885. *
  12886. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ: Diag event sent from driver
  12887. * /firmware to indicate Reassocation request. Uses the following attributes
  12888. * of enum qca_wlan_vendor_attr_diag:
  12889. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  12890. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12891. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12892. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12893. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12894. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12895. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12896. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  12897. *
  12898. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES: Diag event sent from driver
  12899. * /firmware to indicate Reassocation response. Uses the following attributes
  12900. * of enum qca_wlan_vendor_attr_diag:
  12901. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  12902. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12903. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12904. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  12905. * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID,
  12906. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12907. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12908. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  12909. */
  12910. enum qca_vendor_attr_diag_event_type {
  12911. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING = 0,
  12912. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL = 1,
  12913. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ = 2,
  12914. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP = 3,
  12915. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ = 4,
  12916. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP = 5,
  12917. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX = 6,
  12918. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX = 7,
  12919. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX = 8,
  12920. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX = 9,
  12921. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN = 10,
  12922. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START = 11,
  12923. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE = 12,
  12924. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP = 13,
  12925. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP = 14,
  12926. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT = 15,
  12927. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL = 16,
  12928. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ = 17,
  12929. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY = 18,
  12930. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP = 19,
  12931. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI = 20,
  12932. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC = 21,
  12933. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER = 22,
  12934. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER = 23,
  12935. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST = 24,
  12936. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK = 25,
  12937. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK = 26,
  12938. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1 = 27,
  12939. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2 = 28,
  12940. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3 = 29,
  12941. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4 = 30,
  12942. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1 = 31,
  12943. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2 = 32,
  12944. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST = 33,
  12945. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE = 34,
  12946. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS = 35,
  12947. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE = 36,
  12948. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ = 37,
  12949. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES = 38,
  12950. /* keep last */
  12951. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST,
  12952. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_MAX =
  12953. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST - 1,
  12954. };
  12955. /**
  12956. * enum qca_wlan_vendor_tx_status - Used by attribute
  12957. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS to indicate TX status.
  12958. * @QCA_WLAN_VENDOR_TX_STATUS_FAIL: Indicates frame is not sent over the air.
  12959. * @QCA_WLAN_VENDOR_TX_STATUS_NO_ACK: Indicates packet sent but acknowledgement
  12960. * is not received.
  12961. * @QCA_WLAN_VENDOR_TX_STATUS_ACK: Indicates the frame is successfully sent and
  12962. * acknowledged.
  12963. */
  12964. enum qca_wlan_vendor_tx_status {
  12965. QCA_WLAN_VENDOR_TX_STATUS_FAIL = 1,
  12966. QCA_WLAN_VENDOR_TX_STATUS_NO_ACK = 2,
  12967. QCA_WLAN_VENDOR_TX_STATUS_ACK = 3,
  12968. };
  12969. /**
  12970. * enum qca_roam_sub_reason - Used by attribute
  12971. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON
  12972. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER: Roam scan triggered due to periodic
  12973. * timer expiry
  12974. * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI: Roam scan trigger due
  12975. * to no candidate found during LOW RSSI trigger.
  12976. * @QCA_ROAM_SUB_REASON_BTM_DI_TIMER: Roam scan triggered due to BTM Disassoc
  12977. * Imminent timeout
  12978. * @QCA_ROAM_SUB_REASON_FULL_SCAN: Roam scan triggered due to partial scan
  12979. * failure
  12980. * @QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC: Roam trigger due to
  12981. * emergency like deauth/disassoc.
  12982. * @QCA_ROAM_SUB_REASON_CU_PERIODIC: Roam trigger due to
  12983. * BSS transition management request.
  12984. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI:
  12985. * Roam scan triggered due to Low RSSI periodic timer
  12986. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU:
  12987. * Roam trigger due to periodic timer after no candidate found during CU
  12988. * inactivity timer scan.
  12989. * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU: Roam trigger due to no candidate
  12990. * found in high CU roam trigger.
  12991. */
  12992. enum qca_roam_sub_reason {
  12993. QCA_ROAM_SUB_REASON_PERIODIC_TIMER = 1,
  12994. QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI = 2,
  12995. QCA_ROAM_SUB_REASON_BTM_DI_TIMER = 3,
  12996. QCA_ROAM_SUB_REASON_FULL_SCAN = 4,
  12997. QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC = 5,
  12998. QCA_ROAM_SUB_REASON_CU_PERIODIC = 6,
  12999. QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI = 7,
  13000. QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU = 8,
  13001. QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU = 9,
  13002. };
  13003. /*
  13004. * enum qca_wlan_vendor_attr_diag - Defines attributes used by the driver
  13005. * to send diag data to the userspace. The attributes defined in this enum are
  13006. * used with QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
  13007. *
  13008. * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT: Required Attribute. Nested attribute used
  13009. * by driver/firmware to send diag data. Each instance of this nested attribute
  13010. * contains one QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute and other
  13011. * attributes defined in enum qca_wlan_vendor_attr_diag that belong to the
  13012. * event type defined by QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE. Multiple of this
  13013. * nested attribute can be sent with one vendor command
  13014. * QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
  13015. *
  13016. * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE: Required u32 attribute. This
  13017. * attribute indicates the type of the diag event from driver/firmware. Uses
  13018. * values from enum qca_vendor_attr_diag_event_type.
  13019. *
  13020. * @QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP: Required u64 attribute. This
  13021. * attribute indicates the system timestamp. Driver uses ktime_get_real_ts64()
  13022. * API to send time of the day in microseconds to userspace.
  13023. *
  13024. * @QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP: Optional u64 attribute.
  13025. * This attribute indicates firmware timestamp in microseconds.
  13026. *
  13027. * @QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX: Optional u8 attribute. This attribute
  13028. * indicates wlan interface index.
  13029. *
  13030. * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID: Optional attribute. This attribute
  13031. * indicates 6-byte MAC address representing the BSSID of the AP.
  13032. *
  13033. * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT: Optional attribute. This attribute
  13034. * indicates the 6-byte MAC address representing the BSSID hint sent in
  13035. * the connect request.
  13036. *
  13037. * @QCA_WLAN_VENDOR_ATTR_DIAG_SSID: Optional attribute. This attribute
  13038. * indicates the SSID in u8 array with a maximum length of 32.
  13039. *
  13040. * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ: Optional u16 attribute. This attribute
  13041. * indicates the frequency of AP in MHz.
  13042. *
  13043. * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT: Optional u16 attribute. This attribute
  13044. * indicates frequency hint given in the connect request in MHz.
  13045. *
  13046. * @QCA_WLAN_VENDOR_ATTR_DIAG_RSSI: Optional signed 32 attribute.
  13047. * This attribute indicates RSSI of the 802.11 frame in dBm.
  13048. *
  13049. * @QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE: Optional u32 attribute.
  13050. * This attribute indicates Pairwise cipher suite defined in IEEE 802.11 2020
  13051. * Table 12-10—Integrity and key wrap algorithms.
  13052. *
  13053. * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE: Optional u32 attribute.
  13054. * This attribute indicates Group cipher suite defined in IEEE 802.11 2020
  13055. * Table 12-10—Integrity and key wrap algorithms.
  13056. *
  13057. * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE: Optional u32 attribute. This
  13058. * attribute indicates Group management cipher suite defined in IEEE Std
  13059. * 802.11‐2020 spec. Table 12-10—Integrity and key wrap algorithms.
  13060. *
  13061. * @QCA_WLAN_VENDOR_ATTR_DIAG_AKM: Optional u32 attribute. This attribute
  13062. * indicates Auth key management suite defined in IEEE Std 802.11‐2020
  13063. * Table 9-151—AKM suite selectors.
  13064. *
  13065. * @QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO: Optional u8 attribute. This attribute
  13066. * indicates authentication algorithm number defined in IEEE Std 802.11‐2020
  13067. * Section 9.4.1.1 Authentication Algorithm Number field.
  13068. *
  13069. * @QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE: Optional flag. This attribute
  13070. * indicates bluetooth COEX is active or not.
  13071. *
  13072. * @QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE: Optional u8 attribute. This
  13073. * attribute indicates SAE authentication frame type. The possible values are
  13074. * 1 - SAE commit frame
  13075. * 2 - SAE confirm frame
  13076. *
  13077. * @QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE: Optional u16 attribute. This
  13078. * attribute indicates the reason codes defined in IEEE Std 802.11‐2020
  13079. * Table 9-49—Reason codes.
  13080. *
  13081. * @QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER: Optional u16 attribute. This
  13082. * attribute indicates sequence number of the frame defined in IEEE Std
  13083. * 802.11‐2020 Section 9.4.1.2 Authentication Transaction Sequence Number
  13084. * field.
  13085. *
  13086. * @QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE: Optional u8 attribute. This
  13087. * attribute indicates the status codes defined in IEEE Std 802.11‐2020 Table
  13088. * 9-50—Status codes.
  13089. *
  13090. * @QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS: Optional u8 attribute.
  13091. * Uses enum qca_wlan_vendor_tx_status.
  13092. *
  13093. * @QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME: Optional flag. This attribute
  13094. * indicates if frame transmission is retried.
  13095. *
  13096. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON: Optional u8 attribute.
  13097. * Uses enum qca_roam_reason.
  13098. *
  13099. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON: Optional u8 attribute.
  13100. * Uses enum qca_roam_sub_reason.
  13101. *
  13102. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU: Optional u8 attribute. This attribute
  13103. * indicates channel utilization in percentage.
  13104. *
  13105. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE: Optional u8 attribute. This
  13106. * attribute indicates scan type used. Uses enum qca_roam_scan_scheme.
  13107. *
  13108. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD: Optional signed 32 attribute.
  13109. * This attribute indicates current RSSI threshold in dBm.
  13110. *
  13111. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST: Required Attribute.
  13112. * Nested attribute used by QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE
  13113. * to carry list of QCA_WLAN_VENDOR_ATTR_DIAG_FREQ.
  13114. *
  13115. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT: optional u8 attribute.
  13116. * This attribute indicates number of scanned candidate APs.
  13117. *
  13118. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK: Optional u8 attribute. This
  13119. * attribute indicates roam AP rank computed based on connection preference.
  13120. *
  13121. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP: Optional u32 attribute.
  13122. * This attribute indicates expected throughput in kbps.
  13123. *
  13124. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE: Optional u16 attribute.
  13125. * This attribute indicates the preference value of candidate AP / connected AP
  13126. * calculated in the firmware.
  13127. *
  13128. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL: Optional flag. This attribute
  13129. * indicates connection/roaming is successful or not.
  13130. *
  13131. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE: Optional u8 attribute.
  13132. * This attribute indicates BTM WTC sub reason code in the WTC vendor specific
  13133. * IE present in the BTM frame.
  13134. *
  13135. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION: Optional u32 attribute.
  13136. * This attribute indicates BTM WTC duration in milliseconds.
  13137. *
  13138. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN: Optional u8 attribute. This attribute
  13139. * indicates dialog token value of BTM query/request/response frames.
  13140. *
  13141. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON: Optional u8 attribute. This
  13142. * attribute indicates the Transition Reason field indicates the reason why
  13143. * a transition attempt occurred and contains one of the values defined in IEEE
  13144. * Std 802.11‐2020 Table 9-198—Transition and Transition Query reasons.
  13145. *
  13146. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE: Optional u8 attribute. This attribute
  13147. * indicates BTM mode defined in IEEE Std 802.11‐2020
  13148. * Figure 9-924—Request Mode field format.
  13149. *
  13150. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER: Optional u16 attribute.
  13151. * This attribute indicates the Disassociation Timer field which is the number
  13152. * of beacon transmission times (TBTTs) until the serving AP will send a
  13153. * Disassociation frame to this STA.
  13154. *
  13155. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL: Optional u8 attribute.
  13156. * This attribute indicates BTM validity interval field in TBTTs defined in
  13157. * IEEE Std 802.11‐2020 Figure 9-923—BSS Transition Management Request frame
  13158. * Action field format.
  13159. *
  13160. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT: Optional u8 attribute.
  13161. * This attribute indicates BTM candidate list entries.
  13162. *
  13163. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE: Optional u8 attribute.
  13164. * This attribute indicates network preference for BTM transition defined in
  13165. * IEEE Std 802.11‐2020 Table 9-174—Preference field values.
  13166. *
  13167. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE: Optional u8 attribute.
  13168. * This attribute indicates BTM transition status code defined in IEEE Std
  13169. * 802.11‐2020 Table 9-428—BTM status code definitions.
  13170. *
  13171. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY: Optional u8 attribute.
  13172. * This attribute indicates BSS termination delay defined in IEEE Std
  13173. * 802.11‐2020 Section 9.6.13.10 BSS Transition Management Response frame format.
  13174. *
  13175. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID: Optional attribute.
  13176. * This attribute indicates 6-byte MAC address representing the BSSID of the
  13177. * BSS that the non-AP STA transitions to.
  13178. *
  13179. * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE: Optional u8 attribute. This attribute
  13180. * indicates EAP frame type. The methods are enumerated by IANA at
  13181. * https://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml.
  13182. *
  13183. * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN: Optional u8 attribute. This attribute
  13184. * indicates EAP frame length.
  13185. *
  13186. * @QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP: Required u64 attribute. This
  13187. * attribute indicates the kernel timestamp. Driver uses ktime_get() API
  13188. * (Time from boot but not the time spent in suspend) to send in microseconds
  13189. * to userspace.
  13190. *
  13191. * @QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID: Optional u16 attribute. This attribute
  13192. * indicates the association id received in the (re)association response frame
  13193. * defined in IEEE Std 802.11-2020 Figure 9-91-AID field format.
  13194. */
  13195. enum qca_wlan_vendor_attr_diag {
  13196. QCA_WLAN_VENDOR_ATTR_DIAG_INVALID = 0,
  13197. QCA_WLAN_VENDOR_ATTR_DIAG_EVENT = 1,
  13198. QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE = 2,
  13199. QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP = 3,
  13200. QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP = 4,
  13201. QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX = 5,
  13202. QCA_WLAN_VENDOR_ATTR_DIAG_BSSID = 6,
  13203. QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT = 7,
  13204. QCA_WLAN_VENDOR_ATTR_DIAG_SSID = 8,
  13205. QCA_WLAN_VENDOR_ATTR_DIAG_FREQ = 9,
  13206. QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT = 10,
  13207. QCA_WLAN_VENDOR_ATTR_DIAG_RSSI = 11,
  13208. QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE = 12,
  13209. QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE = 13,
  13210. QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE = 14,
  13211. QCA_WLAN_VENDOR_ATTR_DIAG_AKM = 15,
  13212. QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO = 16,
  13213. QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE = 17,
  13214. QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE = 18,
  13215. QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE = 19,
  13216. QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER = 20,
  13217. QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE = 21,
  13218. QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS = 22,
  13219. QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME = 23,
  13220. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON = 24,
  13221. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON = 25,
  13222. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU = 26,
  13223. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE = 27,
  13224. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD = 28,
  13225. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST = 29,
  13226. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT = 30,
  13227. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK = 31,
  13228. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP = 32,
  13229. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE = 33,
  13230. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL = 34,
  13231. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE = 35,
  13232. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION = 36,
  13233. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN = 37,
  13234. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON = 38,
  13235. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE = 39,
  13236. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER = 40,
  13237. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL = 41,
  13238. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT = 42,
  13239. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE = 43,
  13240. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE = 44,
  13241. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY = 45,
  13242. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID = 46,
  13243. QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE = 47,
  13244. QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN = 48,
  13245. QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP = 49,
  13246. QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID = 50,
  13247. /* keep last */
  13248. QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST,
  13249. QCA_WLAN_VENDOR_ATTR_DIAG_MAX =
  13250. QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST - 1,
  13251. };
  13252. /**
  13253. * qca_wlan_vendor_monitor_data_frame_type - Represent the various
  13254. * data types to be sent over the monitor interface.
  13255. */
  13256. enum qca_wlan_vendor_monitor_data_frame_type {
  13257. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
  13258. /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is
  13259. not set */
  13260. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
  13261. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
  13262. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
  13263. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
  13264. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
  13265. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
  13266. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
  13267. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
  13268. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
  13269. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
  13270. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
  13271. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
  13272. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
  13273. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
  13274. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
  13275. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
  13276. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
  13277. };
  13278. /**
  13279. * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
  13280. * mgmt types to be sent over the monitor interface.
  13281. * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the MGMT Frames.
  13282. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the MGMT Frames
  13283. * except the Beacons. Valid only in the Connect state.
  13284. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
  13285. * BSSID Beacons. Valid only in the Connect state.
  13286. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
  13287. * the Beacons obtained during the scan (off channel and connected channel)
  13288. * when in connected state.
  13289. */
  13290. enum qca_wlan_vendor_monitor_mgmt_frame_type {
  13291. QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
  13292. /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set */
  13293. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON = BIT(1),
  13294. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
  13295. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
  13296. };
  13297. /**
  13298. * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
  13299. * ctrl types to be sent over the monitor interface.
  13300. * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the ctrl Frames.
  13301. * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger Frame.
  13302. */
  13303. enum qca_wlan_vendor_monitor_ctrl_frame_type {
  13304. QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
  13305. /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set */
  13306. QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
  13307. };
  13308. /**
  13309. * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
  13310. * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
  13311. * monitor mode.
  13312. *
  13313. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute,
  13314. * Represents the tx data packet type to be monitored (u32). These data packets
  13315. * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
  13316. *
  13317. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute,
  13318. * Represents the tx data packet type to be monitored (u32). These data packets
  13319. * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
  13320. *
  13321. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute,
  13322. * Represents the tx data packet type to be monitored (u32). These mgmt packets
  13323. * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
  13324. *
  13325. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute,
  13326. * Represents the tx data packet type to be monitored (u32). These mgmt packets
  13327. * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
  13328. *
  13329. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute,
  13330. * Represents the tx data packet type to be monitored (u32). These ctrl packets
  13331. * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
  13332. *
  13333. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute,
  13334. * Represents the tx data packet type to be monitored (u32). These ctrl packets
  13335. * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
  13336. *
  13337. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL:
  13338. * u32 attribute, An interval only for the connected beacon interval, which
  13339. * expects that the connected BSSID's beacons shall be sent on the monitor
  13340. * interface only on this specific interval.
  13341. */
  13342. enum qca_wlan_vendor_attr_set_monitor_mode {
  13343. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
  13344. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
  13345. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
  13346. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
  13347. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
  13348. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
  13349. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
  13350. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
  13351. /* keep last */
  13352. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
  13353. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
  13354. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
  13355. };
  13356. /**
  13357. * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
  13358. * Bits will be set to 1 if the corresponding state is enabled.
  13359. *
  13360. * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
  13361. * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
  13362. */
  13363. enum qca_wlan_vendor_roam_scan_state {
  13364. QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
  13365. QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
  13366. };
  13367. /**
  13368. * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
  13369. * Bits will be set to 1 if the corresponding event is notified.
  13370. *
  13371. * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
  13372. * carries the trigger reason. When set, it is expected that the roam event
  13373. * carries the respective reason via the attribute
  13374. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
  13375. * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
  13376. *
  13377. * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
  13378. * carries the roam fail reason. When set, it is expected that the roam event
  13379. * carries the respective reason via the attribute
  13380. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
  13381. * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
  13382. *
  13383. * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
  13384. * event carries the roam invoke fail reason. When set, it is expected that
  13385. * the roam event carries the respective reason via the attribute
  13386. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
  13387. *
  13388. * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
  13389. * carries the roam scan state. When set, it is expected that the roam event
  13390. * carries the respective scan state via the attribute
  13391. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
  13392. * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
  13393. */
  13394. enum qca_wlan_vendor_roam_event_type {
  13395. QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
  13396. QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
  13397. QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
  13398. QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
  13399. };
  13400. /**
  13401. * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
  13402. * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
  13403. *
  13404. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
  13405. * representing the BSSID of the AP to which the Roam is attempted.
  13406. *
  13407. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
  13408. * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
  13409. * attempted.
  13410. *
  13411. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, Frequency in MHz
  13412. * on which the roam is attempted.
  13413. *
  13414. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
  13415. * STA mode only. This represents the roam fail reason for the last failed
  13416. * roaming attempt by the firmware for the specific BSSID. Different roam
  13417. * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
  13418. */
  13419. enum qca_wlan_vendor_attr_roam_events_candidate_info {
  13420. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
  13421. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
  13422. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
  13423. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
  13424. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
  13425. /* keep last */
  13426. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
  13427. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
  13428. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
  13429. };
  13430. /**
  13431. * enum qca_wlan_vendor_attr_roam_events - Used by the
  13432. * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
  13433. * roam events to the driver or notify these events from the driver.
  13434. *
  13435. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
  13436. * driver/firmware to enable/disable the notification of roam events. It's a
  13437. * mandatory attribute and used only in the request from the userspace to the
  13438. * host driver. 1-Enable, 0-Disable.
  13439. * If the roaming is totally offloaded to the firmware, this request when
  13440. * enabled shall mandate the firmware to notify all the relevant roam events
  13441. * represented by the below attributes. If the host is in the suspend mode,
  13442. * the behavior of the firmware to notify these events is guided by
  13443. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
  13444. * these events in the suspend state, the firmware is expected to wake up the
  13445. * host before the respective events are notified. Please note that such a
  13446. * request to get the events in the suspend state will have a definite power
  13447. * implication.
  13448. *
  13449. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
  13450. * that the roam events need to be notified in the suspend state too. By
  13451. * default, these roam events are notified in the resume state. With this flag,
  13452. * the roam events are notified in both resume and suspend states.
  13453. * This attribute is used in the request from the userspace to the host driver.
  13454. *
  13455. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
  13456. * Represents the different roam event types, signified by the enum
  13457. * qca_wlan_vendor_roam_event_type.
  13458. * Each bit of this attribute represents the different roam even types reported
  13459. * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13460. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13461. *
  13462. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
  13463. * mode only. This represents the roam trigger reason for the last roaming
  13464. * attempted by the firmware. Each bit of this attribute represents the
  13465. * different roam trigger reason code which are defined in enum
  13466. * qca_vendor_roam_triggers.
  13467. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13468. *
  13469. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
  13470. * STA mode only. This represents the roam invoke fail reason for the last
  13471. * failed roam invoke. Different roam invoke failure reason codes
  13472. * are specified in enum qca_vendor_roam_invoke_fail_reasons.
  13473. *
  13474. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
  13475. * for which the roam is attempted. Each entry is a nested attribute defined
  13476. * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
  13477. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13478. *
  13479. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
  13480. * the scan state on which the roam events need to be notified. The values for
  13481. * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
  13482. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13483. *
  13484. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
  13485. * u32 values. List of frequencies in MHz considered for a roam scan.
  13486. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13487. */
  13488. enum qca_wlan_vendor_attr_roam_events {
  13489. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
  13490. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
  13491. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
  13492. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
  13493. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
  13494. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
  13495. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
  13496. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
  13497. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
  13498. /* keep last */
  13499. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
  13500. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
  13501. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1,
  13502. };
  13503. /*
  13504. * enum qca_wlan_ratemask_params_type - Rate mask config type.
  13505. *
  13506. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK_OFDM rate mask config
  13507. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
  13508. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
  13509. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
  13510. */
  13511. enum qca_wlan_ratemask_params_type {
  13512. QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
  13513. QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
  13514. QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
  13515. QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
  13516. };
  13517. /* enum qca_wlan_vendor_attr_ratemask_params - Used by the
  13518. * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
  13519. * This is used to set the rate mask value to be used in rate selection.
  13520. *
  13521. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
  13522. * Array of nested containing attributes
  13523. * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
  13524. * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
  13525. *
  13526. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
  13527. * the different phy types to which the rate mask config is to be applied.
  13528. * The values for this attribute are referred from enum
  13529. * qca_wlan_vendor_ratemask_params_type.
  13530. *
  13531. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
  13532. * A bit value of 1 represents rate is enabled and a value of 0
  13533. * represents rate is disabled.
  13534. * For HE targets, 12 bits correpond to one NSS setting.
  13535. * b0-13 => NSS1, MCS 0-13
  13536. * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
  13537. * For VHT targets, 10 bits correspond to one NSS setting.
  13538. * b0-9 => NSS1, MCS 0-9
  13539. * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
  13540. * For HT targets, 8 bits correspond to one NSS setting.
  13541. * b0-7 => NSS1, MCS 0-7
  13542. * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
  13543. * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
  13544. */
  13545. enum qca_wlan_vendor_attr_ratemask_params {
  13546. QCA_WLAN_VENDOR_ATTR_RATEMASK_INVALID = 0,
  13547. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
  13548. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
  13549. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
  13550. /* keep last */
  13551. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
  13552. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
  13553. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
  13554. };
  13555. /**
  13556. * enum qca_wlan_vendor_flush_pending_policy: Represents values for
  13557. * the policy to flush pending frames, configured via
  13558. * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
  13559. * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
  13560. *
  13561. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
  13562. * the flush policy configured before. This command basically disables the
  13563. * flush config set by the user.
  13564. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
  13565. * the flush policy to be immediate. All pending packets for the peer/TID are
  13566. * flushed when this command/policy is received.
  13567. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
  13568. * the flush policy to the end of TWT SP. All pending packets for the peer/TID
  13569. * are flushed when the end of TWT SP is reached.
  13570. */
  13571. enum qca_wlan_vendor_flush_pending_policy {
  13572. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
  13573. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
  13574. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
  13575. };
  13576. /**
  13577. * enum qca_wlan_vendor_attr_flush_pending - Attributes for
  13578. * flushing pending traffic in firmware.
  13579. *
  13580. * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
  13581. * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
  13582. * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
  13583. * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
  13584. * flush packets with access category. This is optional. See below.
  13585. * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
  13586. * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
  13587. * bit to 1 to act upon the TID. This is optional. Either this attribute or
  13588. * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
  13589. * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
  13590. * it is an error.
  13591. * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
  13592. * packets corresponding to the peer/TID provided. It is a u32 value,
  13593. * represented by %enum qca_wlan_vendor_flush_pending_policy. This
  13594. * value is honored only when TID mask is provided. This is not honored when AC
  13595. * mask is provided.
  13596. */
  13597. enum qca_wlan_vendor_attr_flush_pending {
  13598. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
  13599. QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
  13600. QCA_WLAN_VENDOR_ATTR_AC = 2,
  13601. QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
  13602. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
  13603. /* keep last */
  13604. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
  13605. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
  13606. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
  13607. };
  13608. /**
  13609. * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
  13610. * for) or drop existing PASN security association for the listed the
  13611. * peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
  13612. * to userspace.
  13613. *
  13614. * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
  13615. * devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
  13616. * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
  13617. * the driver to userspace to inform that the existing PASN keys of the
  13618. * peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
  13619. * not valid anymore.
  13620. */
  13621. enum qca_wlan_vendor_pasn_action {
  13622. QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
  13623. QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
  13624. };
  13625. /**
  13626. * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
  13627. * QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
  13628. *
  13629. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
  13630. * event from the driver to userspace and represents the local MAC address
  13631. * to be used for PASN handshake. When this attribute is present, userspace
  13632. * shall use the source address specified in this attribute by the driver
  13633. * for PASN handshake with peer device.
  13634. * This attribute is required in a command response from userspace to the
  13635. * driver and represents the MAC address that was used in PASN handshake
  13636. * with the peer device.
  13637. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
  13638. * peer device to which PASN handshake is requested in an event from the
  13639. * driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
  13640. * QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
  13641. * Indicates the MAC address of the peer device for which the keys are to
  13642. * be invalidated in an event from the driver to userspace when
  13643. * QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
  13644. * QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
  13645. * Indicates the MAC address of the peer device for which the status is
  13646. * being sent in a status report from userspace to the driver.
  13647. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
  13648. * in the event from the driver to userspace. When set, userspace is
  13649. * required to derive LTF key seed from KDK and set it to the driver.
  13650. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
  13651. * attribute is used in the command response from userspace to the driver.
  13652. * If present, it indicates the successful PASN handshake with the peer. If
  13653. * this flag is not present, it indicates that the PASN handshake with the
  13654. * peer device failed.
  13655. */
  13656. enum qca_wlan_vendor_attr_pasn_peer {
  13657. QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
  13658. QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
  13659. QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
  13660. QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
  13661. QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
  13662. /* keep last */
  13663. QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
  13664. QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
  13665. QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
  13666. };
  13667. /**
  13668. * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
  13669. * QCA_NL80211_VENDOR_SUBCMD_PASN command.
  13670. *
  13671. * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
  13672. * defined in enum qca_wlan_vendor_pasn_action and used only in an event
  13673. * from the driver to userspace.
  13674. * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
  13675. * details for each peer and used in both an event and a command response.
  13676. * The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
  13677. * defined in enum qca_wlan_vendor_attr_pasn_peer.
  13678. */
  13679. enum qca_wlan_vendor_attr_pasn {
  13680. QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
  13681. QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
  13682. QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
  13683. /* keep last */
  13684. QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
  13685. QCA_WLAN_VENDOR_ATTR_PASN_MAX =
  13686. QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
  13687. };
  13688. /**
  13689. * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
  13690. * the ranging security context derived from PASN for each peer. Used in
  13691. * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
  13692. *
  13693. * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
  13694. * context for the peer.
  13695. * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
  13696. * context for the peer.
  13697. */
  13698. enum qca_wlan_vendor_secure_ranging_ctx_action {
  13699. QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
  13700. QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
  13701. };
  13702. /**
  13703. * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
  13704. * used for deriving PASN keys to the driver. Used in
  13705. * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
  13706. * @QCA_WLAN_VENDOR_SHA_256: SHA-256
  13707. * @QCA_WLAN_VENDOR_SHA_384: SHA-384
  13708. */
  13709. enum qca_wlan_vendor_sha_type {
  13710. QCA_WLAN_VENDOR_SHA_256,
  13711. QCA_WLAN_VENDOR_SHA_384,
  13712. };
  13713. /**
  13714. * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
  13715. * to set security context for the PASN peer from userspace to the driver.
  13716. * Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
  13717. *
  13718. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
  13719. * values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
  13720. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
  13721. * was used during the PASN handshake.
  13722. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
  13723. * the peer device for which secure ranging context is being configured.
  13724. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
  13725. * hash algorithm to be used, possible values are defined in enum
  13726. * qca_wlan_vendor_sha_type.
  13727. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
  13728. * the temporal key generated from the PASN handshake. The length of this
  13729. * attribute is dependent on the value of
  13730. * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
  13731. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
  13732. * TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
  13733. * (e.g., 0x000FAC04).
  13734. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
  13735. * attribute, holds the LTF keyseed derived from KDK of PASN handshake.
  13736. * The length of this attribute is dependent on the value of
  13737. * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
  13738. *
  13739. */
  13740. enum qca_wlan_vendor_attr_secure_ranging_ctx {
  13741. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
  13742. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
  13743. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
  13744. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
  13745. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
  13746. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
  13747. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
  13748. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
  13749. /* keep last */
  13750. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
  13751. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
  13752. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
  13753. };
  13754. /**
  13755. * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used
  13756. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER
  13757. * nested attribute. The packets that match a filter will be replied with
  13758. * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY.
  13759. *
  13760. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4:
  13761. * u32 attribute. Destination IPv4 address in network byte order, the
  13762. * IPv4 packets with different address will be filtered out.
  13763. * This attribute is optional.
  13764. *
  13765. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC:
  13766. * Flag attribute. If it's present, indicates that
  13767. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast
  13768. * address; while if not, indicates that the address is a unicast/multicast
  13769. * address.
  13770. * This attribute is optional.
  13771. *
  13772. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6:
  13773. * NLA_BINARY attribute, length is 16 bytes.
  13774. * Destination IPv6 address in network byte order, the IPv6 packets
  13775. * with different destination address will be filtered out.
  13776. * This attribute is optional.
  13777. *
  13778. * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and
  13779. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured.
  13780. * Packets on both IPv4 and IPv6 will be processed if both are configured.
  13781. *
  13782. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT:
  13783. * u16 attribute. Destination UDP port, the packets with different destination
  13784. * UDP port will be filtered out.
  13785. * This attribute is mandatory.
  13786. *
  13787. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET:
  13788. * u32 attribute. Represents the offset (in UDP payload) of the data
  13789. * to be matched.
  13790. * This attribute is mandatory.
  13791. *
  13792. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA:
  13793. * NLA_BINARY attribute, the maximum allowed size is 16 bytes.
  13794. * Binary data that is compared bit-by-bit against the data (specified
  13795. * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP
  13796. * payload, the packets don't match will be filtered out.
  13797. * This attribute is mandatory.
  13798. */
  13799. enum qca_wlan_vendor_attr_coap_offload_filter {
  13800. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0,
  13801. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1,
  13802. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2,
  13803. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3,
  13804. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4,
  13805. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5,
  13806. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6,
  13807. /* keep last */
  13808. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST,
  13809. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX =
  13810. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1,
  13811. };
  13812. /**
  13813. * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used
  13814. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute.
  13815. *
  13816. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4:
  13817. * u32 attribute. Source address (in network byte order) for replying
  13818. * the matching broadcast/multicast IPv4 packets.
  13819. * This attribute is optional.
  13820. *
  13821. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6:
  13822. * NLA_BINARY attribute, length is 16 bytes.
  13823. * Source address (in network byte order) for replying the matching
  13824. * multicast IPv6 packets.
  13825. * This attribute is optional.
  13826. *
  13827. * For broadcast/multicast offload reply, one of
  13828. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and
  13829. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be
  13830. * configured according to version of the IP address(es) configured in
  13831. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER;
  13832. * while for unicast case, firmware will take the destination IP address
  13833. * in the received matching packet as the source address for replying.
  13834. *
  13835. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER:
  13836. * Nested attribute. Filter for the received UDP packets, only the matching
  13837. * packets will be replied and cached.
  13838. * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported
  13839. * attributes.
  13840. * This attribute is mandatory.
  13841. *
  13842. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG:
  13843. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  13844. * CoAP message (UDP payload) to be sent upon receiving matching packets.
  13845. * Firmware is responsible for adding any necessary protocol headers.
  13846. * This attribute is mandatory.
  13847. *
  13848. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME:
  13849. * u32 attribute. Expiration time in milliseconds of the cached CoAP messages.
  13850. * A cached message will be dropped by firmware if it's expired.
  13851. * This attribute is optional. A default value of 40000 will be used in the
  13852. * absence of it.
  13853. */
  13854. enum qca_wlan_vendor_attr_coap_offload_reply {
  13855. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0,
  13856. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1,
  13857. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2,
  13858. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3,
  13859. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4,
  13860. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5,
  13861. /* keep last */
  13862. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST,
  13863. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX =
  13864. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1,
  13865. };
  13866. /**
  13867. * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for
  13868. * CoAP message (UDP) transmitting on IPv4.
  13869. *
  13870. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR:
  13871. * u32 attribute. Source address (in network byte order) for transmitting
  13872. * packets on IPv4.
  13873. * This attribute is mandatory.
  13874. *
  13875. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT:
  13876. * u16 attribute. Source UDP port.
  13877. * This attribute is optional, a random port is taken if it's not present.
  13878. *
  13879. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR:
  13880. * u32 attribute. Destination IPv4 address (in network byte order).
  13881. * This attribute is mandatory.
  13882. *
  13883. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC:
  13884. * Flag attribute. If it's present, indicates that
  13885. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast
  13886. * address; while if not, indicates that the address is unicast/multicast
  13887. * address.
  13888. * This attribute is optional.
  13889. *
  13890. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT:
  13891. * u16 attribute. Destination UDP port.
  13892. * This attribute is mandatory.
  13893. */
  13894. enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 {
  13895. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0,
  13896. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1,
  13897. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2,
  13898. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3,
  13899. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4,
  13900. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5,
  13901. /* keep last */
  13902. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST,
  13903. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX =
  13904. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1,
  13905. };
  13906. /**
  13907. * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for
  13908. * CoAP message (UDP) transmitting on IPv6.
  13909. *
  13910. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR:
  13911. * NLA_BINARY attribute, length is 16 bytes.
  13912. * Source address (in network byte order) for transmitting packets on IPv6.
  13913. * This attribute is mandatory.
  13914. *
  13915. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT:
  13916. * u16 attribute. Source UDP port.
  13917. * This attribute is optional, a random port is taken if it's not present.
  13918. *
  13919. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR:
  13920. * NLA_BINARY attribute, length is 16 bytes.
  13921. * Destination IPv6 address (in network byte order).
  13922. * This attribute is mandatory.
  13923. *
  13924. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT:
  13925. * u16 attribute. Destination UDP port.
  13926. * This attribute is mandatory.
  13927. */
  13928. enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 {
  13929. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0,
  13930. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1,
  13931. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2,
  13932. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3,
  13933. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4,
  13934. /* keep last */
  13935. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST,
  13936. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX =
  13937. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1,
  13938. };
  13939. /**
  13940. * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used
  13941. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute.
  13942. *
  13943. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4:
  13944. * Nested attribute. The IPv4 source/destination address/port for offload
  13945. * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list
  13946. * of supported attributes.
  13947. * This attribute is optional.
  13948. *
  13949. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6:
  13950. * Nested attribute. The IPv6 source/destination address/port for offload
  13951. * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list
  13952. * of supported attributes.
  13953. * This attribute is optional.
  13954. *
  13955. * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and
  13956. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured.
  13957. * Firmware will transmit the packets on both IPv4 and IPv6 if both are
  13958. * configured.
  13959. *
  13960. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD:
  13961. * u32 attribute. Period in milliseconds for the periodic transmitting.
  13962. * This attribute is mandatory.
  13963. *
  13964. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG:
  13965. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  13966. * CoAP message (UDP payload) to be periodically transmitted. Firmware
  13967. * is responsible for adding any necessary protocol headers.
  13968. * This attribute is mandatory.
  13969. */
  13970. enum qca_wlan_vendor_attr_coap_offload_periodic_tx {
  13971. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0,
  13972. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1,
  13973. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2,
  13974. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3,
  13975. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4,
  13976. /* keep last */
  13977. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST,
  13978. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX =
  13979. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1,
  13980. };
  13981. /**
  13982. * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used
  13983. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute.
  13984. *
  13985. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS:
  13986. * u64 attribute. Received time (since system booted in microseconds) of
  13987. * the cached CoAP message.
  13988. * This attribute is mandatory.
  13989. *
  13990. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4:
  13991. * u32 attribute. Source IPv4 address (in network byte order) of the cached
  13992. * CoAP message.
  13993. * This attribute is optional.
  13994. *
  13995. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6:
  13996. * NLA_BINARY attribute, length is 16 bytes.
  13997. * Source IPv6 address (in network byte order) of the cached CoAP message.
  13998. * This attribute is optional.
  13999. *
  14000. * At most and at least one of
  14001. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and
  14002. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for
  14003. * an entry.
  14004. *
  14005. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG:
  14006. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  14007. * The cached CoAP message (UDP payload). If the actual message size is
  14008. * greater than the maximum size, it will be truncated and leaving only
  14009. * the first 1152 bytes.
  14010. * This attribute is mandatory.
  14011. */
  14012. enum qca_wlan_vendor_attr_coap_offload_cache_info {
  14013. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0,
  14014. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1,
  14015. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2,
  14016. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3,
  14017. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4,
  14018. /* keep last */
  14019. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST,
  14020. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX =
  14021. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1,
  14022. };
  14023. /**
  14024. * enum qca_wlan_vendor_coap_offload_action - Actions for
  14025. * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
  14026. *
  14027. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE:
  14028. * Enable CoAP offload reply.
  14029. * If it's enabled, firmware will start offload processing on each suspend
  14030. * and stop on each resume.
  14031. *
  14032. * Offload reply on match works as follows:
  14033. * Reply the packets that match the filter with the given CoAP
  14034. * message (with necessary protocol headers), increase the CoAP message
  14035. * ID in the given CoAP message by one for the next use after each successful
  14036. * transmission, and try to store the information of the received packet,
  14037. * including the received time, source IP address, and CoAP message (UDP
  14038. * payload).
  14039. *
  14040. * Firmware has a limit to the maximum stored entries, it takes the source IP
  14041. * address as the key of an entry, and keeps at most one entry for each key.
  14042. * A packet won't be stored if no entry for the same key is present and the
  14043. * total number of the existing unexpired entries reaches the maximum value.
  14044. *
  14045. * If any configured item is changed, user space should disable offload reply
  14046. * first and then issue a new enable request.
  14047. *
  14048. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE:
  14049. * Disable CoAP offload reply and return information of any cached CoAP
  14050. * messages.
  14051. *
  14052. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE:
  14053. * Enable CoAP offload periodic transmitting.
  14054. * If it's enabled, firmware will start offload periodic transmitting on
  14055. * each suspend and stop on each resume.
  14056. *
  14057. * Offload periodic transmitting works as follows:
  14058. * Send the given CoAP message (with necessary protocol headers) with the given
  14059. * source/destination IP address/UDP port periodically based on the given
  14060. * period and increase the CoAP message ID in the given CoAP message by one
  14061. * for the next use after each successful transmission.
  14062. *
  14063. * If any configured item is changed, user space should disable offload
  14064. * periodic transmitting first and then issue a new enable request.
  14065. *
  14066. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE:
  14067. * Disable CoAP offload periodic transmitting.
  14068. *
  14069. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET:
  14070. * Get information of the CoAP messages cached during offload reply
  14071. * processing. The cache is cleared after retrieval.
  14072. */
  14073. enum qca_wlan_vendor_coap_offload_action {
  14074. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0,
  14075. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1,
  14076. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2,
  14077. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3,
  14078. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4,
  14079. };
  14080. /**
  14081. * enum qca_wlan_vendor_attr_coap_offload - Used by the
  14082. * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
  14083. * This is used to set parameters for CoAP offload processing, or get
  14084. * cached CoAP messages from firmware.
  14085. *
  14086. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION:
  14087. * u32 attribute. Action to take in this vendor command.
  14088. * See enum qca_wlan_vendor_coap_offload_action for supported actions.
  14089. * This attribute is mandatory.
  14090. *
  14091. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID:
  14092. * u32 attribute. Represents the Request ID for the CoAP offload
  14093. * configuration, which can help to identify the user entity starting
  14094. * the CoAP offload processing and accordingly stop the respective
  14095. * ones/get the cached CoAP messages with the matching ID.
  14096. * This attribute is mandatory.
  14097. *
  14098. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY:
  14099. * Nested attribute. Parameters for offload reply.
  14100. * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of
  14101. * supported attributes.
  14102. * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
  14103. * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored
  14104. * otherwise.
  14105. *
  14106. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX:
  14107. * Nested attribute. Parameters for offload periodic transmitting.
  14108. * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of
  14109. * supported attributes.
  14110. * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is
  14111. * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored
  14112. * otherwise.
  14113. *
  14114. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES:
  14115. * Array of nested attributes. Information of the cached CoAP messages,
  14116. * where each entry is taken from
  14117. * enum qca_wlan_vendor_attr_coap_offload_cache_info.
  14118. * This attribute is used for reporting the cached CoAP messages
  14119. * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
  14120. * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or
  14121. * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no
  14122. * cached item if this attribute is not present.
  14123. */
  14124. enum qca_wlan_vendor_attr_coap_offload {
  14125. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0,
  14126. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1,
  14127. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2,
  14128. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3,
  14129. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4,
  14130. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5,
  14131. /* keep last */
  14132. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST,
  14133. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX =
  14134. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1,
  14135. };
  14136. /**
  14137. * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command
  14138. * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification
  14139. * Service (SCS) rule.
  14140. *
  14141. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute.
  14142. * Represents the unique id of SCS rule to be configured.
  14143. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute.
  14144. * Represents the request type: add, remove, or change.
  14145. * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request
  14146. * Type definitions).
  14147. *
  14148. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute
  14149. * in case of add/change request type.
  14150. * Represents the output traffic identifier (TID) to be assigned to the flow
  14151. * matching the rule.
  14152. *
  14153. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8
  14154. * attribute in case of add/change request type.
  14155. * Represents type of classifier parameters present in SCS rule.
  14156. * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type).
  14157. * Only classifier types 4 and 10 are supported for SCS.
  14158. *
  14159. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute
  14160. * in case of add/change request type when classifier type is TCLAS4.
  14161. * Represents the IP version (4: IPv4, 6: IPv6) of the rule.
  14162. *
  14163. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional
  14164. * attribute in case of add/change request type when classifier type is TCLAS4
  14165. * and version attribute is IPv4.
  14166. * Represents the source IPv4 address in the rule which is to be compared
  14167. * against the source IP address in the IPv4 header.
  14168. *
  14169. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional
  14170. * attribute in case of add/change request type when classifier type is TCLAS4
  14171. * and version attribute is IPv4.
  14172. * Represents the destination IPv4 address in the rule which is to be compared
  14173. * against the destination IP address in the IPv4 header.
  14174. *
  14175. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional
  14176. * attribute in case of add/change request type when classifier type is TCLAS4
  14177. * and version attribute is IPv6.
  14178. * Represents the source IPv6 address in the rule which is to be compared
  14179. * against the source IP address in the IPv6 header.
  14180. *
  14181. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional
  14182. * attribute in case of add/change request type when classifier type is TCLAS4
  14183. * and version attribute is IPv6.
  14184. * Represents the destination IPv6 address in the rule which is to be compared
  14185. * against the destination IP address in the IPv6 header.
  14186. *
  14187. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute
  14188. * in case of add/change request type when classifier type is TCLAS4.
  14189. * Represents the source port number in the rule which is to be compared against
  14190. * the source port number in the protocol header.
  14191. *
  14192. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute
  14193. * in case of add/change request type when classifier type is TCLAS4.
  14194. * Represents the destination port number in the rule which is to be compared
  14195. * against the destination port number in the protocol header.
  14196. *
  14197. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute
  14198. * in case of add/change request type when classifier type is TCLAS4.
  14199. * Represents the DSCP value in the rule which is to be compared against the
  14200. * DSCP field present in the IP header.
  14201. *
  14202. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8
  14203. * attribute in case of add/change request type when classifier type is TCLAS4.
  14204. * Represents the protocol/next header in the rule which is to be compared
  14205. * against the protocol/next header field present in the IPv4/IPv6 header.
  14206. *
  14207. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional
  14208. * attribute of size 3 bytes present in case of add/change request type
  14209. * when classifier type is TCLAS4 and version is IPv6.
  14210. * Represents the flow label value in the rule which is to be compared against
  14211. * the flow label field present in the IPv6 header.
  14212. *
  14213. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8
  14214. * attribute in case of add/change request type when classifier type is TCLAS10.
  14215. * Represents the protocol instance number in the rule.
  14216. *
  14217. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8
  14218. * attribute in case of add/change request type when classifier type is TCLAS10.
  14219. * Represents the protocol/next header in the rule which is to be compared
  14220. * against the protocol/next header field present in the IPv4/IPv6 header.
  14221. *
  14222. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional
  14223. * attribute of variable length present when request type is add/change and
  14224. * classifier type is TCLAS10.
  14225. * Represents the mask to be used for masking the header contents of the header
  14226. * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER
  14227. * attribute.
  14228. *
  14229. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional
  14230. * attribute of variable length present when request type is add/change and
  14231. * classifier type is TCLAS10.
  14232. * Represents the value to be compared against after masking the header contents
  14233. * of the header specified by the
  14234. * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the
  14235. * filter mask specified by the
  14236. * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute.
  14237. *
  14238. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16
  14239. * attribute.
  14240. * Represents the service class id of the configured SCS rule.
  14241. *
  14242. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR: Optional 6 bytes
  14243. * MAC address.
  14244. * Represents the destination MAC address in the rule.
  14245. *
  14246. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX: Optional u32 attribute
  14247. * Represents the netdevice interface index in the rule.
  14248. */
  14249. enum qca_wlan_vendor_attr_scs_rule_config {
  14250. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0,
  14251. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1,
  14252. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2,
  14253. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3,
  14254. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4,
  14255. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5,
  14256. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6,
  14257. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7,
  14258. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8,
  14259. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9,
  14260. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10,
  14261. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11,
  14262. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12,
  14263. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13,
  14264. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14,
  14265. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15,
  14266. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16,
  14267. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17,
  14268. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18,
  14269. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19,
  14270. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR = 20,
  14271. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX = 21,
  14272. /* Keep last */
  14273. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST,
  14274. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX =
  14275. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1,
  14276. };
  14277. /**
  14278. * enum qca_wlan_vendor_sar_version - This describes the current SAR version
  14279. * used in the firmware.
  14280. *
  14281. * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR.
  14282. * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits.
  14283. *
  14284. * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2,
  14285. * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for
  14286. * each CTL group. So user can select up to 6 SAR indexes from the current CTL
  14287. * groups.
  14288. *
  14289. * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3,
  14290. * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each
  14291. * CTL group but user can choose up to 3 SAR set index only, as the top half
  14292. * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of
  14293. * the SAR index (3 to 5) is used for DBS mode.
  14294. */
  14295. enum qca_wlan_vendor_sar_version {
  14296. QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0,
  14297. QCA_WLAN_VENDOR_SAR_VERSION_1 = 1,
  14298. QCA_WLAN_VENDOR_SAR_VERSION_2 = 2,
  14299. QCA_WLAN_VENDOR_SAR_VERSION_3 = 3,
  14300. };
  14301. /**
  14302. * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether
  14303. * CTL grouping is enabled or disabled in the firmware.
  14304. *
  14305. * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping
  14306. * is enabled in firmware.
  14307. *
  14308. * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping
  14309. * is disabled in firmware.
  14310. *
  14311. */
  14312. enum qca_wlan_vendor_sar_ctl_group_state {
  14313. QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0,
  14314. QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1,
  14315. QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2,
  14316. };
  14317. /**
  14318. * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command
  14319. * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities
  14320. * supported by the firmware.
  14321. * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION:
  14322. * u32 attribute. This field describes current SAR version supported by the
  14323. * firmware.
  14324. * See enum qca_wlan_vendor_sar_version for more information.
  14325. * This attribute is mandatory.
  14326. * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE:
  14327. * u32 attribute. This field describes whether CTL groups are enabled
  14328. * or disabled in the firmware.
  14329. * See enum qca_wlan_vendor_sar_ctl_group_state for more information.
  14330. * This attribute is optional.
  14331. */
  14332. enum qca_wlan_vendor_attr_sar_capability {
  14333. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0,
  14334. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1,
  14335. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2,
  14336. /* Keep last */
  14337. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST,
  14338. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX =
  14339. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1,
  14340. };
  14341. /**
  14342. * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics.
  14343. * These statistics are sent from the driver in a response when userspace
  14344. * queries to get the statistics using the operation
  14345. * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset
  14346. * by the driver when the SR feature is enabled, when the driver receives
  14347. * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected.
  14348. *
  14349. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
  14350. * Mandatory only when non-SRG is supported by the AP and optional otherwise.
  14351. * This represents the number of non-SRG TX opportunities.
  14352. *
  14353. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
  14354. * Mandatory only when non-SRG is supported by the AP and optional otherwise.
  14355. * This represents the number of non-SRG PPDUs tried to transmit.
  14356. *
  14357. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
  14358. * Mandatory only when non-SRG is supported by the AP and optional otherwise.
  14359. * This represents the number of non-SRG PPDUs successfully transmitted.
  14360. *
  14361. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
  14362. * Mandatory only when SRG is supported by the AP and optional otherwise.
  14363. * This represents the number of SRG TX opportunities.
  14364. *
  14365. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
  14366. * Mandatory only when SRG is supported by the AP and optional otherwise.
  14367. * This represents the number of SRG PPDUs tried to transmit.
  14368. *
  14369. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
  14370. * Mandatory only when SRG is supported by the AP and optional otherwise.
  14371. * This represents the number of SRG PPDUs successfully transmitted.
  14372. */
  14373. enum qca_wlan_vendor_attr_sr_stats {
  14374. QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0,
  14375. QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1,
  14376. QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2,
  14377. QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3,
  14378. QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4,
  14379. QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5,
  14380. QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6,
  14381. /* Keep last */
  14382. QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST,
  14383. QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX =
  14384. QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1,
  14385. };
  14386. /**
  14387. * enum qca_wlan_sr_reason_code - Defines the different reason codes used in
  14388. * Spatial Reuse feature.
  14389. *
  14390. * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to
  14391. * roaming to an AP that doesn't support/supports SR feature, respectively.
  14392. *
  14393. * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due
  14394. * to change in concurrent interfaces that are supported by the driver.
  14395. */
  14396. enum qca_wlan_sr_reason_code {
  14397. QCA_WLAN_SR_REASON_CODE_ROAMING = 0,
  14398. QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1,
  14399. };
  14400. /**
  14401. * enum qca_wlan_sr_operation - Defines the different types of SR operations.
  14402. * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION.
  14403. *
  14404. * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the
  14405. * driver to enable the Spatial Reuse feature. Attributes
  14406. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
  14407. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this
  14408. * operation.
  14409. *
  14410. * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the
  14411. * driver to disable the Spatial Reuse feature.
  14412. *
  14413. * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an
  14414. * asynchronous event sent to userspace when the SR feature is disabled.
  14415. * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE
  14416. * and sent along with the asynchronous event.
  14417. *
  14418. * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an
  14419. * asynchronous event when the SR feature is enabled again after the SR feature
  14420. * was suspended by the driver earlier. The enable reason is
  14421. * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are
  14422. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
  14423. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD.
  14424. *
  14425. * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is
  14426. * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial
  14427. * reuse transmissions. Userspace sends this operation to the driver.
  14428. * The driver/firmware upon receiving this operation shall prohibit PSR-based
  14429. * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
  14430. *
  14431. * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is
  14432. * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial
  14433. * reuse transmissions. Userspace sends this operation to the driver.
  14434. * The driver/firmware upon receiving this operation shall allow PSR-based
  14435. * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
  14436. *
  14437. * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the
  14438. * driver to get the SR statistics and the driver sends a synchronous response
  14439. * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the
  14440. * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS.
  14441. *
  14442. * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the
  14443. * driver to clear the SR statistics and upon receiving this operation
  14444. * the driver/firmware shall clear the SR statistics.
  14445. *
  14446. * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the
  14447. * driver to get the SR parameters and the driver sends the synchronous response
  14448. * with the following required attributes:
  14449. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
  14450. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
  14451. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
  14452. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
  14453. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
  14454. *
  14455. * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an
  14456. * asynchronous event to userspace to update any changes in SR parameters.
  14457. * The following attributes are used with this operation:
  14458. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
  14459. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
  14460. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
  14461. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
  14462. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
  14463. */
  14464. enum qca_wlan_sr_operation {
  14465. QCA_WLAN_SR_OPERATION_SR_ENABLE = 0,
  14466. QCA_WLAN_SR_OPERATION_SR_DISABLE = 1,
  14467. QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2,
  14468. QCA_WLAN_SR_OPERATION_SR_RESUME = 3,
  14469. QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4,
  14470. QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5,
  14471. QCA_WLAN_SR_OPERATION_GET_STATS = 6,
  14472. QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7,
  14473. QCA_WLAN_SR_OPERATION_GET_PARAMS = 8,
  14474. QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9,
  14475. };
  14476. /**
  14477. * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration
  14478. * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS.
  14479. *
  14480. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute.
  14481. * This attribute is optionally set in response to
  14482. * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to
  14483. * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std
  14484. * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more
  14485. * about HESIGA_Spatial_reuse_value15_allowed.
  14486. *
  14487. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute.
  14488. * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS
  14489. * operation. This indicates whether non-SRG OBSS PD SR transmissions are
  14490. * allowed or not at non-AP STAs that are associated with the AP. If present
  14491. * non-SRG OBSS PD SR transmissions are not allowed else are allowed.
  14492. *
  14493. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8
  14494. * attribute. This attribute is used in response to
  14495. * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
  14496. * Min Offset field which contains an unsigned integer that is added to -82 dBm
  14497. * to generate the value of the SRG OBSS PD Min parameter.
  14498. *
  14499. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8
  14500. * attribute. This attribute is used in response to
  14501. * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
  14502. * Max Offset field which contains an unsigned integer that is added to -82 dBm
  14503. * to generate the value of the SRG OBSS PD Max parameter.
  14504. *
  14505. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8
  14506. * attribute. This attribute is used in response to
  14507. * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS
  14508. * PD Max Offset field which contains an unsigned integer that is added to -82
  14509. * dBm to generate the value of the Non-SRG OBSS PD Max parameter.
  14510. *
  14511. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm).
  14512. * Userspace optionally sends this attribute with
  14513. * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
  14514. * preferred SRG PD threshold. The driver shall send this attribute to
  14515. * userspace in SR resume event to indicate the PD threshold being used for SR.
  14516. * When there is change in SRG PD threshold (for example, due to roaming, etc.)
  14517. * the driver shall indicate the userspace the newly configured SRG PD threshold
  14518. * using an asynchronous event.
  14519. *
  14520. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm).
  14521. * Userspace optionally sends this attribute with
  14522. * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
  14523. * preferred non-SRG PD threshold. The driver shall send this attribute to
  14524. * userspace in SR resume event to indicate the PD threshold being used for SR.
  14525. * When there is change in non-SRG PD threshold (for example, due to roaming,
  14526. * etc.) the driver shall indicate the userspace the newly configured non-SRG PD
  14527. * threshold using an asynchronous event.
  14528. *
  14529. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible
  14530. * values are defined in enum qca_wlan_sr_reason_code. This
  14531. * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and
  14532. * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations.
  14533. */
  14534. enum qca_wlan_vendor_attr_sr_params {
  14535. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0,
  14536. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1,
  14537. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2,
  14538. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3,
  14539. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4,
  14540. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5,
  14541. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6,
  14542. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7,
  14543. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8,
  14544. /* keep last */
  14545. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST,
  14546. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX =
  14547. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1,
  14548. };
  14549. /**
  14550. * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor
  14551. * command QCA_NL80211_VENDOR_SUBCMD_SR.
  14552. *
  14553. * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests
  14554. * from userspace to the driver. Possible values are defined in enum
  14555. * qca_wlan_sr_operation.
  14556. *
  14557. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR
  14558. * configuration parameters. The possible attributes inside this attribute are
  14559. * defined in enum qca_wlan_vendor_attr_sr_params.
  14560. * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
  14561. * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and
  14562. * also in response from the driver to userspace when the response is sent for
  14563. * %QCA_WLAN_SR_OPERATION_GET_PARAMS.
  14564. * The driver uses this attribute in asynchronous events in which the operation
  14565. * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME,
  14566. * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS.
  14567. *
  14568. * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR
  14569. * statistics. These attributes used inside this are defined in enum
  14570. * qca_wlan_vendor_attr_sr_stats.
  14571. * This attribute is used in response from the driver to a command in which
  14572. * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
  14573. * %QCA_WLAN_SR_OPERATION_GET_STATS.
  14574. */
  14575. enum qca_wlan_vendor_attr_sr {
  14576. QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0,
  14577. QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1,
  14578. QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2,
  14579. QCA_WLAN_VENDOR_ATTR_SR_STATS = 3,
  14580. /* Keep last */
  14581. QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST,
  14582. QCA_WLAN_VENDOR_ATTR_SR_MAX =
  14583. QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1,
  14584. };
  14585. /**
  14586. * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes
  14587. * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand.
  14588. *
  14589. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address
  14590. * used by the peer on the link that corresponds to the link used for sending
  14591. * the event notification.
  14592. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte
  14593. * MLD MAC address of the peer.
  14594. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute,
  14595. * used to pass ifindex of the primary netdev.
  14596. */
  14597. enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event {
  14598. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0,
  14599. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1,
  14600. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2,
  14601. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3,
  14602. /* keep last */
  14603. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST,
  14604. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX =
  14605. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1,
  14606. };
  14607. /**
  14608. * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with
  14609. * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and
  14610. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range
  14611. * and PSD information.
  14612. *
  14613. * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is
  14614. * u32. This attribute is used to indicate the start of the queried frequency
  14615. * range in MHz.
  14616. *
  14617. * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32.
  14618. * This attribute is used to indicate the end of the queried frequency range
  14619. * in MHz.
  14620. *
  14621. * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32.
  14622. * This attribute will contain the PSD information for a single range as
  14623. * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and
  14624. * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes.
  14625. *
  14626. * The PSD power info (dBm/MHz) from user space should be multiplied
  14627. * by a factor of 100 when sending to the driver to preserve granularity
  14628. * up to 2 decimal places.
  14629. * Example:
  14630. * PSD power value: 10.21 dBm/MHz
  14631. * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021.
  14632. *
  14633. * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only
  14634. * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with
  14635. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when
  14636. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  14637. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
  14638. *
  14639. * The following set of attributes will be used to exchange frequency and
  14640. * corresponding PSD information for AFC between the user space and the driver.
  14641. */
  14642. enum qca_wlan_vendor_attr_afc_freq_psd_info {
  14643. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0,
  14644. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1,
  14645. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2,
  14646. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3,
  14647. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST,
  14648. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX =
  14649. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1,
  14650. };
  14651. /**
  14652. * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with
  14653. * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the
  14654. * channel list and corresponding EIRP information.
  14655. *
  14656. * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8.
  14657. * This attribute is used to indicate queried channel from
  14658. * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO.
  14659. *
  14660. * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32.
  14661. * This attribute is used to configure the EIRP power info corresponding
  14662. * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM.
  14663. * The EIRP power info(dBm) from user space should be multiplied
  14664. * by a factor of 100 when sending to Driver to preserve granularity up to
  14665. * 2 decimal places.
  14666. * Example:
  14667. * EIRP power value: 34.23 dBm
  14668. * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423.
  14669. *
  14670. * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with
  14671. * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
  14672. * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when
  14673. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  14674. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE:
  14675. *
  14676. * The following set of attributes will be used to exchange Channel and
  14677. * corresponding EIRP information for AFC between the user space and Driver.
  14678. */
  14679. enum qca_wlan_vendor_attr_afc_chan_eirp_info {
  14680. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0,
  14681. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1,
  14682. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2,
  14683. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST,
  14684. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX =
  14685. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1,
  14686. };
  14687. /**
  14688. * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested
  14689. * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
  14690. * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class,
  14691. * channel, and EIRP related information.
  14692. *
  14693. * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8.
  14694. * This attribute is used to indicate the operating class, as listed under
  14695. * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list.
  14696. *
  14697. * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes
  14698. * for updating the channel number and EIRP power information.
  14699. * It uses the attributes defined in
  14700. * enum qca_wlan_vendor_attr_afc_chan_eirp_info.
  14701. *
  14702. * Operating class information packing format for
  14703. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
  14704. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  14705. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY.
  14706. *
  14707. * m - Total number of operating classes.
  14708. * n, j - Number of queried channels for the corresponding operating class.
  14709. *
  14710. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
  14711. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
  14712. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  14713. * .....
  14714. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
  14715. * ....
  14716. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
  14717. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
  14718. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  14719. * ....
  14720. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
  14721. *
  14722. * Operating class information packing format for
  14723. * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
  14724. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
  14725. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  14726. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
  14727. *
  14728. * m - Total number of operating classes.
  14729. * n, j - Number of channels for the corresponding operating class.
  14730. *
  14731. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
  14732. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
  14733. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  14734. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
  14735. * .....
  14736. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
  14737. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1]
  14738. * ....
  14739. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
  14740. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
  14741. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  14742. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
  14743. * ....
  14744. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
  14745. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1]
  14746. *
  14747. * The following set of attributes will be used to exchange operating class
  14748. * information for AFC between the user space and the driver.
  14749. */
  14750. enum qca_wlan_vendor_attr_afc_opclass_info {
  14751. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0,
  14752. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1,
  14753. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2,
  14754. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST,
  14755. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX =
  14756. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1,
  14757. };
  14758. /**
  14759. * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type.
  14760. * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute.
  14761. *
  14762. * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the
  14763. * driver to userspace in order to query the new AFC power values.
  14764. *
  14765. * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update
  14766. * complete event will be sent from the driver to userspace to indicate
  14767. * processing of the AFC response.
  14768. *
  14769. * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event
  14770. * will be sent from the driver to userspace to indicate last received
  14771. * AFC response data has been cleared on the AP due to invalid data
  14772. * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE.
  14773. *
  14774. * The following enum defines the different event types that will be
  14775. * used by the driver to help trigger corresponding AFC functionality in user
  14776. * space.
  14777. */
  14778. enum qca_wlan_vendor_afc_event_type {
  14779. QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0,
  14780. QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1,
  14781. QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2,
  14782. };
  14783. /**
  14784. * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP
  14785. * deployment type.
  14786. * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute.
  14787. *
  14788. * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment.
  14789. *
  14790. * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment.
  14791. *
  14792. * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment.
  14793. *
  14794. * The following enum defines different deployment modes that the AP might
  14795. * come up in. This information will be essential to retrieve deployment-type
  14796. * specific SP power values for AFC operation.
  14797. */
  14798. enum qca_wlan_vendor_afc_ap_deployment_type {
  14799. QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0,
  14800. QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1,
  14801. QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2,
  14802. };
  14803. /**
  14804. * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to
  14805. * indicate AFC response status.
  14806. * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute.
  14807. *
  14808. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success
  14809. *
  14810. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication
  14811. * command was not received within the expected time of the AFC expiry event
  14812. * being triggered.
  14813. *
  14814. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data
  14815. * parsing error by the driver.
  14816. *
  14817. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local
  14818. * error.
  14819. *
  14820. * The following enum defines the status codes that the driver will use to
  14821. * indicate whether the AFC data is valid or not.
  14822. */
  14823. enum qca_wlan_vendor_afc_evt_status_code {
  14824. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0,
  14825. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1,
  14826. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2,
  14827. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3,
  14828. };
  14829. /**
  14830. * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with
  14831. * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will
  14832. * support sending only a single request to the user space at a time.
  14833. *
  14834. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute.
  14835. * Used with event to notify the type of AFC event received.
  14836. * Valid values are defined in enum qca_wlan_vendor_afc_event_type.
  14837. *
  14838. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when
  14839. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
  14840. * otherwise unused.
  14841. *
  14842. * This attribute is used to indicate the AP deployment type in the AFC request.
  14843. * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type.
  14844. *
  14845. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute.
  14846. * Unique request identifier generated by the AFC client for every
  14847. * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID.
  14848. * The user space application is responsible for ensuring no duplicate values
  14849. * are in-flight with the server, e.g., by delaying a request, should the same
  14850. * value be received from different radios in parallel.
  14851. *
  14852. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional.
  14853. * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  14854. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused.
  14855. *
  14856. * This attribute indicates the AFC spec version information. This will
  14857. * indicate the AFC version AFC client must use to query the AFC data.
  14858. * Bits 15:0 - Minor version
  14859. * Bits 31:16 - Major version
  14860. *
  14861. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when
  14862. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
  14863. * otherwise unused.
  14864. * This attribute indicates the minimum desired power (in dBm) for
  14865. * the queried spectrum.
  14866. *
  14867. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when
  14868. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  14869. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  14870. *
  14871. * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code.
  14872. * This attribute is used to indicate if there were any errors parsing the
  14873. * AFC response.
  14874. *
  14875. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required
  14876. * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  14877. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  14878. *
  14879. * This attribute indicates the AFC response code. The AFC response codes are
  14880. * in the following categories:
  14881. * -1: General Failure.
  14882. * 0: Success.
  14883. * 100 - 199: General errors related to protocol.
  14884. * 300 - 399: Error events specific to message exchange
  14885. * for the Available Spectrum Inquiry.
  14886. *
  14887. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when
  14888. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  14889. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  14890. *
  14891. * This attribute indicates the date until which the current response is
  14892. * valid for in UTC format.
  14893. * Date format: bits 7:0 - DD (Day 1-31)
  14894. * bits 15:8 - MM (Month 1-12)
  14895. * bits 31:16 - YYYY (Year)
  14896. *
  14897. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when
  14898. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  14899. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  14900. *
  14901. * This attribute indicates the time until which the current response is
  14902. * valid for in UTC format.
  14903. * Time format: bits 7:0 - SS (Seconds 0-59)
  14904. * bits 15:8 - MM (Minutes 0-59)
  14905. * bits 23:16 - HH (Hours 0-23)
  14906. * bits 31:24 - Reserved
  14907. *
  14908. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes
  14909. * for updating the list of frequency ranges to be queried.
  14910. * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  14911. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
  14912. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  14913. * It uses the attributes defined in
  14914. * enum qca_wlan_vendor_attr_afc_freq_psd_info.
  14915. *
  14916. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes
  14917. * for updating the list of operating classes and corresponding channels to be
  14918. * queried.
  14919. * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  14920. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
  14921. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  14922. * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info.
  14923. */
  14924. enum qca_wlan_vendor_attr_afc_event {
  14925. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0,
  14926. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1,
  14927. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2,
  14928. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3,
  14929. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4,
  14930. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5,
  14931. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6,
  14932. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7,
  14933. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8,
  14934. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9,
  14935. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10,
  14936. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11,
  14937. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST,
  14938. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX =
  14939. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1,
  14940. };
  14941. /**
  14942. * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used
  14943. * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes
  14944. * will support sending only a single AFC response to the driver at a time.
  14945. *
  14946. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute.
  14947. * This attribute will be used to send a single Spectrum Inquiry response object
  14948. * from the 'availableSpectrumInquiryResponses' array object from the response
  14949. * JSON.
  14950. *
  14951. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute.
  14952. *
  14953. * This attribute indicates the period (in seconds) for which the response
  14954. * data received is valid for.
  14955. *
  14956. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute.
  14957. *
  14958. * This attribute indicates the request ID for which the corresponding
  14959. * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID.
  14960. *
  14961. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute.
  14962. *
  14963. * This attribute indicates the date until which the current response is
  14964. * valid for in UTC format.
  14965. * Date format: bits 7:0 - DD (Day 1-31)
  14966. * bits 15:8 - MM (Month 1-12)
  14967. * bits 31:16 - YYYY (Year)
  14968. *
  14969. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME: Required u32 attribute.
  14970. *
  14971. * This attribute indicates the time until which the current response is
  14972. * valid for in UTC format.
  14973. * Time format: bits 7:0 - SS (Seconds 0-59)
  14974. * bits 15:8 - MM (Minutes 0-59)
  14975. * bits 23:16 - HH (Hours 0-23)
  14976. * bits 31:24 - Reserved
  14977. *
  14978. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute.
  14979. *
  14980. * This attribute indicates the AFC response code. The AFC response codes are
  14981. * in the following categories:
  14982. * -1: General Failure.
  14983. * 0: Success.
  14984. * 100 - 199: General errors related to protocol.
  14985. * 300 - 399: Error events specific to message exchange
  14986. * for the Available Spectrum Inquiry.
  14987. *
  14988. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes
  14989. * for PSD info of all the queried frequency ranges. It uses the attributes
  14990. * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute.
  14991. *
  14992. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested
  14993. * attributes for EIRP info of all queried operating class/channels. It uses
  14994. * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and
  14995. * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute.
  14996. *
  14997. */
  14998. enum qca_wlan_vendor_attr_afc_response {
  14999. QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0,
  15000. QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1,
  15001. QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2,
  15002. QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3,
  15003. QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4,
  15004. QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5,
  15005. QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6,
  15006. QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7,
  15007. QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8,
  15008. QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST,
  15009. QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX =
  15010. QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1,
  15011. };
  15012. /**
  15013. * enum qca_wlan_dozed_ap_state - Doze states for AP interface
  15014. *
  15015. * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface.
  15016. *
  15017. * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts
  15018. * beaconing at higher beacon interval with Rx disabled.
  15019. */
  15020. enum qca_wlan_dozed_ap_state {
  15021. QCA_WLAN_DOZED_AP_DISABLE = 0,
  15022. QCA_WLAN_DOZED_AP_ENABLE = 1,
  15023. };
  15024. /**
  15025. * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command
  15026. * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode
  15027. * configuration.
  15028. *
  15029. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute.
  15030. * Configures the doze state for an AP interface. Possible values are defined
  15031. * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event
  15032. * gets triggered asynchronously to provide updated AP interface configuration.
  15033. *
  15034. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by
  15035. * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP
  15036. * command, which is used later to maintain synchronization between commands
  15037. * and asynchronous events.
  15038. *
  15039. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute.
  15040. * Used in event to indicate the next TBTT TSF timer value after applying the
  15041. * doze mode configuration. Next TBTT TSF is the time at which the AP sends
  15042. * the first beacon after entering or exiting dozed mode.
  15043. *
  15044. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute.
  15045. * Used with event to inform the periodicity of beacon transmission that would
  15046. * be skipped at all TBTTs in between.
  15047. */
  15048. enum qca_wlan_vendor_attr_dozed_ap {
  15049. QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0,
  15050. QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1,
  15051. QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2,
  15052. QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3,
  15053. QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4,
  15054. /* Keep last */
  15055. QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST,
  15056. QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX =
  15057. QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1,
  15058. };
  15059. /**
  15060. * enum qca_wlan_vendor_monitor_mode_status - Represents the status codes
  15061. * used with QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE.
  15062. * @QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING: Used to indicate no
  15063. * capture running status.
  15064. * @QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING: Used to indicate
  15065. * capture running status.
  15066. **/
  15067. enum qca_wlan_vendor_monitor_mode_status {
  15068. QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING = 0,
  15069. QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING = 1,
  15070. };
  15071. /**
  15072. * enum qca_wlan_vendor_attr_get_monitor_mode - Used by the
  15073. * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE to report
  15074. * information regarding the local packet capture over the monitor mode.
  15075. *
  15076. * @QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS: u32 attribute. This attribute
  15077. * represents the status of the start capture commands. The values used with
  15078. * this attribute are defined in enum qca_wlan_vendor_monitor_mode_status. This
  15079. * is returned by the driver in the response to the command.
  15080. */
  15081. enum qca_wlan_vendor_attr_get_monitor_mode {
  15082. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_INVALID = 0,
  15083. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS = 1,
  15084. /* Keep last */
  15085. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST,
  15086. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_MAX =
  15087. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST - 1,
  15088. };
  15089. /**
  15090. * enum qca_wlan_vendor_link_state_op_types - Defines different types of
  15091. * operations for which %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE can be used.
  15092. * Will be used with %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE attribute.
  15093. *
  15094. * @QCA_WLAN_VENDOR_LINK_STATE_OP_GET - Get the MLO links state information.
  15095. * @QCA_WLAN_VENDOR_LINK_STATE_OP_SET - Set the MLO links state information.
  15096. */
  15097. enum qca_wlan_vendor_link_state_op_types {
  15098. QCA_WLAN_VENDOR_LINK_STATE_OP_GET = 0,
  15099. QCA_WLAN_VENDOR_LINK_STATE_OP_SET = 1,
  15100. };
  15101. /**
  15102. * enum qca_wlan_vendor_link_state_control_modes - Represents the types of MLO
  15103. * links state control modes. This enum is used by
  15104. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE attribute.
  15105. *
  15106. * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT: MLO links state controlled
  15107. * by the driver.
  15108. * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER: MLO links state controlled by
  15109. * user space.
  15110. * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED: User space provides the
  15111. * desired number of MLO links to operate in active state at any given time.
  15112. * The driver will choose which MLO links should operate in the active state.
  15113. * See enum qca_wlan_vendor_link_state for active state definition.
  15114. */
  15115. enum qca_wlan_vendor_link_state_control_modes {
  15116. QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT = 0,
  15117. QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER = 1,
  15118. QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED = 2,
  15119. };
  15120. /**
  15121. * enum qca_wlan_vendor_link_state_operation_modes - Represents the types of MLO
  15122. * links state operation modes. This enum is used by
  15123. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE attribute.
  15124. *
  15125. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT: In the default operation
  15126. * mode, the driver selects the operating mode of the links, without any
  15127. * guidance from the user space.
  15128. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY: In the low latency
  15129. * operation mode the driver should select MLO links that will achieve low
  15130. * latency.
  15131. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT: In the high
  15132. * throughput operation mode the driver should select MLO links that will
  15133. * achieve higher throughput.
  15134. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER: In the low power
  15135. * operation mode the driver should select MLO links that will achieve low
  15136. * power.
  15137. */
  15138. enum qca_wlan_vendor_link_state_operation_modes {
  15139. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT = 0,
  15140. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY = 1,
  15141. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT = 2,
  15142. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER = 3,
  15143. };
  15144. /**
  15145. * enum qca_wlan_vendor_link_state - Represents the possible link states of an
  15146. * MLO link.
  15147. *
  15148. * @QCA_WLAN_VENDOR_LINK_STATE_INACTIVE: In this state, the link will not
  15149. * be used for data transmission but it can have TIDs mapped to it. It will be
  15150. * in doze state always and does not monitor the beacons.
  15151. * @QCA_WLAN_VENDOR_LINK_STATE_ACTIVE: In this state, the link will be
  15152. * used for data TX/RX and monitors the beacons to check TIM bit indication.
  15153. * It may enter doze state and comes out based on the transmit data traffic and
  15154. * TIM bit indication in the beacon.
  15155. */
  15156. enum qca_wlan_vendor_link_state {
  15157. QCA_WLAN_VENDOR_LINK_STATE_INACTIVE = 0,
  15158. QCA_WLAN_VENDOR_LINK_STATE_ACTIVE = 1,
  15159. };
  15160. /**
  15161. * enum qca_wlan_vendor_attr_link_state_config - Definition of attributes used
  15162. * inside nested attribute %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG.
  15163. *
  15164. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID: u8 attribute, link ID of the
  15165. * MLO link.
  15166. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE: u32 attribute. See
  15167. * enum qca_wlan_vendor_link_state for possible MLO link states.
  15168. */
  15169. enum qca_wlan_vendor_attr_link_state_config {
  15170. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_INVALID = 0,
  15171. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID = 1,
  15172. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE = 2,
  15173. /* Keep last */
  15174. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST,
  15175. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_MAX =
  15176. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST - 1,
  15177. };
  15178. /**
  15179. * enum qca_wlan_vendor_attr_mlo_link_state - Attributes used by
  15180. * %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE vendor command.
  15181. *
  15182. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE: u32 attribute. Indicates the type
  15183. * of the operation %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE intended for.
  15184. * Required only in a command. Possible values for this attribute are defined in
  15185. * enum qca_wlan_vendor_link_state_op_types.
  15186. *
  15187. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE: u32 attribute. Indicates MLO
  15188. * links control mode type. Optional attribute in a command when
  15189. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15190. * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
  15191. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15192. * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
  15193. * See enum qca_wlan_vendor_link_state_control_modes for possible control modes.
  15194. *
  15195. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG: Array of nested attributes.
  15196. * Indicates the state of the each MLO link affiliated with the interface.
  15197. * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
  15198. * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
  15199. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
  15200. * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER. Required attribute in a
  15201. * response when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15202. * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
  15203. * See enum qca_wlan_vendor_attr_link_state_config for the nested attributes.
  15204. *
  15205. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS: u8 attribute.
  15206. * Represents the number of active state links. See enum
  15207. * qca_wlan_vendor_link_state for active state definition.
  15208. * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
  15209. * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
  15210. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
  15211. * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED.
  15212. *
  15213. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE: u32 attribute. Indicates MLO
  15214. * links operation mode type. Optional attribute in a command when
  15215. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15216. * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
  15217. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15218. * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
  15219. * See enum qca_wlan_vendor_link_state_operation_modes for possible operation
  15220. * modes.
  15221. */
  15222. enum qca_wlan_vendor_attr_mlo_link_state {
  15223. QCA_WLAN_VENDOR_ATTR_LINK_STATE_INVALID = 0,
  15224. QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE = 1,
  15225. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE = 2,
  15226. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG = 3,
  15227. QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS = 4,
  15228. QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE = 5,
  15229. /* keep last */
  15230. QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST,
  15231. QCA_WLAN_VENDOR_ATTR_LINK_STATE_MAX =
  15232. QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST - 1,
  15233. };
  15234. #endif