qca_vendor.h 716 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440
  1. /*
  2. * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for
  6. * any purpose with or without fee is hereby granted, provided that the
  7. * above copyright notice and this permission notice appear in all
  8. * copies.
  9. *
  10. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  11. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  12. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  13. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  14. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  15. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  16. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  17. * PERFORMANCE OF THIS SOFTWARE.
  18. */
  19. /**
  20. * DOC: declares vendor commands interfacing with linux kernel
  21. */
  22. #ifndef _WLAN_QCA_VENDOR_H_
  23. #define _WLAN_QCA_VENDOR_H_
  24. /* Vendor id to be used in vendor specific command and events
  25. * to user space.
  26. * NOTE: The authoritative place for definition of QCA_NL80211_VENDOR_ID,
  27. * vendor subcmd definitions prefixed with QCA_NL80211_VENDOR_SUBCMD, and
  28. * qca_wlan_vendor_attr is open source file src/common/qca-vendor.h in
  29. * git://w1.fi/srv/git/hostap.git; the values here are just a copy of that
  30. */
  31. #define QCA_NL80211_VENDOR_ID 0x001374
  32. #ifndef BIT
  33. #define BIT(x) (1U << (x))
  34. #endif
  35. /**
  36. * enum qca_nl80211_vendor_subcmds: NL 80211 vendor sub command
  37. *
  38. * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Unspecified
  39. * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test
  40. * Sub commands 2 to 8 are not used
  41. * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Roaming
  42. * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Avoid frequency.
  43. * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: DFS capability
  44. * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
  45. * NAN Request/Response and NAN Indication messages. These messages are
  46. * interpreted between the framework and the firmware component. While
  47. * sending the command from userspace to the driver, payload is not
  48. * encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
  49. * is used when receiving vendor events in userspace from the driver.
  50. * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT: Ext stats
  51. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET: Link layer stats set
  52. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET: Link layer stats get
  53. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR: Link layer stats clear
  54. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS: Link layer stats radio
  55. * results
  56. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS: Link layer stats interface
  57. * results
  58. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS: Link layer stats peer
  59. * results
  60. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START: Ext scan start
  61. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP: Ext scan stop
  62. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS: Ext scan get valid
  63. * channels
  64. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES: Ext scan get capability
  65. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS: Ext scan get cached
  66. * results
  67. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE: Ext scan results
  68. * available. Used when report_threshold is reached in scan cache.
  69. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT: Ext scan full scan
  70. * result. Used to report scan results when each probe rsp. is received,
  71. * if report_events enabled in wifi_scan_cmd_params.
  72. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT: Ext scan event from target.
  73. * Indicates progress of scanning state-machine.
  74. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND: Ext scan hotlist
  75. * ap found
  76. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST: Ext scan set hotlist
  77. * bssid
  78. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST: Ext scan reset
  79. * hotlist bssid
  80. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE: Ext scan significant
  81. * change
  82. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE: Ext scan set
  83. * significant change
  84. * ap found
  85. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE: Ext scan reset
  86. * significant change
  87. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: Ext tdls enable
  88. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: Ext tdls disable
  89. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: Ext tdls get status
  90. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: Ext tdls state
  91. * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES: Get supported features
  92. * @QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI: Set scanning_mac_oui
  93. * @QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG: No DFS flag
  94. * @QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX: Get Concurrency Matrix
  95. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Get the key mgmt offload keys
  96. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: After roaming, send the
  97. * roaming and auth information.
  98. * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED: Set OCB schedule
  99. *
  100. * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
  101. * invoke the ACS function in device and pass selected channels to
  102. * hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
  103. *
  104. * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Get the supported features by the
  105. * driver.
  106. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Indicate that driver
  107. * started CAC on DFS channel
  108. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Indicate that driver
  109. * completed the CAC check on DFS channel
  110. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Indicate that the CAC
  111. * check was aborted by the driver
  112. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Indicate that the
  113. * driver completed NOP
  114. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Indicate that the
  115. * driver detected radar signal on the current operating channel
  116. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: get wlan driver information
  117. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START: start wifi logger
  118. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP: memory dump request
  119. * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logger feature set
  120. * @QCA_NL80211_VENDOR_SUBCMD_ROAM: roam
  121. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST: extscan set ssid hotlist
  122. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST:
  123. * extscan reset ssid hotlist
  124. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND: hotlist ssid found
  125. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST: hotlist ssid lost
  126. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST: set pno list
  127. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST: set passpoint list
  128. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST:
  129. * reset passpoint list
  130. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND: pno network found
  131. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND:
  132. * passpoint network found
  133. * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: set wifi config
  134. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: get wifi config
  135. * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logging features
  136. * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: get link properties
  137. * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG: set gateway parameters
  138. * @QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST: get preferred channel
  139. list
  140. * @QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL: channel hint
  141. * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the band
  142. * to the host driver. This command sets the band through either
  143. * the attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or
  144. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE
  145. * refers enum qca_set_band as unsigned integer values and
  146. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32 bit unsigned BitMask
  147. * values. Also, the acceptable values for
  148. * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are only till QCA_SETBAND_2G. Further
  149. * values/bitmask's are valid for QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The
  150. * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the
  151. * recommendation is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the
  152. * implementations configure using both the attributes, the configurations
  153. * through QCA_WLAN_VENDOR_ATTR_SETBAND_MASK shall always take the
  154. * precedence.
  155. * @QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN: venodr scan command
  156. * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE: vendor scan complete
  157. * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: vendor abort scan
  158. * @QCA_NL80211_VENDOR_SUBCMD_OTA_TEST: enable OTA test
  159. * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE: set tx power by percentage
  160. * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB: reduce tx power by DB
  161. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG: SAP configuration
  162. * @QCA_NL80211_VENDOR_SUBCMD_TSF: TSF operations command
  163. * @QCA_NL80211_VENDOR_SUBCMD_WISA: WISA mode configuration
  164. * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
  165. * start the P2P Listen Offload function in device and pass the listen
  166. * channel, period, interval, count, number of device types, device
  167. * types and vendor information elements to device driver and firmware.
  168. * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
  169. * indicate stop request/response of the P2P Listen Offload function in
  170. * device. As an event, it indicates either the feature stopped after it
  171. * was already running or feature has actually failed to start.
  172. * @QCA_NL80211_VENDOR_SUBCMD_GET_STATION: send BSS Information
  173. * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After SAP starts
  174. * beaconing, this sub command provides the driver, the frequencies on the
  175. * 5 GHz to check for any radar activity. Driver selects one channel from
  176. * this priority list provided through
  177. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
  178. * to check for radar activity on it. If no radar activity is detected
  179. * during the channel availability check period, driver internally switches
  180. * to the selected frequency of operation. If the frequency is zero, driver
  181. * internally selects a channel. The status of this conditional switch is
  182. * indicated through an event using the same sub command through
  183. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
  184. * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch
  185. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Command/event used to config
  186. * indication period and threshold for MAC layer counters.
  187. * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
  188. * in the host driver. The different TDLS configurations are defined
  189. * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
  190. * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Get HE related capabilities
  191. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS:Set the Specific Absorption Rate
  192. * (SAR) power limits. A critical regulation for FCC compliance, OEMs
  193. * require methods to set SAR limits on TX power of WLAN/WWAN.
  194. * enum qca_vendor_attr_sar_limits attributes are used with this command.
  195. * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: Vendor command used to get/set
  196. * configuration of vendor ACS.
  197. * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
  198. * requisite information leading to a power save failure. The information
  199. * carried as part of this event is represented by the
  200. * enum qca_attr_chip_power_save_failure attributes.
  201. * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
  202. * collection. Uses attributes defined in enum qca_attr_nud_stats_set.
  203. * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
  204. * statistics are represented by the enum qca_attr_nud_stats_get
  205. * attributes.
  206. * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
  207. * the BSS transition status, whether accept or reject, for a list of
  208. * candidate BSSIDs provided by the userspace. This uses the vendor
  209. * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
  210. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
  211. * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
  212. * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
  213. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
  214. * the driver shall specify array of
  215. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
  216. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
  217. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
  218. * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
  219. * specific QCA module. The trace levels are represented by
  220. * enum qca_attr_trace_level attributes.
  221. * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
  222. * Protocol antenna limit in different modes. See enum
  223. * qca_wlan_vendor_attr_brp_ant_limit_mode.
  224. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
  225. * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
  226. * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
  227. * identifying the operation in success case. In failure cases an
  228. * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
  229. * describing the reason for the failure is returned.
  230. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
  231. * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
  232. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
  233. * be stopped.
  234. * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
  235. * specific interface. This can be used to modify some of the low level
  236. * scan parameters (off channel dwell time, home channel time) in the
  237. * driver/firmware. These parameters are maintained within the host
  238. * driver.
  239. * This command is valid only when the interface is in the connected
  240. * state.
  241. * These scan parameters shall be reset by the driver/firmware once
  242. * disconnected. The attributes used with this command are defined in
  243. * enum qca_wlan_vendor_attr_active_tos.
  244. * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
  245. * driver has detected an internal failure. This event carries the
  246. * information indicating the reason that triggered this detection. The
  247. * attributes for this command are defined in
  248. * enum qca_wlan_vendor_attr_hang.
  249. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
  250. * of spectral parameters used. The spectral scan parameters are specified
  251. * by enum qca_wlan_vendor_attr_spectral_scan.
  252. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
  253. * for spectral scan functionality. The debug stats are specified by
  254. * enum qca_wlan_vendor_attr_spectral_diag_stats.
  255. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
  256. * scan system capabilities. The capabilities are specified
  257. * by enum qca_wlan_vendor_attr_spectral_cap.
  258. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
  259. * status of spectral scan. The status values are specified
  260. * by enum qca_wlan_vendor_attr_spectral_scan_status.
  261. * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
  262. * peer pending packets. Specify the peer MAC address in
  263. * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
  264. * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
  265. * in enum qca_wlan_vendor_attr_flush_pending.
  266. * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
  267. * RF Operating Parameter (RROP) information. The attributes for this
  268. * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
  269. * intended for use by external Auto Channel Selection applications.
  270. * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
  271. * (SAR) power limits. This is a companion to the command
  272. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
  273. * settings currently in use. The attributes returned by this command are
  274. * defined by enum qca_vendor_attr_sar_limits.
  275. * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behaviour of
  276. * the WLAN hardware MAC's associated with each WLAN netdev interface.
  277. * This works both as a query (user space asks the current mode) or event
  278. * interface (driver advertizing the current mode to the user space).
  279. * Driver does not trigger this event for temporary hardware mode changes.
  280. * Mode changes w.r.t Wi-Fi connection updation ( VIZ creation / deletion,
  281. * channel change etc ) are updated with this event. Attributes for this
  282. * interface are defined in enum qca_wlan_vendor_attr_mac.
  283. * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
  284. * per peer per TID. Attributes for this command are define in
  285. * enum qca_wlan_set_qdepth_thresh_attr
  286. * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
  287. * guide for WLAN driver. Request to suspend of driver and FW if the
  288. * temperature is higher than the suspend threshold; resume action is
  289. * requested to driver if the temperature is lower than the resume
  290. * threshold. In user poll mode, request temperature data by user. For test
  291. * purpose, getting thermal shutdown configuration parameters is needed.
  292. * Attributes for this interface are defined in
  293. * enum qca_wlan_vendor_attr_thermal_cmd.
  294. * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
  295. * driver. Thermal temperature and indication of resume completion are
  296. * reported as thermal events. The attributes for this command are defined
  297. * in enum qca_wlan_vendor_attr_thermal_event.
  298. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
  299. * test configuration. Attributes for this command are defined in
  300. * enum qca_wlan_vendor_attr_wifi_test_config.
  301. * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
  302. * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
  303. * carried a payload which was a binary blob of data. The command was not
  304. * extendable to send more information. The newer version carries the
  305. * legacy blob encapsulated within an attribute and can be extended with
  306. * additional vendor attributes that can enhance the NAN command
  307. * interface.
  308. * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
  309. * configure parameters per peer to capture Channel Frequency Response
  310. * (CFR) and enable Periodic CFR capture. The attributes for this command
  311. * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command
  312. * can also be used to send CFR data from the driver to userspace when
  313. * netlink events are used to send CFR data.
  314. * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: Sub command to get firmware state.
  315. * The returned firmware state is specified in the attribute
  316. * QCA_WLAN_VENDOR_ATTR_FW_STATE.
  317. * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
  318. * is used by host driver to flush per-peer cached statistics to user space
  319. * application. This interface is used as an event from host driver to
  320. * user space application. Attributes for this event are specified in
  321. * enum qca_wlan_vendor_attr_peer_stats_cache_params.
  322. * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
  323. * sent as event from host driver.
  324. * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
  325. * improve the success rate of Zigbee joining network.
  326. * Due to PTA master limitation, zigbee joining network success rate is
  327. * low while wlan is working. Wlan host driver need to configure some
  328. * parameters including Zigbee state and specific WLAN periods to enhance
  329. * PTA master. All this parameters are delivered by the NetLink attributes
  330. * defined in "enum qca_mpta_helper_vendor_attr".
  331. * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
  332. * implement Beacon frame reporting feature.
  333. *
  334. * Userspace can request the driver/firmware to periodically report
  335. * received Beacon frames whose BSSID is same as the current connected
  336. * BSS's MAC address.
  337. *
  338. * In case the STA seamlessly (without sending disconnect indication to
  339. * userspace) roams to a different BSS, Beacon frame reporting will be
  340. * automatically enabled for the Beacon frames whose BSSID is same as the
  341. * MAC address of the new BSS. Beacon reporting will be stopped when the
  342. * STA is disconnected (when the disconnect indication is sent to
  343. * userspace) and need to be explicitly enabled by userspace for next
  344. * connection.
  345. *
  346. * When a Beacon frame matching configured conditions is received, and if
  347. * userspace has requested to send asynchronous beacon reports, the
  348. * driver/firmware will encapsulate the details of the Beacon frame in an
  349. * event and send it to userspace along with updating the BSS information
  350. * in cfg80211 scan cache, otherwise driver will only update the cfg80211
  351. * scan cache with the information from the received Beacon frame but
  352. * will not send any active report to userspace.
  353. *
  354. * The userspace can request the driver/firmware to stop reporting Beacon
  355. * frames. If the driver/firmware is not able to receive Beacon frames
  356. * due to other Wi-Fi operations such as off-channel activities, etc.,
  357. * the driver/firmware will send a pause event to userspace and stop
  358. * reporting Beacon frames. Whether the beacon reporting will be
  359. * automatically resumed or not by the driver/firmware later will be
  360. * reported to userspace using the
  361. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES flag. The beacon
  362. * reporting shall be resumed for all the cases except either when
  363. * userspace sets QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag
  364. * in the command which triggered the current beacon reporting or during
  365. * any disconnection case as indicated by setting
  366. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
  367. * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
  368. * driver.
  369. *
  370. * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
  371. * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
  372. * flag not set, the next first
  373. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
  374. * shall be considered as un-pause event.
  375. *
  376. * All the attributes used with this command are defined in
  377. * enum qca_wlan_vendor_attr_beacon_reporting_params.
  378. * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some aps have
  379. * interop issues with the DUT. This sub command is used to transfer the
  380. * ap info between driver and user space. This works both as a command
  381. * or event. As a command, it configs the stored list of aps from user
  382. * space to firmware; as an event, it indicates the ap info detected by
  383. * firmware to user space for persistent storage. The attributes defined
  384. * in enum qca_vendor_attr_interop_issues_ap are used to deliver the
  385. * parameters.
  386. * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command is used to send OEM data
  387. * binary blobs from application/service to firmware. The attributes
  388. * defined in enum qca_wlan_vendor_attr_oem_data_params are used to
  389. * deliver the parameters.
  390. * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
  391. * to send/receive avoid frequency data using
  392. * enum qca_wlan_vendor_attr_avoid_frequency_ext.
  393. * This new command is alternative to existing command
  394. * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
  395. * is using stream of bytes instead of structured data using vendor
  396. * attributes. User space sends unsafe frequency ranges to the driver using
  397. * a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On
  398. * reception of this command, the driver shall check if an interface is
  399. * operating on an unsafe frequency and the driver shall try to move to a
  400. * safe channel when needed. If the driver is not able to find a safe
  401. * channel the interface can keep operating on an unsafe channel with the
  402. * TX power limit derived based on internal configurations like
  403. * regulatory/SAR rules.
  404. *
  405. * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
  406. * add the STA node details in driver/firmware. Attributes for this event
  407. * are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
  408. * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
  409. * coex chain mode from application/service.
  410. * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
  411. * to deliver the parameters.
  412. * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
  413. * get information of a station from driver to userspace. This command can
  414. * be used in both STA and AP modes. For STA mode, it provides information
  415. * of the current association when in connected state or the last
  416. * association when in disconnected state. For AP mode, only information
  417. * of the currently connected stations is available. This command uses
  418. * attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
  419. * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
  420. * Host drivers can request the user space entity to set the SAR power
  421. * limits with this event. Accordingly, the user space entity is expected
  422. * to set the SAR power limits. Host drivers can retry this event to the
  423. * user space for the SAR power limits configuration from user space. If
  424. * the driver does not get the SAR power limits from user space for all
  425. * the retried attempts, it can configure a default SAR power limit.
  426. * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
  427. * is used to update the information about the station from the driver to
  428. * userspace. Uses attributes from enum
  429. * qca_wlan_vendor_attr_update_sta_info.
  430. *
  431. * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
  432. * The host driver initiates the disconnection for scenarios such as beacon
  433. * miss, NUD failure, peer kick out, etc. The disconnection indication
  434. * through cfg80211_disconnected() expects the reason codes from enum
  435. * ieee80211_reasoncode which does not signify these various reasons why
  436. * the driver has triggered the disconnection. This event will be used to
  437. * send the driver specific reason codes by the host driver to userspace.
  438. * Host drivers should trigger this event and pass the respective reason
  439. * code immediately prior to triggering cfg80211_disconnected(). The
  440. * attributes used with this event are defined in enum
  441. * qca_wlan_vendor_attr_driver_disconnect_reason.
  442. *
  443. * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
  444. * add/delete TSPEC for each AC. One command is for one specific AC only.
  445. * This command can only be used in STA mode and the STA must be
  446. * associated with an AP when the command is issued. Uses attributes
  447. * defined in enum qca_wlan_vendor_attr_config_tspec.
  448. *
  449. * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
  450. * Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
  451. *
  452. * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the configured band from
  453. * the host driver. The band configurations obtained are referred through
  454. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
  455. *
  456. * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
  457. * assessment.
  458. * Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
  459. *
  460. * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
  461. * used to update SSID information in hostapd when it is updated in the
  462. * driver. Uses the attribute NL80211_ATTR_SSID.
  463. *
  464. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
  465. * the driver to send opaque data from the firmware to userspace. The
  466. * driver sends an event to userspace whenever such data is received from
  467. * the firmware.
  468. *
  469. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
  470. * send this opaque data for this event.
  471. *
  472. * The format of the opaque data is specific to the particular firmware
  473. * version and there is no guarantee of the format remaining same.
  474. *
  475. * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
  476. * The host driver selects Tx VDEV, and notifies user. The attributes
  477. * used with this event are defined in enum
  478. * qca_wlan_vendor_attr_mbssid_tx_vdev_status.
  479. * This event contains Tx VDEV group information contains other VDEVs
  480. * interface index and status information.
  481. *
  482. * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY: Vendor command to
  483. * configure the concurrent session policies when multiple interfaces
  484. * are (getting) active. The attributes used by this command are defined
  485. * in enum qca_wlan_vendor_attr_concurrent_policy.
  486. *
  487. * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command
  488. * to query usable channels for different interface types such as STA,
  489. * AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable
  490. * channels in the response based on country code, different static
  491. * configurations, concurrency combinations, etc. The attributes used
  492. * with this command are defined in
  493. * enum qca_wlan_vendor_attr_usable_channels.
  494. *
  495. * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used
  496. * to get DFS radar history from the driver to userspace. The driver
  497. * returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an
  498. * array of nested entries.
  499. * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to
  500. * enable/disable mDNS offload to the firmware. The attributes used with
  501. * this command are defined in enum qca_wlan_vendor_attr_mdns_offload.
  502. *
  503. * @QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA: Driver uses this command to send
  504. * important debug events that are required for various issues. The
  505. * attributes used with this command are defined in
  506. * enum qca_wlan_vendor_attr_diag.
  507. * This command is defined for temporary usage until this interface is
  508. * moved to the existing diag infra with cnss diag events. This command
  509. * will be deprecated soon and it is not recommended to do any further
  510. * enhancements to this command.
  511. *
  512. * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used
  513. * to set packet monitor mode that aims to send the specified set of TX and
  514. * RX frames on the current client interface to an active monitor interface.
  515. * If this Monitor mode is set, the driver will send the configured frames,
  516. * from the interface on which the command is issued, to an active monitor
  517. * interface. The attributes used with this command are defined in
  518. * enum qca_wlan_vendor_attr_set_monitor_mode.
  519. *
  520. * Though the monitor mode is configured for the respective data/mgmt/ctrl
  521. * frames, it is up to the respective WLAN driver/firmware/hardware designs
  522. * to consider the possibility of sending these frames over the monitor
  523. * interface. For example, the control frames are handled with in the
  524. * hardware and thus passing such frames over the monitor interface is left
  525. * to the respective designs.
  526. *
  527. * Also, this monitor mode is governed to behave accordingly in
  528. * suspend/resume states. If the firmware handles any of such frames
  529. * in suspend state without waking up the host and if the monitor mode
  530. * is configured to notify all such frames, then the firmware is expected
  531. * to resume the host and forward the respective frames to the monitor
  532. * interface. Please note that such a request to get the frames over the
  533. * monitor interface will have a definite power implications.
  534. *
  535. * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both
  536. * as a request to set the driver/firmware with the parameters to trigger
  537. * the roaming events, and also used by the driver/firmware to pass on the
  538. * various roam events to userspace.
  539. * Applicable only for the STA mode. The attributes used with this command
  540. * are defined in enum qca_wlan_vendor_attr_roam_events.
  541. *
  542. * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Sub-command to set or reset the
  543. * rate mask config for a list of phy types. Userspace shall provide
  544. * an array of the vendor attributes defined in
  545. * enum QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS.
  546. *
  547. * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs
  548. * when two interfaces are active on the same band, using two different
  549. * home channels, and only supported by a single radio. In this scenario
  550. * the device must split the use of the radio between the two interfaces.
  551. * The percentage of time allocated to a given interface is the quota.
  552. * Depending on the configuration, the quota can either be fixed or
  553. * dynamic.
  554. *
  555. * When used as an event, the device will report the quota type, and for
  556. * all interfaces operating in MCC it will report the current quota.
  557. * When used as a command, the device can be configured for a specific
  558. * quota type, and in the case of a fixed quota, the quota to apply to one
  559. * of the interfaces.
  560. *
  561. * Applications can use the event to do TX bitrate control based on the
  562. * information, and can use the command to explicitly set the quota to
  563. * enhance performance in specific scenarios.
  564. *
  565. * The attributes used with this command are defined in
  566. * enum qca_wlan_vendor_attr_mcc_quota.
  567. *
  568. * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the
  569. * user space that the driver is ready for operations again after
  570. * recovering from internal failures. This occurs following a failure
  571. * that was indicated by @QCA_NL80211_VENDOR_SUBCMD_HANG.
  572. *
  573. * @QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX: Vendor command to
  574. * get the WLAN radio combinations matrix supported by the device which
  575. * provides the device simultaneous radio configurations such as
  576. * standalone, dual band simultaneous, and single band simultaneous.
  577. *
  578. * The attributes used with this command are defined in
  579. * enum qca_wlan_vendor_attr_radio_combination_matrix.
  580. *
  581. * @QCA_NL80211_VENDOR_SUBCMD_PASN: Subcommand used to offload preassociation
  582. * security negotiation and key generation to user space.
  583. *
  584. * When used as an event, the driver requests userspace to trigger the PASN
  585. * authentication or dropping of a PTKSA for the indicated peer devices.
  586. * When used as a command response, userspace indicates a consolidated
  587. * status report for all the peers that were requested for.
  588. *
  589. * The attributes used with this command are defined in
  590. * enum qca_wlan_vendor_attr_pasn.
  591. *
  592. * @QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT: Subcommand used to set
  593. * secure ranging context such as TK and LTF keyseed for each peer
  594. * requested by the driver with a @QCA_NL80211_VENDOR_SUBCMD_PASN event.
  595. *
  596. * The attributes used with this command are defined in
  597. * enum qca_wlan_vendor_attr_secure_ranging_ctx.
  598. *
  599. * @QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD: This vendor subcommand is used to
  600. * enable/disable offload processing in firmware during system/runtime
  601. * suspend for CoAP messages (see RFC7252: The Constrained Application
  602. * Protocol) and fetch information of the CoAP messages cached during
  603. * offload processing.
  604. *
  605. * The attributes used with this command are defined in
  606. * enum qca_wlan_vendor_attr_coap_offload.
  607. *
  608. * @QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG: Subcommand to configure
  609. * (add, remove, or change) a Stream Classification Service (SCS) rule.
  610. *
  611. * The attributes used with this event are defined in
  612. * enum qca_wlan_vendor_attr_scs_rule_config.
  613. *
  614. * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY: Fetch SAR capabilities
  615. * supported by the WLAN firmware.
  616. *
  617. * The attributes used with this command are defined in
  618. * enum qca_wlan_vendor_attr_sar_capability.
  619. *
  620. * @QCA_NL80211_VENDOR_SUBCMD_SR: Subcommand used to implement Spatial Reuse
  621. * (SR) feature. This command is used by userspace to configure SR
  622. * parameters to the driver and to get the SR related parameters and
  623. * statistics with synchronous responses from the driver.
  624. * The driver also uses this command to send asynchronous events to
  625. * userspace to indicate suspend/resume of SR feature and changes
  626. * in SR parameters.
  627. *
  628. * The attributes used with this command are defined in
  629. * enum qca_wlan_vendor_attr_sr.
  630. *
  631. * @QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT: Subcommand used to
  632. * notify application layer about the primary netdev of an MLO connection.
  633. * In some implementations, MLO has multiple netdevs out of which one
  634. * netdev is designated as primary to provide a unified interface to the
  635. * bridge. In those implementations this event is sent on every MLO peer
  636. * connection.
  637. *
  638. * The attributes used with this event are defined in
  639. * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event.
  640. *
  641. * @QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT: This vendor command is used by the
  642. * driver to notify different AFC events to userspace. The attributes used
  643. * with this command are defined in enum qca_wlan_vendor_attr_afc_event.
  644. *
  645. * @QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE: This vendor command is used by
  646. * userspace to deliver AFC response data to driver. The attributes used
  647. * with this command are defined in enum qca_wlan_vendor_attr_afc_response.
  648. *
  649. * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP: Subcommand to configure AP interface to
  650. * operate in doze mode.
  651. *
  652. * Userspace uses this command to configure the AP interface to enter or
  653. * exit from doze mode. The driver sends this event after it enters or
  654. * exits the doze mode with the updated AP doze mode settings.
  655. *
  656. * The attributes used with this subcommand are defined in
  657. * enum qca_wlan_vendor_attr_dozed_ap.
  658. *
  659. * @QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE: This vendor subcommand is used
  660. * to get the status of local packet capture of monitor mode. The monitor
  661. * mode can be started using QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE
  662. * subcommand.
  663. *
  664. * The attributes used with this command are defined in enum
  665. * qca_wlan_vendor_attr_get_monitor_mode.
  666. *
  667. * @QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS: This vendor command is used to
  668. * get roam information from the driver to user space. It provides the
  669. * latest several instances of roam information cached in the driver.
  670. * The command is only used for STA mode. The attributes used with this
  671. * command are defined in enum qca_wlan_vendor_attr_roam_cached_stats.
  672. *
  673. * @QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE: This vendor subcommand is used to
  674. * configure and fetch the state information of the MLO links affiliated
  675. * with the STA interface. The attributes used with this command are
  676. * defined in enum qca_wlan_vendor_attr_mlo_link_state.
  677. *
  678. * @QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS: Userspace can use this
  679. * vendor subcommand to trigger channel utilization measurement on entire
  680. * channel width of the connected channel(s). For MLO connection, connected
  681. * channel utilization measurement shall be done on all the MLO links.
  682. * The driver may use regular scan or wideband energy detection feature
  683. * based on the hardware capability for connected channel(s) utilization
  684. * measurement. The driver indicates the connected channel(s) utilization
  685. * measurement completion as an asynchronous event with this command ID to
  686. * userspace. Upon receiving this event, userspace can use
  687. * %NL80211_CMD_GET_INTERFACE to determine the channel width of the current
  688. * connected channel(s) and can derive the channel utilization percentage
  689. * (CU) of each 20 MHz sub-channel of the entire connected channel using
  690. * %NL80211_CMD_GET_SURVEY response.
  691. * CU = %NL80211_SURVEY_INFO_TIME_BUSY * 100 / %NL80211_SURVEY_INFO_TIME.
  692. * This command is only used for STA mode.
  693. *
  694. * @QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP: This vendor subcommand is
  695. * used as an event to notify the userspace of TID-to-link map changes
  696. * negotiated by the driver or updated by associated AP MLD with Beacon,
  697. * Probe Response, or Action frames. The attributes used with this command
  698. * are defined in enum qca_wlan_vendor_attr_tid_to_link_map.
  699. *
  700. * Note that the attribute
  701. * %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR may not correspond to
  702. * the current connected AP MLD address.
  703. *
  704. * @QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG: Notify userspace about the removal
  705. * of STA MLD setup links due to AP MLD removing the corresponding
  706. * affiliated APs with Multi-Link reconfiguration. If all the STA MLD setup
  707. * links are removed during Multi-Link reconfiguration, the driver shall
  708. * use %NL80211_CMD_DISCONNECT instead of this command since it is a
  709. * connection drop. The attributes used with this command are defined in
  710. * enum qca_wlan_vendor_attr_link_reconfig.
  711. * Note that the attribute
  712. * %QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR may not correspond to
  713. * the current connected AP MLD address.
  714. *
  715. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT: Vendor command to configure
  716. * the driver with MLO link id information on which to transmit the TDLS
  717. * discovery response frame on the configured MLO BSS link when the
  718. * local station is connected in MLO mode. This command is sent to the
  719. * driver prior to the TDLS discovery response management transmit
  720. * operation and is followed immediately by the TDLS discovery response
  721. * management frame transmit command.
  722. *
  723. * The driver saves the configured MLO link id information and uses it for
  724. * the following TDLS discovery response frame transmission on the
  725. * configured MLO BSS link and the link id information is cleared in the
  726. * driver after the TDLS discovery response frame is successfully
  727. * transmitted. This behavior is independent of the TDLS peer STA connection
  728. * mode (MLO or non-MLO).
  729. *
  730. * Uses the attributes defined in
  731. * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext.
  732. */
  733. enum qca_nl80211_vendor_subcmds {
  734. QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
  735. QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
  736. QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
  737. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
  738. QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
  739. QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
  740. QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
  741. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
  742. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
  743. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
  744. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
  745. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
  746. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
  747. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20,
  748. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21,
  749. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22,
  750. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23,
  751. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24,
  752. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25,
  753. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26,
  754. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27,
  755. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28,
  756. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29,
  757. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30,
  758. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31,
  759. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32,
  760. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33,
  761. QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
  762. QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
  763. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
  764. QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
  765. QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
  766. QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
  767. QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
  768. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41,
  769. /* Get Concurrency Matrix */
  770. QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
  771. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
  772. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
  773. QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
  774. /* Deprecated */
  775. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53,
  776. QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
  777. QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
  778. /* Off loaded DFS events */
  779. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
  780. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
  781. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
  782. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
  783. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
  784. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
  785. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
  786. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
  787. QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
  788. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65,
  789. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66,
  790. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67,
  791. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68,
  792. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69,
  793. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70,
  794. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71,
  795. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72,
  796. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73,
  797. /* Wi-Fi Configuration subcommands */
  798. QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
  799. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
  800. QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
  801. QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
  802. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
  803. QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
  804. QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
  805. QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
  806. /* NS Offload enable/disable cmd */
  807. QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
  808. QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
  809. QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
  810. QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
  811. QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
  812. /* OCB commands */
  813. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
  814. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
  815. QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
  816. QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
  817. QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
  818. QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
  819. QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
  820. QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
  821. QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
  822. /* subcommand to get link properties */
  823. QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
  824. /* LFR Subnet Detection */
  825. QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
  826. /* DBS subcommands */
  827. QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
  828. QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
  829. /* Vendor setband command */
  830. QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
  831. /* Vendor scan commands */
  832. QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
  833. QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
  834. /* OTA test subcommand */
  835. QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
  836. /* Tx power scaling subcommands */
  837. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
  838. /* Tx power scaling in db subcommands */
  839. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115,
  840. QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
  841. QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117,
  842. QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
  843. QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
  844. QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
  845. QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121,
  846. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
  847. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
  848. QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
  849. QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
  850. QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
  851. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
  852. /* FTM/indoor location subcommands */
  853. QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
  854. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
  855. QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
  856. QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
  857. QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
  858. QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
  859. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
  860. QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
  861. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
  862. /* Encrypt/Decrypt command */
  863. QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
  864. QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
  865. /* DMG low level RF sector operations */
  866. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
  867. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
  868. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
  869. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
  870. /* Configure the TDLS mode from user space */
  871. QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
  872. QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
  873. /* Vendor abort scan command */
  874. QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
  875. /* Set Specific Absorption Rate(SAR) Power Limits */
  876. QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
  877. /* External Auto channel configuration setting */
  878. QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
  879. QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
  880. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
  881. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
  882. QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
  883. /* Set the trace level for QDF */
  884. QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
  885. QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
  886. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
  887. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
  888. QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
  889. QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
  890. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
  891. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
  892. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
  893. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
  894. QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
  895. QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
  896. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
  897. QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
  898. QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
  899. QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
  900. QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
  901. /* Wi-Fi test configuration subcommand */
  902. QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
  903. QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
  904. QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
  905. QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
  906. QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
  907. QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
  908. QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
  909. QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
  910. QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
  911. QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
  912. QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
  913. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
  914. QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
  915. QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
  916. QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
  917. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
  918. QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
  919. QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
  920. QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
  921. QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
  922. QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
  923. QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
  924. QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
  925. QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
  926. QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
  927. QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197,
  928. QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
  929. QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
  930. QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
  931. QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA = 201,
  932. QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
  933. QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
  934. QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
  935. QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
  936. /* 206..212 - reserved for QCA */
  937. QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
  938. QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
  939. QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
  940. QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
  941. QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217,
  942. QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218,
  943. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219,
  944. QCA_NL80211_VENDOR_SUBCMD_SR = 220,
  945. QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221,
  946. QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222,
  947. QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223,
  948. QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224,
  949. QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE = 225,
  950. QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS = 226,
  951. QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE = 227,
  952. QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS = 228,
  953. QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP = 229,
  954. QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG = 230,
  955. QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT = 231,
  956. };
  957. enum qca_wlan_vendor_tos {
  958. QCA_WLAN_VENDOR_TOS_BK = 0,
  959. QCA_WLAN_VENDOR_TOS_BE = 1,
  960. QCA_WLAN_VENDOR_TOS_VI = 2,
  961. QCA_WLAN_VENDOR_TOS_VO = 3,
  962. };
  963. /**
  964. * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
  965. * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
  966. */
  967. enum qca_wlan_vendor_attr_active_tos {
  968. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
  969. /* Type Of Service - Represented by qca_wlan_vendor_tos */
  970. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
  971. /* Flag attribute representing the start (attribute included) or stop
  972. * (attribute not included) of the respective TOS.
  973. */
  974. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
  975. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3,
  976. };
  977. enum qca_wlan_vendor_hang_reason {
  978. /* Unspecified reason */
  979. QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
  980. /* No Map for the MAC entry for the received frame */
  981. QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
  982. /* peer deletion timeout happened */
  983. QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
  984. /* peer unmap timeout */
  985. QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
  986. /* Scan request timed out */
  987. QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
  988. /* Consecutive Scan attempt failures */
  989. QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
  990. /* Unable to get the message buffer */
  991. QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
  992. /* Current command processing is timedout */
  993. QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
  994. /* Timeout for an ACK from FW for suspend request */
  995. QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
  996. /* Timeout for an ACK from FW for resume request */
  997. QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
  998. /* Transmission timeout for consecutive data frames */
  999. QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
  1000. /* Timeout for the TX completion status of data frame */
  1001. QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
  1002. /* DXE failure for tx/Rx, DXE resource unavailability */
  1003. QCA_WLAN_HANG_DXE_FAILURE = 12,
  1004. /* WMI pending commands exceed the maximum count */
  1005. QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
  1006. /* Timeout for peer STA connection accept command's response from the
  1007. * FW in AP mode. This command is triggered when a STA (peer) connects
  1008. * to AP (DUT).
  1009. */
  1010. QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
  1011. /* Timeout for the AP connection accept command's response from the FW
  1012. * in STA mode. This command is triggered when the STA (DUT) connects
  1013. * to an AP (peer).
  1014. */
  1015. QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
  1016. /* Timeout waiting for the response to the MAC HW mode change command
  1017. * sent to FW as a part of MAC mode switch among DBS (Dual Band
  1018. * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
  1019. * Channel Concurrency) mode.
  1020. */
  1021. QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
  1022. /* Timeout waiting for the response from FW to configure the MAC HW's
  1023. * mode. This operation is to configure the single/two MACs in either
  1024. * SCC/MCC/DBS mode.
  1025. */
  1026. QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
  1027. /* Timeout waiting for response of VDEV start command from the FW */
  1028. QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
  1029. /* Timeout waiting for response of VDEV restart command from the FW */
  1030. QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
  1031. /* Timeout waiting for response of VDEV stop command from the FW */
  1032. QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
  1033. /* Timeout waiting for response of VDEV delete command from the FW */
  1034. QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
  1035. /* Timeout waiting for response of peer all delete request command to
  1036. * the FW on a specific VDEV.
  1037. */
  1038. QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
  1039. /* WMI sequence mismatch between WMI command and Tx completion */
  1040. QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
  1041. /* Write to Device HAL register failed */
  1042. QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
  1043. /* No credit left to send the wow_wakeup_from_sleep to firmware */
  1044. QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
  1045. /* Bus failure */
  1046. QCA_WLAN_HANG_BUS_FAILURE = 26,
  1047. /* tasklet/credit latency found */
  1048. QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
  1049. /* MSDU buffers received in REO error ring, exceeding certain
  1050. * threshold
  1051. */
  1052. QCA_WLAN_HANG_RX_MSDU_BUF_RCVD_IN_ERR_RING = 28,
  1053. /* Vdev SM is out of sync and connect req received
  1054. * when already connected
  1055. */
  1056. QCA_WLAN_HANG_VDEV_SM_OUT_OF_SYNC = 29,
  1057. /* Stats request timeout */
  1058. QCA_WLAN_HANG_STATS_REQ_TIMEOUT = 30,
  1059. /* Leak in TX descriptor for a packet */
  1060. QCA_WLAN_HANG_TX_DESC_LEAK = 31,
  1061. /* Scheduler watchdog timeout */
  1062. QCA_WLAN_HANG_SCHED_TIMEOUT = 32,
  1063. /* Failed to send self peer deletion cmd to firmware */
  1064. QCA_WLAN_HANG_SELF_PEER_DEL_FAIL = 33,
  1065. /* Received del self sta without del bss */
  1066. QCA_WLAN_HANG_DEL_SELF_STA_FAIL = 34,
  1067. /* Recovery needed when sending flush completion to userspace */
  1068. QCA_WLAN_HANG_FLUSH_LOGS = 35,
  1069. /* Host wakeup because of page fault */
  1070. QCA_WLAN_HANG_HOST_WAKEUP_REASON_PAGE_FAULT = 36,
  1071. };
  1072. /**
  1073. * enum qca_wlan_vendor_attr_hang - Used by the vendor command
  1074. * QCA_NL80211_VENDOR_SUBCMD_HANG.
  1075. */
  1076. enum qca_wlan_vendor_attr_hang {
  1077. QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
  1078. /*
  1079. * Reason for the Hang - Represented by enum
  1080. * qca_wlan_vendor_hang_reason.
  1081. */
  1082. QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
  1083. /* The binary blob data associated with the hang reason specified by
  1084. * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
  1085. * contain the required dump to analyze the reason for the hang.
  1086. * NLA_BINARY attribute, the max size is 1024 bytes.
  1087. */
  1088. QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
  1089. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
  1090. QCA_WLAN_VENDOR_ATTR_HANG_MAX =
  1091. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
  1092. };
  1093. /**
  1094. * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level
  1095. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level
  1096. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters
  1097. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace
  1098. level needs to be updated.
  1099. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need
  1100. * to be set.
  1101. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last.
  1102. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute.
  1103. */
  1104. enum qca_vendor_attr_set_trace_level {
  1105. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0,
  1106. /*
  1107. * Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM
  1108. * attributes.
  1109. */
  1110. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1,
  1111. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2,
  1112. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3,
  1113. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST,
  1114. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX =
  1115. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1,
  1116. };
  1117. /**
  1118. * enum qca_wlan_vendor_attr_get_station - Sub commands used by
  1119. * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding
  1120. * station information. The information obtained through these
  1121. * commands signify the current info in connected state and
  1122. * latest cached information during the connected state , if queried
  1123. * when in disconnected state.
  1124. *
  1125. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute
  1126. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info
  1127. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason
  1128. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info
  1129. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last
  1130. */
  1131. enum qca_wlan_vendor_attr_get_station {
  1132. QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0,
  1133. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO,
  1134. QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON,
  1135. QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE,
  1136. /* keep last */
  1137. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST,
  1138. QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX =
  1139. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1,
  1140. };
  1141. /**
  1142. * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
  1143. * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
  1144. *
  1145. * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
  1146. * Used in STA mode. This attribute represents the list of channel center
  1147. * frequencies in MHz (u32) the station has learnt during the last connection
  1148. * or roaming attempt. This information shall not signify the channels for
  1149. * an explicit scan request from the user space. Host drivers can update this
  1150. * information to the user space in both connected and disconnected state.
  1151. * In the disconnected state this information shall signify the channels
  1152. * scanned in the last connection/roam attempt that lead to the disconnection.
  1153. */
  1154. enum qca_wlan_vendor_attr_update_sta_info {
  1155. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
  1156. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
  1157. /* keep last */
  1158. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
  1159. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
  1160. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
  1161. };
  1162. /**
  1163. * enum qca_wlan_802_11_mode - dot11 mode
  1164. * @QCA_WLAN_802_11_MODE_11B: mode B
  1165. * @QCA_WLAN_802_11_MODE_11G: mode G
  1166. * @QCA_WLAN_802_11_MODE_11N: mode N
  1167. * @QCA_WLAN_802_11_MODE_11A: mode A
  1168. * @QCA_WLAN_802_11_MODE_11AC: mode AC
  1169. * @QCA_WLAN_802_11_MODE_11AX: mode AX
  1170. * @QCA_WLAN_802_11_MODE_11BE: mode BE
  1171. * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode
  1172. */
  1173. enum qca_wlan_802_11_mode {
  1174. QCA_WLAN_802_11_MODE_11B,
  1175. QCA_WLAN_802_11_MODE_11G,
  1176. QCA_WLAN_802_11_MODE_11N,
  1177. QCA_WLAN_802_11_MODE_11A,
  1178. QCA_WLAN_802_11_MODE_11AC,
  1179. QCA_WLAN_802_11_MODE_11AX,
  1180. QCA_WLAN_802_11_MODE_11BE,
  1181. QCA_WLAN_802_11_MODE_INVALID,
  1182. };
  1183. /**
  1184. * enum qca_wlan_auth_type - Authentication key management type
  1185. * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type
  1186. * @QCA_WLAN_AUTH_TYPE_OPEN: Open key
  1187. * @QCA_WLAN_AUTH_TYPE_SHARED: shared key
  1188. * @QCA_WLAN_AUTH_TYPE_WPA: wpa key
  1189. * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key
  1190. * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key
  1191. * @QCA_WLAN_AUTH_TYPE_RSN: rsn key
  1192. * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key
  1193. * @QCA_WLAN_AUTH_TYPE_FT: ft key
  1194. * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key
  1195. * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key
  1196. * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk
  1197. * @QCA_WLAN_AUTH_TYPE_WAI: wai key
  1198. * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key
  1199. * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key
  1200. * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key
  1201. * @QCA_WLAN_AUTH_TYPE_AUTOSWITCH: Autoswitch key
  1202. * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm
  1203. * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384
  1204. * @QCA_WLAN_AUTH_TYPE_SAE: SAE key
  1205. * @QCA_WLAN_AUTH_TYPE_FILS_SHA256: FILS SHA 256 key
  1206. * @QCA_WLAN_AUTH_TYPE_FILS_SHA384: FILS SAH 384 key
  1207. * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256: FT FILS SHA 256 key
  1208. * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384: FT FILS SHA 384 key
  1209. * @QCA_WLAN_AUTH_TYPE_DPP_RSN: DPP RSN key
  1210. * @QCA_WLAN_AUTH_TYPE_OWE: owe key
  1211. * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256 : EAP SHA 256 key
  1212. * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384 : EAP SHA 384 key
  1213. */
  1214. enum qca_wlan_auth_type {
  1215. QCA_WLAN_AUTH_TYPE_INVALID,
  1216. QCA_WLAN_AUTH_TYPE_OPEN,
  1217. QCA_WLAN_AUTH_TYPE_SHARED,
  1218. QCA_WLAN_AUTH_TYPE_WPA,
  1219. QCA_WLAN_AUTH_TYPE_WPA_PSK,
  1220. QCA_WLAN_AUTH_TYPE_WPA_NONE,
  1221. QCA_WLAN_AUTH_TYPE_RSN,
  1222. QCA_WLAN_AUTH_TYPE_RSN_PSK,
  1223. QCA_WLAN_AUTH_TYPE_FT,
  1224. QCA_WLAN_AUTH_TYPE_FT_PSK,
  1225. QCA_WLAN_AUTH_TYPE_SHA256,
  1226. QCA_WLAN_AUTH_TYPE_SHA256_PSK,
  1227. QCA_WLAN_AUTH_TYPE_WAI,
  1228. QCA_WLAN_AUTH_TYPE_WAI_PSK,
  1229. QCA_WLAN_AUTH_TYPE_CCKM_WPA,
  1230. QCA_WLAN_AUTH_TYPE_CCKM_RSN,
  1231. QCA_WLAN_AUTH_TYPE_AUTOSWITCH,
  1232. QCA_WLAN_AUTH_TYPE_FT_SAE,
  1233. QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384,
  1234. QCA_WLAN_AUTH_TYPE_SAE,
  1235. QCA_WLAN_AUTH_TYPE_FILS_SHA256,
  1236. QCA_WLAN_AUTH_TYPE_FILS_SHA384,
  1237. QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256,
  1238. QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384,
  1239. QCA_WLAN_AUTH_TYPE_DPP_RSN,
  1240. QCA_WLAN_AUTH_TYPE_OWE,
  1241. QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256,
  1242. QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384,
  1243. };
  1244. /**
  1245. * enum qca_wlan_vendor_attr_get_station_info - Station Info queried
  1246. * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION.
  1247. *
  1248. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute
  1249. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR:
  1250. * Get the standard NL attributes Nested with this attribute.
  1251. * Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link -
  1252. * NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) /
  1253. * NL80211_ATTR_STA_INFO
  1254. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR:
  1255. * Get the standard NL attributes Nested with this attribute.
  1256. * Ex : Query HT/VHT Capability advertised by the AP.
  1257. * NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY
  1258. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT:
  1259. * Number of successful Roam attempts before a
  1260. * disconnect, Unsigned 32 bit value
  1261. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM:
  1262. * Authentication Key Management Type used for the connected session.
  1263. * Signified by enum qca_wlan_auth_type
  1264. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the
  1265. * connected Session, signified by enum qca_wlan_802_11_mode
  1266. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION:
  1267. * HS20 Indication Element
  1268. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON:
  1269. * Status Code Corresponding to the Association Failure.
  1270. * Unsigned 32 bit value.
  1271. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE:
  1272. * Max phy rate of remote station
  1273. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS:
  1274. * TX packets to remote station
  1275. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES:
  1276. * TX bytes to remote station
  1277. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS:
  1278. * RX packets from remote station
  1279. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES:
  1280. * RX bytes from remote station
  1281. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE:
  1282. * Last TX rate with remote station
  1283. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE:
  1284. * Last RX rate with remote station
  1285. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM:
  1286. * Remote station enable/disable WMM
  1287. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE:
  1288. * Remote station connection mode
  1289. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU:
  1290. * Remote station AMPDU enable/disable
  1291. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC:
  1292. * Remote station TX Space-time block coding enable/disable
  1293. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC:
  1294. * Remote station RX Space-time block coding enable/disable
  1295. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH:
  1296. * Remote station channel width
  1297. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE:
  1298. * Remote station short GI enable/disable
  1299. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding
  1300. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES: Binary attribute
  1301. * containing the raw information elements from Beacon frames. Represents
  1302. * the Beacon frames of the current BSS in the connected state. When queried
  1303. * in the disconnected state, these IEs correspond to the last connected BSSID.
  1304. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON: u32, Driver
  1305. * disconnect reason for the last disconnection if the disconnection is
  1306. * triggered from the host driver. The values are referred from
  1307. * enum qca_disconnect_reason_codes. If the disconnect is from
  1308. * peer/userspace this value is QCA_DISCONNECT_REASON_UNSPECIFIED.
  1309. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES: Binary attribute
  1310. * Applicable in AP mode only. It contains the raw information elements
  1311. * from assoc request frame of the given peer station. User queries with the
  1312. * mac address of peer station when it disconnects. Host driver sends
  1313. * assoc request frame of the given station. Host driver doesn't provide
  1314. * the IEs when the peer station is still in connected state.
  1315. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION: Attribute type for
  1316. * sending HE operation info.
  1317. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last
  1318. *
  1319. */
  1320. enum qca_wlan_vendor_attr_get_station_info {
  1321. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0,
  1322. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR,
  1323. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR,
  1324. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT,
  1325. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM,
  1326. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE,
  1327. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION,
  1328. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION,
  1329. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION,
  1330. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON,
  1331. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE,
  1332. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS,
  1333. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES,
  1334. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS,
  1335. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES,
  1336. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE,
  1337. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE,
  1338. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM,
  1339. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE,
  1340. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU,
  1341. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC,
  1342. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC,
  1343. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH,
  1344. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE,
  1345. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD,
  1346. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT,
  1347. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT,
  1348. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_FAILURE,
  1349. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AVG_RSSI_PER_CHAIN,
  1350. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_SUCCEED,
  1351. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_LAST_PKT_RSSI,
  1352. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY,
  1353. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST,
  1354. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_TOTAL_FW,
  1355. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_FW,
  1356. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST_FW,
  1357. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES,
  1358. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON,
  1359. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES,
  1360. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION,
  1361. /* keep last */
  1362. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST,
  1363. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX =
  1364. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1,
  1365. };
  1366. /**
  1367. * enum qca_wlan_vendor_attr_tdls_enable - TDLS enable attribute
  1368. *
  1369. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID: Invalid initial value
  1370. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: An array of 6 x Unsigned 8-bit
  1371. * value
  1372. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: Signed 32-bit value, but lets
  1373. * keep as unsigned for now
  1374. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: operating class
  1375. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: Enable max latency in ms
  1376. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: Enable min bandwidth
  1377. * in KBPS
  1378. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST: After last
  1379. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX: Max value
  1380. */
  1381. enum qca_wlan_vendor_attr_tdls_enable {
  1382. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
  1383. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR,
  1384. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL,
  1385. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS,
  1386. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS,
  1387. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS,
  1388. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
  1389. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
  1390. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
  1391. };
  1392. /**
  1393. * enum qca_wlan_vendor_attr_tdls_disable: tdls disable attribute
  1394. *
  1395. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID: Invalid initial value
  1396. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: An array of 6 x Unsigned
  1397. * 8-bit value
  1398. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST: After last
  1399. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX: Max value
  1400. */
  1401. enum qca_wlan_vendor_attr_tdls_disable {
  1402. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
  1403. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR,
  1404. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
  1405. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
  1406. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
  1407. };
  1408. /**
  1409. * qca_chip_power_save_failure_reason: Power save failure reason
  1410. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure
  1411. * due to protocol/module.
  1412. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure
  1413. * due to hardware
  1414. */
  1415. enum qca_chip_power_save_failure_reason {
  1416. QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
  1417. QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
  1418. };
  1419. /**
  1420. * qca_attr_chip_power_save_failure: attributes to vendor subcmd
  1421. * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite
  1422. * information leading to the power save failure.
  1423. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid
  1424. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason
  1425. * represented by enum qca_chip_power_save_failure_reason
  1426. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last
  1427. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value
  1428. */
  1429. enum qca_attr_chip_power_save_failure {
  1430. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
  1431. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
  1432. /* keep last */
  1433. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
  1434. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
  1435. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
  1436. };
  1437. /**
  1438. * enum qca_wlan_vendor_attr_tdls_get_status - tdls get status attribute
  1439. *
  1440. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID: Invalid initial value
  1441. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: An array of 6 x Unsigned
  1442. * 8-bit value
  1443. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: get status state,
  1444. * unsigned 32-bit value
  1445. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: get status reason
  1446. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: get status channel,
  1447. * unsigned 32-bit value
  1448. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: get operating
  1449. * class, unsigned 32-bit value
  1450. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST: After last
  1451. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX: Max value
  1452. */
  1453. enum qca_wlan_vendor_attr_tdls_get_status {
  1454. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
  1455. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR,
  1456. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE,
  1457. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON,
  1458. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL,
  1459. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS,
  1460. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
  1461. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
  1462. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
  1463. };
  1464. /**
  1465. * enum qca_wlan_vendor_attr_tdls_state - tdls state attribute
  1466. *
  1467. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID: Initial invalid value
  1468. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: An array of 6 x Unsigned
  1469. * 8-bit value
  1470. * @QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE: TDLS new state,
  1471. * unsigned 32-bit value
  1472. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: TDLS state reason
  1473. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: TDLS state channel,
  1474. * unsigned 32-bit value
  1475. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: TDLS state
  1476. * operating class, unsigned 32-bit value
  1477. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST: After last
  1478. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX: Max value
  1479. */
  1480. enum qca_wlan_vendor_attr_tdls_state {
  1481. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
  1482. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR,
  1483. QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE,
  1484. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON,
  1485. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL,
  1486. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS,
  1487. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
  1488. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
  1489. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
  1490. };
  1491. /* enum's to provide TDLS capabilities */
  1492. enum qca_wlan_vendor_attr_get_tdls_capabilities {
  1493. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
  1494. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1,
  1495. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2,
  1496. /* keep last */
  1497. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
  1498. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
  1499. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
  1500. };
  1501. /* Compatibility defines for previously used subcmd names.
  1502. * These values should not be used in any new implementation.
  1503. */
  1504. #define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \
  1505. QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY
  1506. enum qca_wlan_vendor_attr {
  1507. QCA_WLAN_VENDOR_ATTR_INVALID = 0,
  1508. /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
  1509. QCA_WLAN_VENDOR_ATTR_DFS = 1,
  1510. /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
  1511. QCA_WLAN_VENDOR_ATTR_NAN = 2,
  1512. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  1513. QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
  1514. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  1515. QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
  1516. /*
  1517. * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
  1518. * by enum qca_roaming_policy.
  1519. */
  1520. QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
  1521. QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
  1522. /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
  1523. QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
  1524. QCA_WLAN_VENDOR_ATTR_TEST = 8,
  1525. /*
  1526. * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES
  1527. * Unsigned 32-bit value.
  1528. */
  1529. QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
  1530. /* Unsigned 32-bit value */
  1531. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
  1532. /* Unsigned 32-bit value */
  1533. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
  1534. /* Unsigned 32-bit value from enum qca_set_band. Also, the acceptable
  1535. * value for this attribute are only till QCA_SETBAND_2G. This attribute
  1536. * is deprecated. Recommendation is to use
  1537. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. If the band is configured
  1538. * using both the attributes, the ones configured through
  1539. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK take the precedence.
  1540. */
  1541. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
  1542. /* Dummy (NOP) attribute for 64 bit padding */
  1543. QCA_WLAN_VENDOR_ATTR_PAD = 13,
  1544. /*
  1545. * Unique FTM session cookie (Unsigned 64 bit). Specified in
  1546. * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
  1547. * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
  1548. * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
  1549. */
  1550. QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
  1551. /*
  1552. * Indoor location capabilities, returned by
  1553. * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
  1554. * see enum qca_wlan_vendor_attr_loc_capa.
  1555. */
  1556. QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
  1557. /*
  1558. * Array of nested attributes containing information about each peer
  1559. * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
  1560. * for supported attributes for each peer.
  1561. */
  1562. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
  1563. /*
  1564. * Array of nested attributes containing measurement results for
  1565. * one or more peers, reported by the
  1566. * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
  1567. * See enum qca_wlan_vendor_attr_peer_result for list of supported
  1568. * attributes.
  1569. */
  1570. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
  1571. /* Flag attribute for enabling or disabling responder functionality. */
  1572. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
  1573. /*
  1574. * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  1575. * command to specify the LCI report that will be sent by
  1576. * the responder during a measurement exchange. The format is
  1577. * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
  1578. */
  1579. QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
  1580. /*
  1581. * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  1582. * command to specify the location civic report that will
  1583. * be sent by the responder during a measurement exchange.
  1584. * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
  1585. */
  1586. QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
  1587. /*
  1588. * Session/measurement completion status code,
  1589. * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
  1590. * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
  1591. * see enum qca_vendor_attr_loc_session_status.
  1592. */
  1593. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
  1594. /*
  1595. * Initial dialog token used by responder (0 if not specified),
  1596. * unsigned 8 bit value.
  1597. */
  1598. QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
  1599. /*
  1600. * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
  1601. * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
  1602. * AOA measurements are needed as part of an FTM session.
  1603. * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
  1604. * enum qca_wlan_vendor_attr_aoa_type.
  1605. */
  1606. QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
  1607. /*
  1608. * A bit mask (unsigned 32 bit value) of antenna arrays used
  1609. * by indoor location measurements. Refers to the antenna
  1610. * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
  1611. */
  1612. QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
  1613. /*
  1614. * AOA measurement data. Its contents depends on the AOA measurement
  1615. * type and antenna array mask:
  1616. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
  1617. * phase of the strongest CIR path for each antenna in the measured
  1618. * array(s).
  1619. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
  1620. * values, phase and amplitude of the strongest CIR path for each
  1621. * antenna in the measured array(s).
  1622. */
  1623. QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
  1624. /*
  1625. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1626. * to specify the chain number (unsigned 32 bit value) to inquire
  1627. * the corresponding antenna RSSI value */
  1628. QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
  1629. /*
  1630. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1631. * to report the specific antenna RSSI value (unsigned 32 bit value) */
  1632. QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
  1633. /* Frequency in MHz, various uses. Unsigned 32 bit value */
  1634. QCA_WLAN_VENDOR_ATTR_FREQ = 28,
  1635. /*
  1636. * TSF timer value, unsigned 64 bit value.
  1637. * May be returned by various commands.
  1638. */
  1639. QCA_WLAN_VENDOR_ATTR_TSF = 29,
  1640. /*
  1641. * DMG RF sector index, unsigned 16 bit number. Valid values are
  1642. * 0..127 for sector indices or 65535 as special value used to
  1643. * unlock sector selection in
  1644. * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
  1645. */
  1646. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
  1647. /*
  1648. * DMG RF sector type, unsigned 8 bit value. One of the values
  1649. * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
  1650. */
  1651. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
  1652. /*
  1653. * Bitmask of DMG RF modules for which information is requested. Each
  1654. * bit corresponds to an RF module with the same index as the bit
  1655. * number. Unsigned 32 bit number but only low 8 bits can be set since
  1656. * all DMG chips currently have up to 8 RF modules.
  1657. */
  1658. QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
  1659. /*
  1660. * Array of nested attributes where each entry is DMG RF sector
  1661. * configuration for a single RF module.
  1662. * Attributes for each entry are taken from enum
  1663. * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
  1664. * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
  1665. * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
  1666. */
  1667. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
  1668. /*
  1669. * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
  1670. * to report frame aggregation statistics to userspace.
  1671. */
  1672. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
  1673. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
  1674. /*
  1675. * Unsigned 8-bit value representing MBO transition reason code as
  1676. * provided by the AP used by subcommand
  1677. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
  1678. * specified by the userspace in the request to the driver.
  1679. */
  1680. QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
  1681. /*
  1682. * Array of nested attributes, BSSID and status code, used by subcommand
  1683. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
  1684. * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
  1685. * The userspace space specifies the list/array of candidate BSSIDs in
  1686. * the order of preference in the request. The driver specifies the
  1687. * status code, for each BSSID in the list, in the response. The
  1688. * acceptable candidates are listed in the order preferred by the
  1689. * driver.
  1690. */
  1691. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
  1692. /*
  1693. * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
  1694. * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
  1695. */
  1696. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
  1697. /*
  1698. * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
  1699. * to define the number of antennas to use for BRP.
  1700. * different purpose in each ANT_LIMIT_MODE:
  1701. * DISABLE - ignored
  1702. * EFFECTIVE - upper limit to number of antennas to be used
  1703. * FORCE - exact number of antennas to be used
  1704. * unsigned 8 bit value
  1705. */
  1706. QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
  1707. /*
  1708. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1709. * to report the corresponding antenna index to the chain RSSI value
  1710. */
  1711. QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
  1712. /*
  1713. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1714. * to report the specific antenna EVM value (unsigned 32 bit value).
  1715. * With a determinate group of antennas, the driver specifies the
  1716. * EVM value for each antenna ID, and application extract them
  1717. * in user space.
  1718. */
  1719. QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
  1720. /*
  1721. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
  1722. * wlan firmware current state. FW state is an unsigned 8 bit value,
  1723. * one of the values in enum qca_wlan_vendor_attr_fw_state.
  1724. */
  1725. QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
  1726. /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
  1727. * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only the
  1728. * integer values of enum qca_set_band till QCA_SETBAND_2G are valid.
  1729. * This attribute shall consider the bitmask combinations to define
  1730. * the respective Band combinations and always takes precedence over
  1731. * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE.
  1732. */
  1733. QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
  1734. /* keep last */
  1735. QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
  1736. QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1
  1737. };
  1738. enum qca_wlan_vendor_attr_extscan_config_params {
  1739. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
  1740. /* Unsigned 32-bit value */
  1741. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
  1742. /*
  1743. * Attributes for data used by
  1744. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command.
  1745. */
  1746. /* Unsigned 32-bit value */
  1747. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
  1748. = 2,
  1749. /* Unsigned 32-bit value */
  1750. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
  1751. = 3,
  1752. /*
  1753. * Attributes for input params used by
  1754. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command.
  1755. */
  1756. /* Unsigned 32-bit value; channel frequency */
  1757. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4,
  1758. /* Unsigned 32-bit value; dwell time in ms. */
  1759. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
  1760. /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
  1761. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6,
  1762. /* Unsigned 8-bit value; channel class */
  1763. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7,
  1764. /* Unsigned 8-bit value; bucket index, 0 based */
  1765. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8,
  1766. /* Unsigned 8-bit value; band. */
  1767. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9,
  1768. /* Unsigned 32-bit value; desired period, in ms. */
  1769. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10,
  1770. /* Unsigned 8-bit value; report events semantics. */
  1771. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
  1772. /*
  1773. * Unsigned 32-bit value. Followed by a nested array of
  1774. * EXTSCAN_CHANNEL_SPEC_* attributes.
  1775. */
  1776. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
  1777. /*
  1778. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes.
  1779. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  1780. */
  1781. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13,
  1782. /* Unsigned 32-bit value; base timer period in ms. */
  1783. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
  1784. /*
  1785. * Unsigned 32-bit value; number of APs to store in each scan in the
  1786. * BSSID/RSSI history buffer (keep the highest RSSI APs).
  1787. */
  1788. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
  1789. /*
  1790. * Unsigned 8-bit value; in %, when scan buffer is this much full, wake
  1791. * up AP.
  1792. */
  1793. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
  1794. = 16,
  1795. /*
  1796. * Unsigned 8-bit value; number of scan bucket specs; followed by a
  1797. * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size
  1798. * of the array is determined by NUM_BUCKETS.
  1799. */
  1800. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
  1801. /*
  1802. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes.
  1803. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
  1804. */
  1805. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18,
  1806. /* Unsigned 8-bit value */
  1807. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
  1808. = 19,
  1809. /* Unsigned 32-bit value; maximum number of results to be returned. */
  1810. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
  1811. = 20,
  1812. /* An array of 6 x unsigned 8-bit value */
  1813. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
  1814. /* Signed 32-bit value */
  1815. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
  1816. /* Signed 32-bit value */
  1817. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
  1818. /* Unsigned 32-bit value */
  1819. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
  1820. /*
  1821. * Number of hotlist APs as unsigned 32-bit value, followed by a nested
  1822. * array of AP_THRESHOLD_PARAM attributes and values. The size of the
  1823. * array is determined by NUM_AP.
  1824. */
  1825. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
  1826. /*
  1827. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes.
  1828. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  1829. */
  1830. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26,
  1831. /* Unsigned 32-bit value; number of samples for averaging RSSI. */
  1832. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
  1833. = 27,
  1834. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  1835. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
  1836. = 28,
  1837. /* Unsigned 32-bit value; number of APs breaching threshold. */
  1838. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
  1839. /*
  1840. * Unsigned 32-bit value; number of APs. Followed by an array of
  1841. * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
  1842. */
  1843. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
  1844. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  1845. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
  1846. = 31,
  1847. /*
  1848. * Unsigned 32-bit value. If max_period is non zero or different than
  1849. * period, then this bucket is an exponential backoff bucket.
  1850. */
  1851. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
  1852. /* Unsigned 32-bit value. */
  1853. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33,
  1854. /*
  1855. * Unsigned 32-bit value. For exponential back off bucket, number of
  1856. * scans to perform for a given period.
  1857. */
  1858. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34,
  1859. /*
  1860. * Unsigned 8-bit value; in number of scans, wake up AP after these
  1861. * many scans.
  1862. */
  1863. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
  1864. = 35,
  1865. /*
  1866. * Attributes for data used by
  1867. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command.
  1868. */
  1869. /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
  1870. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
  1871. = 36,
  1872. /*
  1873. * Number of hotlist SSIDs as unsigned 32-bit value, followed by a
  1874. * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
  1875. * size of the array is determined by NUM_SSID.
  1876. */
  1877. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
  1878. /*
  1879. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_*
  1880. * attributes.
  1881. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
  1882. */
  1883. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38,
  1884. /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
  1885. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
  1886. /* Unsigned 8-bit value */
  1887. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
  1888. /* Signed 32-bit value */
  1889. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
  1890. /* Signed 32-bit value */
  1891. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
  1892. /* Unsigned 32-bit value; a bitmask with additional extscan config flag.
  1893. */
  1894. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43,
  1895. /* keep last */
  1896. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
  1897. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX =
  1898. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
  1899. };
  1900. enum qca_wlan_vendor_attr_extscan_results {
  1901. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0,
  1902. /*
  1903. * Unsigned 32-bit value; must match the request Id supplied by
  1904. * Wi-Fi HAL in the corresponding subcmd NL msg.
  1905. */
  1906. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1,
  1907. /*
  1908. * Unsigned 32-bit value; used to indicate the status response from
  1909. * firmware/driver for the vendor sub-command.
  1910. */
  1911. QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2,
  1912. /*
  1913. * EXTSCAN Valid Channels attributes */
  1914. /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
  1915. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3,
  1916. /*
  1917. * An array of NUM_CHANNELS x unsigned 32-bit value integers
  1918. * representing channel numbers.
  1919. */
  1920. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4,
  1921. /* EXTSCAN Capabilities attributes */
  1922. /* Unsigned 32-bit value */
  1923. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
  1924. /* Unsigned 32-bit value */
  1925. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
  1926. /* Unsigned 32-bit value */
  1927. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
  1928. = 7,
  1929. /* Unsigned 32-bit value */
  1930. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
  1931. = 8,
  1932. /* Signed 32-bit value */
  1933. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
  1934. = 9,
  1935. /* Unsigned 32-bit value */
  1936. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
  1937. /* Unsigned 32-bit value */
  1938. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
  1939. = 11,
  1940. /* Unsigned 32-bit value */
  1941. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
  1942. = 12,
  1943. /*
  1944. * EXTSCAN Attributes used with
  1945. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command.
  1946. */
  1947. /* Unsigned 32-bit value */
  1948. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
  1949. /*
  1950. * EXTSCAN attributes used with
  1951. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command.
  1952. */
  1953. /*
  1954. * An array of NUM_RESULTS_AVAILABLE x
  1955. * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_*
  1956. */
  1957. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14,
  1958. /* Unsigned 64-bit value; age of sample at the time of retrieval */
  1959. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
  1960. /* 33 x unsigned 8-bit value; NULL terminated SSID */
  1961. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16,
  1962. /* An array of 6 x unsigned 8-bit value */
  1963. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
  1964. /* Unsigned 32-bit value; channel frequency in MHz */
  1965. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
  1966. /* Signed 32-bit value */
  1967. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
  1968. /* Unsigned 32-bit value */
  1969. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20,
  1970. /* Unsigned 32-bit value */
  1971. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
  1972. /* Unsigned 16-bit value */
  1973. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
  1974. /* Unsigned 16-bit value */
  1975. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
  1976. /* Unsigned 32-bit value; size of the IE DATA blob */
  1977. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
  1978. /*
  1979. * An array of IE_LENGTH x unsigned 8-bit value; blob of all the
  1980. * information elements found in the beacon; this data should be a
  1981. * packed list of wifi_information_element objects, one after the
  1982. * other.
  1983. */
  1984. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
  1985. /*
  1986. * Unsigned 8-bit value; set by driver to indicate more scan results are
  1987. * available.
  1988. */
  1989. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
  1990. /*
  1991. * EXTSCAN attributes for
  1992. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command.
  1993. */
  1994. /* Unsigned 8-bit value */
  1995. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
  1996. /* Unsigned 32-bit value */
  1997. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
  1998. /*
  1999. * EXTSCAN attributes for
  2000. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command.
  2001. */
  2002. /*
  2003. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  2004. * to indicate number of results.
  2005. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
  2006. * list of results.
  2007. */
  2008. /*
  2009. * EXTSCAN attributes for
  2010. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command.
  2011. */
  2012. /* An array of 6 x unsigned 8-bit value */
  2013. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
  2014. /* Unsigned 32-bit value */
  2015. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
  2016. = 30,
  2017. /* Unsigned 32-bit value. */
  2018. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
  2019. = 31,
  2020. /*
  2021. * A nested array of signed 32-bit RSSI values. Size of the array is
  2022. * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
  2023. */
  2024. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
  2025. = 32,
  2026. /*
  2027. * EXTSCAN attributes used with
  2028. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command.
  2029. */
  2030. /*
  2031. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  2032. * to indicate number of extscan cached results returned.
  2033. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate
  2034. * the list of extscan cached results.
  2035. */
  2036. /*
  2037. * An array of NUM_RESULTS_AVAILABLE x
  2038. * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_*
  2039. */
  2040. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33,
  2041. /* Unsigned 32-bit value; a unique identifier for the scan unit. */
  2042. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34,
  2043. /*
  2044. * Unsigned 32-bit value; a bitmask w/additional information about scan.
  2045. */
  2046. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35,
  2047. /*
  2048. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  2049. * to indicate number of wifi scan results/bssids retrieved by the scan.
  2050. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
  2051. * list of wifi scan results returned for each cached result block.
  2052. */
  2053. /*
  2054. * EXTSCAN attributes for
  2055. * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
  2056. */
  2057. /*
  2058. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
  2059. * number of results.
  2060. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
  2061. * list of wifi scan results returned for each
  2062. * wifi_passpoint_match_result block.
  2063. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
  2064. */
  2065. /*
  2066. * EXTSCAN attributes for
  2067. * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
  2068. */
  2069. /* Unsigned 32-bit value */
  2070. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
  2071. = 36,
  2072. /*
  2073. * A nested array of
  2074. * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
  2075. * attributes. Array size =
  2076. * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
  2077. */
  2078. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
  2079. /* Unsigned 32-bit value; network block id for the matched network */
  2080. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
  2081. /*
  2082. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
  2083. * list of wifi scan results returned for each
  2084. * wifi_passpoint_match_result block.
  2085. */
  2086. /* Unsigned 32-bit value */
  2087. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
  2088. /*
  2089. * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
  2090. * ANQP data in the information_element format.
  2091. */
  2092. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
  2093. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2094. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
  2095. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2096. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
  2097. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2098. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
  2099. = 43,
  2100. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2101. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
  2102. = 44,
  2103. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45,
  2104. QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
  2105. /* keep last */
  2106. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST,
  2107. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX =
  2108. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1,
  2109. };
  2110. /**
  2111. * enum qca_vendor_interop_issues_ap_type - interop issues type
  2112. * This enum defines the valid set of values of interop issues type. These
  2113. * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
  2114. *
  2115. * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue
  2116. * when the STA's Qpower feature is enabled.
  2117. */
  2118. enum qca_vendor_interop_issues_ap_type {
  2119. QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
  2120. QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
  2121. };
  2122. /**
  2123. * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues
  2124. * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
  2125. *
  2126. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value
  2127. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type
  2128. * 32-bit unsigned value, The type defined in enum
  2129. * qca_vendor_interop_issues_ap_type are used.
  2130. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container
  2131. * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes,
  2132. * it is present and mandatory for the command but is not used for
  2133. * the event since only a single BSSID is reported in an event.
  2134. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid
  2135. * 6-byte MAC address. It is used within the nested
  2136. * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case
  2137. * and without such encapsulation in the event case.
  2138. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
  2139. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
  2140. */
  2141. enum qca_vendor_attr_interop_issues_ap {
  2142. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
  2143. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
  2144. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
  2145. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
  2146. /* keep last */
  2147. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
  2148. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
  2149. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
  2150. };
  2151. #ifdef WLAN_FEATURE_LINK_LAYER_STATS
  2152. enum qca_wlan_vendor_attr_ll_stats_set {
  2153. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
  2154. /* Unsigned 32-bit value */
  2155. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
  2156. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
  2157. /* keep last */
  2158. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
  2159. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
  2160. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
  2161. };
  2162. /**
  2163. * qca_wlan_ll_stats_clr_req_bitmap - Represents the bitmap to clear LL STATS
  2164. * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK.
  2165. *
  2166. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO: Clear all radio statistics.
  2167. *
  2168. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA: Clear cca_busy_time within
  2169. * radio statistics.
  2170. *
  2171. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNEL: Clear all channel
  2172. * statistics within radio statistics.
  2173. *
  2174. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_SCAN: Clear all scan statistics within
  2175. * radio statistics.
  2176. *
  2177. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE: Clear all interface statistics.
  2178. *
  2179. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE: Clear all TX rate statistics
  2180. * within interface statistics.
  2181. *
  2182. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC: Clear all AC statistics within
  2183. * interface statistics.
  2184. *
  2185. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION: Clear all contention
  2186. * (min, max, avg) statistics within AC statistics.
  2187. *
  2188. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER: Clear all peer statistics
  2189. * on this interface.
  2190. *
  2191. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER: Clear particular peer
  2192. * statistics depending on the peer_mac.
  2193. */
  2194. enum qca_wlan_ll_stats_clr_req_bitmap {
  2195. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO = BIT(0),
  2196. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA = BIT(1),
  2197. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNELS = BIT(2),
  2198. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_SCAN = BIT(3),
  2199. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE = BIT(4),
  2200. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE = BIT(5),
  2201. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC = BIT(6),
  2202. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION = BIT(7),
  2203. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER = BIT(8),
  2204. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER = BIT(9),
  2205. };
  2206. enum qca_wlan_vendor_attr_ll_stats_clr {
  2207. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
  2208. /* Unsigned 32bit bitmap for clearing statistics, specified
  2209. * in the enum qca_wlan_ll_stats_clr_req_bitmap.
  2210. */
  2211. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
  2212. /* Unsigned 8 bit value: Request to stop statistics collection */
  2213. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
  2214. /* Unsigned 32 bit bitmap: Response from the driver
  2215. * for the cleared statistics
  2216. */
  2217. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
  2218. /* Unsigned 8 bit value: Response from driver/firmware
  2219. * for the stop request
  2220. */
  2221. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
  2222. /* keep last */
  2223. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
  2224. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
  2225. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
  2226. };
  2227. /**
  2228. * qca_wlan_ll_stats_get_req_bitmap - Represents the bitmap to request LL STATS
  2229. * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK.
  2230. *
  2231. * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO: Request all radio statistics.
  2232. *
  2233. * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE: Request interface statistics.
  2234. *
  2235. * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER: Request all peer statistics.
  2236. *
  2237. * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER: Request per peer statistics.
  2238. */
  2239. enum qca_wlan_ll_stats_get_req_bitmap {
  2240. QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO = BIT(0),
  2241. QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE = BIT(1),
  2242. QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER = BIT(2),
  2243. QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER = BIT(3),
  2244. };
  2245. enum qca_wlan_vendor_attr_ll_stats_get {
  2246. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
  2247. /* Unsigned 32 bit value provided by the caller issuing the GET stats
  2248. * command. When reporting the stats results, the driver uses the same
  2249. * value to indicate which GET request the results correspond to.
  2250. */
  2251. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
  2252. /* Unsigned 32 bit value - bit mask to identify what statistics are
  2253. * requested for retrieval specified in the enum
  2254. * qca_wlan_ll_stats_get_req_bitmap
  2255. */
  2256. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
  2257. /* keep last */
  2258. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
  2259. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
  2260. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
  2261. };
  2262. enum qca_wlan_vendor_attr_ll_stats_results {
  2263. QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
  2264. /*
  2265. * For Multi Link Operation (MLO) connection, per-link statistics will
  2266. * be sent inside of %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and
  2267. * cumulative statistics will be sent outside of
  2268. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to maintain backward
  2269. * compatibility with legacy user space. Attributes which don't have
  2270. * explicit documentation for MLO will be sent only outside of
  2271. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK, such attributes values
  2272. * don't depend on whether the connection is MLO capable or not, e.g.,
  2273. * radio and channel specific attributes.
  2274. */
  2275. /* Unsigned 32bit value. Used by the driver; must match the request id
  2276. * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
  2277. */
  2278. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
  2279. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2280. * the link with the best RSSI outside
  2281. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2282. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2283. */
  2284. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
  2285. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2286. * the link with the best RSSI outside
  2287. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2288. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2289. */
  2290. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
  2291. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2292. * the link with the best RSSI outside
  2293. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2294. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2295. */
  2296. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
  2297. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2298. * the link with the best RSSI outside
  2299. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2300. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2301. */
  2302. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
  2303. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2304. * the link with the best RSSI outside
  2305. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2306. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2307. */
  2308. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
  2309. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2310. * the link with the best RSSI outside
  2311. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2312. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2313. */
  2314. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
  2315. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2316. * the link with the best RSSI outside
  2317. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2318. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2319. */
  2320. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
  2321. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
  2322. * nested within the interface stats.
  2323. */
  2324. /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
  2325. * Type = enum wifi_interface_mode.
  2326. */
  2327. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
  2328. /* Interface MAC address. An array of 6 Unsigned int8 */
  2329. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
  2330. /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
  2331. * AUTHENTICATING, etc. valid for STA, CLI only.
  2332. */
  2333. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
  2334. /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
  2335. */
  2336. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
  2337. /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
  2338. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
  2339. /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
  2340. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
  2341. /* For non-MLO connection, BSSID of the AP. For MLO connection, MLD
  2342. * address of the AP. An array of 6 unsigned 8 bit values
  2343. */
  2344. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
  2345. /* Country string advertised by AP. An array of 3 unsigned 8 bit
  2346. * values.
  2347. */
  2348. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
  2349. /* Country string for this association. An array of 3 unsigned 8 bit
  2350. * values.
  2351. */
  2352. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
  2353. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
  2354. * be nested within the interface stats.
  2355. * For an MLO connection, all %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
  2356. * attributes except %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_*
  2357. * indicate the aggregate of all links outside
  2358. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2359. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_* attributes
  2360. * indicate value of the MLO link with the best RSSI outside
  2361. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2362. * These attributes indicate the link specific value inside
  2363. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2364. */
  2365. /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
  2366. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
  2367. /* Unsigned int 32 value corresponding to respective AC */
  2368. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
  2369. /* Unsigned int 32 value corresponding to respective AC */
  2370. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
  2371. /* Unsigned int 32 value corresponding to respective AC */
  2372. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
  2373. /* Unsigned int 32 value corresponding to respective AC */
  2374. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
  2375. /* Unsigned int 32 value corresponding to respective AC */
  2376. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
  2377. /* Unsigned int 32 value corresponding to respective AC */
  2378. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
  2379. /* Unsigned int 32 value corresponding to respective AC */
  2380. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
  2381. /* Unsigned int 32 value corresponding to respective AC */
  2382. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
  2383. /* Unsigned int 32 value corresponding to respective AC */
  2384. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
  2385. /* Unsigned int 32 values corresponding to respective AC */
  2386. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
  2387. /* Unsigned int 32 values corresponding to respective AC */
  2388. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
  2389. /* Unsigned int 32 values corresponding to respective AC */
  2390. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
  2391. /* Unsigned int 32 values corresponding to respective AC */
  2392. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
  2393. /* Unsigned int 32 values corresponding to respective AC */
  2394. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
  2395. /* Unsigned 32 bit value. Number of peers */
  2396. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
  2397. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
  2398. * nested within the interface stats.
  2399. */
  2400. /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
  2401. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
  2402. /* MAC addr corresponding to respective peer. An array of 6 unsigned
  2403. * 8 bit values.
  2404. */
  2405. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
  2406. /* Unsigned int 32 bit value representing capabilities corresponding
  2407. * to respective peer.
  2408. */
  2409. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
  2410. /* Unsigned 32 bit value. Number of rates */
  2411. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
  2412. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
  2413. * are nested within the rate stat.
  2414. */
  2415. /* Wi-Fi Rate - separate attributes defined for individual fields */
  2416. /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
  2417. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
  2418. /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
  2419. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
  2420. /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
  2421. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
  2422. /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
  2423. * in the units of 0.5 Mbps HT/VHT it would be MCS index
  2424. */
  2425. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
  2426. /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
  2427. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
  2428. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
  2429. * nested within the peer info stats.
  2430. */
  2431. /* Unsigned int 32 bit value. Number of successfully transmitted data
  2432. * packets, i.e., with ACK received corresponding to the respective
  2433. * rate.
  2434. */
  2435. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
  2436. /* Unsigned int 32 bit value. Number of received data packets
  2437. * corresponding to the respective rate.
  2438. */
  2439. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
  2440. /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
  2441. * received corresponding to the respective rate.
  2442. */
  2443. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
  2444. /* Unsigned int 32 bit value. Total number of data packet retries for
  2445. * the respective rate.
  2446. */
  2447. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
  2448. /* Unsigned int 32 bit value. Total number of short data packet retries
  2449. * for the respective rate.
  2450. */
  2451. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
  2452. /* Unsigned int 32 bit value. Total number of long data packet retries
  2453. * for the respective rate.
  2454. */
  2455. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
  2456. /* Unsigned 32 bit value. This is used to indicate radio ID of the radio
  2457. * statistics when %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
  2458. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used
  2459. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate radio ID
  2460. * of the MLO link.
  2461. */
  2462. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
  2463. /* Unsigned 32 bit value. Total number of msecs the radio is awake
  2464. * accruing over time.
  2465. */
  2466. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
  2467. /* Unsigned 32 bit value. Total number of msecs the radio is
  2468. * transmitting accruing over time.
  2469. */
  2470. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
  2471. /* Unsigned 32 bit value. Total number of msecs the radio is in active
  2472. * receive accruing over time.
  2473. */
  2474. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
  2475. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2476. * to all scan accruing over time.
  2477. */
  2478. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
  2479. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2480. * to NAN accruing over time.
  2481. */
  2482. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
  2483. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2484. * to GSCAN accruing over time.
  2485. */
  2486. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
  2487. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2488. * to roam scan accruing over time.
  2489. */
  2490. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
  2491. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2492. * to PNO scan accruing over time.
  2493. */
  2494. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
  2495. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2496. * to Hotspot 2.0 scans and GAS exchange accruing over time.
  2497. */
  2498. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
  2499. /* Unsigned 32 bit value. Number of channels. */
  2500. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
  2501. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
  2502. * be nested within the channel stats.
  2503. */
  2504. /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
  2505. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
  2506. /* Unsigned 32 bit value. Primary 20 MHz channel. This is used to
  2507. * indicate the primary frequency of the channel when
  2508. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
  2509. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used inside
  2510. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate the frequency
  2511. * on which the MLO link is operating.
  2512. */
  2513. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
  2514. /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
  2515. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
  2516. /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
  2517. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
  2518. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
  2519. * nested within the radio stats.
  2520. */
  2521. /* Unsigned int 32 bit value representing total number of msecs the
  2522. * radio is awake on that channel accruing over time, corresponding to
  2523. * the respective channel.
  2524. */
  2525. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
  2526. /* Unsigned int 32 bit value representing total number of msecs the CCA
  2527. * register is busy accruing over time corresponding to the respective
  2528. * channel.
  2529. */
  2530. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
  2531. QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
  2532. /* Signifies the nested list of channel attributes
  2533. * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
  2534. */
  2535. QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
  2536. /* Signifies the nested list of peer info attributes
  2537. * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*. For MLO connection,
  2538. * this also contains %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID to
  2539. * indicate on which link the peer is connected.
  2540. */
  2541. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
  2542. /* Signifies the nested list of rate info attributes
  2543. * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
  2544. */
  2545. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
  2546. /* Signifies the nested list of wmm info attributes
  2547. * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
  2548. */
  2549. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
  2550. /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
  2551. * that more stats, e.g., peers or radio, are to follow in the next
  2552. * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
  2553. * Otherwise, it is set to 0.
  2554. */
  2555. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
  2556. /* Unsigned 64 bit value. For an MLO connection, indicates the value of
  2557. * the link with the best RSSI outside
  2558. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2559. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2560. */
  2561. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
  2562. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2563. * the link with the best RSSI outside
  2564. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2565. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2566. */
  2567. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
  2568. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2569. * the link with the best RSSI outside
  2570. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2571. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2572. */
  2573. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
  2574. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2575. * the link with the best RSSI outside
  2576. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2577. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2578. */
  2579. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
  2580. /* Unsigned 32 bit value */
  2581. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
  2582. /* Unsigned 32 bit value */
  2583. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
  2584. /* Number of msecs the radio spent in transmitting for each power level
  2585. */
  2586. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
  2587. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2588. * the link with the best RSSI outside
  2589. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2590. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2591. */
  2592. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
  2593. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2594. * the link with the best RSSI outside
  2595. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2596. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2597. */
  2598. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
  2599. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2600. * the link with the best RSSI outside
  2601. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2602. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2603. */
  2604. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
  2605. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2606. * the link with the best RSSI outside
  2607. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2608. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2609. */
  2610. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
  2611. /* Unsigned int 32 value.
  2612. * Pending MSDUs corresponding to respective AC.
  2613. */
  2614. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
  2615. /* u32 value representing total time in milliseconds for which the radio
  2616. * is transmitting on this channel. This attribute will be nested
  2617. * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
  2618. */
  2619. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
  2620. /* u32 value representing total time in milliseconds for which the radio
  2621. * is receiving all 802.11 frames intended for this device on this
  2622. * channel. This attribute will be nested within
  2623. * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
  2624. */
  2625. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
  2626. /* u8 value representing the channel load percentage. Possible values
  2627. * are 0-100.
  2628. */
  2629. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
  2630. /* u8 value representing the time slicing duty cycle percentage.
  2631. * Possible values are 0-100. For an MLO connection, indicates the value
  2632. * of the link with the best RSSI outside
  2633. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2634. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2635. */
  2636. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
  2637. /* Unsigned 32 bit value. The number of Beacon frames which are received
  2638. * from the associated AP and indicate buffered unicast frame(s) for us
  2639. * in the TIM element. For an MLO connection, indicates the value of the
  2640. * link with the best RSSI outside
  2641. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2642. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2643. */
  2644. QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88,
  2645. /* Unsigned 32 bit value. The total number of Beacon frames received
  2646. * from the associated AP that have wrongly indicated buffered unicast
  2647. * traffic in the TIM element for us.
  2648. * Below scenarios will be considered as wrong TIM element beacon:
  2649. * 1) The related TIM element is set in the beacon for STA but STA
  2650. * doesn’t receive any unicast data after this beacon.
  2651. * 2) The related TIM element is still set in the beacon for STA
  2652. * after STA has indicated power save exit by QoS Null Data frame.
  2653. * For an MLO connection, indicates the value of the link with the best
  2654. * RSSI outside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link
  2655. * specific value inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2656. */
  2657. QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89,
  2658. /* Signed 32 bit value. It represents the noise floor calibration value.
  2659. * Possible values are -120~-50 dBm. For an MLO connection, indicates
  2660. * the value of the link with the best RSSI outside
  2661. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2662. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2663. */
  2664. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NF_CAL_VAL = 90,
  2665. /* Attribute used for padding for 64-bit alignment */
  2666. QCA_WLAN_VENDOR_ATTR_LL_STATS_PAD = 91,
  2667. /* Unsigned u8 value, link ID of an MLO link. Used inside nested
  2668. * attribute %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to represent the
  2669. * link ID of the MLO link for which the statistics are embedded in the
  2670. * nested attribute. Used inside nested attribute
  2671. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO to represent the connected
  2672. * link ID of the peer.
  2673. */
  2674. QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID = 92,
  2675. /* A nested array of attributes for each MLO link, each containing
  2676. * per-link statistics of a multi link connection. The attributes used
  2677. * inside this nested attribute are defined in enum
  2678. * qca_wlan_vendor_attr_ll_stats_results.
  2679. *
  2680. * For non-MLO connection, this attribute is not present and the
  2681. * statistics will be sent outside this attribute (without nesting).
  2682. *
  2683. * For MLO connection, this attribute is present and also cumulative
  2684. * statistics of all the links will be sent outside of this attribute
  2685. * to be compatible with legacy user space.
  2686. */
  2687. QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK = 93,
  2688. /* keep last */
  2689. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
  2690. QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
  2691. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
  2692. };
  2693. enum qca_wlan_vendor_attr_ll_stats_type {
  2694. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
  2695. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
  2696. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
  2697. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
  2698. /* keep last */
  2699. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
  2700. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
  2701. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
  2702. };
  2703. #endif /* WLAN_FEATURE_LINK_LAYER_STATS */
  2704. /**
  2705. * enum qca_wlan_vendor_attr_get_supported_features - get supported feature
  2706. *
  2707. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value
  2708. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value
  2709. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last
  2710. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
  2711. */
  2712. enum qca_wlan_vendor_attr_get_supported_features {
  2713. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0,
  2714. QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1,
  2715. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST,
  2716. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX =
  2717. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1,
  2718. };
  2719. /**
  2720. * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui
  2721. *
  2722. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value
  2723. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit
  2724. * value
  2725. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last
  2726. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value
  2727. */
  2728. enum qca_wlan_vendor_attr_set_scanning_mac_oui {
  2729. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0,
  2730. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1,
  2731. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST,
  2732. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX =
  2733. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1,
  2734. };
  2735. /**
  2736. * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
  2737. * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
  2738. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
  2739. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
  2740. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
  2741. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
  2742. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
  2743. */
  2744. enum qca_wlan_vendor_scan_priority {
  2745. QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
  2746. QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
  2747. QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
  2748. QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
  2749. QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
  2750. };
  2751. /**
  2752. * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
  2753. *
  2754. * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
  2755. * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
  2756. * with frequencies to be scanned (in MHz)
  2757. * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
  2758. * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
  2759. * rates to be included
  2760. * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
  2761. * at non CCK rate in 2GHz band
  2762. * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
  2763. * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
  2764. * driver for the specific scan request
  2765. * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
  2766. * request decoded as in enum scan_status
  2767. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
  2768. * scan flag is set
  2769. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
  2770. * randomisation
  2771. * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
  2772. * specific BSSID to scan for.
  2773. * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
  2774. * microseconds. This is a common value which applies across all
  2775. * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
  2776. * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
  2777. * other scan requests. It is a u32 attribute and takes values from enum
  2778. * qca_wlan_vendor_scan_priority. This is an optional attribute.
  2779. * If this attribute is not configured, the driver shall use
  2780. * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
  2781. */
  2782. enum qca_wlan_vendor_attr_scan {
  2783. QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
  2784. QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
  2785. QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
  2786. QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
  2787. QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
  2788. QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
  2789. QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
  2790. QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
  2791. QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
  2792. QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
  2793. QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
  2794. QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
  2795. QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
  2796. QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
  2797. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
  2798. QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
  2799. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
  2800. };
  2801. /**
  2802. * enum scan_status - Specifies the valid values the vendor scan attribute
  2803. * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
  2804. * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
  2805. * new scan results
  2806. * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
  2807. */
  2808. enum scan_status {
  2809. VENDOR_SCAN_STATUS_NEW_RESULTS,
  2810. VENDOR_SCAN_STATUS_ABORTED,
  2811. VENDOR_SCAN_STATUS_MAX,
  2812. };
  2813. /**
  2814. * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix
  2815. *
  2816. * NL attributes for data used by
  2817. * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command.
  2818. *
  2819. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value
  2820. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX:
  2821. * Unsigned 32-bit value
  2822. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE:
  2823. * Unsigned 32-bit value
  2824. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An
  2825. * array of SET_SIZE x Unsigned 32bit values representing concurrency
  2826. * combinations
  2827. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last
  2828. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value
  2829. */
  2830. enum qca_wlan_vendor_attr_get_concurrency_matrix {
  2831. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0,
  2832. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX
  2833. = 1,
  2834. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2,
  2835. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3,
  2836. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST,
  2837. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX =
  2838. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1,
  2839. };
  2840. /**
  2841. * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag
  2842. *
  2843. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value
  2844. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value
  2845. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last
  2846. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value
  2847. */
  2848. enum qca_wlan_vendor_attr_set_no_dfs_flag {
  2849. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0,
  2850. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1,
  2851. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST,
  2852. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX =
  2853. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1,
  2854. };
  2855. /**
  2856. * enum qca_vendor_attr_wisa_cmd
  2857. * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr
  2858. * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32)
  2859. * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last
  2860. * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value
  2861. * WISA setup vendor commands
  2862. */
  2863. enum qca_vendor_attr_wisa_cmd {
  2864. QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
  2865. QCA_WLAN_VENDOR_ATTR_WISA_MODE,
  2866. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
  2867. QCA_WLAN_VENDOR_ATTR_WISA_MAX =
  2868. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
  2869. };
  2870. enum qca_roaming_policy {
  2871. QCA_ROAMING_NOT_ALLOWED,
  2872. QCA_ROAMING_ALLOWED_WITHIN_ESS,
  2873. };
  2874. /**
  2875. * enum qca_roam_reason - Represents the reason codes for roaming. Used by
  2876. * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
  2877. *
  2878. * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
  2879. * reasons.
  2880. *
  2881. * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached
  2882. * the configured threshold.
  2883. *
  2884. * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
  2885. * beacon misses from the then connected AP.
  2886. *
  2887. * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
  2888. * by the connected AP.
  2889. *
  2890. * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a
  2891. * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is
  2892. * not poor.
  2893. *
  2894. * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
  2895. * or environment being very noisy / congested.
  2896. *
  2897. * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
  2898. * from the user (user space).
  2899. *
  2900. * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from
  2901. * connected AP.
  2902. *
  2903. * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
  2904. * breaching out the configured threshold.
  2905. *
  2906. * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
  2907. * transition request.
  2908. *
  2909. * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended,
  2910. * there is no data activity with the AP and the current rssi falls below a
  2911. * certain threshold.
  2912. *
  2913. * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to
  2914. * deauthentication or disassociation frames received from the connected AP.
  2915. *
  2916. * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic
  2917. * scan that happens when there is no candidate AP found during the poor
  2918. * RSSI scan trigger.
  2919. *
  2920. * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan
  2921. * results obtained from an external scan (not aimed at roaming).
  2922. *
  2923. * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to bluetooth
  2924. * connection is established when the station is connected in 2.4 Ghz band.
  2925. *
  2926. * @QCA_ROAM_REASON_STA_KICKOUT: Roam triggered due to continuous TX Data frame
  2927. * failures to the connected AP.
  2928. */
  2929. enum qca_roam_reason {
  2930. QCA_ROAM_REASON_UNKNOWN,
  2931. QCA_ROAM_REASON_PER,
  2932. QCA_ROAM_REASON_BEACON_MISS,
  2933. QCA_ROAM_REASON_POOR_RSSI,
  2934. QCA_ROAM_REASON_BETTER_RSSI,
  2935. QCA_ROAM_REASON_CONGESTION,
  2936. QCA_ROAM_REASON_USER_TRIGGER,
  2937. QCA_ROAM_REASON_BTM,
  2938. QCA_ROAM_REASON_BSS_LOAD,
  2939. QCA_ROAM_REASON_WTC,
  2940. QCA_ROAM_REASON_IDLE,
  2941. QCA_ROAM_REASON_DISCONNECTION,
  2942. QCA_ROAM_REASON_PERIODIC_TIMER,
  2943. QCA_ROAM_REASON_BACKGROUND_SCAN,
  2944. QCA_ROAM_REASON_BT_ACTIVITY,
  2945. QCA_ROAM_REASON_STA_KICKOUT,
  2946. };
  2947. /**
  2948. * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming
  2949. *
  2950. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE
  2951. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE
  2952. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status
  2953. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter
  2954. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK
  2955. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK
  2956. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status
  2957. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS:
  2958. * Indicates the status of re-association requested by user space for
  2959. * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
  2960. * Type u16.
  2961. * Represents the status code from AP. Use
  2962. * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
  2963. * real status code for failures.
  2964. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION:
  2965. * This attribute indicates that the old association was maintained when
  2966. * a re-association is requested by user space and that re-association
  2967. * attempt fails (i.e., cannot connect to the requested BSS, but can
  2968. * remain associated with the BSS with which the association was in
  2969. * place when being requested to roam). Used along with
  2970. * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
  2971. * re-association status. Type flag.
  2972. * This attribute is applicable only for re-association failure cases.
  2973. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK
  2974. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID
  2975. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next
  2976. * seq number
  2977. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value
  2978. * representing the reasons for the roaming. Defined by enum
  2979. * qca_roam_reason.
  2980. */
  2981. enum qca_wlan_vendor_attr_roam_auth {
  2982. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
  2983. /* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address
  2984. * of the roamed AP for MLO roaming.
  2985. */
  2986. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
  2987. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
  2988. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
  2989. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
  2990. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
  2991. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
  2992. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
  2993. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
  2994. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
  2995. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
  2996. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK,
  2997. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID,
  2998. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM,
  2999. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON,
  3000. /* A nested attribute containing per-link information of all the links
  3001. * of MLO connection done while roaming. The attributes used inside this
  3002. * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links.
  3003. */
  3004. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15,
  3005. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
  3006. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
  3007. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
  3008. };
  3009. /**
  3010. * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside
  3011. * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS.
  3012. *
  3013. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link.
  3014. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link.
  3015. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link.
  3016. */
  3017. enum qca_wlan_vendor_attr_mlo_links {
  3018. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0,
  3019. QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1,
  3020. QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2,
  3021. QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3,
  3022. /* Keep last */
  3023. QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST,
  3024. QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX =
  3025. QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1,
  3026. };
  3027. /**
  3028. * enum qca_wlan_vendor_attr_wifi_config - wifi config
  3029. *
  3030. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value
  3031. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM
  3032. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor
  3033. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time
  3034. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last
  3035. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value
  3036. */
  3037. enum qca_wlan_vendor_attr_wifi_config {
  3038. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0,
  3039. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1,
  3040. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2,
  3041. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3,
  3042. /* keep last */
  3043. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST,
  3044. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX =
  3045. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1,
  3046. };
  3047. /**
  3048. * enum qca_wlan_epno_type - the type of request to the EPNO command
  3049. * @QCA_WLAN_EPNO: epno type request
  3050. * @QCA_WLAN_PNO: pno type request
  3051. */
  3052. enum qca_wlan_epno_type {
  3053. QCA_WLAN_EPNO,
  3054. QCA_WLAN_PNO
  3055. };
  3056. /**
  3057. * enum qca_wlan_vendor_attr_pno_config_params - pno config params
  3058. *
  3059. * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value
  3060. *
  3061. * NL attributes for data used by
  3062. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
  3063. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM:
  3064. * Unsigned 32-bit value; pno passpoint number of networks
  3065. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY:
  3066. * Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
  3067. * attributes. Array size =
  3068. * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
  3069. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID:
  3070. * Unsigned 32-bit value; network id
  3071. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM:
  3072. * An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded
  3073. * realm, 0 if unspecified.
  3074. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID:
  3075. * An array of 16 x Unsigned 32-bit value; roaming consortium ids
  3076. * to match, 0 if unspecified.
  3077. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN:
  3078. * An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if
  3079. * unspecified.
  3080. *
  3081. * NL attributes for data used by
  3082. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
  3083. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS:
  3084. * Unsigned 32-bit value; set pno number of networks
  3085. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST:
  3086. * Array of nested
  3087. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
  3088. * attributes. Array size =
  3089. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS
  3090. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID:
  3091. * An array of 33 x Unsigned 8-bit value; NULL terminated SSID
  3092. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD:
  3093. * Signed 8-bit value; threshold for considering this SSID as found,
  3094. * required granularity for this threshold is 4dBm to 8dBm
  3095. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS:
  3096. * Unsigned 8-bit value; WIFI_PNO_FLAG_XXX
  3097. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT:
  3098. * Unsigned 8-bit value; auth bit field for matching WPA IE
  3099. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE
  3100. * Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type
  3101. *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST
  3102. * Nested attribute to send the channel list
  3103. *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL
  3104. * Unsigned 32-bit value; indicates the Interval between PNO scan
  3105. * cycles in msec
  3106. *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI
  3107. * Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered
  3108. *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI
  3109. * Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered
  3110. * This attribute is obsolete now.
  3111. *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX
  3112. * Signed 32-bit value; the maximum score that a network
  3113. * can have before bonuses
  3114. *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS
  3115. * Signed 32-bit value; only report when there is a network's
  3116. * score this much higher han the current connection
  3117. *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS
  3118. * Signed 32-bit value; score bonus for all networks with
  3119. * the same network flag
  3120. *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS
  3121. * Signed 32-bit value; score bonus for networks that are not open
  3122. *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS
  3123. * Signed 32-bit value; 5GHz RSSI score bonus applied to all
  3124. * 5GHz networks
  3125. *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID
  3126. * Unsigned 32-bit value, representing the PNO Request ID
  3127. * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last
  3128. * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max
  3129. */
  3130. enum qca_wlan_vendor_attr_pno_config_params {
  3131. QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
  3132. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
  3133. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
  3134. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
  3135. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
  3136. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
  3137. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
  3138. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
  3139. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
  3140. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
  3141. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10,
  3142. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
  3143. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
  3144. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
  3145. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
  3146. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
  3147. QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
  3148. QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
  3149. QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
  3150. QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
  3151. QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
  3152. QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
  3153. QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
  3154. QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
  3155. /* keep last */
  3156. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
  3157. QCA_WLAN_VENDOR_ATTR_PNO_MAX =
  3158. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
  3159. };
  3160. /**
  3161. * enum qca_scan_freq_list_type: Frequency list types
  3162. *
  3163. * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
  3164. * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
  3165. * a preferred frequency list for roaming.
  3166. *
  3167. * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
  3168. * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
  3169. * a specific frequency list for roaming.
  3170. */
  3171. enum qca_scan_freq_list_type {
  3172. QCA_PREFERRED_SCAN_FREQ_LIST = 1,
  3173. QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
  3174. };
  3175. /**
  3176. * enum qca_roam_scan_scheme: scan scheme
  3177. *
  3178. * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No Frequencies specified to scan.
  3179. * Indicates the driver to not scan on a Roam Trigger scenario, but
  3180. * Disconnect.e.g., On a BTM request from the AP driver/firmware shall
  3181. * disconnect from the current connected AP by notifying a failure
  3182. * code in the BTM response.
  3183. *
  3184. * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
  3185. * trigger partial frequency scans. These frequencies are the ones learnt
  3186. * or maintained by the driver based on the probability of finding the
  3187. * BSSID's in the ESS for which the roaming is triggered.
  3188. *
  3189. * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
  3190. * trigger the scan on all the valid frequencies to find the better
  3191. * candidates to roam.
  3192. */
  3193. enum qca_roam_scan_scheme {
  3194. QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
  3195. QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
  3196. QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
  3197. };
  3198. /**
  3199. * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
  3200. *
  3201. * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values.
  3202. * List of frequencies in MHz to be considered for a roam scan.
  3203. *
  3204. * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
  3205. * Type of frequency list scheme being configured/gotten as defined by the
  3206. * enum qca_scan_freq_list_type.
  3207. */
  3208. enum qca_vendor_attr_scan_freq_list_scheme {
  3209. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
  3210. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
  3211. /* keep last */
  3212. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
  3213. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
  3214. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
  3215. };
  3216. /*
  3217. * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
  3218. *
  3219. * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
  3220. * a bad packet error rates (PER).
  3221. * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
  3222. * based on beacon misses from the connected AP.
  3223. * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
  3224. * due to poor RSSI of the connected AP.
  3225. * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
  3226. * upon finding a BSSID with a better RSSI than the connected BSSID.
  3227. * Here the RSSI of the current BSSID need not be poor.
  3228. * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
  3229. * by triggering a periodic scan to find a better AP to roam.
  3230. * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
  3231. * when the connected channel environment is too noisy/congested.
  3232. * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
  3233. * when BTM Request frame is received from the connected AP.
  3234. * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
  3235. * when the channel utilization is goes above the configured threshold.
  3236. * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
  3237. * based on the request from the user (space).
  3238. * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
  3239. * device receives Deauthentication/Disassociation frame from connected
  3240. * AP.
  3241. * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
  3242. * DUT is in idle state (no tx/rx) and suspend mode, if the current RSSI
  3243. * is determined to be a poor one.
  3244. * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
  3245. * based on continuous TX Data Frame failures to the connected AP.
  3246. * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
  3247. * based on the scan results obtained from an external scan (not
  3248. * triggered to aim roaming)
  3249. *
  3250. * Set the corresponding roam trigger reason bit to consider it for roam
  3251. * trigger.
  3252. * Userspace can set multiple bits and send to the driver. The driver shall
  3253. * consider all of them to trigger/initiate a roam scan.
  3254. */
  3255. enum qca_vendor_roam_triggers {
  3256. QCA_ROAM_TRIGGER_REASON_PER = 1 << 0,
  3257. QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1,
  3258. QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2,
  3259. QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3,
  3260. QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4,
  3261. QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5,
  3262. QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6,
  3263. QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7,
  3264. QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8,
  3265. QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9,
  3266. QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10,
  3267. QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11,
  3268. QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12,
  3269. };
  3270. /*
  3271. * enum qca_vendor_roam_fail_reasons: Defines the various roam
  3272. * fail reasons. This enum value is used in
  3273. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
  3274. *
  3275. * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
  3276. * able to trigger the scan.
  3277. * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
  3278. * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
  3279. * scan.
  3280. * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
  3281. * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
  3282. * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
  3283. * status code.
  3284. * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
  3285. * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
  3286. * frame.
  3287. * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
  3288. * with error status code.
  3289. * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
  3290. * received.
  3291. * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
  3292. * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
  3293. * frame.
  3294. * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
  3295. * internally before transmission.
  3296. * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
  3297. * Request frame.
  3298. * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
  3299. * dropped internally.
  3300. * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
  3301. * times out.
  3302. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
  3303. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
  3304. * internally.
  3305. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
  3306. * M2 frame.
  3307. * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
  3308. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
  3309. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
  3310. * internally.
  3311. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
  3312. * frame.
  3313. * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
  3314. * started for final beacon miss case.
  3315. * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
  3316. * received from the AP during roaming handoff.
  3317. * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
  3318. * or host is suspended and gives the indication of the last roamed AP only
  3319. * when the Apps is resumed. If the Apps is resumed while the roaming is in
  3320. * progress, this ongoing roaming is aborted and the last roamed AP is
  3321. * indicated to host.
  3322. * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
  3323. * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
  3324. * out.
  3325. * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
  3326. * @QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK: Roam scan did not happen since the
  3327. * current network conditions are fine.
  3328. */
  3329. enum qca_vendor_roam_fail_reasons {
  3330. QCA_ROAM_FAIL_REASON_NONE = 0,
  3331. QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
  3332. QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
  3333. QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
  3334. QCA_ROAM_FAIL_REASON_HOST = 4,
  3335. QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
  3336. QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
  3337. QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
  3338. QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
  3339. QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
  3340. QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
  3341. QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
  3342. QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
  3343. QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
  3344. QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
  3345. QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
  3346. QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
  3347. QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
  3348. QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
  3349. QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
  3350. QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
  3351. QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
  3352. QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
  3353. QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
  3354. QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
  3355. QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
  3356. QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
  3357. QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
  3358. QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
  3359. QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
  3360. QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK = 30,
  3361. };
  3362. /*
  3363. * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
  3364. * invoke fail reasons. This enum value is used in
  3365. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
  3366. *
  3367. * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
  3368. * in roam invoke command.
  3369. * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
  3370. * enabled.
  3371. * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
  3372. * length is invalid.
  3373. * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
  3374. * in progress.
  3375. * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
  3376. * of the AP in the roam invoke command to firmware. This reason is sent by the
  3377. * firmware when the given AP is configured to be ignored or SSID/security
  3378. * does not match.
  3379. * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
  3380. * firmware internal reasons.
  3381. * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
  3382. * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
  3383. * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
  3384. * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
  3385. * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
  3386. * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
  3387. */
  3388. enum qca_vendor_roam_invoke_fail_reasons {
  3389. QCA_ROAM_INVOKE_STATUS_NONE = 0,
  3390. QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
  3391. QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
  3392. QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
  3393. QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
  3394. QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
  3395. QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
  3396. QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
  3397. QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
  3398. QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
  3399. QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
  3400. QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
  3401. QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
  3402. };
  3403. /**
  3404. * enum qca_vendor_attr_roam_candidate_selection_criteria:
  3405. *
  3406. * Each attribute carries a weightage in percentage (%).
  3407. *
  3408. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
  3409. * Represents the weightage to be given for the RSSI selection
  3410. * criteria among other parameters.
  3411. *
  3412. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
  3413. * Represents the weightage to be given for the rate selection
  3414. * criteria among other parameters.
  3415. *
  3416. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
  3417. * Represents the weightage to be given for the band width selection
  3418. * criteria among other parameters.
  3419. *
  3420. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
  3421. * Represents the weightage to be given for the band selection
  3422. * criteria among other parameters.
  3423. *
  3424. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
  3425. * Represents the weightage to be given for the NSS selection
  3426. * criteria among other parameters.
  3427. *
  3428. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
  3429. * Represents the weightage to be given for the channel congestion
  3430. * selection criteria among other parameters.
  3431. *
  3432. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
  3433. * Represents the weightage to be given for the beamforming selection
  3434. * criteria among other parameters.
  3435. *
  3436. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
  3437. * Represents the weightage to be given for the OCE selection
  3438. * criteria among other parameters.
  3439. */
  3440. enum qca_vendor_attr_roam_candidate_selection_criteria {
  3441. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
  3442. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
  3443. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
  3444. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
  3445. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
  3446. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
  3447. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
  3448. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
  3449. /* keep last */
  3450. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
  3451. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
  3452. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
  3453. };
  3454. /**
  3455. * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
  3456. * The following attributes are used to set/get/clear the respective
  3457. * configurations to/from the driver.
  3458. * For the get, the attribute for the configuration to be queried shall
  3459. * carry any of its acceptable values to the driver. In return, the driver
  3460. * shall send the configured values within the same attribute to the user
  3461. * space.
  3462. *
  3463. * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
  3464. * Signifies to enable/disable roam control in driver.
  3465. * 1-enable, 0-disable
  3466. * Enable: Mandates the driver to do the further roams using the
  3467. * configuration parameters set through
  3468. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
  3469. * Disable: Disables the driver/firmware roaming triggered through
  3470. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
  3471. * expected to continue with the default configurations.
  3472. *
  3473. * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
  3474. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
  3475. * Roam control status is obtained through this attribute.
  3476. *
  3477. * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
  3478. * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
  3479. * is to be cleared in the driver.
  3480. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
  3481. * and shall be ignored if used with other sub commands.
  3482. * If this attribute is specified along with subcmd
  3483. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
  3484. * all other attributes, if there are any.
  3485. * If this attribute is not specified when the subcmd
  3486. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
  3487. * clear the data corresponding to the attributes specified.
  3488. *
  3489. * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
  3490. * list of frequencies and its type, represented by
  3491. * enum qca_vendor_attr_scan_freq_list_scheme.
  3492. * Frequency list and its type are mandatory for this attribute to set
  3493. * the frequencies.
  3494. * Frequency type is mandatory for this attribute to get the frequencies
  3495. * and the frequency list is obtained through
  3496. * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
  3497. * Frequency list type is mandatory for this attribute to clear the
  3498. * frequencies.
  3499. *
  3500. * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
  3501. * Carries the value of scan period in seconds to set.
  3502. * The value of scan period is obtained with the same attribute for get.
  3503. * Clears the scan period in the driver when specified with clear command.
  3504. * Scan period is the idle time in seconds between each subsequent
  3505. * channel scans.
  3506. *
  3507. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
  3508. * Carries the value of full scan period in seconds to set.
  3509. * The value of full scan period is obtained with the same attribute for
  3510. * get.
  3511. * Clears the full scan period in the driver when specified with clear
  3512. * command. Full scan period is the idle period in seconds between two
  3513. * successive full channel roam scans.
  3514. *
  3515. * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
  3516. * Carries a bitmap of the roam triggers specified in
  3517. * enum qca_vendor_roam_triggers.
  3518. * The driver shall enable roaming by enabling corresponding roam triggers
  3519. * based on the trigger bits sent with this attribute.
  3520. * If this attribute is not configured, the driver shall proceed with
  3521. * default behavior.
  3522. * The bitmap configured is obtained with the same attribute for get.
  3523. * Clears the bitmap configured in driver when specified with clear
  3524. * command.
  3525. *
  3526. * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
  3527. * weightage in percentage (%) to be given for each selection criteria.
  3528. * Different roam candidate selection criteria are represented by
  3529. * enum qca_vendor_attr_roam_candidate_selection_criteria.
  3530. * The driver shall select the roam candidate based on corresponding
  3531. * candidate selection scores sent.
  3532. *
  3533. * An empty nested attribute is used to indicate that no specific
  3534. * preference score/criteria is configured (i.e., to disable this mechanism
  3535. * in the set case and to show that the mechanism is disabled in the get
  3536. * case).
  3537. *
  3538. * Userspace can send multiple attributes out of this enum to the driver.
  3539. * Since this attribute represents the weight/percentage of preference for
  3540. * the respective selection criteria, it is preferred to configure 100%
  3541. * total weightage. The value in each attribute or cumulative weight of the
  3542. * values in all the nested attributes should not exceed 100%. The driver
  3543. * shall reject such configuration.
  3544. *
  3545. * If the weights configured through this attribute are less than 100%,
  3546. * the driver shall honor the weights (x%) passed for the corresponding
  3547. * selection criteria and choose/distribute rest of the weight (100-x)%
  3548. * for the other selection criteria, based on its internal logic.
  3549. *
  3550. * The selection criteria configured is obtained with the same
  3551. * attribute for get.
  3552. *
  3553. * Clears the selection criteria configured in the driver when specified
  3554. * with clear command.
  3555. *
  3556. * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
  3557. * Represents value of scan frequency scheme from
  3558. * enum qca_roam_scan_scheme.
  3559. *
  3560. * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
  3561. * signifying the RSSI threshold of the current connected AP, indicating
  3562. * the driver to trigger roam only when the current connected AP's RSSI
  3563. * is lesser than this threshold.
  3564. *
  3565. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
  3566. * signifying the RSSI threshold of the candidate AP, indicating
  3567. * the driver to trigger roam only to the candidate AP with RSSI
  3568. * better than this threshold. If RSSI thresholds for candidate APs found
  3569. * in the 2.4GHz, 5GHz and 6Ghz bands are configured separately using
  3570. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
  3571. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
  3572. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, then those values
  3573. * will take precedence over the value configured using
  3574. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
  3575. *
  3576. * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
  3577. * user triggered reason code to be sent to the AP in response to AP's
  3578. * request to trigger the roam if the roaming cannot be triggered.
  3579. * Applies to all the scenarios of AP assisted roaming (e.g., BTM).
  3580. *
  3581. * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
  3582. * Carries a bitmap of the roam triggers specified in
  3583. * enum qca_vendor_roam_triggers.
  3584. * Represents the roam triggers for which the specific scan scheme from
  3585. * enum qca_roam_scan_scheme has to be applied.
  3586. * It's an optional attribute. If this attribute is not configured, but
  3587. * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, then the scan scheme
  3588. * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
  3589. * all the roams.
  3590. * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
  3591. * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
  3592. * driver shall proceed with the default behavior.
  3593. *
  3594. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
  3595. * in dBm, signifying the RSSI threshold of the candidate AP found in
  3596. * 2.4GHz band. The driver/firmware shall trigger roaming to the candidate
  3597. * AP found in 2.4GHz band only if it's RSSI value is better than this
  3598. * threshold. Optional attribute. If this attribute is not included, then
  3599. * threshold value specified by the
  3600. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3601. *
  3602. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
  3603. * dBm, signifying the RSSI threshold of the candidate AP found in 5GHz
  3604. * band. The driver/firmware shall trigger roaming to the candidate AP
  3605. * found in 5GHz band only if it's RSSI value is better than this
  3606. * threshold. Optional attribute. If this attribute is not included, then
  3607. * threshold value specified by the
  3608. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3609. *
  3610. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
  3611. * dBm, signifying the RSSI threshold of the candidate AP found in 6GHz
  3612. * band. The driver/firmware shall trigger roaming to the candidate AP
  3613. * found in 6GHz band only if it's RSSI value is better than this
  3614. * threshold. Optional attribute. If this attribute is not included, then
  3615. * threshold value specified by the
  3616. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3617. *
  3618. * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
  3619. * Carries bitmask value of bits from &enum qca_set_band and represents
  3620. * all the bands in which roaming is allowed. The configuration is valid
  3621. * until next disconnection. If this attribute is not present, the
  3622. * existing configuration shall be used. By default, roaming is allowed
  3623. * on all bands supported by local device. When the value is set to
  3624. * %QCA_SETBAND_AUTO, all supported bands shall be enabled.
  3625. *
  3626. * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps.
  3627. * Optional parameter. RX link speed threshold to disable roaming.
  3628. * If the current RX link speed is above the threshold, roaming is not
  3629. * needed. If this attribute is not configured, or if it is set to 0, the
  3630. * driver will not consider the RX link speed in the roaming decision.
  3631. *
  3632. * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds.
  3633. * Optional parameter. This configuration delays hand-off (in msec) by the
  3634. * specified duration to receive pending rx frames from current BSS.
  3635. *
  3636. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit
  3637. * value.
  3638. * During the roam scan, if there are no desired APs found in the partial
  3639. * frequency list, an immediate full scan on all the supported frequencies
  3640. * is initiated as a fallback. This flag controls the frequency list
  3641. * creation for the full scan on the following lines.
  3642. * 1 - Full scan to exclude the frequencies that were already scanned by
  3643. * the previous partial scan.
  3644. * 0 - Full scan to include all the supported frequencies irrespective of
  3645. * the ones part of the earlier partial scan.
  3646. * If this flag is not specified, a full scan shall include all the
  3647. * supported frequencies irrespective of the ones part of an earlier
  3648. * partial scan.
  3649. *
  3650. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit
  3651. * value.
  3652. * During the roam scan, if there are no desired APs found in the partial
  3653. * frequency list, an immediate full scan on all the supported frequencies
  3654. * is initiated as a fallback. This full scan would add the 2.4/5/6 GHz
  3655. * frequencies, including all PSC frequencies by default. This attribute
  3656. * controls the inclusion of the 6 GHz PSC frequencies for the full scan
  3657. * as following.
  3658. * 1 - Full scan to include the supported 6 GHz PSC frequencies only on the
  3659. * prior discovery of any 6 GHz frequency support in the environment.
  3660. * This discovery can happen through a prior RNR, 11k neighbor
  3661. * request, 11v BTM request, host scan, etc.
  3662. * 0 - Default behavior. Full scan to include all the supported 6 GHz
  3663. * PSC frequencies regardless of whether 6 GHz BSSs have been
  3664. * discovered.
  3665. * The default behavior if this flag is not specified is to include all
  3666. * the supported 6 GHz PSC frequencies in the roam full scan.
  3667. */
  3668. enum qca_vendor_attr_roam_control {
  3669. QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
  3670. QCA_ATTR_ROAM_CONTROL_STATUS = 2,
  3671. QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
  3672. QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
  3673. QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
  3674. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
  3675. QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
  3676. QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
  3677. QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
  3678. QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
  3679. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
  3680. QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
  3681. QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
  3682. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
  3683. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
  3684. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
  3685. QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
  3686. QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD = 24,
  3687. QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25,
  3688. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26,
  3689. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27,
  3690. /* keep last */
  3691. QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
  3692. QCA_ATTR_ROAM_CONTROL_MAX =
  3693. QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
  3694. };
  3695. /**
  3696. * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
  3697. * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
  3698. *
  3699. * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
  3700. * Represents the different roam sub commands referred by
  3701. * enum qca_wlan_vendor_roaming_subcmd.
  3702. *
  3703. * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
  3704. * Represents the Request ID for the specific set of commands.
  3705. * This also helps to map specific set of commands to the respective
  3706. * ID / client. e.g., helps to identify the user entity configuring the
  3707. * Blacklist BSSID and accordingly clear the respective ones with the
  3708. * matching ID.
  3709. *
  3710. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
  3711. * 32-bit value.Represents the number of whitelist SSIDs configured.
  3712. *
  3713. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
  3714. * to carry the list of Whitelist SSIDs.
  3715. *
  3716. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
  3717. * 0..32 octets). Represents the white list SSID. Whitelist SSIDs
  3718. * represent the list of SSIDs to which the firmware/driver can consider
  3719. * to roam to.
  3720. *
  3721. * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
  3722. * comparing with a 2.4GHz BSSID. They are not applied when comparing two
  3723. * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
  3724. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS.
  3725. *
  3726. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
  3727. * value, RSSI threshold above which 5GHz RSSI is favored.
  3728. *
  3729. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
  3730. * value, RSSI threshold below which 5GHz RSSI is penalized.
  3731. *
  3732. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
  3733. * value, factor by which 5GHz RSSI is boosted.
  3734. * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
  3735. *
  3736. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
  3737. * value, factor by which 5GHz RSSI is penalized.
  3738. * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
  3739. *
  3740. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
  3741. * value, maximum boost that can be applied to a 5GHz RSSI.
  3742. *
  3743. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
  3744. * value, boost applied to current BSSID to ensure the currently
  3745. * associated BSSID is favored so as to prevent ping-pong situations.
  3746. *
  3747. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
  3748. * value, RSSI below which "Alert" roam is enabled.
  3749. * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID
  3750. * because the RSSI is low, or because many successive beacons have been
  3751. * lost or other bad link conditions.
  3752. *
  3753. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
  3754. * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
  3755. * firmware is hunting for a better BSSID or white listed SSID even though
  3756. * the RSSI of the link is good. The parameters enabling the roaming are
  3757. * configured through the PARAM_A_BAND_XX attrbutes.
  3758. *
  3759. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
  3760. * represents the BSSIDs preferred over others while evaluating them
  3761. * for the roaming.
  3762. *
  3763. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
  3764. * 32-bit value. Represents the number of preferred BSSIDs set.
  3765. *
  3766. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
  3767. * address representing the BSSID to be preferred.
  3768. *
  3769. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
  3770. * 32-bit value, representing the modifier to be applied to the RSSI of
  3771. * the BSSID for the purpose of comparing it with other roam candidate.
  3772. *
  3773. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
  3774. * represents the BSSIDs to get blacklisted for roaming.
  3775. *
  3776. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
  3777. * 32-bit value, represents the number of blacklisted BSSIDs.
  3778. *
  3779. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
  3780. * address representing the Blacklisted BSSID.
  3781. *
  3782. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
  3783. * indicates this BSSID blacklist as a hint to the driver. The driver can
  3784. * select this BSSID in the worst case (when no other BSSIDs are better).
  3785. *
  3786. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
  3787. * set/get/clear the roam control config as
  3788. * defined @enum qca_vendor_attr_roam_control.
  3789. *
  3790. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last
  3791. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max
  3792. */
  3793. enum qca_wlan_vendor_attr_roaming_config_params {
  3794. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
  3795. QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
  3796. QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
  3797. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
  3798. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
  3799. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
  3800. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
  3801. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
  3802. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
  3803. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
  3804. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
  3805. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
  3806. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
  3807. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
  3808. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
  3809. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
  3810. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
  3811. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
  3812. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
  3813. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
  3814. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
  3815. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
  3816. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
  3817. /* keep last */
  3818. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
  3819. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
  3820. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
  3821. };
  3822. /**
  3823. * enum qca_wlan_vendor_roaming_subcmd: Referred by
  3824. * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
  3825. *
  3826. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
  3827. * configure the white list SSIDs. These are configured through
  3828. * the following attributes.
  3829. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
  3830. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
  3831. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
  3832. *
  3833. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to
  3834. * configure the Roam params. These parameters are evaluated on the extscan
  3835. * results. Refers the attributes PARAM_A_BAND_XX above to configure the
  3836. * params.
  3837. *
  3838. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
  3839. * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
  3840. * to enable/disable Lazy roam.
  3841. *
  3842. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
  3843. * preference. Contains the attribute
  3844. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
  3845. * preference.
  3846. *
  3847. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params
  3848. *
  3849. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist
  3850. * BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to
  3851. * set the same.
  3852. *
  3853. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
  3854. * roam control config to the driver with the attribute
  3855. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3856. *
  3857. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
  3858. * roam control config from driver with the attribute
  3859. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3860. * For the get, the attribute for the configuration to be queried shall
  3861. * carry any of its acceptable value to the driver. In return, the driver
  3862. * shall send the configured values within the same attribute to the user
  3863. * space.
  3864. *
  3865. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
  3866. * roam control config in the driver with the attribute
  3867. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3868. * The driver shall continue with its default roaming behavior when data
  3869. * corresponding to an attribute is cleared.
  3870. */
  3871. enum qca_wlan_vendor_roaming_subcmd {
  3872. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
  3873. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2,
  3874. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
  3875. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
  3876. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
  3877. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
  3878. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
  3879. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
  3880. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
  3881. };
  3882. /**
  3883. * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information
  3884. *
  3885. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value
  3886. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version
  3887. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version
  3888. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index
  3889. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last
  3890. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max
  3891. */
  3892. enum qca_wlan_vendor_attr_get_wifi_info {
  3893. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
  3894. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
  3895. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
  3896. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
  3897. /* KEEP LAST */
  3898. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
  3899. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
  3900. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
  3901. };
  3902. enum qca_wlan_vendor_attr_logger_results {
  3903. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
  3904. /*
  3905. * Unsigned 32-bit value; must match the request Id supplied by
  3906. * Wi-Fi HAL in the corresponding subcmd NL msg.
  3907. */
  3908. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
  3909. /*
  3910. * Unsigned 32-bit value; used to indicate the size of memory
  3911. * dump to be allocated.
  3912. */
  3913. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
  3914. /* keep last */
  3915. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
  3916. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
  3917. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
  3918. };
  3919. /**
  3920. * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
  3921. * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
  3922. */
  3923. enum qca_wlan_vendor_channel_prop_flags {
  3924. /* Bits 0, 1, 2, and 3 are reserved */
  3925. /* Turbo channel */
  3926. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
  3927. /* CCK channel */
  3928. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
  3929. /* OFDM channel */
  3930. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
  3931. /* 2.4 GHz spectrum channel. */
  3932. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
  3933. /* 5 GHz spectrum channel */
  3934. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
  3935. /* Only passive scan allowed */
  3936. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
  3937. /* Dynamic CCK-OFDM channel */
  3938. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
  3939. /* GFSK channel (FHSS PHY) */
  3940. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
  3941. /* Radar found on channel */
  3942. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
  3943. /* 11a static turbo channel only */
  3944. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
  3945. /* Half rate channel */
  3946. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
  3947. /* Quarter rate channel */
  3948. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
  3949. /* HT 20 channel */
  3950. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
  3951. /* HT 40 with extension channel above */
  3952. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
  3953. /* HT 40 with extension channel below */
  3954. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
  3955. /* HT 40 intolerant */
  3956. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
  3957. /* VHT 20 channel */
  3958. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
  3959. /* VHT 40 with extension channel above */
  3960. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
  3961. /* VHT 40 with extension channel below */
  3962. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
  3963. /* VHT 80 channel */
  3964. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
  3965. /* HT 40 intolerant mark bit for ACS use */
  3966. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
  3967. /* Channel temporarily blocked due to noise */
  3968. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
  3969. /* VHT 160 channel */
  3970. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
  3971. /* VHT 80+80 channel */
  3972. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
  3973. /* HE 20 channel */
  3974. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
  3975. /* HE 40 with extension channel above */
  3976. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
  3977. /* HE 40 with extension channel below */
  3978. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
  3979. /* HE 40 intolerant */
  3980. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1U << 31,
  3981. };
  3982. /**
  3983. * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
  3984. * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
  3985. * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
  3986. */
  3987. enum qca_wlan_vendor_channel_prop_flags_2 {
  3988. /* HE 40 intolerant mark bit for ACS use */
  3989. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
  3990. /* HE 80 channel */
  3991. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
  3992. /* HE 160 channel */
  3993. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
  3994. /* HE 80+80 channel */
  3995. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
  3996. };
  3997. /**
  3998. * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
  3999. * each channel. This is used by
  4000. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
  4001. */
  4002. enum qca_wlan_vendor_channel_prop_flags_ext {
  4003. /* Radar found on channel */
  4004. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
  4005. /* DFS required on channel */
  4006. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
  4007. /* DFS required on channel for 2nd band of 80+80 */
  4008. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
  4009. /* If channel has been checked for DFS */
  4010. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
  4011. /* Excluded in 802.11d */
  4012. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
  4013. /* Channel Switch Announcement received on this channel */
  4014. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
  4015. /* Ad-hoc is not allowed */
  4016. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
  4017. /* Station only channel */
  4018. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
  4019. /* DFS radar history for slave device (STA mode) */
  4020. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
  4021. /* DFS CAC valid for slave device (STA mode) */
  4022. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
  4023. };
  4024. /**
  4025. * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
  4026. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
  4027. * information to start/stop the NUD statistics collection.
  4028. */
  4029. enum qca_attr_nud_stats_set {
  4030. QCA_ATTR_NUD_STATS_SET_INVALID = 0,
  4031. /*
  4032. * Flag to start/stop the NUD statistics collection.
  4033. * Start - If included, Stop - If not included
  4034. */
  4035. QCA_ATTR_NUD_STATS_SET_START = 1,
  4036. /* IPv4 address of the default gateway (in network byte order) */
  4037. QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
  4038. /*
  4039. * Represents the data packet type to be monitored.
  4040. * Host driver tracks the stats corresponding to each data frame
  4041. * represented by these flags.
  4042. * These data packets are represented by
  4043. * enum qca_wlan_vendor_nud_stats_set_data_pkt_info.
  4044. */
  4045. QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
  4046. /* keep last */
  4047. QCA_ATTR_NUD_STATS_SET_LAST,
  4048. QCA_ATTR_NUD_STATS_SET_MAX =
  4049. QCA_ATTR_NUD_STATS_SET_LAST - 1,
  4050. };
  4051. /**
  4052. * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd
  4053. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  4054. * information to start / stop the NUD stats collection.
  4055. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats
  4056. * Bitmap to Flag to Start / Stop the NUD stats collection
  4057. * Start - If included , Stop - If not included
  4058. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gateway ipv4 address
  4059. * IPv4 address of Default Gateway (in network byte order)
  4060. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  4061. * information to start / stop the NUD stats collection.
  4062. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats
  4063. * Flag to Start / Stop the NUD stats collection
  4064. * Start - If included , Stop - If not included
  4065. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gateway ipv4 address
  4066. * IPv4 address of Default Gateway (in network byte order)
  4067. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  4068. * information to start / stop the NUD stats collection.
  4069. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats
  4070. * Flag to Start / Stop the NUD stats collection
  4071. * Start - If included , Stop - If not included
  4072. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gateway ipv4 address
  4073. * IPv4 address of Default Gateway (in network byte order)
  4074. */
  4075. enum qca_attr_connectivity_check_stats_set {
  4076. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0,
  4077. QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1,
  4078. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2,
  4079. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3,
  4080. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4,
  4081. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5,
  4082. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6,
  4083. /* keep last */
  4084. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST,
  4085. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX =
  4086. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1,
  4087. };
  4088. /**
  4089. * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
  4090. * data types for which the stats have to get collected.
  4091. */
  4092. enum qca_wlan_vendor_connectivity_check_pkt_flags {
  4093. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0,
  4094. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1,
  4095. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2,
  4096. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3,
  4097. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4,
  4098. /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
  4099. * to represent the stats of respective data type.
  4100. */
  4101. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5,
  4102. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6,
  4103. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7,
  4104. };
  4105. enum qca_attr_connectivity_check_stats {
  4106. QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0,
  4107. /* Data packet type for which the stats are collected.
  4108. * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
  4109. */
  4110. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1,
  4111. /* ID corresponding to the DNS frame for which the respective DNS stats
  4112. * are monitored (u32).
  4113. */
  4114. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2,
  4115. /* source / destination port on which the respective proto stats are
  4116. * collected (u32).
  4117. */
  4118. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3,
  4119. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4,
  4120. /* IPv4/IPv6 address for which the destined data packets are
  4121. * monitored. (in network byte order)
  4122. */
  4123. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5,
  4124. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6,
  4125. /* Data packet Request count received from netdev */
  4126. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
  4127. /* Data packet Request count sent to lower MAC from upper MAC */
  4128. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
  4129. /* Data packet Request count received by lower MAC from upper MAC */
  4130. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
  4131. /* Data packet Request count successfully transmitted by the device */
  4132. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
  4133. /* Data packet Response count received by lower MAC */
  4134. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
  4135. /* Data packet Response count received by upper MAC */
  4136. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
  4137. /* Data packet Response count delivered to netdev */
  4138. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
  4139. /* Data Packet Response count that are dropped out of order */
  4140. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
  4141. /* keep last */
  4142. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST,
  4143. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX =
  4144. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1,
  4145. };
  4146. /**
  4147. * qca_attr_nud_stats_get: Attributes to vendor subcmd
  4148. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
  4149. * NUD statistics collected when queried.
  4150. */
  4151. enum qca_attr_nud_stats_get {
  4152. QCA_ATTR_NUD_STATS_GET_INVALID = 0,
  4153. /* ARP Request count from netdev */
  4154. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
  4155. /* ARP Request count sent to lower MAC from upper MAC */
  4156. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
  4157. /* ARP Request count received by lower MAC from upper MAC */
  4158. QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
  4159. /* ARP Request count successfully transmitted by the device */
  4160. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
  4161. /* ARP Response count received by lower MAC */
  4162. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
  4163. /* ARP Response count received by upper MAC */
  4164. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
  4165. /* ARP Response count delivered to netdev */
  4166. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
  4167. /* ARP Response count delivered to netdev */
  4168. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
  4169. /*
  4170. * Flag indicating if the station's link to the AP is active.
  4171. * Active Link - If included, Inactive link - If not included
  4172. */
  4173. QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
  4174. /*
  4175. * Flag indicating if there is any duplicate address detected (DAD).
  4176. * Yes - If detected, No - If not detected.
  4177. */
  4178. QCA_ATTR_NUD_STATS_IS_DAD = 10,
  4179. /*
  4180. * List of Data types for which the stats are requested.
  4181. * This list does not carry ARP stats as they are done by the
  4182. * above attributes. Represented by enum qca_attr_nud_data_stats.
  4183. */
  4184. QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
  4185. /* keep last */
  4186. QCA_ATTR_NUD_STATS_GET_LAST,
  4187. QCA_ATTR_NUD_STATS_GET_MAX =
  4188. QCA_ATTR_NUD_STATS_GET_LAST - 1,
  4189. };
  4190. enum qca_wlan_btm_candidate_status {
  4191. QCA_STATUS_ACCEPT = 0,
  4192. QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
  4193. QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
  4194. QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
  4195. QCA_STATUS_REJECT_LOW_RSSI = 4,
  4196. QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
  4197. QCA_STATUS_REJECT_UNKNOWN = 6,
  4198. };
  4199. enum qca_wlan_vendor_attr_btm_candidate_info {
  4200. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
  4201. /* 6-byte MAC address representing the BSSID of transition candidate */
  4202. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
  4203. /*
  4204. * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
  4205. * returned by the driver. It says whether the BSSID provided in
  4206. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
  4207. * the driver, if not it specifies the reason for rejection.
  4208. * Note that the user-space can overwrite the transition reject reason
  4209. * codes provided by driver based on more information.
  4210. */
  4211. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
  4212. /* keep last */
  4213. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
  4214. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
  4215. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
  4216. };
  4217. enum qca_attr_trace_level {
  4218. QCA_ATTR_TRACE_LEVEL_INVALID = 0,
  4219. /*
  4220. * Nested array of the following attributes:
  4221. * QCA_ATTR_TRACE_LEVEL_MODULE,
  4222. * QCA_ATTR_TRACE_LEVEL_MASK.
  4223. */
  4224. QCA_ATTR_TRACE_LEVEL_PARAM = 1,
  4225. /*
  4226. * Specific QCA host driver module. Please refer to the QCA host
  4227. * driver implementation to get the specific module ID.
  4228. */
  4229. QCA_ATTR_TRACE_LEVEL_MODULE = 2,
  4230. /* Different trace level masks represented in the QCA host driver. */
  4231. QCA_ATTR_TRACE_LEVEL_MASK = 3,
  4232. /* keep last */
  4233. QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
  4234. QCA_ATTR_TRACE_LEVEL_MAX =
  4235. QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
  4236. };
  4237. /**
  4238. * enum qca_wlan_vendor_attr_get_logger_features - value for logger
  4239. * supported features
  4240. * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid
  4241. * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features
  4242. * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum
  4243. * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type
  4244. *
  4245. * enum values are used for NL attributes for data used by
  4246. * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command.
  4247. */
  4248. enum qca_wlan_vendor_attr_get_logger_features {
  4249. QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
  4250. QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
  4251. /* keep last */
  4252. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
  4253. QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
  4254. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
  4255. };
  4256. /**
  4257. * enum qca_wlan_vendor_attr_link_properties - link properties
  4258. *
  4259. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value
  4260. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to
  4261. * specify the number of spatial streams negotiated
  4262. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value
  4263. * to specify negotiated rate flags i.e. ht, vht and channel width
  4264. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to
  4265. * specify the operating frequency
  4266. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer
  4267. * (STA / AP ) for the connected link.
  4268. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
  4269. * &struct nl80211_sta_flag_update for the respective connected link. MAC
  4270. * address of the peer represented by
  4271. * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
  4272. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last
  4273. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value
  4274. */
  4275. enum qca_wlan_vendor_attr_link_properties {
  4276. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
  4277. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1,
  4278. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2,
  4279. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3,
  4280. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
  4281. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
  4282. /* KEEP LAST */
  4283. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
  4284. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX =
  4285. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
  4286. };
  4287. /**
  4288. * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support
  4289. *
  4290. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid
  4291. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload
  4292. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum
  4293. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type
  4294. *
  4295. * enum values are used for NL attributes for data used by
  4296. * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command.
  4297. */
  4298. enum qca_wlan_vendor_attr_nd_offload {
  4299. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
  4300. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
  4301. /* Keep last */
  4302. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
  4303. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
  4304. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
  4305. };
  4306. /**
  4307. * enum qca_wlan_vendor_features - Vendor device/driver feature flags
  4308. *
  4309. * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
  4310. * management offload, a mechanism where the station's firmware
  4311. * does the exchange with the AP to establish the temporal keys
  4312. * after roaming, rather than having the user space wpa_supplicant do it.
  4313. * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
  4314. * band selection based on channel selection results.
  4315. * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
  4316. * simultaneous off-channel operations.
  4317. * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
  4318. * Listen offload; a mechanism where the station's firmware takes care of
  4319. * responding to incoming Probe Request frames received from other P2P
  4320. * Devices whilst in Listen state, rather than having the user space
  4321. * wpa_supplicant do it. Information from received P2P requests are
  4322. * forwarded from firmware to host whenever the host processor wakes up.
  4323. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
  4324. * specific features.
  4325. * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
  4326. * features.
  4327. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
  4328. * specific features only. If a Device sets this bit but not the
  4329. * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
  4330. * this Device may not support all OCE AP functionalities but can support
  4331. * only OCE STA-CFON functionalities.
  4332. * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
  4333. * managed regulatory.
  4334. * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
  4335. * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
  4336. * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
  4337. * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
  4338. * and applying thermal configuration through
  4339. * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
  4340. * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
  4341. * userspace.
  4342. * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
  4343. * With Adaptive 11r feature, access points advertise the vendor
  4344. * specific IEs and MDE but do not include FT AKM in the RSNE.
  4345. * The Adaptive 11r supported stations are expected to identify
  4346. * such vendor specific IEs and connect to the AP in FT mode though
  4347. * the profile is configured in non-FT mode.
  4348. * The driver-based SME cases also need to have this support for
  4349. * Adaptive 11r to handle the connection and roaming scenarios.
  4350. * This flag indicates the support for the same to the user space.
  4351. * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
  4352. * concurrent network sessions on different Wi-Fi Bands. This feature
  4353. * capability is attributed to the hardware's capability to support
  4354. * the same (e.g., DBS).
  4355. * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
  4356. * responses for the respective TWT operations are asynchronous (separate)
  4357. * event message) from the driver. If not specified, the responses are
  4358. * synchronous (in vendor command reply) to the request. Each TWT
  4359. * operation is specifically mentioned (against its respective)
  4360. * documentation) to support either of these or both modes.
  4361. * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
  4362. * that the driver requires add/del virtual interface path using the
  4363. * generic nl80211 commands for NDP interface create/delete and to
  4364. * register/unregister the netdev instead of creating/deleting the NDP
  4365. * interface using the vendor commands
  4366. * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
  4367. * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
  4368. * (5.12 version onward), interface creation/deletion is not allowed using
  4369. * vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
  4370. * during the register/unregister of netdev. Create and delete NDP
  4371. * interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
  4372. * commands respectively if the driver advertises this capability set.
  4373. * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in
  4374. * station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is
  4375. * set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored.
  4376. * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP
  4377. * mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then
  4378. * QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored.
  4379. * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in
  4380. * station mode supports secure RTT measurement exchange. If
  4381. * NL80211_EXT_FEATURE_SECURE_RTT is set,
  4382. * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored.
  4383. * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP
  4384. * mode supports secure RTT measurement exchange. If
  4385. * NL80211_EXT_FEATURE_SECURE_RTT is set,
  4386. * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored.
  4387. * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that
  4388. * the device in station mode supports protection of range negotiation and
  4389. * measurement management frames. If
  4390. * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
  4391. * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored.
  4392. * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that
  4393. * the device in AP mode supports protection of range negotiation and
  4394. * measurement management frames. If
  4395. * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
  4396. * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored.
  4397. * @QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST: Flag indicates that the device
  4398. * in AP mode supports configuring allowed frequency list for AP operation
  4399. * with %QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST.
  4400. * @QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN: Flag indicates
  4401. * that the device supports enhanced audio experience over WLAN feature.
  4402. * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
  4403. */
  4404. enum qca_wlan_vendor_features {
  4405. QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
  4406. QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
  4407. QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
  4408. QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
  4409. QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
  4410. QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
  4411. QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
  4412. QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
  4413. QCA_WLAN_VENDOR_FEATURE_TWT = 8,
  4414. QCA_WLAN_VENDOR_FEATURE_11AX = 9,
  4415. QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
  4416. QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
  4417. QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
  4418. QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
  4419. QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
  4420. QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
  4421. QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA = 16,
  4422. QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP = 17,
  4423. QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA = 18,
  4424. QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP = 19,
  4425. QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20,
  4426. QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21,
  4427. QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST = 22,
  4428. QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN = 23,
  4429. NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
  4430. };
  4431. /**
  4432. * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP
  4433. * conditional channel switch
  4434. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial
  4435. * value
  4436. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based
  4437. * frequency list (an array of u32 values in host byte order)
  4438. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the
  4439. * conditional switch (u32)- 0: Success, Non-zero: Failure
  4440. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last
  4441. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max
  4442. */
  4443. enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
  4444. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
  4445. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
  4446. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
  4447. /* Keep Last */
  4448. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
  4449. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
  4450. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
  4451. };
  4452. /**
  4453. * enum wifi_logger_supported_features - values for supported logger features
  4454. * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW
  4455. * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics
  4456. * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events
  4457. * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver
  4458. * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver
  4459. * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health
  4460. * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump
  4461. * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate
  4462. */
  4463. enum wifi_logger_supported_features {
  4464. WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)),
  4465. WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)),
  4466. WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)),
  4467. WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)),
  4468. WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)),
  4469. WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)),
  4470. WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)),
  4471. WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)),
  4472. WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8))
  4473. };
  4474. /**
  4475. * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
  4476. * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
  4477. *
  4478. * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
  4479. * Used with event to notify the primary channel number selected in ACS
  4480. * operation.
  4481. * Note: If both the driver and user-space application supports the 6 GHz band,
  4482. * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
  4483. * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
  4484. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
  4485. * is still used if either of the driver or user space application doesn't
  4486. * support the 6 GHz band.
  4487. *
  4488. * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
  4489. * Used with event to notify the secondary channel number selected in ACS
  4490. * operation.
  4491. * Note: If both the driver and user-space application supports the 6 GHz band,
  4492. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
  4493. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
  4494. * To maintain backward compatibility,
  4495. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
  4496. * the driver or user space application doesn't support 6 GHz band.
  4497. *
  4498. * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
  4499. * (a) Used with command to configure hw_mode from
  4500. * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
  4501. * (b) Also used with event to notify the hw_mode of selected primary channel
  4502. * in ACS operation.
  4503. *
  4504. * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
  4505. * Used with command to configure ACS operation for HT mode.
  4506. * Disable (flag attribute not present) - HT disabled and
  4507. * Enable (flag attribute present) - HT enabled.
  4508. *
  4509. * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
  4510. * Used with command to configure ACS operation for HT40 mode.
  4511. * Disable (flag attribute not present) - HT40 disabled and
  4512. * Enable (flag attribute present) - HT40 enabled.
  4513. *
  4514. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
  4515. * Used with command to configure ACS operation for VHT mode.
  4516. * Disable (flag attribute not present) - VHT disabled and
  4517. * Enable (flag attribute present) - VHT enabled.
  4518. *
  4519. * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
  4520. * mandatory with event.
  4521. * If specified in command path, ACS operation is configured with the given
  4522. * channel width (in MHz).
  4523. * In event path, specifies the channel width of the primary channel selected.
  4524. *
  4525. * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
  4526. * Used with command to configure channel list using an array of
  4527. * channel numbers (u8).
  4528. * Note: If both the driver and user-space application supports the 6 GHz band,
  4529. * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
  4530. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
  4531. *
  4532. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
  4533. * Used with event to notify the VHT segment 0 center channel number selected in
  4534. * ACS operation.
  4535. * Note: If both the driver and user-space application supports the 6 GHz band,
  4536. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
  4537. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
  4538. * To maintain backward compatibility,
  4539. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
  4540. * the driver or user space application doesn't support the 6 GHz band.
  4541. *
  4542. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
  4543. * Used with event to notify the VHT segment 1 center channel number selected in
  4544. * ACS operation.
  4545. * Note: If both the driver and user-space application supports the 6 GHz band,
  4546. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
  4547. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
  4548. * To maintain backward compatibility,
  4549. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
  4550. * the driver or user space application doesn't support the 6 GHz band.
  4551. *
  4552. * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
  4553. * Used with command to configure the channel list using an array of channel
  4554. * center frequencies in MHz (u32).
  4555. * Note: If both the driver and user-space application supports the 6 GHz band,
  4556. * the driver first parses the frequency list and if it fails to get a frequency
  4557. * list, parses the channel list specified using
  4558. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
  4559. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
  4560. *
  4561. * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
  4562. * Used with event to notify the primary channel center frequency (MHz) selected
  4563. * in ACS operation.
  4564. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4565. * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
  4566. *
  4567. * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
  4568. * Used with event to notify the secondary channel center frequency (MHz)
  4569. * selected in ACS operation.
  4570. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4571. * includes this attribute along with
  4572. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
  4573. *
  4574. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
  4575. * Used with event to notify the VHT segment 0 center channel frequency (MHz)
  4576. * selected in ACS operation.
  4577. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4578. * includes this attribute along with
  4579. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
  4580. *
  4581. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
  4582. * Used with event to notify the VHT segment 1 center channel frequency (MHz)
  4583. * selected in ACS operation.
  4584. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4585. * includes this attribute along with
  4586. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
  4587. *
  4588. * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
  4589. * Used with command to notify the driver of EDMG request for ACS
  4590. * operation.
  4591. *
  4592. * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
  4593. * Used with event to notify the EDMG channel number selected in ACS
  4594. * operation.
  4595. * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
  4596. *
  4597. * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
  4598. * Used with event to notify the puncture pattern selected in ACS operation.
  4599. * Encoding for this attribute will follow the convention used in the Disabled
  4600. * Subchannel Bitmap field of the EHT Operation IE.
  4601. *
  4602. * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
  4603. * Used with command to configure ACS operation for EHT mode.
  4604. * Disable (flag attribute not present) - EHT disabled and
  4605. * Enable (flag attribute present) - EHT enabled.
  4606. *
  4607. * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
  4608. * Used with command to configure how older scan can be considered for ACS
  4609. * scoring. In case scan was performed on partial set of channels configured
  4610. * with this command, within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
  4611. * (in ms), then scan only remaining channels.
  4612. */
  4613. enum qca_wlan_vendor_attr_acs_offload {
  4614. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
  4615. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
  4616. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
  4617. QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
  4618. QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
  4619. QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
  4620. QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
  4621. QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
  4622. QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
  4623. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
  4624. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
  4625. QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
  4626. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
  4627. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
  4628. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
  4629. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
  4630. QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
  4631. QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
  4632. QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
  4633. QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
  4634. QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
  4635. /* keep last */
  4636. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
  4637. QCA_WLAN_VENDOR_ATTR_ACS_MAX =
  4638. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
  4639. };
  4640. /**
  4641. * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
  4642. * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
  4643. *
  4644. * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
  4645. * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
  4646. * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
  4647. * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
  4648. * @QCA_ACS_MODE_IEEE80211ANY: all modes
  4649. * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
  4650. */
  4651. enum qca_wlan_vendor_acs_hw_mode {
  4652. QCA_ACS_MODE_IEEE80211B,
  4653. QCA_ACS_MODE_IEEE80211G,
  4654. QCA_ACS_MODE_IEEE80211A,
  4655. QCA_ACS_MODE_IEEE80211AD,
  4656. QCA_ACS_MODE_IEEE80211ANY,
  4657. QCA_ACS_MODE_IEEE80211AX,
  4658. };
  4659. /**
  4660. * enum qca_access_policy - access control policy
  4661. *
  4662. * Access control policy is applied on the configured IE
  4663. * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
  4664. * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
  4665. *
  4666. * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match
  4667. *» with the specific configuration (IE) set, i.e. allow all the
  4668. *» connections which do not match the configuration.
  4669. * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match
  4670. *» with the specific configuration (IE) set, i.e. deny all the
  4671. *» connections which do not match the configuration.
  4672. */
  4673. enum qca_access_policy {
  4674. QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
  4675. QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
  4676. };
  4677. /**
  4678. * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values
  4679. *
  4680. * The valid values for the ignore assoc disallowed
  4681. *
  4682. * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed
  4683. * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed
  4684. *
  4685. */
  4686. enum qca_ignore_assoc_disallowed {
  4687. QCA_IGNORE_ASSOC_DISALLOWED_DISABLE,
  4688. QCA_IGNORE_ASSOC_DISALLOWED_ENABLE
  4689. };
  4690. /* Attributes for data used by
  4691. * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
  4692. * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
  4693. */
  4694. #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES\
  4695. QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
  4696. #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL\
  4697. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
  4698. #define QCA_WLAN_VENDOR_ATTR_ROAM_REASON\
  4699. QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON
  4700. enum qca_wlan_vendor_attr_config {
  4701. QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
  4702. /*
  4703. * Unsigned 32-bit value to set the DTIM period.
  4704. * Whether the wifi chipset wakes at every dtim beacon or a multiple of
  4705. * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
  4706. * DTIM beacons.
  4707. */
  4708. QCA_WLAN_VENDOR_ATTR_CONFIG_MODULATED_DTIM = 1,
  4709. /*
  4710. * Unsigned 32-bit value to set the wifi_iface stats averaging factor
  4711. * used to calculate statistics like average the TSF offset or average
  4712. * number of frame leaked.
  4713. * For instance, upon Beacon frame reception:
  4714. * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
  4715. * For instance, when evaluating leaky APs:
  4716. * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
  4717. */
  4718. QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
  4719. /*
  4720. * Unsigned 32-bit value to configure guard time, i.e., when
  4721. * implementing IEEE power management based on frame control PM bit, how
  4722. * long the driver waits before shutting down the radio and after
  4723. * receiving an ACK frame for a Data frame with PM bit set.
  4724. */
  4725. QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
  4726. /* Unsigned 32-bit value to change the FTM capability dynamically */
  4727. QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
  4728. /* Unsigned 16-bit value to configure maximum TX rate dynamically */
  4729. QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
  4730. /*
  4731. * Unsigned 32-bit value to configure the number of continuous
  4732. * Beacon Miss which shall be used by the firmware to penalize
  4733. * the RSSI.
  4734. */
  4735. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
  4736. /*
  4737. * Unsigned 8-bit value to configure the channel avoidance indication
  4738. * behavior. Firmware to send only one indication and ignore duplicate
  4739. * indications when set to avoid multiple Apps wakeups.
  4740. */
  4741. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
  4742. /*
  4743. * 8-bit unsigned value to configure the maximum TX MPDU for
  4744. * aggregation.
  4745. */
  4746. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
  4747. /*
  4748. * 8-bit unsigned value to configure the maximum RX MPDU for
  4749. * aggregation.
  4750. */
  4751. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
  4752. /*
  4753. * 8-bit unsigned value to configure the Non aggregate/11g sw
  4754. * retry threshold (0 disable, 31 max).
  4755. */
  4756. QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
  4757. /*
  4758. * 8-bit unsigned value to configure the aggregate sw
  4759. * retry threshold (0 disable, 31 max).
  4760. */
  4761. QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
  4762. /*
  4763. * 8-bit unsigned value to configure the MGMT frame
  4764. * retry threshold (0 disable, 31 max).
  4765. */
  4766. QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
  4767. /*
  4768. * 8-bit unsigned value to configure the CTRL frame
  4769. * retry threshold (0 disable, 31 max).
  4770. */
  4771. QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
  4772. /*
  4773. * 8-bit unsigned value to configure the propagation delay for
  4774. * 2G/5G band (0~63, units in us)
  4775. */
  4776. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
  4777. /*
  4778. * Unsigned 32-bit value to configure the number of unicast TX fail
  4779. * packet count. The peer is disconnected once this threshold is
  4780. * reached.
  4781. */
  4782. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
  4783. /*
  4784. * Attribute used to set scan default IEs to the driver.
  4785. *
  4786. * These IEs can be used by scan operations that will be initiated by
  4787. * the driver/firmware.
  4788. *
  4789. * For further scan requests coming to the driver, these IEs should be
  4790. * merged with the IEs received along with scan request coming to the
  4791. * driver. If a particular IE is present in the scan default IEs but not
  4792. * present in the scan request, then that IE should be added to the IEs
  4793. * sent in the Probe Request frames for that scan request.
  4794. */
  4795. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
  4796. /* Unsigned 32-bit attribute for generic commands */
  4797. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
  4798. /* Unsigned 32-bit value attribute for generic commands */
  4799. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
  4800. /* Unsigned 32-bit data attribute for generic command response */
  4801. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
  4802. /*
  4803. * Unsigned 32-bit length attribute for
  4804. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  4805. */
  4806. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
  4807. /*
  4808. * Unsigned 32-bit flags attribute for
  4809. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  4810. */
  4811. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
  4812. /*
  4813. * Unsigned 32-bit, defining the access policy.
  4814. * See enum qca_access_policy. Used with
  4815. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
  4816. */
  4817. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
  4818. /*
  4819. * Sets the list of full set of IEs for which a specific access policy
  4820. * has to be applied. Used along with
  4821. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
  4822. * Zero length payload can be used to clear this access constraint.
  4823. */
  4824. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
  4825. /*
  4826. * Unsigned 32-bit, specifies the interface index (netdev) for which the
  4827. * corresponding configurations are applied. If the interface index is
  4828. * not specified, the configurations are attributed to the respective
  4829. * wiphy.
  4830. */
  4831. QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
  4832. /*
  4833. * 8-bit unsigned value to trigger QPower:
  4834. * 1-Enable, 0-Disable
  4835. */
  4836. QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
  4837. /*
  4838. * 8-bit unsigned value to configure the driver and below layers to
  4839. * ignore the assoc disallowed set by APs while connecting
  4840. * 1-Ignore, 0-Don't ignore
  4841. */
  4842. QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
  4843. /*
  4844. * 32-bit unsigned value to trigger antenna diversity features:
  4845. * 1-Enable, 0-Disable
  4846. */
  4847. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
  4848. /* 32-bit unsigned value to configure specific chain antenna */
  4849. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
  4850. /*
  4851. * 32-bit unsigned value to trigger cycle selftest
  4852. * 1-Enable, 0-Disable
  4853. */
  4854. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
  4855. /*
  4856. * 32-bit unsigned to configure the cycle time of selftest
  4857. * the unit is micro-second
  4858. */
  4859. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
  4860. /* 32-bit unsigned value to set reorder timeout for AC_VO */
  4861. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
  4862. /* 32-bit unsigned value to set reorder timeout for AC_VI */
  4863. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
  4864. /* 32-bit unsigned value to set reorder timeout for AC_BE */
  4865. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
  4866. /* 32-bit unsigned value to set reorder timeout for AC_BK */
  4867. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
  4868. /* 6-byte MAC address to point out the specific peer */
  4869. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
  4870. /* 32-bit unsigned value to set window size for specific peer */
  4871. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
  4872. /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
  4873. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
  4874. /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
  4875. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
  4876. /*
  4877. * 32-bit unsigned value to configure 5 or 10 MHz channel width for
  4878. * station device while in disconnect state. The attribute use the
  4879. * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
  4880. * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
  4881. * 10 MHz channel width, the station will not connect to a BSS using 20
  4882. * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
  4883. * clear this constraint.
  4884. */
  4885. QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
  4886. /*
  4887. * 32-bit unsigned value to configure the propagation absolute delay
  4888. * for 2G/5G band (units in us)
  4889. */
  4890. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
  4891. /* 32-bit unsigned value to set probe period */
  4892. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
  4893. /* 32-bit unsigned value to set stay period */
  4894. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
  4895. /* 32-bit unsigned value to set snr diff */
  4896. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
  4897. /* 32-bit unsigned value to set probe dwell time */
  4898. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
  4899. /* 32-bit unsigned value to set mgmt snr weight */
  4900. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
  4901. /* 32-bit unsigned value to set data snr weight */
  4902. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
  4903. /* 32-bit unsigned value to set ack snr weight */
  4904. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
  4905. /*
  4906. * 32-bit unsigned value to configure the listen interval.
  4907. * This is in units of beacon intervals. This configuration alters
  4908. * the negotiated listen interval with the AP during the connection.
  4909. * It is highly recommended to configure a value less than or equal to
  4910. * the one negotiated during the association. Configuring any greater
  4911. * value can have adverse effects (frame loss, AP disassociating STA,
  4912. * etc.).
  4913. */
  4914. QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
  4915. /*
  4916. * 8 bit unsigned value that is set on an AP/GO virtual interface to
  4917. * disable operations that would cause the AP/GO to leave its operating
  4918. * channel.
  4919. *
  4920. * This will restrict the scans to the AP/GO operating channel and the
  4921. * channels of the other band, if DBS is supported.A STA/CLI interface
  4922. * brought up after this setting is enabled, will be restricted to
  4923. * connecting to devices only on the AP/GO interface's operating channel
  4924. * or on the other band in DBS case. P2P supported channel list is
  4925. * modified, to only include AP interface's operating-channel and the
  4926. * channels of the other band if DBS is supported.
  4927. *
  4928. * These restrictions are only applicable as long as the AP/GO interface
  4929. * is alive. If the AP/GO interface is brought down then this
  4930. * setting/restriction is forgotten.
  4931. *
  4932. * If this variable is set on an AP/GO interface while a multi-channel
  4933. * concurrent session is active, it has no effect on the operation of
  4934. * the current interfaces, other than restricting the scan to the AP/GO
  4935. * operating channel and the other band channels if DBS is supported.
  4936. * However, if the STA is brought down and restarted then the new STA
  4937. * connection will either be formed on the AP/GO channel or on the
  4938. * other band in a DBS case. This is because of the scan being
  4939. * restricted on these channels as mentioned above.
  4940. *
  4941. * 1-Disable offchannel operations, 0-Enable offchannel operations.
  4942. */
  4943. QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
  4944. /*
  4945. * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
  4946. * on an interface.
  4947. * 1 - Enable , 0 - Disable.
  4948. */
  4949. QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
  4950. /*
  4951. * 8 bit unsigned value to globally enable/disable scan
  4952. * 1 - Enable, 0 - Disable.
  4953. */
  4954. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
  4955. /* 8-bit unsigned value to set the total beacon miss count */
  4956. QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
  4957. /*
  4958. * Unsigned 32-bit value to configure the number of continuous
  4959. * Beacon Miss which shall be used by the firmware to penalize
  4960. * the RSSI for BTC.
  4961. */
  4962. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
  4963. /*
  4964. * 8-bit unsigned value to configure the driver and below layers to
  4965. * enable/disable all fils features.
  4966. * 0-enable, 1-disable
  4967. */
  4968. QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
  4969. /* 16-bit unsigned value to configure the level of WLAN latency
  4970. * module. See enum qca_wlan_vendor_attr_config_latency_level.
  4971. */
  4972. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
  4973. /*
  4974. * 8-bit unsigned value indicating the driver to use the RSNE as-is from
  4975. * the connect interface. Exclusively used for the scenarios where the
  4976. * device is used as a test bed device with special functionality and
  4977. * not recommended for production. This helps driver to not validate the
  4978. * RSNE passed from user space and thus allow arbitrary IE data to be
  4979. * used for testing purposes.
  4980. * 1-enable, 0-disable.
  4981. * Applications set/reset this configuration. If not reset, this
  4982. * parameter remains in use until the driver is unloaded.
  4983. */
  4984. QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
  4985. /*
  4986. * 8-bit unsigned value to trigger green Tx power saving.
  4987. * 1-Enable, 0-Disable
  4988. */
  4989. QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
  4990. /*
  4991. * Attribute to configure disconnect IEs to the driver.
  4992. * This carries an array of unsigned 8-bit characters.
  4993. *
  4994. * If this is configured, driver shall fill the IEs in disassoc/deauth
  4995. * frame.
  4996. * These IEs are expected to be considered only for the next
  4997. * immediate disconnection (disassoc/deauth frame) originated by
  4998. * the DUT, irrespective of the entity (user space/driver/firmware)
  4999. * triggering the disconnection.
  5000. * The host drivers are not expected to use the IEs set through
  5001. * this interface for further disconnections after the first immediate
  5002. * disconnection initiated post the configuration.
  5003. * If the IEs are also updated through cfg80211 interface (after the
  5004. * enhancement to cfg80211_disconnect), host driver is expected to
  5005. * take the union of IEs from both of these interfaces and send in
  5006. * further disassoc/deauth frames.
  5007. */
  5008. QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
  5009. /* 8-bit unsigned value for ELNA bypass.
  5010. * 0 - Disable eLNA bypass.
  5011. * 1 - Enable eLNA bypass.
  5012. * 2 - Reset eLNA bypass configuration, the driver should
  5013. * revert to the default configuration of eLNA bypass.
  5014. */
  5015. QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
  5016. /* 8-bit unsigned value. This attribute enables/disables the host driver
  5017. * to send the Beacon Report response with failure reason for the
  5018. * scenarios where STA cannot honor the Beacon report request from AP.
  5019. * 1-Enable, 0-Disable.
  5020. */
  5021. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
  5022. /* 8-bit unsigned value. This attribute enables/disables the host driver
  5023. * to send roam reason information in the reassociation request to the
  5024. * AP. 1-Enable, 0-Disable.
  5025. */
  5026. QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
  5027. /* 32-bit unsigned value to configure different PHY modes to the
  5028. * driver/firmware. The possible values are defined in
  5029. * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
  5030. * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
  5031. * the driver.
  5032. */
  5033. QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
  5034. /* 8-bit unsigned value to configure the maximum supported channel width
  5035. * for STA mode. If this value is configured when STA is in connected
  5036. * state, it should not exceed the negotiated channel width. If it is
  5037. * configured when STA is in disconnected state, the configured value
  5038. * will take effect for the next immediate connection.
  5039. * Possible values are:
  5040. * NL80211_CHAN_WIDTH_20
  5041. * NL80211_CHAN_WIDTH_40
  5042. * NL80211_CHAN_WIDTH_80
  5043. * NL80211_CHAN_WIDTH_80P80
  5044. * NL80211_CHAN_WIDTH_160
  5045. */
  5046. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
  5047. /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
  5048. * This attribute is only applicable for STA mode. When dynamic
  5049. * bandwidth adjustment is disabled, STA will use static channel width
  5050. * the value of which is negotiated during connection.
  5051. * 1-enable (default), 0-disable
  5052. */
  5053. QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
  5054. /* 8-bit unsigned value to configure the maximum number of subframes of
  5055. * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
  5056. * it is decided by hardware.
  5057. */
  5058. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
  5059. /* 8-bit unsigned value to configure the maximum number of subframes of
  5060. * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
  5061. * it is decided by hardware.
  5062. */
  5063. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
  5064. /* 8-bit unsigned value. This attribute is used to dynamically
  5065. * enable/disable the LDPC capability of the device. When configured in
  5066. * the disconnected state, the updated configuration will be considered
  5067. * for the immediately following connection attempt. If this
  5068. * configuration is modified while the device is in the connected state,
  5069. * the LDPC TX will be updated with this configuration immediately,
  5070. * while the LDPC RX configuration update will take place starting from
  5071. * the subsequent association attempt.
  5072. * 1-Enable, 0-Disable.
  5073. */
  5074. QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
  5075. /* 8-bit unsigned value. This attribute is used to dynamically
  5076. * enable/disable the TX STBC capability of the device. When configured
  5077. * in the disconnected state, the updated configuration will be
  5078. * considered for the immediately following connection attempt. If the
  5079. * connection is formed with TX STBC enabled and if this configuration
  5080. * is disabled during that association, the TX will be impacted
  5081. * immediately. Further connection attempts will disable TX STBC.
  5082. * However, enabling the TX STBC for a connected session with disabled
  5083. * capability is not allowed and will fail.
  5084. * 1-Enable, 0-Disable.
  5085. */
  5086. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
  5087. /* 8-bit unsigned value. This attribute is used to dynamically
  5088. * enable/disable the RX STBC capability of the device. When configured
  5089. * in the disconnected state, the updated configuration will be
  5090. * considered for the immediately following connection attempt. If the
  5091. * configuration is modified in the connected state, there will be no
  5092. * impact for the current association, but further connection attempts
  5093. * will use the updated configuration.
  5094. * 1-Enable, 0-Disable.
  5095. */
  5096. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
  5097. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5098. * the number of spatial streams. When configured in the disconnected
  5099. * state, the updated configuration will be considered for the
  5100. * immediately following connection attempt. If the NSS is updated after
  5101. * the connection, the updated NSS value is notified to the peer using
  5102. * the Operating Mode Notification/Spatial Multiplexing Power Save
  5103. * frame. The updated NSS value after the connection shall not be
  5104. * greater than the one negotiated during the connection. Any such
  5105. * higher value configuration shall be returned with a failure.
  5106. * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
  5107. * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
  5108. * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
  5109. * configure the asymmetric NSS configuration (such as 1X2).
  5110. */
  5111. QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
  5112. /*
  5113. * 8-bit unsigned value to trigger Optimized Power Management:
  5114. * 1-Enable, 0-Disable
  5115. */
  5116. QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
  5117. /* 8-bit unsigned value. This attribute takes the QOS/access category
  5118. * value represented by the enum qca_wlan_ac_type and expects the driver
  5119. * to upgrade the UDP frames to this QOS. The value of QCA_WLAN_AC_ALL
  5120. * is invalid for this attribute. This will override the DSCP value
  5121. * configured in the frame with the intention to only upgrade the QOS.
  5122. * That said, it is not intended to downgrade the QOS for the frames.
  5123. * Set the value to 0 ( corresponding to BE ) if the QOS upgrade needs
  5124. * to disable.
  5125. *
  5126. * If only UDP frames of BE or BK access category needs to be upgraded
  5127. * without changing the access category of VO or VI UDP frames, refer to
  5128. * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK.
  5129. *
  5130. * This attribute is not recommended to be used as it blindly forces all
  5131. * UDP packets to a higher access category which could impact the
  5132. * traffic pattern of all apps using UDP and can cause unknown behavior.
  5133. */
  5134. QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
  5135. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5136. * the number of chains to be used for transmitting data. This
  5137. * configuration is allowed only when in connected state and will be
  5138. * effective until disconnected. The driver rejects this configuration
  5139. * if the number of spatial streams being used in the current connection
  5140. * cannot be supported by this configuration.
  5141. */
  5142. QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
  5143. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5144. * the number of chains to be used for receiving data. This
  5145. * configuration is allowed only when in connected state and will be
  5146. * effective until disconnected. The driver rejects this configuration
  5147. * if the number of spatial streams being used in the current connection
  5148. * cannot be supported by this configuration.
  5149. */
  5150. QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
  5151. /* 8-bit unsigned value to configure ANI setting type.
  5152. * See &enum qca_wlan_ani_setting for possible values.
  5153. */
  5154. QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
  5155. /* 32-bit signed value to configure ANI level. This is used when
  5156. * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
  5157. * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
  5158. * is invalid, the driver will return a failure.
  5159. */
  5160. QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
  5161. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5162. * the number of spatial streams used for transmitting the data. When
  5163. * configured in the disconnected state, the configured value will
  5164. * be considered for the following connection attempt.
  5165. * If the NSS is updated after the connection, the updated NSS value
  5166. * is notified to the peer using the Operating Mode Notification/Spatial
  5167. * Multiplexing Power Save frame.
  5168. * The TX NSS value configured after the connection shall not be greater
  5169. * than the value negotiated during the connection. Any such higher
  5170. * value configuration shall be treated as invalid configuration by
  5171. * the driver. This attribute shall be configured along with
  5172. * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
  5173. * configuration (such as 2X2 or 1X1) or the asymmetric
  5174. * configuration (such as 1X2).
  5175. * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
  5176. * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
  5177. * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
  5178. */
  5179. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
  5180. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5181. * the number of spatial streams used for receiving the data. When
  5182. * configured in the disconnected state, the configured value will
  5183. * be considered for the following connection attempt.
  5184. * If the NSS is updated after the connection, the updated NSS value
  5185. * is notified to the peer using the Operating Mode Notification/Spatial
  5186. * Multiplexing Power Save frame.
  5187. * The RX NSS value configured after the connection shall not be greater
  5188. * than the value negotiated during the connection. Any such higher
  5189. * value configuration shall be treated as invalid configuration by
  5190. * the driver. This attribute shall be configured along with
  5191. * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
  5192. * configuration (such as 2X2 or 1X1) or the asymmetric
  5193. * configuration (such as 1X2).
  5194. * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
  5195. * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
  5196. * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
  5197. */
  5198. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
  5199. /*
  5200. * 8-bit unsigned value. This attribute, when set, indicates whether the
  5201. * specified interface is the primary STA interface when there are more
  5202. * than one STA interfaces concurrently active.
  5203. *
  5204. * This configuration helps the firmware/hardware to support certain
  5205. * features (e.g., roaming) on this primary interface, if the same
  5206. * cannot be supported on the concurrent STA interfaces simultaneously.
  5207. *
  5208. * This configuration is only applicable for a single STA interface on
  5209. * a device and gives the priority for it only over other concurrent STA
  5210. * interfaces.
  5211. *
  5212. * If the device is a multi wiphy/soc, this configuration applies to a
  5213. * single STA interface across the wiphys.
  5214. *
  5215. * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
  5216. */
  5217. QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
  5218. /*
  5219. * 8-bit unsigned value. This attribute can be used to configure the
  5220. * driver to enable/disable FT-over-DS feature. Possible values for
  5221. * this attribute are 1-Enable and 0-Disable.
  5222. */
  5223. QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
  5224. /*
  5225. * 8-bit unsigned value. This attribute can be used to configure the
  5226. * firmware to enable/disable ARP/NS offload feature. Possible values
  5227. * for this attribute are 0-Disable and 1-Enable.
  5228. *
  5229. * This attribute is only applicable for STA/P2P-Client interface,
  5230. * and is optional, default behavior is APR/NS offload Enable.
  5231. *
  5232. * This attribute can be set in disconncted and connected state, and
  5233. * will restore to default behavior if interface is closed.
  5234. */
  5235. QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
  5236. /*
  5237. * 8-bit unsigned value. This attribute can be used to configure the
  5238. * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values
  5239. * for this attribute are defined in the enum qca_dbam_config.
  5240. */
  5241. QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
  5242. /* 8-bit unsigned value. This attribute takes the QoS/access category
  5243. * value represented by the enum qca_wlan_ac_type and expects the driver
  5244. * to upgrade the UDP frames of BE or BK access category to this access
  5245. * category. This attribute will not modify UDP frames of VO or VI
  5246. * access category. The value of QCA_WLAN_AC_ALL is invalid for this
  5247. * attribute.
  5248. *
  5249. * This will override the DSCP value configured in the frame with the
  5250. * intention to only upgrade the access category. That said, it is not
  5251. * intended to downgrade the access category for the frames.
  5252. * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
  5253. * disabled, as BK is of the lowest priority and an upgrade to it does
  5254. * not result in any changes for the frames.
  5255. *
  5256. * This attribute behavior is similar to
  5257. * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that
  5258. * only UDP frames of BE or BK access category are upgraded and not
  5259. * UDP frames of VI or VO access category.
  5260. *
  5261. * This attribute is not recommended to be used as it blindly forces all
  5262. * UDP packets of BE or BK access category to a higher access category
  5263. * which could impact the traffic pattern of all apps using UDP and can
  5264. * cause unknown behavior.
  5265. */
  5266. QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84,
  5267. /* 8-bit unsigned value to configure the driver to enable/disable the
  5268. * periodic sounding for Tx beamformer functionality. The default
  5269. * behavior uses algorithm to do sounding based on packet stats.
  5270. *
  5271. * 0 - Default behavior.
  5272. * 1 - Enable the periodic sounding for Tx beamformer.
  5273. * This attribute is used for testing purposes.
  5274. */
  5275. QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85,
  5276. /* 8-bit unsigned value, whenever wifi calling (wfc) begin or end,
  5277. * Userspace sends this information to driver/firmware to configure
  5278. * wfc state. Driver/Firmware uses this information to
  5279. * optimize power savings, rate adaption, roaming, etc.
  5280. *
  5281. * 1 - wfc is on.
  5282. * 0 - wfc is off.
  5283. */
  5284. QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86,
  5285. /* 8-bit unsigned value to configure the driver to enable/disable the
  5286. * EHT EML capability in management frame EHT capabilities.
  5287. * 1 - Enable, 0 - Disable.
  5288. */
  5289. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_EML_CAPABILITY = 87,
  5290. /* 8-bit unsigned value to configure the driver with EHT MLO max
  5291. * simultaneous links to be used for MLO connection.
  5292. * The range of the value is 0 to 14.
  5293. */
  5294. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_SIMULTANEOUS_LINKS = 88,
  5295. /* 8-bit unsigned value to configure the driver with EHT MLO maximum
  5296. * number of links to be used for MLO connection.
  5297. * The range of the value is 1 to 16.
  5298. */
  5299. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_NUM_LINKS = 89,
  5300. /* 8-bit unsigned value to configure the driver with EHT MLO mode.
  5301. * Uses enum qca_wlan_eht_mlo_mode values.
  5302. */
  5303. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MODE = 90,
  5304. /* Nested attribute with frequencies in u32 attributes to configure a
  5305. * list of allowed 20 MHz channel center frequencies in MHz for AP
  5306. * operation. Whenever performing a channel selection operation, the
  5307. * driver shall generate a new list based on this provided list by
  5308. * filtering out channels that cannot be used at that time due to
  5309. * regulatory or other constraints. The resulting list is used as the
  5310. * list of all allowed channels, i.e., operation on any channel that is
  5311. * not included is not allowed, whenever performing operations like ACS
  5312. * and DFS.
  5313. *
  5314. * Userspace shall configure this before starting the AP and the
  5315. * configuration is valid only from the next BSS start and until the
  5316. * BSS is stopped. The driver shall clear this configuration when the
  5317. * AP is stopped and fall back to the default behavior for subsequent
  5318. * AP operation.
  5319. *
  5320. * The default behavior when this configuration is not applicable is the
  5321. * driver can choose any of the channels supported by the hardware
  5322. * except the channels that cannot be used due to regulatory or other
  5323. * constraints.
  5324. *
  5325. * The driver shall reject this configuration if done after the AP is
  5326. * started. This attribute can be used to specify user's choice of
  5327. * frequencies and static puncture channel list, etc.
  5328. */
  5329. QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST = 91,
  5330. /* Nested attribute to indicate EHT MLO links to be forced active.
  5331. * It contains link MAC address attributes. These nested attributes are
  5332. * of the type NL80211_ATTR_MAC and are used to force enabling of the
  5333. * MLO links corresponding to the indicated link MAC addresses.
  5334. * Subsequently, the links corresponding to the link MAC addresses that
  5335. * are not indicated are forced inactive.
  5336. */
  5337. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_ACTIVE_LINKS = 92,
  5338. /* 8-bit unsigned value to configure EMLSR mode entry or exit.
  5339. * Uses enum qca_wlan_emlsr_mode values.
  5340. */
  5341. QCA_WLAN_VENDOR_ATTR_CONFIG_EMLSR_MODE_SWITCH = 93,
  5342. /* 8-bit unsigned value to set EPCS (Emergency Preparedness
  5343. * Communications Service) feature capability
  5344. * 1 - Enable, 0 - Disable.
  5345. *
  5346. * This configuration is used for testing purposes.
  5347. */
  5348. QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY = 97,
  5349. /* 8-bit unsigned value to enable/disable EPCS priority access
  5350. * 1 - Enable, 0 - Disable.
  5351. * The EPCS priority access shall be enabled only when EPCS feature
  5352. * capability is also enabled (see
  5353. * QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY).
  5354. *
  5355. * This configuration is used for testing purposes.
  5356. */
  5357. QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_FUNCTION = 98,
  5358. /* keep last */
  5359. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
  5360. QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
  5361. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
  5362. };
  5363. /**
  5364. * enum qca_dbam_config - Specifies DBAM config mode
  5365. * @QCA_DBAM_DISABLE: Firmware disables DBAM
  5366. * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when
  5367. * internal criteria are met.
  5368. * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully.
  5369. */
  5370. enum qca_dbam_config {
  5371. QCA_DBAM_DISABLE = 0,
  5372. QCA_DBAM_ENABLE = 1,
  5373. QCA_DBAM_FORCE_ENABLE = 2,
  5374. };
  5375. /**
  5376. * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting
  5377. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute
  5378. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID
  5379. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level
  5380. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag
  5381. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value
  5382. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value
  5383. */
  5384. enum qca_wlan_vendor_attr_wifi_logger_start {
  5385. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
  5386. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
  5387. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
  5388. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
  5389. /* keep last */
  5390. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
  5391. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX =
  5392. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
  5393. };
  5394. /*
  5395. * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data
  5396. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute
  5397. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID
  5398. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value
  5399. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value
  5400. */
  5401. enum qca_wlan_vendor_attr_wifi_logger_get_ring_data {
  5402. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0,
  5403. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1,
  5404. /* keep last */
  5405. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST,
  5406. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX =
  5407. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1,
  5408. };
  5409. #ifdef WLAN_FEATURE_OFFLOAD_PACKETS
  5410. /**
  5411. * enum wlan_offloaded_packets_control - control commands
  5412. * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets
  5413. * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets
  5414. *
  5415. */
  5416. enum wlan_offloaded_packets_control {
  5417. WLAN_START_OFFLOADED_PACKETS = 1,
  5418. WLAN_STOP_OFFLOADED_PACKETS = 2
  5419. };
  5420. /**
  5421. * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
  5422. *
  5423. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
  5424. * the offloaded data.
  5425. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
  5426. * data.
  5427. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
  5428. * indication.
  5429. */
  5430. enum qca_wlan_vendor_attr_data_offload_ind {
  5431. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
  5432. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
  5433. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
  5434. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
  5435. /* keep last */
  5436. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
  5437. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
  5438. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
  5439. };
  5440. /**
  5441. * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
  5442. * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
  5443. */
  5444. enum qca_wlan_vendor_attr_offloaded_packets {
  5445. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
  5446. /* Takes valid value from the enum
  5447. * qca_wlan_offloaded_packets_sending_control
  5448. * Unsigned 32-bit value
  5449. */
  5450. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
  5451. /* Unsigned 32-bit value */
  5452. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
  5453. /* array of u8 len: Max packet size */
  5454. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
  5455. /* 6-byte MAC address used to represent source MAC address */
  5456. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
  5457. /* 6-byte MAC address used to represent destination MAC address */
  5458. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
  5459. /* Unsigned 32-bit value, in milli seconds */
  5460. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
  5461. /* This optional unsigned 16-bit attribute is used for specifying
  5462. * ethernet protocol type. If not specified ethertype defaults to IPv4.
  5463. */
  5464. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
  5465. /* keep last */
  5466. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
  5467. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
  5468. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
  5469. };
  5470. #endif /* WLAN_FEATURE_OFFLOAD_PACKETS */
  5471. /**
  5472. * enum qca_wlan_rssi_monitoring_control - rssi control commands
  5473. * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid
  5474. * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start
  5475. * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop
  5476. */
  5477. enum qca_wlan_rssi_monitoring_control {
  5478. QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
  5479. QCA_WLAN_RSSI_MONITORING_START,
  5480. QCA_WLAN_RSSI_MONITORING_STOP,
  5481. };
  5482. /**
  5483. * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring
  5484. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid
  5485. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control
  5486. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi
  5487. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi
  5488. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid
  5489. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi
  5490. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last
  5491. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max
  5492. */
  5493. enum qca_wlan_vendor_attr_rssi_monitoring {
  5494. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
  5495. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
  5496. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
  5497. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
  5498. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
  5499. /* attributes to be used/received in callback */
  5500. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
  5501. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
  5502. /* keep last */
  5503. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
  5504. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
  5505. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
  5506. };
  5507. /**
  5508. * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
  5509. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  5510. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID
  5511. * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd
  5512. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID:
  5513. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicates a service info
  5514. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz
  5515. * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC
  5516. * address
  5517. * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being
  5518. * created
  5519. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use
  5520. * NCS_SK_TYPE/PMK/SCID instead
  5521. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS
  5522. * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info
  5523. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id
  5524. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids
  5525. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response
  5526. * code: accept/reject
  5527. * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address
  5528. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by
  5529. * driver
  5530. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by
  5531. * driver
  5532. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration
  5533. * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type
  5534. * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO
  5535. * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the
  5536. * PMKID
  5537. * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase
  5538. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name
  5539. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule
  5540. * update:
  5541. * BIT_0: NSS Update
  5542. * BIT_1: Channel list update
  5543. * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss
  5544. * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL
  5545. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH:
  5546. * 0:20 MHz,
  5547. * 1:40 MHz,
  5548. * 2:80 MHz,
  5549. * 3:160 MHz
  5550. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width
  5551. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute
  5552. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type
  5553. * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array
  5554. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating
  5555. * transport port used by NDP.
  5556. * QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating
  5557. * protocol used by NDP and assigned by the Internet Assigned Numbers Authority
  5558. * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
  5559. * QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT: Unsigned 8-bit value indicating if
  5560. * NDP remote peer supports NAN NDPE. 1:support 0:not support
  5561. * QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID: As per Wi-Fi Aware Specification v3.2
  5562. * Service Id is the first 48 bits of the SHA-256 hash of the Service Name.
  5563. * A lower-case representation of the Service Name shall be used to
  5564. * calculate the Service ID.
  5565. * Array of u8: length is 6 bytes
  5566. * This attribute is used and optional for ndp indication.
  5567. */
  5568. enum qca_wlan_vendor_attr_ndp_params {
  5569. QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
  5570. QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1,
  5571. QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2,
  5572. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3,
  5573. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4,
  5574. QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5,
  5575. QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6,
  5576. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7,
  5577. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8,
  5578. QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9,
  5579. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10,
  5580. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11,
  5581. QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12,
  5582. QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13,
  5583. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14,
  5584. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15,
  5585. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16,
  5586. QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17,
  5587. QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18,
  5588. QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19,
  5589. QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20,
  5590. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21,
  5591. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22,
  5592. QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23,
  5593. QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24,
  5594. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25,
  5595. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26,
  5596. QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
  5597. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
  5598. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
  5599. QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
  5600. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
  5601. /* keep last */
  5602. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
  5603. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
  5604. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
  5605. };
  5606. /**
  5607. * enum qca_wlan_ndp_sub_cmd - NDP sub commands types for
  5608. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  5609. * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value
  5610. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: Command to create a NAN
  5611. * data path interface.
  5612. * This command was initially designed to both create and start a NAN
  5613. * data path interface. However, changes to Linux 5.12 no longer allow
  5614. * interface creation via vendor commands. When the driver advertises
  5615. * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
  5616. * userspace must explicitly first create the interface using
  5617. * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
  5618. * to start the interface.
  5619. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: command to delete a NAN
  5620. * data path interface.
  5621. * This command was initially designed to both stop and delete a NAN
  5622. * data path interface. However, changes to Linux 5.12 no longer allow
  5623. * interface deletion via vendor commands. When the driver advertises
  5624. * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
  5625. * userspace must explicitly delete the interface using
  5626. * NL80211_CMD_DEL_INTERFACE after calling this command.
  5627. * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above
  5628. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session
  5629. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above
  5630. * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end
  5631. * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above
  5632. * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request
  5633. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete
  5634. * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request
  5635. * being received
  5636. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule
  5637. * update
  5638. */
  5639. enum qca_wlan_ndp_sub_cmd {
  5640. QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
  5641. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
  5642. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
  5643. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
  5644. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
  5645. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
  5646. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
  5647. QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
  5648. QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
  5649. QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
  5650. QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
  5651. QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
  5652. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
  5653. };
  5654. /**
  5655. * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
  5656. * information. These attributes are sent as part of
  5657. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
  5658. * attributes correspond to a single channel.
  5659. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16)
  5660. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  5661. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16)
  5662. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  5663. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency
  5664. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum
  5665. * regulatory transmission power
  5666. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum
  5667. * transmission power
  5668. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum
  5669. * transmission power
  5670. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory
  5671. * class id
  5672. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum
  5673. * antenna gain in dbm
  5674. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0
  5675. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1
  5676. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0: Segment 0
  5677. * center frequency in MHz.
  5678. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht
  5679. * segment 0 in center freq in MHz. (this is the legacy alias)
  5680. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1: Segment 1
  5681. * center frequency in MHz.
  5682. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht
  5683. * segment 1 in center freq in MHz. (this is the legacy alias)
  5684. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES: 3-bits
  5685. * flag indicating the AP power modes supported by the channel, as given by
  5686. * enum qca_wlan_vendor_external_acs_chan_power_level.
  5687. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR: Array of nested
  5688. * attributes for each power mode. It takes attr as defined in enum
  5689. * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
  5690. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1:
  5691. * This indicates the overlapping 320 MHz center frequency in MHz, if the
  5692. * given primary channel supports more than one 320 MHz channel bonding.
  5693. *
  5694. */
  5695. enum qca_wlan_vendor_external_acs_event_chan_info_attr {
  5696. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
  5697. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
  5698. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
  5699. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
  5700. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
  5701. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
  5702. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
  5703. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
  5704. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
  5705. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
  5706. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
  5707. /*
  5708. * A bitmask (u32) with flags specified in
  5709. * enum qca_wlan_vendor_channel_prop_flags_2.
  5710. */
  5711. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
  5712. /*
  5713. * Segment 0 in MHz (u32).
  5714. *
  5715. * For 20/40/80 MHz bandwidth, this indicates the channel center
  5716. * frequency index for the 20/40/80 MHz operating channel.
  5717. * For 160 MHz bandwidth, this indicates the channel center
  5718. * frequency of the primary 80 MHz channel.
  5719. * For 320 MHz bandwidth, indicates the channel center frequency
  5720. * of the primary 160 MHz channel.
  5721. *
  5722. * To maintain backward compatibility,
  5723. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5724. * is also maintained.
  5725. */
  5726. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12,
  5727. /* Legacy alias for the Segment 0 attribute.
  5728. *
  5729. * VHT segment 0 in MHz (u32) and the attribute is mandatory.
  5730. * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
  5731. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5732. * along with
  5733. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
  5734. *
  5735. * If both the driver and user-space application supports the 6 GHz
  5736. * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
  5737. * is deprecated and
  5738. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5739. * should be used.
  5740. *
  5741. * To maintain backward compatibility,
  5742. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5743. * is still used if either of the driver or user space application
  5744. * doesn't support the 6 GHz band.
  5745. */
  5746. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 =
  5747. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0,
  5748. /*
  5749. * Segment 1 in MHz (u32).
  5750. *
  5751. * For 20/40/80 MHz bandwidth, this is set to 0.
  5752. * For 160 MHz bandwidth, indicates the channel center frequency of the
  5753. * 160 MHz channel.
  5754. * For 320 MHz bandwidth, indicates the channel center frequency of the
  5755. * 320 MHz channel.
  5756. *
  5757. * To maintain backward compatibility,
  5758. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5759. * is also maintained.
  5760. */
  5761. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13,
  5762. /* Legacy alias for the Segment 1 attribute.
  5763. *
  5764. * VHT segment 1 in MHz (u32) and the attribute is mandatory.
  5765. * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
  5766. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5767. * along with
  5768. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
  5769. *
  5770. * If both the driver and user-space application supports the 6 GHz
  5771. * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
  5772. * is deprecated and
  5773. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5774. * should be considered.
  5775. *
  5776. * To maintain backward compatibility,
  5777. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5778. * is still used if either of the driver or user space application
  5779. * doesn't support the 6 GHz band.
  5780. */
  5781. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 =
  5782. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1,
  5783. /*
  5784. * 16-bit attribute of bits indicating the AP power modes supported by
  5785. * the channel (u16).
  5786. * Note: Currently, only 3 bits are used in the attribute and each bit
  5787. * corresponds to the power mode mentioned in enum
  5788. * qca_wlan_vendor_external_acs_chan_power_level and a given bit is
  5789. * set if the associated mode is supported.
  5790. */
  5791. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
  5792. = 14,
  5793. /* Array of nested attributes for each power mode. It takes attr as
  5794. * defined in enum
  5795. * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
  5796. */
  5797. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR = 15,
  5798. /*
  5799. * This indicates the overlapping 320 MHz center frequency in MHz
  5800. * (u32), if the given primary channel supports more than one
  5801. * 320 MHz channel bonding.
  5802. *
  5803. * Example:
  5804. * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0
  5805. * center frequency (primary 160 MHz) is 6185 MHz and there can be two
  5806. * possible segment 2 frequencies for this (320 MHz center
  5807. * frequencies):
  5808. *
  5809. * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding
  5810. * from frequency 5945 MHz - 6265 MHz
  5811. * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding
  5812. * from frequency 6105 MHz - 6425 MHz
  5813. *
  5814. * In this case,
  5815. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will
  5816. * return 6185 MHz.
  5817. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will
  5818. * return 6105 MHz.
  5819. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
  5820. * will return 6265 MHz.
  5821. */
  5822. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
  5823. = 16,
  5824. /* keep last */
  5825. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
  5826. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
  5827. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
  5828. };
  5829. /**
  5830. * qca_wlan_vendor_external_acs_chan_power_level - Specifies the valid
  5831. * values that the vendor external ACS channel power attribute
  5832. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
  5833. * take.
  5834. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
  5835. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
  5836. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
  5837. */
  5838. enum qca_wlan_vendor_external_acs_chan_power_level {
  5839. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
  5840. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
  5841. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
  5842. };
  5843. /**
  5844. * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
  5845. * attributes for power mode type and power values corresponding to that.
  5846. * These attributes are sent as part of
  5847. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
  5848. */
  5849. enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
  5850. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
  5851. /*
  5852. * Power mode (u8) takes the values defined in enum
  5853. * qca_wlan_vendor_external_acs_chan_power_mode
  5854. */
  5855. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
  5856. = 1,
  5857. /*
  5858. * Indicates if power value is a PSD/EIRP value (flag). If flag is
  5859. * present, it indicates a PSD value.
  5860. */
  5861. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
  5862. /*
  5863. * Power value (u32) PSD/EIRP as indicated by
  5864. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
  5865. * for power mode corresponding to the
  5866. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
  5867. * Units for PSD - dBm/MHz
  5868. * Units for EIRP - dBm
  5869. */
  5870. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
  5871. = 3,
  5872. /* keep last */
  5873. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
  5874. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
  5875. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
  5876. };
  5877. /**
  5878. * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command
  5879. * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host
  5880. * driver.
  5881. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to
  5882. * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why
  5883. * ACS need to be started
  5884. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does
  5885. * driver supports spectral scanning or not
  5886. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is
  5887. * offloaded to firmware.
  5888. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver
  5889. * provides additional channel capability as part of scan operation.
  5890. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate
  5891. * interface status is UP
  5892. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of
  5893. * interface. It takes one of nl80211_iftype values.
  5894. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound
  5895. * of chan width. ACS logic should try to get a channel with specified width
  5896. * if not found then look for lower values.
  5897. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands
  5898. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as
  5899. * a/b/g/n/ac.
  5900. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list
  5901. * among which ACS should choose best frequency.
  5902. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the
  5903. * driver which will have <channel(u8), weight(u8)> format as array of
  5904. * nested values.
  5905. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute
  5906. * for each channel. It takes attr as defined in
  5907. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as
  5908. * PCL mandatory, PCL preferred, etc.It uses values defined in enum
  5909. * qca_wlan_vendor_attr_external_acs_policy.
  5910. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF
  5911. * Operating Parameter (RROP) availability information (u16). It uses values
  5912. * defined in enum qca_wlan_vendor_attr_rropavail_info.
  5913. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY: Flag attribute to
  5914. * indicate if driver supports 6 GHz AFC trigger for External ACS.
  5915. */
  5916. enum qca_wlan_vendor_attr_external_acs_event {
  5917. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
  5918. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
  5919. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
  5920. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
  5921. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
  5922. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
  5923. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
  5924. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
  5925. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
  5926. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
  5927. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
  5928. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
  5929. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
  5930. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
  5931. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
  5932. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
  5933. /* keep last */
  5934. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
  5935. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
  5936. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
  5937. };
  5938. enum qca_iface_type {
  5939. QCA_IFACE_TYPE_STA,
  5940. QCA_IFACE_TYPE_AP,
  5941. QCA_IFACE_TYPE_P2P_CLIENT,
  5942. QCA_IFACE_TYPE_P2P_GO,
  5943. QCA_IFACE_TYPE_IBSS,
  5944. QCA_IFACE_TYPE_TDLS,
  5945. };
  5946. /**
  5947. * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command
  5948. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
  5949. * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
  5950. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value
  5951. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number
  5952. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight
  5953. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency
  5954. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask
  5955. */
  5956. enum qca_wlan_vendor_attr_pcl_config {
  5957. QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
  5958. QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
  5959. QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
  5960. QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
  5961. QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
  5962. };
  5963. enum qca_set_band {
  5964. QCA_SETBAND_AUTO = 0,
  5965. QCA_SETBAND_5G = BIT(0),
  5966. QCA_SETBAND_2G = BIT(1),
  5967. QCA_SETBAND_6G = BIT(2),
  5968. };
  5969. /**
  5970. * enum set_reset_packet_filter - set packet filter control commands
  5971. * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter
  5972. * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter
  5973. * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data
  5974. * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data
  5975. * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter
  5976. * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter
  5977. */
  5978. enum set_reset_packet_filter {
  5979. QCA_WLAN_SET_PACKET_FILTER = 1,
  5980. QCA_WLAN_GET_PACKET_FILTER = 2,
  5981. QCA_WLAN_WRITE_PACKET_FILTER = 3,
  5982. QCA_WLAN_READ_PACKET_FILTER = 4,
  5983. QCA_WLAN_ENABLE_PACKET_FILTER = 5,
  5984. QCA_WLAN_DISABLE_PACKET_FILTER = 6,
  5985. };
  5986. /**
  5987. * enum qca_wlan_vendor_attr_packet_filter - APF control commands
  5988. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid
  5989. * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID
  5990. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version
  5991. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length
  5992. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset
  5993. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions
  5994. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program
  5995. * section in packet filter buffer
  5996. */
  5997. enum qca_wlan_vendor_attr_packet_filter {
  5998. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
  5999. QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER,
  6000. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
  6001. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
  6002. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
  6003. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
  6004. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
  6005. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH,
  6006. /* keep last */
  6007. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
  6008. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
  6009. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
  6010. };
  6011. /**
  6012. * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
  6013. * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
  6014. */
  6015. enum qca_wlan_vendor_attr_wake_stats {
  6016. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
  6017. /* Unsigned 32-bit value indicating the total count of wake event */
  6018. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
  6019. /* Array of individual wake count, each index representing wake reason
  6020. */
  6021. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
  6022. /* Unsigned 32-bit value representing wake count array */
  6023. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
  6024. /* Unsigned 32-bit total wake count value of driver/fw */
  6025. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
  6026. /* Array of wake stats of driver/fw */
  6027. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
  6028. /* Unsigned 32-bit total wake count value of driver/fw */
  6029. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
  6030. /* Unsigned 32-bit total wake count value of packets received */
  6031. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
  6032. /* Unsigned 32-bit wake count value unicast packets received */
  6033. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
  6034. /* Unsigned 32-bit wake count value multicast packets received */
  6035. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
  6036. /* Unsigned 32-bit wake count value broadcast packets received */
  6037. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
  6038. /* Unsigned 32-bit wake count value of ICMP packets */
  6039. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
  6040. /* Unsigned 32-bit wake count value of ICMP6 packets */
  6041. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
  6042. /* Unsigned 32-bit value ICMP6 router advertisement */
  6043. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
  6044. /* Unsigned 32-bit value ICMP6 neighbor advertisement */
  6045. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
  6046. /* Unsigned 32-bit value ICMP6 neighbor solicitation */
  6047. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
  6048. /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
  6049. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
  6050. /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
  6051. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
  6052. /* Unsigned 32-bit wake count value of receive side multicast */
  6053. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
  6054. /* Unsigned 32-bit wake count value of a given RSSI breach */
  6055. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
  6056. /* Unsigned 32-bit wake count value of low RSSI */
  6057. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
  6058. /* Unsigned 32-bit value GSCAN count */
  6059. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
  6060. /* Unsigned 32-bit value PNO complete count */
  6061. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
  6062. /* Unsigned 32-bit value PNO match count */
  6063. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
  6064. /* keep last */
  6065. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
  6066. QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
  6067. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
  6068. };
  6069. /**
  6070. * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
  6071. * configured by userspace to the driver/firmware. The values will be
  6072. * encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL attribute.
  6073. * The driver/firmware takes necessary actions requested by userspace
  6074. * such as throttling wifi tx etc. in order to mitigate high temperature.
  6075. *
  6076. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
  6077. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle tx lightly.
  6078. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle tx moderately.
  6079. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle tx severely.
  6080. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
  6081. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
  6082. */
  6083. enum qca_wlan_vendor_thermal_level {
  6084. QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
  6085. QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
  6086. QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
  6087. QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
  6088. QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
  6089. QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
  6090. };
  6091. /**
  6092. * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
  6093. * cmd value. Used for NL attributes for data used by
  6094. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
  6095. */
  6096. enum qca_wlan_vendor_attr_thermal_cmd {
  6097. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
  6098. /* The value of command, driver will implement different operations
  6099. * according to this value. It uses values defined in
  6100. * enum qca_wlan_vendor_attr_thermal_cmd_type.
  6101. * u32 attribute.
  6102. */
  6103. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
  6104. /* Userspace uses this attribute to configure thermal level to the
  6105. * driver/firmware, or get thermal level from the driver/firmware.
  6106. * Used in request or response, u32 attribute,
  6107. * possible values are defined in enum qca_wlan_vendor_thermal_level.
  6108. */
  6109. QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
  6110. /* Userspace uses this attribute to configure the time in which the
  6111. * driver/firmware should complete applying settings it received from
  6112. * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
  6113. * command type. Used in request, u32 attribute, value is in
  6114. * milliseconds. A value of zero indicates to apply the settings
  6115. * immediately. The driver/firmware can delay applying the configured
  6116. * thermal settings within the time specified in this attribute if
  6117. * there is any critical ongoing operation.
  6118. */
  6119. QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
  6120. /* Nested attribute, driver/firmware uses this attribute to report
  6121. * thermal stats of different thermal levels to userspace when requested
  6122. * using QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
  6123. * type. This attribute contains nested array of records of thermal
  6124. * statistics of multiple levels. The attributes used inside this nested
  6125. * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
  6126. */
  6127. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
  6128. /* keep last */
  6129. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
  6130. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
  6131. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
  6132. };
  6133. /**
  6134. * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
  6135. * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
  6136. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
  6137. * thermal command types sent to driver.
  6138. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
  6139. * get thermal shutdown configuration parameters for display. Parameters
  6140. * responded from driver are defined in
  6141. * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
  6142. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
  6143. * get temperature. Host should respond with a temperature data. It is defined
  6144. * in enum qca_wlan_vendor_attr_thermal_get_temperature.
  6145. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
  6146. * suspend action.
  6147. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
  6148. * resume action.
  6149. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
  6150. * the driver/firmware.
  6151. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
  6152. * thermal level from the driver/firmware. The driver should respond with a
  6153. * thermal level defined in enum qca_wlan_vendor_thermal_level.
  6154. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
  6155. * current thermal stats from the driver/firmware. The driver should respond
  6156. * with stats of all thermal levels encapsulated in attribute
  6157. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
  6158. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
  6159. * the current thermal stats all thermal levels maintained in the
  6160. * driver/firmware and start counting from zero again.
  6161. */
  6162. enum qca_wlan_vendor_attr_thermal_cmd_type {
  6163. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
  6164. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
  6165. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
  6166. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
  6167. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
  6168. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
  6169. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
  6170. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
  6171. };
  6172. /**
  6173. * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
  6174. * to get chip temperature by user.
  6175. * enum values are used for NL attributes for data used by
  6176. * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
  6177. * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
  6178. */
  6179. enum qca_wlan_vendor_attr_thermal_get_temperature {
  6180. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
  6181. /* Temperature value (degree Celsius) from driver.
  6182. * u32 attribute.
  6183. */
  6184. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
  6185. /* keep last */
  6186. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
  6187. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
  6188. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
  6189. };
  6190. /**
  6191. * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
  6192. * report thermal events from driver to user space.
  6193. * enum values are used for NL attributes for data used by
  6194. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
  6195. */
  6196. enum qca_wlan_vendor_attr_thermal_event {
  6197. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
  6198. /* Temperature value (degree Celsius) from driver.
  6199. * u32 attribute.
  6200. */
  6201. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
  6202. /* Indication of resume completion from power save mode.
  6203. * NLA_FLAG attribute.
  6204. */
  6205. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
  6206. /* Thermal level from the driver.
  6207. * u32 attribute. Possible values are defined in
  6208. * enum qca_wlan_vendor_thermal_level.
  6209. */
  6210. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
  6211. /* keep last */
  6212. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
  6213. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
  6214. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
  6215. };
  6216. /**
  6217. * enum qca_vendor_element_id - QCA Vendor Specific element types
  6218. *
  6219. * These values are used to identify QCA Vendor Specific elements. The
  6220. * payload of the element starts with the three octet OUI (OUI_QCA) and
  6221. * is followed by a single octet type which is defined by this enum.
  6222. *
  6223. * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
  6224. * This element can be used to specify preference order for supported
  6225. * channels. The channels in this list are in preference order (the first
  6226. * one has the highest preference) and are described as a pair of
  6227. * (global) Operating Class and Channel Number (each one octet) fields.
  6228. *
  6229. * This extends the standard P2P functionality by providing option to have
  6230. * more than one preferred operating channel. When this element is present,
  6231. * it replaces the preference indicated in the Operating Channel attribute.
  6232. * For supporting other implementations, the Operating Channel attribute is
  6233. * expected to be used with the highest preference channel. Similarly, all
  6234. * the channels included in this Preferred channel list element are
  6235. * expected to be included in the Channel List attribute.
  6236. *
  6237. * This vendor element may be included in GO Negotiation Request, P2P
  6238. * Invitation Request, and Provision Discovery Request frames.
  6239. *
  6240. * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
  6241. * This element can be used for pre-standard publication testing of HE
  6242. * before P802.11ax draft assigns the element ID. The payload of this
  6243. * vendor specific element is defined by the latest P802.11ax draft.
  6244. * Please note that the draft is still work in progress and this element
  6245. * payload is subject to change.
  6246. *
  6247. * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
  6248. * This element can be used for pre-standard publication testing of HE
  6249. * before P802.11ax draft assigns the element ID. The payload of this
  6250. * vendor specific element is defined by the latest P802.11ax draft.
  6251. * Please note that the draft is still work in progress and this element
  6252. * payload is subject to change.
  6253. *
  6254. * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
  6255. * element).
  6256. * This element can be used for pre-standard publication testing of HE
  6257. * before P802.11ax draft assigns the element ID extension. The payload of
  6258. * this vendor specific element is defined by the latest P802.11ax draft
  6259. * (not including the Element ID Extension field). Please note that the
  6260. * draft is still work in progress and this element payload is subject to
  6261. * change.
  6262. *
  6263. * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
  6264. * This element can be used for pre-standard publication testing of HE
  6265. * before P802.11ax draft assigns the element ID extension. The payload of
  6266. * this vendor specific element is defined by the latest P802.11ax draft
  6267. * (not including the Element ID Extension field). Please note that the
  6268. * draft is still work in progress and this element payload is subject to
  6269. * change.
  6270. *
  6271. * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
  6272. * This element can be used for pre-standard publication testing of HE
  6273. * before P802.11ax draft assigns the element ID extension. The payload of
  6274. * this vendor specific element is defined by the latest P802.11ax draft
  6275. * (not including the Element ID Extension field). Please note that the
  6276. * draft is still work in progress and this element payload is subject to
  6277. * change.
  6278. */
  6279. enum qca_vendor_element_id {
  6280. QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
  6281. QCA_VENDOR_ELEM_HE_CAPAB = 1,
  6282. QCA_VENDOR_ELEM_HE_OPER = 2,
  6283. QCA_VENDOR_ELEM_RAPS = 3,
  6284. QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
  6285. QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
  6286. };
  6287. /**
  6288. * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
  6289. * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
  6290. * Specify the TSF command. Possible values are defined in
  6291. * &enum qca_tsf_cmd.
  6292. * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
  6293. * This attribute contains TSF timer value. This attribute is only available
  6294. * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
  6295. * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
  6296. * This attribute contains SOC timer value at TSF capture. This attribute is
  6297. * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
  6298. * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
  6299. * This attribute is used to provide TSF sync interval and only applicable when
  6300. * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
  6301. * driver will use the default value. Time unit is in milliseconds.
  6302. */
  6303. enum qca_vendor_attr_tsf_cmd {
  6304. QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
  6305. QCA_WLAN_VENDOR_ATTR_TSF_CMD,
  6306. QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
  6307. QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
  6308. QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
  6309. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
  6310. QCA_WLAN_VENDOR_ATTR_TSF_MAX =
  6311. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
  6312. };
  6313. /**
  6314. * enum qca_tsf_cmd: TSF driver commands
  6315. * @QCA_TSF_CAPTURE: Initiate TSF Capture
  6316. * @QCA_TSF_GET: Get TSF capture value
  6317. * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
  6318. * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
  6319. * will automatically send TSF report to the host. To query
  6320. * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
  6321. * initiated first.
  6322. * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
  6323. * will not automatically send TSF report to the host. If
  6324. * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
  6325. * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
  6326. * operation needs to be initiated.
  6327. * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
  6328. * fetches TSF and host time mapping from the firmware with interval configured
  6329. * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
  6330. * interval value is not provided the driver will use the default value. The
  6331. * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
  6332. * command.
  6333. * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
  6334. */
  6335. enum qca_tsf_cmd {
  6336. QCA_TSF_CAPTURE,
  6337. QCA_TSF_GET,
  6338. QCA_TSF_SYNC_GET,
  6339. QCA_TSF_AUTO_REPORT_ENABLE,
  6340. QCA_TSF_AUTO_REPORT_DISABLE,
  6341. QCA_TSF_SYNC_START,
  6342. QCA_TSF_SYNC_STOP,
  6343. };
  6344. /**
  6345. * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list
  6346. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value
  6347. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type
  6348. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list
  6349. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight
  6350. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last
  6351. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max
  6352. */
  6353. enum qca_vendor_attr_get_preferred_freq_list {
  6354. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
  6355. /* A 32-unsigned value; the interface type/mode for which the preferred
  6356. * frequency list is requested (see enum qca_iface_type for possible
  6357. * values); used in both south- and north-bound.
  6358. */
  6359. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
  6360. /* An array of 32-unsigned values; values are frequency (MHz); used
  6361. * in north-bound only.
  6362. */
  6363. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
  6364. /* An array of nested values as per enum
  6365. * qca_wlan_vendor_attr_pcl_config attribute.
  6366. * Each element contains frequency (MHz), weight, and flag
  6367. * bit mask indicating how the frequency should be used in P2P
  6368. * negotiation.
  6369. */
  6370. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
  6371. /* keep last */
  6372. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
  6373. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
  6374. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
  6375. };
  6376. /**
  6377. * enum qca_vendor_attr_probable_oper_channel - channel hint
  6378. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value
  6379. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type
  6380. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value
  6381. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last
  6382. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max
  6383. */
  6384. enum qca_vendor_attr_probable_oper_channel {
  6385. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
  6386. /* 32-bit unsigned value; indicates the connection/iface type likely to
  6387. * come on this channel (see enum qca_iface_type).
  6388. */
  6389. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
  6390. /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
  6391. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
  6392. /* keep last */
  6393. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
  6394. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
  6395. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
  6396. };
  6397. /**
  6398. * enum qca_wlan_vendor_attr_gw_param_config - gateway param config
  6399. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid
  6400. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr
  6401. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr
  6402. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr
  6403. */
  6404. enum qca_wlan_vendor_attr_gw_param_config {
  6405. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0,
  6406. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR,
  6407. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR,
  6408. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR,
  6409. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST,
  6410. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX =
  6411. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1,
  6412. };
  6413. /**
  6414. * enum drv_dbs_capability - DBS capability
  6415. * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled
  6416. * @DRV_DBS_CAPABILITY_1X1: 1x1
  6417. * @DRV_DBS_CAPABILITY_2X2: 2x2
  6418. */
  6419. enum drv_dbs_capability {
  6420. DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */
  6421. DRV_DBS_CAPABILITY_1X1,
  6422. DRV_DBS_CAPABILITY_2X2,
  6423. };
  6424. /**
  6425. * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
  6426. *
  6427. * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
  6428. */
  6429. enum qca_vendor_attr_txpower_decr_db {
  6430. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
  6431. /*
  6432. * 8-bit unsigned value to indicate the reduction of TX power in dB for
  6433. * a virtual interface.
  6434. */
  6435. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
  6436. /* keep last */
  6437. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
  6438. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
  6439. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
  6440. };
  6441. /**
  6442. * enum qca_vendor_attr_ota_test - Enable OTA test
  6443. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value
  6444. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test
  6445. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last
  6446. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max
  6447. */
  6448. enum qca_vendor_attr_ota_test {
  6449. QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
  6450. /* 8-bit unsigned value to indicate if OTA test is enabled */
  6451. QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
  6452. /* keep last */
  6453. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
  6454. QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
  6455. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
  6456. };
  6457. /** enum qca_vendor_attr_txpower_scale - vendor sub commands index
  6458. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value
  6459. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
  6460. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value
  6461. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value
  6462. */
  6463. enum qca_vendor_attr_txpower_scale {
  6464. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
  6465. /* 8-bit unsigned value to indicate the scaling of tx power */
  6466. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
  6467. /* keep last */
  6468. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
  6469. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
  6470. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
  6471. };
  6472. /**
  6473. * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index
  6474. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value
  6475. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value
  6476. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value
  6477. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value
  6478. */
  6479. enum qca_vendor_attr_txpower_scale_decr_db {
  6480. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID,
  6481. /* 8-bit unsigned value to indicate the scaling of tx power */
  6482. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB,
  6483. /* keep last */
  6484. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST,
  6485. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX =
  6486. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1
  6487. };
  6488. /**
  6489. * enum dfs_mode - state of DFS mode
  6490. * @DFS_MODE_NONE: DFS mode attribute is none
  6491. * @DFS_MODE_ENABLE: DFS mode is enabled
  6492. * @DFS_MODE_DISABLE: DFS mode is disabled
  6493. * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning
  6494. */
  6495. enum dfs_mode {
  6496. DFS_MODE_NONE,
  6497. DFS_MODE_ENABLE,
  6498. DFS_MODE_DISABLE,
  6499. DFS_MODE_DEPRIORITIZE
  6500. };
  6501. /**
  6502. * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
  6503. * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
  6504. *
  6505. * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
  6506. * DFS mode for ACS operation from enum qca_acs_dfs_mode.
  6507. *
  6508. * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
  6509. * channel number hint for ACS operation, if valid channel is specified then
  6510. * ACS operation gives priority to this channel.
  6511. * Note: If both the driver and user space application supports the 6 GHz band,
  6512. * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
  6513. * should be used.
  6514. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
  6515. * is still used if either of the driver or user space application doesn't
  6516. * support the 6 GHz band.
  6517. *
  6518. * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
  6519. * Channel center frequency (MHz) hint for ACS operation, if a valid center
  6520. * frequency is specified, ACS operation gives priority to this channel.
  6521. */
  6522. enum qca_wlan_vendor_attr_acs_config {
  6523. QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
  6524. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
  6525. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
  6526. QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
  6527. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
  6528. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
  6529. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
  6530. };
  6531. /**
  6532. * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
  6533. */
  6534. enum qca_wlan_vendor_attr_get_hw_capability {
  6535. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
  6536. /*
  6537. * Antenna isolation
  6538. * An attribute used in the response.
  6539. * The content of this attribute is encoded in a byte array. Each byte
  6540. * value is an antenna isolation value. The array length is the number
  6541. * of antennas.
  6542. */
  6543. QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
  6544. /*
  6545. * Request HW capability
  6546. * An attribute used in the request.
  6547. * The content of this attribute is a u32 array for one or more of
  6548. * hardware capabilities (attribute IDs) that are being requested. Each
  6549. * u32 value has a value from this
  6550. * enum qca_wlan_vendor_attr_get_hw_capability
  6551. * identifying which capabilities are requested.
  6552. */
  6553. QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
  6554. /* keep last */
  6555. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
  6556. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
  6557. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
  6558. };
  6559. /**
  6560. * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config -
  6561. * config params for sta roam policy
  6562. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid
  6563. * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels
  6564. * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL:
  6565. * If sta should skip unsafe channels or not in scanning
  6566. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST:
  6567. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute
  6568. */
  6569. enum qca_wlan_vendor_attr_sta_connect_roam_policy_config {
  6570. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0,
  6571. QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE,
  6572. QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL,
  6573. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST,
  6574. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX =
  6575. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1,
  6576. };
  6577. /* Attributes for FTM commands and events */
  6578. /**
  6579. * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
  6580. *
  6581. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
  6582. * enum qca_wlan_vendor_attr_loc_capa_flags.
  6583. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
  6584. * of measurement sessions that can run concurrently.
  6585. * Default is one session (no session concurrency).
  6586. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
  6587. * peers that are supported in running sessions. For example,
  6588. * if the value is 8 and maximum number of sessions is 2, you can
  6589. * have one session with 8 unique peers, or 2 sessions with 4 unique
  6590. * peers each, and so on.
  6591. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
  6592. * of bursts per peer, as an exponent (2^value). Default is 0,
  6593. * meaning no multi-burst support.
  6594. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
  6595. * of measurement exchanges allowed in a single burst.
  6596. * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
  6597. * types. A bit mask (unsigned 32 bit value), each bit corresponds
  6598. * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
  6599. */
  6600. enum qca_wlan_vendor_attr_loc_capa {
  6601. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
  6602. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
  6603. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
  6604. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
  6605. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
  6606. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
  6607. QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
  6608. /* keep last */
  6609. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
  6610. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
  6611. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
  6612. };
  6613. /**
  6614. * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
  6615. *
  6616. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
  6617. * can be configured as an FTM responder (for example, an AP that
  6618. * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  6619. * will be supported if set.
  6620. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
  6621. * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
  6622. * will be supported if set.
  6623. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
  6624. * supports immediate (ASAP) response.
  6625. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
  6626. * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
  6627. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
  6628. * requesting AOA measurements as part of an FTM session.
  6629. */
  6630. enum qca_wlan_vendor_attr_loc_capa_flags {
  6631. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
  6632. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
  6633. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
  6634. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
  6635. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
  6636. };
  6637. /**
  6638. * enum qca_wlan_ani_setting - ANI setting type
  6639. * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
  6640. * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
  6641. */
  6642. enum qca_wlan_ani_setting {
  6643. QCA_WLAN_ANI_SETTING_AUTO = 0,
  6644. QCA_WLAN_ANI_SETTING_FIXED = 1,
  6645. };
  6646. /**
  6647. * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
  6648. *
  6649. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
  6650. * Channel number on which Access Point should restart.
  6651. * Note: If both the driver and user space application supports the 6 GHz band,
  6652. * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
  6653. * should be used.
  6654. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
  6655. * is still used if either of the driver or user space application doesn't
  6656. * support the 6 GHz band.
  6657. *
  6658. * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required
  6659. * Nested attribute to hold list of center frequencies on which AP is
  6660. * expected to operate. This is irrespective of ACS configuration.
  6661. * This list is a priority based one and is looked for before the AP is
  6662. * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC)
  6663. * co-exist in the system.
  6664. *
  6665. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
  6666. * Channel center frequency (MHz) on which the access point should restart.
  6667. */
  6668. enum qca_wlan_vendor_attr_sap_config {
  6669. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
  6670. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
  6671. QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
  6672. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
  6673. /* Keep last */
  6674. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
  6675. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
  6676. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
  6677. };
  6678. /**
  6679. * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
  6680. * a single peer in a measurement session.
  6681. *
  6682. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
  6683. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
  6684. * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
  6685. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
  6686. * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
  6687. * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
  6688. * list of supported attributes.
  6689. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
  6690. * secure measurement.
  6691. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
  6692. * measurement every <value> bursts. If 0 or not specified,
  6693. * AOA measurements will be disabled for this peer.
  6694. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
  6695. * the measurement frames are exchanged. Optional; if not
  6696. * specified, try to locate the peer in the kernel scan
  6697. * results cache and use frequency from there.
  6698. */
  6699. enum qca_wlan_vendor_attr_ftm_peer_info {
  6700. QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
  6701. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
  6702. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
  6703. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
  6704. QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
  6705. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
  6706. QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
  6707. /* keep last */
  6708. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
  6709. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
  6710. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
  6711. };
  6712. /**
  6713. * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
  6714. * per-peer
  6715. *
  6716. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
  6717. * immediate (ASAP) response from peer.
  6718. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
  6719. * LCI report from peer. The LCI report includes the absolute
  6720. * location of the peer in "official" coordinates (similar to GPS).
  6721. * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
  6722. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
  6723. * Location civic report from peer. The LCR includes the location
  6724. * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
  6725. * 11.24.6.7 for more information.
  6726. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
  6727. * request a secure measurement.
  6728. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
  6729. */
  6730. enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
  6731. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
  6732. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
  6733. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
  6734. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
  6735. };
  6736. /**
  6737. * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
  6738. *
  6739. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
  6740. * to perform in a single burst.
  6741. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
  6742. * perform, specified as an exponent (2^value).
  6743. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
  6744. * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
  6745. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
  6746. * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
  6747. * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
  6748. */
  6749. enum qca_wlan_vendor_attr_ftm_meas_param {
  6750. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
  6751. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
  6752. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
  6753. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
  6754. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
  6755. /* keep last */
  6756. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
  6757. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
  6758. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
  6759. };
  6760. /**
  6761. * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
  6762. *
  6763. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
  6764. * peer.
  6765. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
  6766. * request for this peer.
  6767. * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
  6768. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
  6769. * to measurement results for this peer.
  6770. * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
  6771. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
  6772. * request failed and peer requested not to send an additional request
  6773. * for this number of seconds.
  6774. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
  6775. * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  6776. * 9.4.2.22.10.
  6777. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
  6778. * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  6779. * 9.4.2.22.13.
  6780. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
  6781. * overridden some measurement request parameters. See
  6782. * enum qca_wlan_vendor_attr_ftm_meas_param.
  6783. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
  6784. * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
  6785. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
  6786. * results. Each entry is a nested attribute defined
  6787. * by enum qca_wlan_vendor_attr_ftm_meas.
  6788. */
  6789. enum qca_wlan_vendor_attr_ftm_peer_result {
  6790. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
  6791. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
  6792. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
  6793. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
  6794. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
  6795. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
  6796. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
  6797. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
  6798. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
  6799. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
  6800. /* keep last */
  6801. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
  6802. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
  6803. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
  6804. };
  6805. /**
  6806. * enum qca_wlan_vendor_attr_ftm_peer_result_status
  6807. *
  6808. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
  6809. * will be provided. Peer may have overridden some measurement parameters,
  6810. * in which case overridden parameters will be report by
  6811. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
  6812. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
  6813. * of performing the measurement request. No more results will be sent
  6814. * for this peer in this session.
  6815. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
  6816. * failed, and requested not to send an additional request for number
  6817. * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
  6818. * attribute.
  6819. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
  6820. * failed. Request was not sent over the air.
  6821. */
  6822. enum qca_wlan_vendor_attr_ftm_peer_result_status {
  6823. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
  6824. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
  6825. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
  6826. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
  6827. };
  6828. /**
  6829. * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
  6830. * for measurement result, per-peer
  6831. *
  6832. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
  6833. * measurement completed for this peer. No more results will be reported
  6834. * for this peer in this session.
  6835. */
  6836. enum qca_wlan_vendor_attr_ftm_peer_result_flags {
  6837. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
  6838. };
  6839. /**
  6840. * enum qca_vendor_attr_loc_session_status: Session completion status code
  6841. *
  6842. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
  6843. * successfully.
  6844. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
  6845. * by request.
  6846. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
  6847. * was invalid and was not started.
  6848. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
  6849. * and did not complete normally (for example out of resources).
  6850. */
  6851. enum qca_vendor_attr_loc_session_status {
  6852. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
  6853. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
  6854. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
  6855. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
  6856. };
  6857. /**
  6858. * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
  6859. *
  6860. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
  6861. * recorded by responder, in picoseconds.
  6862. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6863. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
  6864. * initiator, in picoseconds.
  6865. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6866. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
  6867. * initiator, in picoseconds.
  6868. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6869. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
  6870. * responder, in picoseconds.
  6871. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6872. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
  6873. * during this measurement exchange. Optional and will be provided if
  6874. * the hardware can measure it.
  6875. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
  6876. * responder. Not always provided.
  6877. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6878. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
  6879. * responder. Not always provided.
  6880. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6881. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
  6882. * initiator. Not always provided.
  6883. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6884. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
  6885. * initiator. Not always provided.
  6886. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6887. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
  6888. */
  6889. enum qca_wlan_vendor_attr_ftm_meas {
  6890. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
  6891. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
  6892. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
  6893. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
  6894. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
  6895. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
  6896. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
  6897. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
  6898. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
  6899. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
  6900. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
  6901. /* keep last */
  6902. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
  6903. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
  6904. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
  6905. };
  6906. /**
  6907. * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index
  6908. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value
  6909. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL:
  6910. * A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
  6911. * of the social channels.
  6912. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period
  6913. * A 32-bit unsigned value; the P2P listen offload period (ms).
  6914. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL:
  6915. * A 32-bit unsigned value; the P2P listen interval duration (ms).
  6916. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT:
  6917. * A 32-bit unsigned value; number of interval times the Firmware needs
  6918. * to run the offloaded P2P listen operation before it stops.
  6919. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types
  6920. * An array of unsigned 8-bit characters; vendor information elements.
  6921. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs
  6922. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW
  6923. * A 32-bit unsigned value; a control flag to indicate whether listen
  6924. * results need to be flushed to wpa_supplicant.
  6925. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason
  6926. * A 8-bit unsigned value; reason code for P2P listen offload stop
  6927. * event.
  6928. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value
  6929. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value
  6930. */
  6931. enum qca_wlan_vendor_attr_p2p_listen_offload {
  6932. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
  6933. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
  6934. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
  6935. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
  6936. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
  6937. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
  6938. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
  6939. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
  6940. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
  6941. /* keep last */
  6942. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
  6943. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
  6944. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
  6945. };
  6946. /**
  6947. * enum qca_wlan_vendor_drv_info - WLAN driver info
  6948. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid
  6949. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info
  6950. * between Firmware & Host.
  6951. */
  6952. enum qca_wlan_vendor_drv_info {
  6953. QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
  6954. QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
  6955. /* keep last */
  6956. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
  6957. QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
  6958. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
  6959. };
  6960. /**
  6961. * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
  6962. *
  6963. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
  6964. * CIR (channel impulse response) path for each antenna.
  6965. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
  6966. * of the strongest CIR path for each antenna.
  6967. */
  6968. enum qca_wlan_vendor_attr_aoa_type {
  6969. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
  6970. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
  6971. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
  6972. };
  6973. /**
  6974. * enum qca_wlan_vendor_attr_encryption_test - Attributes to
  6975. * validate encryption engine
  6976. *
  6977. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
  6978. * This will be included if the request is for decryption; if not included,
  6979. * the request is treated as a request for encryption by default.
  6980. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
  6981. * indicating the key cipher suite. Takes same values as
  6982. * NL80211_ATTR_KEY_CIPHER.
  6983. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
  6984. * Key Id to be used for encryption
  6985. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
  6986. * Key (TK) to be used for encryption/decryption
  6987. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
  6988. * Packet number to be specified for encryption/decryption
  6989. * 6 bytes for TKIP/CCMP/GCMP.
  6990. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
  6991. * representing the 802.11 packet (header + payload + FCS) that
  6992. * needs to be encrypted/decrypted.
  6993. * Encrypted/decrypted response from the driver will also be sent
  6994. * to userspace with the same attribute.
  6995. */
  6996. enum qca_wlan_vendor_attr_encryption_test {
  6997. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
  6998. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
  6999. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
  7000. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
  7001. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
  7002. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
  7003. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
  7004. /* keep last */
  7005. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
  7006. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
  7007. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
  7008. };
  7009. /**
  7010. * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
  7011. * sector for DMG RF sector operations.
  7012. *
  7013. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
  7014. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
  7015. */
  7016. enum qca_wlan_vendor_attr_dmg_rf_sector_type {
  7017. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
  7018. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
  7019. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
  7020. };
  7021. /**
  7022. * enum qca_wlan_vendor_attr_fw_state - State of firmware
  7023. *
  7024. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
  7025. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
  7026. */
  7027. enum qca_wlan_vendor_attr_fw_state {
  7028. QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
  7029. QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
  7030. QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
  7031. };
  7032. /**
  7033. * BRP antenna limit mode
  7034. *
  7035. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
  7036. * antenna limit, BRP will be performed as usual.
  7037. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
  7038. * antennas limit. the hardware may use less antennas than the
  7039. * maximum limit.
  7040. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
  7041. * use exactly the specified number of antennas for BRP.
  7042. */
  7043. enum qca_wlan_vendor_attr_brp_ant_limit_mode {
  7044. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
  7045. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
  7046. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
  7047. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
  7048. };
  7049. /**
  7050. * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
  7051. * DMG RF sector configuration for a single RF module.
  7052. * The values are defined in a compact way which closely matches
  7053. * the way it is stored in HW registers.
  7054. * The configuration provides values for 32 antennas and 8 distribution
  7055. * amplifiers, and together describes the characteristics of the RF
  7056. * sector - such as a beam in some direction with some gain.
  7057. *
  7058. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
  7059. * of RF module for this configuration.
  7060. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
  7061. * amplifier gain index. Unsigned 32 bit number containing
  7062. * bits for all 32 antennas.
  7063. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
  7064. * amplifier gain index. Unsigned 32 bit number containing
  7065. * bits for all 32 antennas.
  7066. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
  7067. * amplifier gain index. Unsigned 32 bit number containing
  7068. * bits for all 32 antennas.
  7069. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
  7070. * for first 16 antennas, 2 bits per antenna.
  7071. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
  7072. * for last 16 antennas, 2 bits per antenna.
  7073. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
  7074. * DTYPE values (3 bits) for each distribution amplifier, followed
  7075. * by X16 switch bits for each distribution amplifier. There are
  7076. * total of 8 distribution amplifiers.
  7077. */
  7078. enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
  7079. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
  7080. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
  7081. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
  7082. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
  7083. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
  7084. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
  7085. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
  7086. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
  7087. /* keep last */
  7088. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
  7089. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
  7090. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
  7091. };
  7092. /**
  7093. * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
  7094. * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver.
  7095. *
  7096. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
  7097. * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
  7098. * represents the different TDLS trigger modes.
  7099. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
  7100. * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
  7101. * of packets shall meet the criteria for implicit TDLS setup.
  7102. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx
  7103. * packets within a duration.
  7104. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate
  7105. * a TDLS setup.
  7106. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
  7107. * a TDLS Discovery to the Peer.
  7108. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
  7109. * discovery attempts to know the TDLS capability of the peer. A peer is
  7110. * marked as TDLS not capable if there is no response for all the attempts.
  7111. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
  7112. * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
  7113. * number of TX / RX frames meet the criteria for TDLS teardown.
  7114. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number
  7115. * (u32) of Tx/Rx packets within a duration
  7116. * CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link
  7117. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
  7118. * corresponding to the RSSI of the peer below which a TDLS
  7119. * setup is triggered.
  7120. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
  7121. * corresponding to the RSSI of the peer above which
  7122. * a TDLS teardown is triggered.
  7123. */
  7124. enum qca_wlan_vendor_attr_tdls_configuration {
  7125. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
  7126. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
  7127. /* Attributes configuring the TDLS Implicit Trigger */
  7128. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
  7129. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
  7130. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
  7131. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
  7132. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
  7133. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
  7134. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
  7135. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
  7136. /* keep last */
  7137. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
  7138. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
  7139. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
  7140. };
  7141. /**
  7142. * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
  7143. * the driver.
  7144. *
  7145. * The following are the different values for
  7146. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
  7147. *
  7148. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to
  7149. * initiate/teardown the TDLS connection to a respective peer comes
  7150. * from the user space. wpa_supplicant provides the commands
  7151. * TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this.
  7152. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
  7153. * setup/teardown to the eligible peer once the configured criteria
  7154. * (such as TX/RX threshold, RSSI) is met. The attributes
  7155. * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
  7156. * the different configuration criteria for the TDLS trigger from the
  7157. * host driver.
  7158. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
  7159. * the TDLS setup / teardown through the implicit mode, only to the
  7160. * configured MAC addresses(wpa_supplicant, with tdls_external_control = 1,
  7161. * configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands).
  7162. * External mode works on top of the implicit mode, thus the host Driver
  7163. * is expected to be configured in TDLS Implicit mode too to operate in
  7164. * External mode. Configuring External mode alone without Implicit
  7165. * mode is invalid.
  7166. *
  7167. * All the above implementations work as expected only when the host driver
  7168. * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP -
  7169. * representing that the TDLS message exchange is not internal to the host
  7170. * driver, but depends on wpa_supplicant to do the message exchange.
  7171. */
  7172. enum qca_wlan_vendor_tdls_trigger_mode {
  7173. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
  7174. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
  7175. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
  7176. };
  7177. /**
  7178. * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
  7179. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
  7180. * that is hard-coded in the Board Data File (BDF).
  7181. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
  7182. * that is hard-coded in the Board Data File (BDF).
  7183. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
  7184. * that is hard-coded in the Board Data File (BDF).
  7185. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
  7186. * that is hard-coded in the Board Data File (BDF).
  7187. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
  7188. * that is hard-coded in the Board Data File (BDF).
  7189. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
  7190. * source of SAR power limits, thereby disabling the SAR power
  7191. * limit feature.
  7192. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
  7193. * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  7194. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
  7195. * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  7196. *
  7197. * This enumerates the valid set of values that may be supplied for
  7198. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
  7199. * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
  7200. * the response to an instance of the
  7201. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  7202. */
  7203. enum qca_vendor_attr_sar_limits_selections {
  7204. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
  7205. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
  7206. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
  7207. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
  7208. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
  7209. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
  7210. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
  7211. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
  7212. };
  7213. /**
  7214. * enum qca_vendor_attr_sar_limits_spec_modulations -
  7215. * SAR limits specification modulation
  7216. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
  7217. * CCK modulation
  7218. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
  7219. * OFDM modulation
  7220. *
  7221. * This enumerates the valid set of values that may be supplied for
  7222. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
  7223. * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
  7224. * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
  7225. * command or in the response to an instance of the
  7226. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  7227. */
  7228. enum qca_vendor_attr_sar_limits_spec_modulations {
  7229. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
  7230. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
  7231. };
  7232. /**
  7233. * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
  7234. *
  7235. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
  7236. * select which SAR power limit table should be used. Valid
  7237. * values are enumerated in enum
  7238. * %qca_vendor_attr_sar_limits_selections. The existing SAR
  7239. * power limit selection is unchanged if this attribute is not
  7240. * present.
  7241. *
  7242. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
  7243. * which specifies the number of SAR power limit specifications
  7244. * which will follow.
  7245. *
  7246. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
  7247. * limit specifications. The number of specifications is
  7248. * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
  7249. * specification contains a set of
  7250. * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
  7251. * specification is uniquely identified by the attributes
  7252. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
  7253. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
  7254. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
  7255. * contains as a payload the attribute
  7256. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
  7257. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
  7258. * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
  7259. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
  7260. * needed based upon the value of
  7261. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
  7262. *
  7263. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
  7264. * indicate for which band this specification applies. Valid
  7265. * values are enumerated in enum %nl80211_band (although not all
  7266. * bands may be supported by a given device). If the attribute is
  7267. * not supplied then the specification will be applied to all
  7268. * supported bands.
  7269. *
  7270. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
  7271. * to indicate for which antenna chain this specification
  7272. * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
  7273. * attribute is not supplied then the specification will be
  7274. * applied to all chains.
  7275. *
  7276. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
  7277. * value to indicate for which modulation scheme this
  7278. * specification applies. Valid values are enumerated in enum
  7279. * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
  7280. * is not supplied then the specification will be applied to all
  7281. * modulation schemes.
  7282. *
  7283. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
  7284. * value to specify the actual power limit value in units of 0.5
  7285. * dBm (i.e., a value of 11 represents 5.5 dBm).
  7286. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  7287. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
  7288. *
  7289. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
  7290. * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
  7291. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  7292. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
  7293. *
  7294. * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
  7295. * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
  7296. */
  7297. enum qca_vendor_attr_sar_limits {
  7298. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
  7299. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
  7300. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
  7301. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
  7302. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
  7303. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
  7304. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
  7305. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
  7306. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
  7307. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
  7308. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
  7309. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
  7310. };
  7311. /**
  7312. * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
  7313. * offload which is an extension for LL_STATS.
  7314. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
  7315. * If MAC counters do not exceed the threshold, FW will report monitored
  7316. * link layer counters periodically as this setting. The first report is
  7317. * always triggered by this timer.
  7318. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
  7319. * For each MAC layer counter, FW holds two copies. One is the current value.
  7320. * The other is the last report. Once a current counter's increment is larger
  7321. * than the threshold, FW will indicate that counter to host even if the
  7322. * monitoring timer does not expire.
  7323. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
  7324. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
  7325. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
  7326. * failure code.
  7327. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
  7328. * 1: TX packet discarded
  7329. * 2: No ACK
  7330. * 3: Postpone
  7331. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
  7332. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
  7333. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
  7334. * Threshold for all monitored parameters. If per counter dedicated threshold
  7335. * is not enabled, this threshold will take effect.
  7336. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
  7337. * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
  7338. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
  7339. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
  7340. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
  7341. * Bit0: TX counter unit in MSDU
  7342. * Bit1: TX counter unit in MPDU
  7343. * Bit2: TX counter unit in PPDU
  7344. * Bit3: TX counter unit in byte
  7345. * Bit4: Dropped MSDUs
  7346. * Bit5: Dropped Bytes
  7347. * Bit6: MPDU retry counter
  7348. * Bit7: MPDU failure counter
  7349. * Bit8: PPDU failure counter
  7350. * Bit9: MPDU aggregation counter
  7351. * Bit10: MCS counter for ACKed MPDUs
  7352. * Bit11: MCS counter for Failed MPDUs
  7353. * Bit12: TX Delay counter
  7354. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
  7355. * Bit0: MAC RX counter unit in MPDU
  7356. * Bit1: MAC RX counter unit in byte
  7357. * Bit2: PHY RX counter unit in PPDU
  7358. * Bit3: PHY RX counter unit in byte
  7359. * Bit4: Disorder counter
  7360. * Bit5: Retry counter
  7361. * Bit6: Duplication counter
  7362. * Bit7: Discard counter
  7363. * Bit8: MPDU aggregation size counter
  7364. * Bit9: MCS counter
  7365. * Bit10: Peer STA power state change (wake to sleep) counter
  7366. * Bit11: Peer STA power save counter, total time in PS mode
  7367. * Bit12: Probe request counter
  7368. * Bit13: Other management frames counter
  7369. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
  7370. * Bit0: Idle time
  7371. * Bit1: TX time
  7372. * Bit2: time RX in current bss
  7373. * Bit3: Out of current bss time
  7374. * Bit4: Wireless medium busy time
  7375. * Bit5: RX in bad condition time
  7376. * Bit6: TX in bad condition time
  7377. * Bit7: time wlan card not available
  7378. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
  7379. * Bit0: Per channel SNR counter
  7380. * Bit1: Per channel noise floor counter
  7381. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
  7382. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
  7383. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
  7384. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
  7385. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
  7386. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
  7387. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
  7388. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
  7389. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
  7390. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
  7391. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
  7392. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
  7393. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
  7394. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
  7395. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
  7396. * aggregation stats buffer length
  7397. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
  7398. * buffer for ACKed MPDUs.
  7399. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
  7400. * buffer for failed MPDUs.
  7401. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
  7402. * length of delay stats array.
  7403. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
  7404. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
  7405. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
  7406. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
  7407. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
  7408. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
  7409. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
  7410. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
  7411. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
  7412. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
  7413. * flagged as retransmissions
  7414. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
  7415. * flagged as duplicated
  7416. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
  7417. * packets discarded
  7418. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
  7419. * stats buffer.
  7420. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
  7421. * stats buffer.
  7422. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
  7423. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
  7424. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
  7425. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
  7426. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
  7427. * requests received
  7428. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
  7429. * frames received
  7430. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
  7431. * there is no TX, nor RX, nor interference.
  7432. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
  7433. * transmitting packets.
  7434. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
  7435. * for receiving.
  7436. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
  7437. * interference detected.
  7438. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
  7439. * receiving packets with errors.
  7440. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
  7441. * TX no-ACK.
  7442. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
  7443. * the chip is unable to work in normal conditions.
  7444. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
  7445. * receiving packets in current BSS.
  7446. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
  7447. * receiving packets not in current BSS.
  7448. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
  7449. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
  7450. * This is a container for per antenna signal stats.
  7451. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
  7452. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
  7453. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
  7454. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
  7455. */
  7456. enum qca_wlan_vendor_attr_ll_stats_ext {
  7457. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
  7458. /* Attributes for configurations */
  7459. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
  7460. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
  7461. /* Peer STA power state change */
  7462. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
  7463. /* TX failure event */
  7464. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
  7465. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
  7466. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
  7467. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
  7468. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
  7469. /* MAC counters */
  7470. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
  7471. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
  7472. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
  7473. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
  7474. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
  7475. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
  7476. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
  7477. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
  7478. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
  7479. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
  7480. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
  7481. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
  7482. /* Sub-attributes for PEER_AC_TX */
  7483. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
  7484. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
  7485. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
  7486. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
  7487. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
  7488. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
  7489. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
  7490. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
  7491. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
  7492. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
  7493. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
  7494. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
  7495. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
  7496. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
  7497. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
  7498. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
  7499. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
  7500. /* Sub-attributes for PEER_AC_RX */
  7501. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
  7502. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
  7503. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
  7504. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
  7505. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
  7506. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
  7507. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
  7508. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
  7509. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
  7510. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
  7511. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
  7512. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
  7513. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
  7514. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
  7515. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
  7516. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
  7517. /* Sub-attributes for CCA_BSS */
  7518. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
  7519. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
  7520. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
  7521. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
  7522. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
  7523. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
  7524. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
  7525. /* sub-attribute for BSS_RX_TIME */
  7526. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
  7527. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
  7528. /* Sub-attributes for PEER_SIGNAL */
  7529. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
  7530. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
  7531. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
  7532. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
  7533. /* Sub-attributes for IFACE_BSS */
  7534. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
  7535. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
  7536. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
  7537. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
  7538. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
  7539. };
  7540. /**
  7541. * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
  7542. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
  7543. * in priority order as decided after ACS operation in userspace.
  7544. *
  7545. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
  7546. * One of reason code from enum qca_wlan_vendor_acs_select_reason.
  7547. *
  7548. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
  7549. * Array of nested values for each channel with following attributes:
  7550. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  7551. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  7552. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  7553. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  7554. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7555. * Note: If both the driver and user-space application supports the 6 GHz band,
  7556. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
  7557. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
  7558. * To maintain backward compatibility,
  7559. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
  7560. * is still used if either of the driver or user space application doesn't
  7561. * support the 6 GHz band.
  7562. *
  7563. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
  7564. * Primary channel number
  7565. * Note: If both the driver and user-space application supports the 6 GHz band,
  7566. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
  7567. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
  7568. * To maintain backward compatibility,
  7569. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
  7570. * is still used if either of the driver or user space application doesn't
  7571. * support the 6 GHz band.
  7572. *
  7573. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
  7574. * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
  7575. * Note: If both the driver and user-space application supports the 6 GHz band,
  7576. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
  7577. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
  7578. * To maintain backward compatibility,
  7579. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
  7580. * is still used if either of the driver or user space application
  7581. * doesn't support the 6 GHz band.
  7582. *
  7583. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
  7584. * VHT seg0 channel number
  7585. * Note: If both the driver and user-space application supports the 6 GHz band,
  7586. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
  7587. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
  7588. * To maintain backward compatibility,
  7589. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
  7590. * is still used if either of the driver or user space application
  7591. * doesn't support the 6 GHz band.
  7592. *
  7593. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
  7594. * VHT seg1 channel number
  7595. * Note: If both the driver and user-space application supports the 6 GHz band,
  7596. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
  7597. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
  7598. * To maintain backward compatibility,
  7599. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
  7600. * is still used if either of the driver or user space application
  7601. * doesn't support the 6 GHz band.
  7602. *
  7603. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
  7604. * Takes one of enum nl80211_chan_width values.
  7605. *
  7606. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
  7607. * Array of nested values for each channel with following attributes:
  7608. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
  7609. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
  7610. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
  7611. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
  7612. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7613. * Note: If user-space application has no support of the 6 GHz band, this
  7614. * attribute is optional.
  7615. *
  7616. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
  7617. * Primary channel frequency in MHz
  7618. * Note: If user-space application has no support of the 6 GHz band, this
  7619. * attribute is optional.
  7620. *
  7621. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
  7622. * Secondary channel frequency in MHz used for HT 40 MHz channels.
  7623. * Note: If user-space application has no support of the 6 GHz band, this
  7624. * attribute is optional.
  7625. *
  7626. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
  7627. * VHT seg0 channel frequency in MHz
  7628. * Note: If user-space application has no support of the 6GHz band, this
  7629. * attribute is optional.
  7630. *
  7631. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
  7632. * VHT seg1 channel frequency in MHz
  7633. * Note: If user-space application has no support of the 6 GHz band, this
  7634. * attribute is optional.
  7635. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16)
  7636. * Puncture Bitmap for selected primary channel. Optional if no support
  7637. * for EHT (IEEE 802.11be). Encoding for this attribute follows the
  7638. * convention used in the Disabled Subchannel Bitmap field of the EHT Operation
  7639. * element.
  7640. */
  7641. enum qca_wlan_vendor_attr_external_acs_channels {
  7642. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
  7643. /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
  7644. */
  7645. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
  7646. /* Array of nested values for each channel with following attributes:
  7647. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
  7648. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  7649. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  7650. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  7651. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  7652. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7653. */
  7654. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
  7655. /* This (u8) will hold values of one of enum nl80211_bands */
  7656. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
  7657. /* Primary channel (u8) */
  7658. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
  7659. /* Secondary channel (u8) used for HT 40 MHz channels */
  7660. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
  7661. /* VHT seg0 channel (u8) */
  7662. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
  7663. /* VHT seg1 channel (u8) */
  7664. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
  7665. /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
  7666. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
  7667. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
  7668. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
  7669. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
  7670. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
  7671. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
  7672. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14,
  7673. /* keep last */
  7674. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
  7675. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
  7676. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
  7677. };
  7678. /**
  7679. * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
  7680. * the ACS has to be triggered. These values are used by
  7681. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
  7682. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
  7683. */
  7684. enum qca_wlan_vendor_acs_select_reason {
  7685. /* Represents the reason that the ACS triggered during the AP start */
  7686. QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
  7687. /* Represents the reason that DFS found with the current channel */
  7688. QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
  7689. /* Represents the reason that LTE co-exist in the current band. */
  7690. QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
  7691. /* Represents the reason that generic, uncategorized interference has
  7692. * been found in the current channel.
  7693. */
  7694. QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
  7695. /* Represents the reason that excessive 802.11 interference has been
  7696. * found in the current channel.
  7697. */
  7698. QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
  7699. /* Represents the reason that generic Continuous Wave (CW) interference
  7700. * has been found in the current channel.
  7701. */
  7702. QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
  7703. /* Represents the reason that Microwave Oven (MWO) interference has been
  7704. * found in the current channel.
  7705. */
  7706. QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
  7707. /* Represents the reason that generic Frequency-Hopping Spread Spectrum
  7708. * (FHSS) interference has been found in the current channel. This may
  7709. * include 802.11 waveforms.
  7710. */
  7711. QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
  7712. /* Represents the reason that non-802.11 generic Frequency-Hopping
  7713. * Spread Spectrum (FHSS) interference has been found in the current
  7714. * channel.
  7715. */
  7716. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
  7717. /* Represents the reason that generic Wideband (WB) interference has
  7718. * been found in the current channel. This may include 802.11 waveforms.
  7719. */
  7720. QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
  7721. /* Represents the reason that non-802.11 generic Wideband (WB)
  7722. * interference has been found in the current channel.
  7723. */
  7724. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
  7725. /* Represents the reason that Jammer interference has been found in the
  7726. * current channel.
  7727. */
  7728. QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
  7729. /* Represents the reason that ACS triggered by AFC */
  7730. QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
  7731. };
  7732. /**
  7733. * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
  7734. *
  7735. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
  7736. * value to specify the gpio command, please refer to enum qca_gpio_cmd_type
  7737. * to get the available value that this item can use.
  7738. *
  7739. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
  7740. * value to specify the gpio number.
  7741. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7742. * %QCA_WLAN_VENDOR_GPIO_CONFIG or %.QCA_WLAN_VENDOR_GPIO_OUTPUT.
  7743. *
  7744. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
  7745. * value to specify the gpio output level, please refer to enum qca_gpio_value
  7746. * to get the available value that this item can use.
  7747. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7748. * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
  7749. *
  7750. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
  7751. * value to specify the gpio pull type, please refer to enum qca_gpio_pull_type
  7752. * to get the available value that this item can use.
  7753. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7754. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7755. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7756. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7757. * attribute is present.
  7758. *
  7759. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
  7760. * value to specify the gpio interrupt mode, please refer to enum
  7761. * qca_gpio_interrupt_mode to get the available value that this item can use.
  7762. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7763. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7764. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7765. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7766. * attribute is present.
  7767. *
  7768. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
  7769. * value to specify the gpio direction, please refer to enum qca_gpio_direction
  7770. * to get the available value that this item can use.
  7771. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7772. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7773. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7774. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7775. * attribute is present.
  7776. *
  7777. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
  7778. * Value to specify the mux config. Meaning of a given value is dependent
  7779. * on the target chipset and gpio pin. Must be of the range 0-15.
  7780. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7781. * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
  7782. *
  7783. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
  7784. * Value to specify the drive, Refer to enum qca_gpio_drive.
  7785. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7786. * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
  7787. *
  7788. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
  7789. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7790. * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
  7791. * other parameters for the given GPIO will be obtained from internal
  7792. * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
  7793. * specified to indicate the GPIO pin being configured.
  7794. */
  7795. enum qca_wlan_gpio_attr {
  7796. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
  7797. /* Unsigned 32-bit attribute for GPIO command */
  7798. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
  7799. /* Unsigned 32-bit attribute for GPIO PIN number to configure */
  7800. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
  7801. /* Unsigned 32-bit attribute for GPIO value to configure */
  7802. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
  7803. /* Unsigned 32-bit attribute for GPIO pull type */
  7804. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
  7805. /* Unsigned 32-bit attribute for GPIO interrupt mode */
  7806. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
  7807. /* Unsigned 32-bit attribute for GPIO direction to configure */
  7808. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
  7809. /* Unsigned 32-bit attribute for GPIO mux config */
  7810. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
  7811. /* Unsigned 32-bit attribute for GPIO drive */
  7812. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
  7813. /* Flag attribute for using internal gpio configuration */
  7814. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
  7815. /* keep last */
  7816. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
  7817. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
  7818. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1,
  7819. };
  7820. /**
  7821. * enum gpio_cmd_type - GPIO configuration command type
  7822. * @QCA_WLAN_VENDOR_GPIO_CONFIG: set gpio configuration info
  7823. * @QCA_WLAN_VENDOR_GPIO_OUTPUT: set gpio output level
  7824. */
  7825. enum qca_gpio_cmd_type {
  7826. QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
  7827. QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
  7828. };
  7829. /**
  7830. * enum qca_gpio_pull_type - GPIO pull type
  7831. * @QCA_WLAN_GPIO_PULL_NONE: set gpio pull type to none
  7832. * @QCA_WLAN_GPIO_PULL_UP: set gpio pull up
  7833. * @QCA_WLAN_GPIO_PULL_DOWN: set gpio pull down
  7834. */
  7835. enum qca_gpio_pull_type {
  7836. QCA_WLAN_GPIO_PULL_NONE = 0,
  7837. QCA_WLAN_GPIO_PULL_UP = 1,
  7838. QCA_WLAN_GPIO_PULL_DOWN = 2,
  7839. QCA_WLAN_GPIO_PULL_MAX,
  7840. };
  7841. /**
  7842. * enum qca_gpio_direction - GPIO direction
  7843. * @QCA_WLAN_GPIO_INPUT: set gpio as input mode
  7844. * @QCA_WLAN_GPIO_OUTPUT: set gpio as output mode
  7845. * @QCA_WLAN_GPIO_VALUE_MAX: invalid value
  7846. */
  7847. enum qca_gpio_direction {
  7848. QCA_WLAN_GPIO_INPUT = 0,
  7849. QCA_WLAN_GPIO_OUTPUT = 1,
  7850. QCA_WLAN_GPIO_DIR_MAX,
  7851. };
  7852. /**
  7853. * enum qca_gpio_value - GPIO Value
  7854. * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
  7855. * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
  7856. * @QCA_WLAN_GPIO_LEVEL_MAX: invalid value
  7857. */
  7858. enum qca_gpio_value {
  7859. QCA_WLAN_GPIO_LEVEL_LOW = 0,
  7860. QCA_WLAN_GPIO_LEVEL_HIGH = 1,
  7861. QCA_WLAN_GPIO_LEVEL_MAX,
  7862. };
  7863. /**
  7864. * enum gpio_interrupt_mode - GPIO interrupt mode
  7865. * @QCA_WLAN_GPIO_INTMODE_DISABLE: disable interrupt trigger
  7866. * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: interrupt with gpio rising edge trigger
  7867. * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: interrupt with gpio falling edge trigger
  7868. * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: interrupt with gpio both edge trigger
  7869. * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: interrupt with gpio level low trigger
  7870. * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: interrupt with gpio level high trigger
  7871. * @QCA_WLAN_GPIO_INTMODE_MAX: invalid value
  7872. */
  7873. enum qca_gpio_interrupt_mode {
  7874. QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
  7875. QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
  7876. QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
  7877. QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
  7878. QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
  7879. QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
  7880. QCA_WLAN_GPIO_INTMODE_MAX,
  7881. };
  7882. /**
  7883. * enum gpio_drive - GPIO drive
  7884. * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
  7885. * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
  7886. * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
  7887. * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
  7888. * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
  7889. * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
  7890. * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
  7891. * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
  7892. * @QCA_WLAN_GPIO_DRIVE_MAX: invalid gpio drive
  7893. */
  7894. enum qca_gpio_drive {
  7895. QCA_WLAN_GPIO_DRIVE_2MA = 0,
  7896. QCA_WLAN_GPIO_DRIVE_4MA = 1,
  7897. QCA_WLAN_GPIO_DRIVE_6MA = 2,
  7898. QCA_WLAN_GPIO_DRIVE_8MA = 3,
  7899. QCA_WLAN_GPIO_DRIVE_10MA = 4,
  7900. QCA_WLAN_GPIO_DRIVE_12MA = 5,
  7901. QCA_WLAN_GPIO_DRIVE_14MA = 6,
  7902. QCA_WLAN_GPIO_DRIVE_16MA = 7,
  7903. QCA_WLAN_GPIO_DRIVE_MAX,
  7904. };
  7905. /**
  7906. * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
  7907. * MSDUQ depth threshold per peer per tid in the target
  7908. *
  7909. * Associated Vendor Command:
  7910. * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
  7911. */
  7912. enum qca_wlan_set_qdepth_thresh_attr {
  7913. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
  7914. /* 6-byte MAC address */
  7915. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
  7916. /* Unsigned 32-bit attribute for holding the TID */
  7917. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
  7918. /* Unsigned 32-bit attribute for holding the update mask
  7919. * bit 0 - Update high priority msdu qdepth threshold
  7920. * bit 1 - Update low priority msdu qdepth threshold
  7921. * bit 2 - Update UDP msdu qdepth threshold
  7922. * bit 3 - Update Non UDP msdu qdepth threshold
  7923. * rest of bits are reserved
  7924. */
  7925. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
  7926. /* Unsigned 32-bit attribute for holding the threshold value */
  7927. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
  7928. /* keep last */
  7929. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
  7930. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
  7931. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
  7932. };
  7933. /**
  7934. * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
  7935. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
  7936. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
  7937. * external ACS policies to select the channels w.r.t. the PCL weights.
  7938. * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
  7939. * their PCL weights.)
  7940. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
  7941. * select a channel with non-zero PCL weight.
  7942. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
  7943. * channel with non-zero PCL weight.
  7944. *
  7945. */
  7946. enum qca_wlan_vendor_attr_external_acs_policy {
  7947. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
  7948. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
  7949. };
  7950. /**
  7951. * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
  7952. */
  7953. enum qca_wlan_vendor_attr_spectral_scan {
  7954. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
  7955. /*
  7956. * Number of times the chip enters spectral scan mode before
  7957. * deactivating spectral scans. When set to 0, chip will enter spectral
  7958. * scan mode continuously. u32 attribute.
  7959. */
  7960. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
  7961. /*
  7962. * Spectral scan period. Period increment resolution is 256*Tclk,
  7963. * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
  7964. */
  7965. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
  7966. /* Spectral scan priority. u32 attribute. */
  7967. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
  7968. /* Number of FFT data points to compute. u32 attribute. */
  7969. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
  7970. /*
  7971. * Enable targeted gain change before starting the spectral scan FFT.
  7972. * u32 attribute.
  7973. */
  7974. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
  7975. /* Restart a queued spectral scan. u32 attribute. */
  7976. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
  7977. /*
  7978. * Noise floor reference number for the calculation of bin power.
  7979. * u32 attribute.
  7980. */
  7981. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
  7982. /*
  7983. * Disallow spectral scan triggers after TX/RX packets by setting
  7984. * this delay value to roughly SIFS time period or greater.
  7985. * u32 attribute.
  7986. */
  7987. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
  7988. /*
  7989. * Number of strong bins (inclusive) per sub-channel, below
  7990. * which a signal is declared a narrow band tone. u32 attribute.
  7991. */
  7992. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
  7993. /*
  7994. * Specify the threshold over which a bin is declared strong (for
  7995. * scan bandwidth analysis). u32 attribute.
  7996. */
  7997. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
  7998. /* Spectral scan report mode. u32 attribute. */
  7999. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
  8000. /*
  8001. * RSSI report mode, if the ADC RSSI is below
  8002. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
  8003. * then FFTs will not trigger, but timestamps and summaries get
  8004. * reported. u32 attribute.
  8005. */
  8006. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
  8007. /*
  8008. * ADC RSSI must be greater than or equal to this threshold (signed dB)
  8009. * to ensure spectral scan reporting with normal error code.
  8010. * u32 attribute.
  8011. */
  8012. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
  8013. /*
  8014. * Format of frequency bin magnitude for spectral scan triggered FFTs:
  8015. * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
  8016. * u32 attribute.
  8017. */
  8018. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
  8019. /*
  8020. * Format of FFT report to software for spectral scan triggered FFTs.
  8021. * 0: No FFT report (only spectral scan summary report)
  8022. * 1: 2-dword summary of metrics for each completed FFT + spectral scan
  8023. * report
  8024. * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
  8025. * bins (in-band) per FFT + spectral scan summary report
  8026. * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
  8027. * bins (all) per FFT + spectral scan summary report
  8028. * u32 attribute.
  8029. */
  8030. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
  8031. /*
  8032. * Number of LSBs to shift out in order to scale the FFT bins.
  8033. * u32 attribute.
  8034. */
  8035. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
  8036. /*
  8037. * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
  8038. * in dBm power. u32 attribute.
  8039. */
  8040. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
  8041. /*
  8042. * Per chain enable mask to select input ADC for search FFT.
  8043. * u32 attribute.
  8044. */
  8045. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
  8046. /*
  8047. * An unsigned 64-bit integer provided by host driver to identify the
  8048. * spectral scan request. This attribute is included in the scan
  8049. * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
  8050. * and used as an attribute in
  8051. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
  8052. * specific scan to be stopped.
  8053. */
  8054. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
  8055. /* Skip interval for FFT reports. u32 attribute */
  8056. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
  8057. /* Set to report only one set of FFT results.
  8058. * u32 attribute.
  8059. */
  8060. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
  8061. /* Debug level for spectral module in driver.
  8062. * 0 : Verbosity level 0
  8063. * 1 : Verbosity level 1
  8064. * 2 : Verbosity level 2
  8065. * 3 : Matched filterID display
  8066. * 4 : One time dump of FFT report
  8067. * u32 attribute.
  8068. */
  8069. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
  8070. /* Type of spectral scan request. u32 attribute.
  8071. * It uses values defined in enum
  8072. * qca_wlan_vendor_attr_spectral_scan_request_type.
  8073. */
  8074. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
  8075. /* This specifies the frequency span over which spectral
  8076. * scan would be carried out. Its value depends on the
  8077. * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
  8078. * the relation is as follows.
  8079. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
  8080. * Not applicable. Spectral scan would happen in the
  8081. * operating span.
  8082. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
  8083. * Center frequency (in MHz) of the span of interest or
  8084. * for convenience, center frequency (in MHz) of any channel
  8085. * in the span of interest. For 80+80 MHz agile spectral scan
  8086. * request it represents center frequency (in MHz) of the primary
  8087. * 80 MHz span or for convenience, center frequency (in MHz) of any
  8088. * channel in the primary 80 MHz span. If agile spectral scan is
  8089. * initiated without setting a valid frequency it returns the
  8090. * error code
  8091. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
  8092. * u32 attribute.
  8093. */
  8094. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
  8095. /* Spectral scan mode. u32 attribute.
  8096. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  8097. * If this attribute is not present, it is assumed to be
  8098. * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
  8099. */
  8100. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
  8101. /* Spectral scan error code. u32 attribute.
  8102. * It uses values defined in enum
  8103. * qca_wlan_vendor_spectral_scan_error_code.
  8104. * This attribute is included only in failure scenarios.
  8105. */
  8106. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
  8107. /* 8-bit unsigned value to enable/disable debug of the
  8108. * Spectral DMA ring.
  8109. * 1-enable, 0-disable
  8110. */
  8111. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
  8112. /* 8-bit unsigned value to enable/disable debug of the
  8113. * Spectral DMA buffers.
  8114. * 1-enable, 0-disable
  8115. */
  8116. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
  8117. /* This specifies the frequency span over which spectral scan would be
  8118. * carried out. Its value depends on the value of
  8119. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
  8120. * follows.
  8121. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
  8122. * Not applicable. Spectral scan would happen in the operating span.
  8123. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
  8124. * This attribute is applicable only for agile spectral scan
  8125. * requests in 80+80 MHz mode. It represents center frequency (in
  8126. * MHz) of the secondary 80 MHz span or for convenience, center
  8127. * frequency (in MHz) of any channel in the secondary 80 MHz span.
  8128. * u32 attribute.
  8129. */
  8130. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
  8131. /* This attribute specifies the bandwidth to be used for Spectral scan
  8132. * operation. This is an u8 attribute and uses the values in enum
  8133. * nl80211_chan_width. This is an optional attribute.
  8134. * If this attribute is not populated, the driver should configure the
  8135. * Spectral scan bandwidth to the maximum value supported by the target
  8136. * for the current operating bandwidth.
  8137. */
  8138. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
  8139. /* Spectral FFT recapture flag attribute, to enable/disable FFT
  8140. * recapture. Recapture can only be enabled for Scan period greater
  8141. * than 52us.
  8142. * If this attribute is enabled, re-triggers will be enabled in uCode
  8143. * when AGC gain changes.
  8144. */
  8145. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
  8146. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
  8147. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
  8148. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
  8149. };
  8150. /**
  8151. * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
  8152. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
  8153. */
  8154. enum qca_wlan_vendor_attr_spectral_diag_stats {
  8155. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
  8156. /* Number of spectral TLV signature mismatches.
  8157. * u64 attribute.
  8158. */
  8159. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
  8160. /* Number of spectral phyerror events with insufficient length when
  8161. * parsing for secondary 80 search FFT report. u64 attribute.
  8162. */
  8163. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
  8164. /* Number of spectral phyerror events without secondary 80
  8165. * search FFT report. u64 attribute.
  8166. */
  8167. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
  8168. /* Number of spectral phyerror events with vht operation segment 1 id
  8169. * mismatches in search fft report. u64 attribute.
  8170. */
  8171. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
  8172. /* Number of spectral phyerror events with vht operation segment 2 id
  8173. * mismatches in search fft report. u64 attribute.
  8174. */
  8175. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
  8176. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
  8177. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
  8178. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
  8179. };
  8180. /**
  8181. * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
  8182. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
  8183. */
  8184. enum qca_wlan_vendor_attr_spectral_cap {
  8185. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
  8186. /* Flag attribute to indicate phydiag capability */
  8187. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
  8188. /* Flag attribute to indicate radar detection capability */
  8189. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
  8190. /* Flag attribute to indicate spectral capability */
  8191. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
  8192. /* Flag attribute to indicate advanced spectral capability */
  8193. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
  8194. /* Spectral hardware generation. u32 attribute.
  8195. * It uses values defined in enum
  8196. * qca_wlan_vendor_spectral_scan_cap_hw_gen.
  8197. */
  8198. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
  8199. /* Spectral bin scaling formula ID. u16 attribute.
  8200. * It uses values defined in enum
  8201. * qca_wlan_vendor_spectral_scan_cap_formula_id.
  8202. */
  8203. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
  8204. /* Spectral bin scaling param - low level offset.
  8205. * s16 attribute.
  8206. */
  8207. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
  8208. /* Spectral bin scaling param - high level offset.
  8209. * s16 attribute.
  8210. */
  8211. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
  8212. /* Spectral bin scaling param - RSSI threshold.
  8213. * s16 attribute.
  8214. */
  8215. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
  8216. /* Spectral bin scaling param - default AGC max gain.
  8217. * u8 attribute.
  8218. */
  8219. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
  8220. /* Flag attribute to indicate agile spectral scan capability
  8221. * for 20/40/80 MHz modes.
  8222. */
  8223. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
  8224. /* Flag attribute to indicate agile spectral scan capability
  8225. * for 160 MHz mode.
  8226. */
  8227. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
  8228. /* Flag attribute to indicate agile spectral scan capability
  8229. * for 80+80 MHz mode.
  8230. */
  8231. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
  8232. /* Number of spectral detectors used for scan in 20 MHz.
  8233. * u32 attribute.
  8234. */
  8235. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
  8236. /* Number of spectral detectors used for scan in 40 MHz.
  8237. * u32 attribute.
  8238. */
  8239. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
  8240. /* Number of spectral detectors used for scan in 80 MHz.
  8241. * u32 attribute.
  8242. */
  8243. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
  8244. /* Number of spectral detectors used for scan in 160 MHz.
  8245. * u32 attribute.
  8246. */
  8247. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
  8248. /* Number of spectral detectors used for scan in 80+80 MHz.
  8249. * u32 attribute.
  8250. */
  8251. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
  8252. /* Flag attribute to indicate agile spectral scan capability
  8253. * for 320 MHz mode.
  8254. */
  8255. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
  8256. /* Number of spectral detectors used for scan in 320 MHz.
  8257. * u32 attribute.
  8258. */
  8259. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
  8260. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
  8261. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
  8262. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
  8263. };
  8264. /**
  8265. * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
  8266. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
  8267. */
  8268. enum qca_wlan_vendor_attr_spectral_scan_status {
  8269. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
  8270. /* Flag attribute to indicate whether spectral scan is enabled */
  8271. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
  8272. /* Flag attribute to indicate whether spectral scan is in progress*/
  8273. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
  8274. /* Spectral scan mode. u32 attribute.
  8275. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  8276. * If this attribute is not present, normal mode
  8277. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
  8278. * requested.
  8279. */
  8280. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
  8281. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
  8282. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
  8283. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
  8284. };
  8285. /**
  8286. * enum qca_wlan_vendor_attr_config_latency_level - Level for
  8287. * wlan latency module.
  8288. *
  8289. * There will be various of Wi-Fi functionality like scan/roaming/adaptive
  8290. * power saving which would causing data exchange out of service, this
  8291. * would be a big impact on latency. For latency sensitive applications over
  8292. * Wi-Fi are intolerant to such operations and thus would configure them
  8293. * to meet their respective needs. It is well understood by such applications
  8294. * that altering the default behavior would degrade the Wi-Fi functionality
  8295. * w.r.t the above pointed WLAN operations.
  8296. *
  8297. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
  8298. * Default WLAN operation level which throughput orientated.
  8299. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
  8300. * Use XR level to benefit XR (extended reality) application to achieve
  8301. * latency and power by via constraint scan/roaming/adaptive PS.
  8302. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
  8303. * Use low latency level to benefit application like concurrent
  8304. * downloading or video streaming via constraint scan/adaptive PS.
  8305. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
  8306. * Use ultra low latency level to benefit for gaming/voice
  8307. * application via constraint scan/roaming/adaptive PS.
  8308. */
  8309. enum qca_wlan_vendor_attr_config_latency_level {
  8310. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
  8311. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
  8312. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
  8313. /* legacy name */
  8314. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
  8315. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
  8316. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
  8317. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
  8318. /* keep last */
  8319. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
  8320. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
  8321. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
  8322. };
  8323. /**
  8324. * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
  8325. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
  8326. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
  8327. * spectral scan request types.
  8328. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
  8329. * set the spectral parameters and start scan.
  8330. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
  8331. * only set the spectral parameters.
  8332. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
  8333. * only start the spectral scan.
  8334. */
  8335. enum qca_wlan_vendor_attr_spectral_scan_request_type {
  8336. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
  8337. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
  8338. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
  8339. };
  8340. /**
  8341. * qca_wlan_vendor_spectral_scan_mode: Attribute values for
  8342. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
  8343. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
  8344. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
  8345. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
  8346. * spectral scan modes.
  8347. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
  8348. * spectral scan in the current operating span.
  8349. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
  8350. * spectral scan in the configured agile span.
  8351. */
  8352. enum qca_wlan_vendor_spectral_scan_mode {
  8353. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
  8354. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
  8355. };
  8356. /**
  8357. * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
  8358. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
  8359. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
  8360. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
  8361. * of a parameter is not supported.
  8362. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
  8363. * mode is not supported.
  8364. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
  8365. * has invalid value.
  8366. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
  8367. * is not initialized.
  8368. */
  8369. enum qca_wlan_vendor_spectral_scan_error_code {
  8370. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
  8371. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
  8372. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
  8373. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
  8374. };
  8375. /**
  8376. * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
  8377. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
  8378. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  8379. * spectral hardware generation.
  8380. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
  8381. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
  8382. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
  8383. */
  8384. enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
  8385. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
  8386. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
  8387. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
  8388. };
  8389. /**
  8390. * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
  8391. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
  8392. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  8393. * Spectral bin scaling formula ID.
  8394. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
  8395. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
  8396. * and RSSI threshold based formula.
  8397. */
  8398. enum qca_wlan_vendor_spectral_scan_cap_formula_id {
  8399. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
  8400. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
  8401. };
  8402. /**
  8403. * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
  8404. * RF Operating Parameter (RROP) information is available, and if so, at which
  8405. * point in the application-driver interaction sequence it can be retrieved by
  8406. * the application from the driver. This point may vary by architecture and
  8407. * other factors. This is a u16 value.
  8408. */
  8409. enum qca_wlan_vendor_attr_rropavail_info {
  8410. /* RROP information is unavailable. */
  8411. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
  8412. /* RROP information is available and the application can retrieve the
  8413. * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
  8414. * event from the driver.
  8415. */
  8416. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
  8417. /* RROP information is available only after a vendor specific scan
  8418. * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
  8419. * successfully completed. The application can retrieve the information
  8420. * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
  8421. * the driver.
  8422. */
  8423. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
  8424. };
  8425. /**
  8426. * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
  8427. * Representative RF Operating Parameter (RROP) information. It is sent for the
  8428. * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
  8429. * intended for use by external Auto Channel Selection applications. It provides
  8430. * guidance values for some RF parameters that are used by the system during
  8431. * operation. These values could vary by channel, band, radio, and so on.
  8432. */
  8433. enum qca_wlan_vendor_attr_rrop_info {
  8434. QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
  8435. /* Representative Tx Power List (RTPL) which has an array of nested
  8436. * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
  8437. */
  8438. QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
  8439. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
  8440. QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
  8441. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
  8442. };
  8443. /**
  8444. * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
  8445. * entry instances in the Representative Tx Power List (RTPL). It provides
  8446. * simplified power values intended for helping external Auto channel Selection
  8447. * applications compare potential Tx power performance between channels, other
  8448. * operating conditions remaining identical. These values are not necessarily
  8449. * the actual Tx power values that will be used by the system. They are also not
  8450. * necessarily the max or average values that will be used. Instead, they are
  8451. * relative, summarized keys for algorithmic use computed by the driver or
  8452. * underlying firmware considering a number of vendor specific factors.
  8453. */
  8454. enum qca_wlan_vendor_attr_rtplinst {
  8455. QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
  8456. /* Primary channel number (u8).
  8457. * Note: If both the driver and user space application support the
  8458. * 6 GHz band, this attribute is deprecated and
  8459. * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
  8460. * maintain backward compatibility,
  8461. * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
  8462. * driver or user space application or both do not support the 6 GHz
  8463. * band.
  8464. */
  8465. QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
  8466. /* Representative Tx power in dBm (s32) with emphasis on throughput. */
  8467. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
  8468. /* Representative Tx power in dBm (s32) with emphasis on range. */
  8469. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
  8470. /* Primary channel center frequency (u32) in MHz */
  8471. QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
  8472. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
  8473. QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
  8474. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
  8475. };
  8476. /**
  8477. * enum qca_wlan_vendor_attr_mac - Used by the vendor command
  8478. * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  8479. *
  8480. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an
  8481. * array of nested values as per attributes in
  8482. * enum qca_wlan_vendor_attr_mac_mode_info.
  8483. */
  8484. enum qca_wlan_vendor_attr_mac {
  8485. QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
  8486. QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
  8487. /* keep last */
  8488. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
  8489. QCA_WLAN_VENDOR_ATTR_MAC_MAX =
  8490. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
  8491. };
  8492. /**
  8493. * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
  8494. * WiFi netdev interface on a respective MAC. Used by the attribute
  8495. * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
  8496. *
  8497. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32).
  8498. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of
  8499. * the connected Wi-Fi interface(u32).
  8500. */
  8501. enum qca_wlan_vendor_attr_mac_iface_info {
  8502. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
  8503. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
  8504. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
  8505. /* keep last */
  8506. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
  8507. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
  8508. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
  8509. };
  8510. /**
  8511. * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
  8512. * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
  8513. * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  8514. *
  8515. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the
  8516. * MAC (u32)
  8517. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC
  8518. * at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described
  8519. * in enum nl80211_band.
  8520. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev
  8521. * interfaces associated with this MAC. Represented by enum
  8522. * qca_wlan_vendor_attr_mac_iface_info.
  8523. */
  8524. enum qca_wlan_vendor_attr_mac_info {
  8525. QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
  8526. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
  8527. QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
  8528. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
  8529. /* keep last */
  8530. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
  8531. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
  8532. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
  8533. };
  8534. /**
  8535. * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
  8536. * to get thermal status from driver/firmware.
  8537. * enum values are used for NL attributes encapsulated inside
  8538. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
  8539. *
  8540. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
  8541. * of a thermal level in Celsius. u32 size.
  8542. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
  8543. * of a thermal level in Celsius. u32 size.
  8544. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
  8545. * thermal level in milliseconds. u32 size.
  8546. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
  8547. * of times the temperature crossed into the temperature range defined by the
  8548. * thermal level from both higher and lower directions. u32 size.
  8549. */
  8550. enum qca_wlan_vendor_attr_thermal_stats {
  8551. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
  8552. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
  8553. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
  8554. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
  8555. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
  8556. /* keep last */
  8557. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
  8558. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
  8559. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
  8560. };
  8561. /**
  8562. * enum he_fragmentation_val - HE fragmentation support values
  8563. * Indicates level of dynamic fragmentation that is supported by
  8564. * a STA as a recipient.
  8565. * HE fragmentation values are defined as per 11ax spec and are used in
  8566. * HE capability IE to advertise the support. These values are validated
  8567. * in the driver to check the device capability and advertised in the HE
  8568. * capability element.
  8569. *
  8570. * @HE_FRAG_DISABLE: no support for dynamic fragmentation
  8571. * @HE_FRAG_LEVEL1: support for dynamic fragments that are
  8572. * contained within an MPDU or S-MPDU, no support for dynamic fragments
  8573. * within an A-MPDU that is not an S-MPDU.
  8574. * @HE_FRAG_LEVEL2: support for dynamic fragments that are
  8575. * contained within an MPDU or S-MPDU and support for up to one dynamic
  8576. * fragment for each MSDU, each A-MSDU if supported by the recipient, and
  8577. * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
  8578. * MPDU or S-MPDU.
  8579. * @HE_FRAG_LEVEL3: support for dynamic fragments that are
  8580. * contained within an MPDU or S-MPDU and support for multiple dynamic
  8581. * fragments for each MSDU and for each A-MSDU if supported by the
  8582. * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
  8583. * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
  8584. */
  8585. enum he_fragmentation_val {
  8586. HE_FRAG_DISABLE,
  8587. HE_FRAG_LEVEL1,
  8588. HE_FRAG_LEVEL2,
  8589. HE_FRAG_LEVEL3,
  8590. };
  8591. /**
  8592. * enum he_mcs_config - HE MCS support configuration
  8593. *
  8594. * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
  8595. * These values are used in driver to configure the HE MCS map to advertise
  8596. * Tx/Rx MCS map in HE capability and these values are applied for all the
  8597. * streams supported by the device. To configure MCS for different bandwidths,
  8598. * vendor command needs to be sent using this attribute with appropriate value.
  8599. * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
  8600. * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS
  8601. * for HE_160_MCS0_11 send this command using HE MCS config attribute with
  8602. * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11;
  8603. *
  8604. * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7
  8605. * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9
  8606. * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11
  8607. * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7
  8608. * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9
  8609. * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11
  8610. * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7
  8611. * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9
  8612. * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11
  8613. */
  8614. enum he_mcs_config {
  8615. HE_80_MCS0_7 = 0,
  8616. HE_80_MCS0_9 = 1,
  8617. HE_80_MCS0_11 = 2,
  8618. HE_160_MCS0_7 = 4,
  8619. HE_160_MCS0_9 = 5,
  8620. HE_160_MCS0_11 = 6,
  8621. HE_80p80_MCS0_7 = 8,
  8622. HE_80p80_MCS0_9 = 9,
  8623. HE_80p80_MCS0_11 = 10,
  8624. };
  8625. /**
  8626. * enum qca_wlan_ba_session_config - BA session configuration
  8627. *
  8628. * Indicates the configuration values for BA session configuration attribute.
  8629. *
  8630. * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
  8631. * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
  8632. */
  8633. enum qca_wlan_ba_session_config {
  8634. QCA_WLAN_ADD_BA = 1,
  8635. QCA_WLAN_DELETE_BA = 2,
  8636. };
  8637. /**
  8638. * enum qca_wlan_ac_type - access category type
  8639. *
  8640. * Indicates the access category type value.
  8641. *
  8642. * @QCA_WLAN_AC_BE: BE access category
  8643. * @QCA_WLAN_AC_BK: BK access category
  8644. * @QCA_WLAN_AC_VI: VI access category
  8645. * @QCA_WLAN_AC_VO: VO access category
  8646. * @QCA_WLAN_AC_ALL: All ACs
  8647. */
  8648. enum qca_wlan_ac_type {
  8649. QCA_WLAN_AC_BE = 0,
  8650. QCA_WLAN_AC_BK = 1,
  8651. QCA_WLAN_AC_VI = 2,
  8652. QCA_WLAN_AC_VO = 3,
  8653. QCA_WLAN_AC_ALL = 4,
  8654. };
  8655. /**
  8656. * enum qca_wlan_he_ltf_cfg - HE LTF configuration
  8657. *
  8658. * Indicates the HE LTF configuration value.
  8659. *
  8660. * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to
  8661. * the mandatory HE-LTF based on the GI setting
  8662. * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
  8663. * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
  8664. * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
  8665. */
  8666. enum qca_wlan_he_ltf_cfg {
  8667. QCA_WLAN_HE_LTF_AUTO = 0,
  8668. QCA_WLAN_HE_LTF_1X = 1,
  8669. QCA_WLAN_HE_LTF_2X = 2,
  8670. QCA_WLAN_HE_LTF_4X = 3,
  8671. };
  8672. /**
  8673. * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
  8674. *
  8675. * Indicates the HE trigger frame MAC padding duration value.
  8676. *
  8677. * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
  8678. * process the trigger frame.
  8679. * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
  8680. * trigger frame.
  8681. * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
  8682. * trigger frame.
  8683. */
  8684. enum qca_wlan_he_mac_padding_dur {
  8685. QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
  8686. QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
  8687. QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
  8688. };
  8689. /**
  8690. * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
  8691. *
  8692. * Indicates the HE Operating mode control channel width setting value.
  8693. *
  8694. * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
  8695. * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
  8696. * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
  8697. * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
  8698. */
  8699. enum qca_wlan_he_om_ctrl_ch_bw {
  8700. QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
  8701. QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
  8702. QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
  8703. QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
  8704. };
  8705. /**
  8706. * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
  8707. *
  8708. * Indicates the frame types to use for keep alive data.
  8709. *
  8710. * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
  8711. * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
  8712. * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
  8713. */
  8714. enum qca_wlan_keep_alive_data_type {
  8715. QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
  8716. QCA_WLAN_KEEP_ALIVE_DATA = 1,
  8717. QCA_WLAN_KEEP_ALIVE_MGMT = 2,
  8718. };
  8719. /**
  8720. * enum eht_mcs_config - EHT MCS support configuration
  8721. *
  8722. * Configures the EHT Tx/Rx MCS map in EHT Capability element.
  8723. * These values are used in the driver to configure the EHT MCS map to advertise
  8724. * Tx/Rx MCS map in EHT capability and these values are applied for all the
  8725. * streams supported by the device.
  8726. * @EHT_MCS0_7: EHT MCS 0 to 7 support
  8727. * @EHT_MCS0_9: EHT MCS 0 to 9 support
  8728. * @EHT_MCS0_11: EHT MCS 0 to 11 support
  8729. * @EHT_MCS0_13: EHT MCS 0 to 13 support
  8730. */
  8731. enum eht_mcs_config {
  8732. EHT_MCS0_7 = 0,
  8733. EHT_MCS0_9 = 1,
  8734. EHT_MCS0_11 = 2,
  8735. EHT_MCS0_13 = 3,
  8736. };
  8737. /**
  8738. * enum qca_wlan_eht_mlo_mode: EHT MLO mode configuration.
  8739. * @QCA_WLAN_EHT_MODE_INVALID: Invalid.
  8740. * @QCA_WLAN_EHT_MLSR: Multi-link single radio mode
  8741. * @QCA_WLAN_EHT_EMLSR: Enhanced multi-link single radio mode.
  8742. * @QCA_WLAN_EHT_NON_STR_MLMR: Non simultaneous transmit and receive
  8743. * multi-link multi radio mode.
  8744. * @QCA_WLAN_EHT_STR_MLMR: Simultaneous transmit and receive
  8745. * multi-link multi radio mode.
  8746. */
  8747. enum qca_wlan_eht_mlo_mode {
  8748. QCA_WLAN_EHT_MODE_INVALID = 0,
  8749. QCA_WLAN_EHT_MLSR = 1,
  8750. QCA_WLAN_EHT_EMLSR = 2,
  8751. QCA_WLAN_EHT_NON_STR_MLMR = 3,
  8752. QCA_WLAN_EHT_STR_MLMR = 4,
  8753. };
  8754. /**
  8755. * enum qca_wlan_emlsr_mode: Enhanced Multi-link Single Radio mode configuration
  8756. * @QCA_WLAN_EMLSR_MODE_ENTER: Enter EMLSR mode
  8757. * @QCA_WLAN_EMLSR_MODE_EXIT: Exit EMLSR mode
  8758. */
  8759. enum qca_wlan_emlsr_mode {
  8760. QCA_WLAN_EMLSR_MODE_ENTER = 0,
  8761. QCA_WLAN_EMLSR_MODE_EXIT = 1,
  8762. };
  8763. /**
  8764. * enum qca_wlan_vendor_attr_omi_tx: Represents attributes for HE and
  8765. * EHT operating mode control transmit request. These attributes are
  8766. * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX and
  8767. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  8768. *
  8769. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
  8770. * indicates the maximum number of spatial streams, NSS, that the STA
  8771. * supports in reception for PPDU bandwidths less than or equal to 80 MHz
  8772. * and is set to NSS - 1.
  8773. *
  8774. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
  8775. * indicates the operating channel width supported by the STA for both
  8776. * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
  8777. *
  8778. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
  8779. * indicates the all trigger based UL MU operations by the STA.
  8780. * 0 - UL MU operations are enabled by the STA.
  8781. * 1 - All triggered UL MU transmissions are suspended by the STA.
  8782. *
  8783. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
  8784. * indicates the maximum number of space-time streams, NSTS, that
  8785. * the STA supports in transmission and is set to NSTS - 1.
  8786. *
  8787. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
  8788. * combined with the UL MU Disable subfield and the recipient's setting
  8789. * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
  8790. * capabilities to determine which HE TB PPDUs are possible by the
  8791. * STA to transmit.
  8792. * 0 - UL MU data operations are enabled by the STA.
  8793. * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
  8794. * bit is not set, else UL MU Tx is suspended.
  8795. *
  8796. * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN: 8-bit unsigned value in the EHT OM
  8797. * Control subfield combined with the Rx NSS subfield in the OM Control subfield
  8798. * indicates NSS - 1, where NSS is the maximum number of spatial streams that
  8799. * STA supports in reception for PPDU bandwidths less than or equal to 80 MHz.
  8800. *
  8801. * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN: 8-bit unsigned value indicates
  8802. * 320 MHz operating channel width supported by the EHT STA for both reception
  8803. * and transmission.
  8804. *
  8805. * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN: 8-bit unsigned value in the EHT OM
  8806. * Control subfield combined with the Tx NSTS subfield in OM Control subfield
  8807. * indicates NSTS - 1, where NSTS is the maximum number of space-time streams
  8808. * that the STA supports in transmission for PPDU bandwidths less than or equal
  8809. * to 80 MHz.
  8810. */
  8811. enum qca_wlan_vendor_attr_omi_tx {
  8812. QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
  8813. QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
  8814. QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
  8815. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
  8816. QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
  8817. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
  8818. QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN = 6,
  8819. QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN = 7,
  8820. QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN = 8,
  8821. /* keep last */
  8822. QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST,
  8823. QCA_WLAN_VENDOR_ATTR_OMI_MAX =
  8824. QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST - 1,
  8825. };
  8826. /* deprecated legacy names */
  8827. #define QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX \
  8828. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX
  8829. #define qca_wlan_vendor_attr_he_omi_tx \
  8830. qca_wlan_vendor_attr_omi_tx
  8831. #define QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST \
  8832. QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST
  8833. #define QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX \
  8834. QCA_WLAN_VENDOR_ATTR_OMI_MAX
  8835. /**
  8836. * enum qca_wlan_vendor_phy_mode - Different PHY modes
  8837. * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
  8838. *
  8839. * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
  8840. * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
  8841. * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
  8842. * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
  8843. * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
  8844. * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
  8845. * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
  8846. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
  8847. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
  8848. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
  8849. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
  8850. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
  8851. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
  8852. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
  8853. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
  8854. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
  8855. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
  8856. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
  8857. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
  8858. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
  8859. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
  8860. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
  8861. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
  8862. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
  8863. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
  8864. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
  8865. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
  8866. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
  8867. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
  8868. */
  8869. enum qca_wlan_vendor_phy_mode {
  8870. QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
  8871. QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
  8872. QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
  8873. QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
  8874. QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
  8875. QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
  8876. QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
  8877. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
  8878. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
  8879. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
  8880. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
  8881. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
  8882. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
  8883. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
  8884. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
  8885. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
  8886. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
  8887. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
  8888. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
  8889. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
  8890. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
  8891. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
  8892. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
  8893. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
  8894. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
  8895. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
  8896. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
  8897. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
  8898. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
  8899. };
  8900. /* Attributes for data used by
  8901. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
  8902. */
  8903. enum qca_wlan_vendor_attr_wifi_test_config {
  8904. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
  8905. /* 8-bit unsigned value to configure the driver to enable/disable
  8906. * WMM feature. This attribute is used to configure testbed device.
  8907. * 1-enable, 0-disable
  8908. */
  8909. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
  8910. /* 8-bit unsigned value to configure the driver to accept/reject
  8911. * the addba request from peer. This attribute is used to configure
  8912. * the testbed device.
  8913. * 1-accept addba, 0-reject addba
  8914. */
  8915. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
  8916. /* 8-bit unsigned value to configure the driver to send or not to
  8917. * send the addba request to peer.
  8918. * This attribute is used to configure the testbed device.
  8919. * 1-send addba, 0-do not send addba
  8920. */
  8921. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
  8922. /* 8-bit unsigned value to indicate the HE fragmentation support.
  8923. * Uses enum he_fragmentation_val values.
  8924. * This attribute is used to configure the testbed device to
  8925. * allow the advertised hardware capabilities to be downgraded
  8926. * for testing purposes.
  8927. */
  8928. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
  8929. /* 8-bit unsigned value to indicate the HE MCS support.
  8930. * Uses enum he_mcs_config values.
  8931. * This attribute is used to configure the testbed device to
  8932. * allow the advertised hardware capabilities to be downgraded
  8933. * for testing purposes.
  8934. */
  8935. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
  8936. /* 8-bit unsigned value to configure the driver to allow or not to
  8937. * allow the connection with WEP/TKIP in HT/VHT/HE modes.
  8938. * This attribute is used to configure the testbed device.
  8939. * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip
  8940. */
  8941. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
  8942. /* 8-bit unsigned value to configure the driver to add a
  8943. * new BA session or delete the existing BA session for
  8944. * given TID. ADDBA command uses the buffer size and tid
  8945. * configuration if user specifies the values else default
  8946. * value for buffer size is used for all tids if the tid
  8947. * also not specified. For DEL_BA command TID value is
  8948. * required to process the command.
  8949. * Uses enum qca_wlan_ba_session_config values.
  8950. * This attribute is used to configure the testbed device.
  8951. */
  8952. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
  8953. /* 16-bit unsigned value to configure the buffer size in addba
  8954. * request and response frames.
  8955. * This attribute is used to configure the testbed device.
  8956. * The range of the value is 0 to 256.
  8957. */
  8958. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
  8959. /* 8-bit unsigned value to configure the buffer size in addba
  8960. * request and response frames.
  8961. * This attribute is used to configure the testbed device.
  8962. */
  8963. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
  8964. /* 8-bit unsigned value to configure the no ack policy.
  8965. * To configure no ack policy, access category value
  8966. * is required to process the command.
  8967. * This attribute is used to configure the testbed device.
  8968. * 1 - enable no ack, 0 - disable no ack
  8969. */
  8970. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
  8971. /* 8-bit unsigned value to configure the AC for no ack policy
  8972. * This attribute is used to configure the testbed device.
  8973. * uses the enum qca_wlan_ac_type values
  8974. */
  8975. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
  8976. /* 8-bit unsigned value to configure the HE LTF
  8977. * This attribute is used to configure the testbed device.
  8978. * Uses the enum qca_wlan_he_ltf_cfg values.
  8979. */
  8980. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
  8981. /* 8-bit unsigned value to configure the tx beamformee.
  8982. * This attribute is used to configure the testbed device.
  8983. * 1 - enable, 0 - disable.
  8984. */
  8985. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
  8986. /* 8-bit unsigned value to configure the tx beamformee number of
  8987. * space-time streams.
  8988. * This attribute is used to configure the testbed device.
  8989. * The range of the value is 0 to 8
  8990. */
  8991. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
  8992. /* 8-bit unsigned value to configure the MU EDCA params for given AC
  8993. * This attribute is used to configure the testbed device.
  8994. * Uses the enum qca_wlan_ac_type values.
  8995. */
  8996. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
  8997. /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
  8998. * To configure MU EDCA AIFSN value, MU EDCA access category value
  8999. * is required to process the command.
  9000. * This attribute is used to configure the testbed device.
  9001. */
  9002. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
  9003. /* 8-bit unsigned value to configure the MU EDCA ECW min value for
  9004. * given AC.
  9005. * To configure MU EDCA ECW min value, MU EDCA access category value
  9006. * is required to process the command.
  9007. * This attribute is used to configure the testbed device.
  9008. */
  9009. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
  9010. /* 8-bit unsigned value to configure the MU EDCA ECW max value for
  9011. * given AC.
  9012. * To configure MU EDCA ECW max value, MU EDCA access category value
  9013. * is required to process the command.
  9014. * This attribute is used to configure the testbed device.
  9015. */
  9016. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
  9017. /* 8-bit unsigned value to configure the MU EDCA timer for given AC
  9018. * To configure MU EDCA timer value, MU EDCA access category value
  9019. * is required to process the command.
  9020. * This attribute is used to configure the testbed device.
  9021. */
  9022. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
  9023. /* 8-bit unsigned value to configure the HE trigger frame MAC padding
  9024. * duration.
  9025. * This attribute is used to configure the testbed device.
  9026. * Uses the enum qca_wlan_he_mac_padding_dur values.
  9027. */
  9028. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
  9029. /* 8-bit unsigned value to override the MU EDCA params to defaults
  9030. * regardless of the AP beacon MU EDCA params. If it is enabled use
  9031. * the default values else use the MU EDCA params from AP beacon.
  9032. * This attribute is used to configure the testbed device.
  9033. * 1 - enable override, 0 - disable.
  9034. */
  9035. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
  9036. /* 8-bit unsigned value to configure the support for receiving
  9037. * an MPDU that contains an operating mode control subfield.
  9038. * This attribute is used to configure the testbed device.
  9039. * 1-enable, 0-disable.
  9040. */
  9041. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
  9042. /* Nested attribute values required to setup the TWT session.
  9043. * enum qca_wlan_vendor_attr_twt_setup provides the necessary
  9044. * information to set up the session. It contains broadcast flags,
  9045. * set_up flags, trigger value, flow type, flow ID, wake interval
  9046. * exponent, protection, target wake time, wake duration, wake interval
  9047. * mantissa. These nested attributes are used to setup a host triggered
  9048. * TWT session.
  9049. */
  9050. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
  9051. /* This nested attribute is used to terminate the current TWT session.
  9052. * It does not currently carry any attributes.
  9053. */
  9054. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
  9055. /* This nested attribute is used to suspend the current TWT session.
  9056. * It does not currently carry any attributes.
  9057. */
  9058. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
  9059. /* Nested attribute values to indicate the request for resume.
  9060. * This attribute is used to resume the TWT session.
  9061. * enum qca_wlan_vendor_attr_twt_resume provides the necessary
  9062. * parameters required to resume the TWT session.
  9063. */
  9064. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
  9065. /* 8-bit unsigned value to set the HE operating mode control
  9066. * (OM CTRL) Channel Width subfield.
  9067. * The Channel Width subfield indicates the operating channel width
  9068. * supported by the STA for both reception and transmission.
  9069. * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
  9070. * This setting is cleared with the
  9071. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  9072. * flag attribute to reset defaults.
  9073. * This attribute is used to configure the testbed device.
  9074. */
  9075. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
  9076. /* 8-bit unsigned value to configure the number of spatial
  9077. * streams in HE operating mode control field.
  9078. * This setting is cleared with the
  9079. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  9080. * flag attribute to reset defaults.
  9081. * This attribute is used to configure the testbed device.
  9082. */
  9083. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
  9084. /* Flag attribute to configure the UL MU disable bit in
  9085. * HE operating mode control field.
  9086. * This setting is cleared with the
  9087. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  9088. * flag attribute to reset defaults.
  9089. * This attribute is used to configure the testbed device.
  9090. */
  9091. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
  9092. /* Flag attribute to clear the previously set HE operating mode
  9093. * control field configuration.
  9094. * This attribute is used to configure the testbed device to reset
  9095. * defaults to clear any previously set HE operating mode control
  9096. * field configuration.
  9097. */
  9098. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
  9099. /* 8-bit unsigned value to configure HE single user PPDU
  9100. * transmission. By default this setting is disabled and it
  9101. * is disabled in the reset defaults of the device configuration.
  9102. * This attribute is used to configure the testbed device.
  9103. * 1-enable, 0-disable
  9104. */
  9105. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
  9106. /* 8-bit unsigned value to configure action frame transmission
  9107. * in HE trigger based PPDU transmission.
  9108. * By default this setting is disabled and it is disabled in
  9109. * the reset defaults of the device configuration.
  9110. * This attribute is used to configure the testbed device.
  9111. * 1-enable, 0-disable
  9112. */
  9113. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
  9114. /* Nested attribute to indicate HE operating mode control field
  9115. * transmission. It contains operating mode control field Nss,
  9116. * channel bandwidth, Tx Nsts and UL MU disable attributes.
  9117. * These nested attributes are used to send HE operating mode control
  9118. * with configured values.
  9119. * Uses the enum qca_wlan_vendor_attr_omi_tx attributes.
  9120. * This attribute is used to configure the testbed device.
  9121. */
  9122. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX = 33,
  9123. /* 8-bit unsigned value to configure +HTC_HE support to indicate the
  9124. * support for the reception of a frame that carries an HE variant
  9125. * HT Control field.
  9126. * This attribute is used to configure the testbed device.
  9127. * 1-enable, 0-disable
  9128. */
  9129. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
  9130. /* 8-bit unsigned value to configure VHT support in 2.4G band.
  9131. * This attribute is used to configure the testbed device.
  9132. * 1-enable, 0-disable
  9133. */
  9134. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
  9135. /* 8-bit unsigned value to configure HE testbed defaults.
  9136. * This attribute is used to configure the testbed device.
  9137. * 1-set the device HE capabilities to testbed defaults.
  9138. * 0-reset the device HE capabilities to supported config.
  9139. */
  9140. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
  9141. /* 8-bit unsigned value to configure twt request support.
  9142. * This attribute is used to configure the testbed device.
  9143. * 1-enable, 0-disable.
  9144. */
  9145. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
  9146. /* 8-bit unsigned value to configure protection for Management
  9147. * frames when PMF is enabled for the association.
  9148. * This attribute is used to configure the testbed device.
  9149. * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
  9150. */
  9151. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
  9152. /* Flag attribute to inject Disassociation frame to the connected AP.
  9153. * This attribute is used to configure the testbed device.
  9154. */
  9155. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
  9156. /* 8-bit unsigned value to configure an override for the RSNXE Used
  9157. * subfield in the MIC control field of the FTE in FT Reassociation
  9158. * Request frame.
  9159. * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
  9160. * This attribute is used to configure the testbed device.
  9161. * This attribute can be configured when STA is in disconnected or
  9162. * associated state and the configuration is valid until the next
  9163. * disconnection.
  9164. */
  9165. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
  9166. /* 8-bit unsigned value to configure the driver to ignore CSA (Channel
  9167. * Switch Announcement) when STA is in connected state.
  9168. * 0 - Default behavior, 1 - Ignore CSA.
  9169. * This attribute is used to configure the testbed device.
  9170. * This attribute can be configured when STA is in disconnected or
  9171. * associated state and the configuration is valid until the next
  9172. * disconnection.
  9173. */
  9174. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
  9175. /* Nested attribute values required to configure OCI (Operating Channel
  9176. * Information). Attributes defined in enum
  9177. * qca_wlan_vendor_attr_oci_override are nested within this attribute.
  9178. * This attribute is used to configure the testbed device.
  9179. * This attribute can be configured when STA is in disconnected or
  9180. * associated state and the configuration is valid until the next
  9181. * disconnection.
  9182. */
  9183. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
  9184. /* 8-bit unsigned value to configure the driver/firmware to ignore SA
  9185. * Query timeout. If this configuration is enabled STA shall not send
  9186. * Deauthentication frmae when SA Query times out (mainly, after a
  9187. * channel switch when OCV is enabled).
  9188. * 0 - Default behavior, 1 - Ignore SA Query timeout.
  9189. * This attribute is used to configure the testbed device.
  9190. * This attribute can be configured only when STA is in associated state
  9191. * and the configuration is valid until the disconnection.
  9192. */
  9193. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
  9194. /* 8-bit unsigned value to configure the driver/firmware to start or
  9195. * stop transmitting FILS discovery frames.
  9196. * 0 - Stop transmitting FILS discovery frames
  9197. * 1 - Start transmitting FILS discovery frames
  9198. * This attribute is used to configure the testbed device.
  9199. * This attribute can be configured only in AP mode and the
  9200. * configuration is valid until AP restart.
  9201. */
  9202. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
  9203. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9204. * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
  9205. * information field.
  9206. * 0 - Disable full bandwidth UL MU-MIMO subfield
  9207. * 1 - Enable full bandwidth UL MU-MIMO subfield
  9208. * This attribute is used to configure the testbed device.
  9209. */
  9210. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
  9211. /* 16-bit unsigned value to configure the driver with a specific BSS
  9212. * max idle period to advertise in the BSS Max Idle Period element
  9213. * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
  9214. * This attribute is used to configure the testbed device.
  9215. */
  9216. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
  9217. /* 8-bit unsigned value to configure the driver to use only RU 242 tone
  9218. * for data transmission.
  9219. * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
  9220. * This attribute is used to configure the testbed device.
  9221. */
  9222. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
  9223. /* 8-bit unsigned value to configure the driver to disable data and
  9224. * management response frame transmission to test the BSS max idle
  9225. * feature.
  9226. * 0 - Default behavior, 1 - Disable data and management response Tx.
  9227. * This attribute is used to configure the testbed device.
  9228. */
  9229. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
  9230. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9231. * disable Punctured Preamble Rx subfield in the HE PHY capabilities
  9232. * information field.
  9233. * 0 - Disable Punctured Preamble Rx subfield
  9234. * 1 - Enable Punctured Preamble Rx subfield
  9235. * This attribute is used to configure the testbed device.
  9236. */
  9237. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
  9238. /* 8-bit unsigned value to configure the driver to ignore the SAE H2E
  9239. * requirement mismatch for 6 GHz connection.
  9240. * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
  9241. * This attribute is used to configure the testbed device.
  9242. */
  9243. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
  9244. /* 8-bit unsigned value to configure the driver to allow 6 GHz
  9245. * connection with all security modes.
  9246. * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
  9247. * modes.
  9248. * This attribute is used for testing purposes.
  9249. */
  9250. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
  9251. /* 8-bit unsigned value to configure the driver to transmit data with
  9252. * ER SU PPDU type.
  9253. *
  9254. * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
  9255. * This attribute is used for testing purposes.
  9256. */
  9257. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
  9258. /* 8-bit unsigned value to configure the driver to use Data or
  9259. * Management frame type for keep alive data.
  9260. * Uses enum qca_wlan_keep_alive_data_type values.
  9261. *
  9262. * This attribute is used for testing purposes.
  9263. */
  9264. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
  9265. /* 8-bit unsigned value to configure the driver to use scan request
  9266. * BSSID value in Probe Request frame RA(A1) during the scan. The
  9267. * driver saves this configuration and applies this setting to all user
  9268. * space scan requests until the setting is cleared. If this
  9269. * configuration is set, the driver uses the BSSID value from the scan
  9270. * request to set the RA(A1) in the Probe Request frames during the
  9271. * scan.
  9272. *
  9273. * 0 - Default behavior uses the broadcast RA in Probe Request frames.
  9274. * 1 - Uses the scan request BSSID in RA in Probe Request frames.
  9275. * This attribute is used for testing purposes.
  9276. */
  9277. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
  9278. /* 8-bit unsigned value to configure the driver to enable/disable the
  9279. * BSS max idle period support.
  9280. *
  9281. * 0 - Disable the BSS max idle support.
  9282. * 1 - Enable the BSS max idle support.
  9283. * This attribute is used for testing purposes.
  9284. */
  9285. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
  9286. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9287. * disable Rx control frame to MultiBSS subfield in the HE MAC
  9288. * capabilities information field.
  9289. * 0 - Disable Rx control frame to MultiBSS subfield
  9290. * 1 - Enable Rx control frame to MultiBSS subfield
  9291. * This attribute is used to configure the testbed device.
  9292. */
  9293. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
  9294. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9295. * disable Broadcast TWT support subfield in the HE MAC capabilities
  9296. * information field.
  9297. * 0 - Disable Broadcast TWT support subfield
  9298. * 1 - Enable Broadcast TWT support subfield
  9299. * This attribute is used to configure the testbed device.
  9300. */
  9301. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
  9302. /* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
  9303. * mode for 802.11be MLO capable devices. If the attribute is set to 1,
  9304. * and if the FW supports this capability too, then the STA host
  9305. * advertises this capability to AP over assoc request frame. This
  9306. * attribute will not have any effect on legacy devices with no 802.11be
  9307. * support.
  9308. * 0 - Default behavior
  9309. * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
  9310. * This attribute is used to configure the testbed device.
  9311. */
  9312. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
  9313. /* 8-bit unsigned value to configure the driver to enable/disable the
  9314. * periodic sounding for Tx beamformer functionality. The default
  9315. * behavior uses algorithm to do sounding based on packet stats.
  9316. *
  9317. * 0 - Default behavior.
  9318. * 1 - Enable the periodic sounding for Tx beamformer.
  9319. * This attribute is used for testing purposes.
  9320. */
  9321. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59,
  9322. /* 8-bit unsigned value to configure beamformee SS EHT capability
  9323. * to indicate the maximum number of spatial streams that the STA
  9324. * can receive in an EHT sounding NDP for <= 80 MHz bandwidth.
  9325. * The range of the value is 3 to 7.
  9326. * This attribute is used to configure the testbed device.
  9327. */
  9328. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_80MHZ = 60,
  9329. /* 8-bit unsigned value to configure beamformee SS EHT capability
  9330. * to indicate the maximum number of spatial streams that the STA
  9331. * can receive in an EHT sounding NDP for 160 MHz bandwidth.
  9332. * The range of the value is 3 to 7.
  9333. * This attribute is used to configure the testbed device.
  9334. */
  9335. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_160MHZ = 61,
  9336. /* 8-bit unsigned value to configure beamformee SS EHT capability
  9337. * to indicate the maximum number of spatial streams that the STA
  9338. * can receive in an EHT sounding NDP for 320 MHz bandwidth.
  9339. * The range of the value is 3 to 7.
  9340. * This attribute is used to configure the testbed device.
  9341. */
  9342. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_320MHZ = 62,
  9343. /* 8-bit unsigned value to configure the driver to exclude station
  9344. * profile in Probe Request frame Multi-Link element.
  9345. * 0 - Default behavior, sends the Probe Request frame with station
  9346. * profile data included in the Multi-Link element.
  9347. * 1 - Exclude station profile in Probe Request frame Multi-Link
  9348. * element.
  9349. * This attribute is used to configure the testbed device.
  9350. */
  9351. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EXCLUDE_STA_PROF_IN_PROBE_REQ = 63,
  9352. /* 8-bit unsigned value to configure EHT testbed defaults.
  9353. * This attribute is used to configure the testbed device.
  9354. * 1 - Set the device EHT capabilities to testbed defaults.
  9355. * 0 - Reset the device EHT capabilities to supported config.
  9356. */
  9357. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_EHT_TESTBED_DEFAULTS = 64,
  9358. /* 8-bit unsigned value to indicate the EHT MCS support.
  9359. * Uses enum eht_mcs_config values.
  9360. * This attribute is used to configure the testbed device to
  9361. * allow the advertised hardware capabilities to be downgraded
  9362. * for testing purposes.
  9363. */
  9364. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MCS = 65,
  9365. /* 8-bit unsigned value to configure EHT TB Sounding Feedback
  9366. * Rate Limit capability.
  9367. * This attribute is used to configure the testbed device.
  9368. * 0 - Indicates no maximum supported data rate limitation.
  9369. * 1 - Indicates the maximum supported data rate is the lower of
  9370. * the 1500 Mb/s and the maximum supported data rate.
  9371. */
  9372. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_TB_SOUNDING_FB_RL = 66,
  9373. /* 8-bit unsigned value to configure the support for receiving an MPDU
  9374. * that contains an EHT operating mode control subfield.
  9375. * This attribute is used to configure the testbed device.
  9376. * 1-enable, 0-disable.
  9377. */
  9378. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_OM_CTRL_SUPPORT = 67,
  9379. /* 8-bit unsigned value to configure the driver with EMLSR padding delay
  9380. * subfield value.
  9381. *
  9382. * 0 - 0 us
  9383. * 1 - 32 us
  9384. * 2 - 64 us
  9385. * 3 - 128 us
  9386. * 4 - 256 us
  9387. * 5-255 - Reserved
  9388. *
  9389. * This attribute is used for testing purposes.
  9390. */
  9391. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EMLSR_PADDING_DELAY = 68,
  9392. /*
  9393. * 8-bit unsigned value to indicate the firmware to force the active MLO
  9394. * links to power save mode for the configured number of beacon periods.
  9395. * This allows the firmware to suspend STA links for X beacon periods
  9396. * and remain asleep even if the AP advertises TIM as opposed to regular
  9397. * power save mode where STA links wake up if the AP indicates that it
  9398. * has buffered data to send.
  9399. * This attribute is used to configure the testbed device.
  9400. */
  9401. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FORCE_MLO_POWER_SAVE_BCN_PERIOD = 69,
  9402. /*
  9403. * 8-bit unsigned value to indicate the firmware to be in STR MLMR mode
  9404. * to enable simultaneous transmission of PPDUs on all active links.
  9405. * 0 - Default behavior
  9406. * 1 - Enter STR mode for simultaneous data transmission on all links
  9407. */
  9408. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_STR_TX = 70,
  9409. /* keep last */
  9410. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
  9411. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
  9412. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
  9413. };
  9414. /**
  9415. * enum qca_wlan_twt_operation - Operation of the config TWT request
  9416. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
  9417. * The response for the respective operations can be either synchronous or
  9418. * asynchronous (wherever specified). If synchronous, the response to this
  9419. * operation is obtained in the corresponding vendor command reply to the user
  9420. * space. For the asynchronous case the response is obtained as an event with
  9421. * the same operation type.
  9422. *
  9423. * Drivers shall support either of these modes but not both simultaneously.
  9424. * This support for asynchronous mode is advertised through the flag
  9425. * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
  9426. * the driver shall support synchronous mode.
  9427. *
  9428. * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
  9429. * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9430. * qca_wlan_vendor_attr_twt_setup. Depending upon the
  9431. * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
  9432. * synchronous or asynchronous operation.
  9433. *
  9434. * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
  9435. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9436. * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
  9437. *
  9438. * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
  9439. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9440. * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
  9441. * This terminate can either get triggered by the user space or can as well be
  9442. * a notification from the firmware if it initiates a terminate.
  9443. * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
  9444. * the request from user space can either be a synchronous or asynchronous
  9445. * operation.
  9446. *
  9447. * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
  9448. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9449. * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
  9450. * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
  9451. * this is either a synchronous or asynchronous operation.
  9452. *
  9453. * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
  9454. * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9455. * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
  9456. * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
  9457. * request.
  9458. * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
  9459. * capability, this is either a synchronous or asynchronous operation.
  9460. *
  9461. * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
  9462. * combination of suspend and resume in a single request. Required parameters
  9463. * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
  9464. * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
  9465. * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
  9466. * capability, this is either a synchronous or asynchronous operation.
  9467. *
  9468. * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
  9469. * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
  9470. * session is setup. It's a synchronous operation.
  9471. *
  9472. * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
  9473. * Valid only after the TWT session is setup. It's a synchronous operation.
  9474. *
  9475. * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
  9476. * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
  9477. * operation.
  9478. *
  9479. * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is
  9480. * ready for a new TWT session setup after it issued a twt teardown.
  9481. *
  9482. * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
  9483. * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
  9484. * the enum qca_wlan_vendor_attr_twt_set_param.
  9485. *
  9486. * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
  9487. * related information for example TWT required bit in AP capabilities etc.
  9488. * The reason for the notification is sent using
  9489. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
  9490. */
  9491. enum qca_wlan_twt_operation {
  9492. QCA_WLAN_TWT_SET = 0,
  9493. QCA_WLAN_TWT_GET = 1,
  9494. QCA_WLAN_TWT_TERMINATE = 2,
  9495. QCA_WLAN_TWT_SUSPEND = 3,
  9496. QCA_WLAN_TWT_RESUME = 4,
  9497. QCA_WLAN_TWT_NUDGE = 5,
  9498. QCA_WLAN_TWT_GET_STATS = 6,
  9499. QCA_WLAN_TWT_CLEAR_STATS = 7,
  9500. QCA_WLAN_TWT_GET_CAPABILITIES = 8,
  9501. QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
  9502. QCA_WLAN_TWT_SET_PARAM = 10,
  9503. QCA_WLAN_TWT_NOTIFY = 11,
  9504. };
  9505. /* enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
  9506. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT
  9507. *
  9508. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION:
  9509. * u8 attribute. Specify the TWT operation of this request. Possible values
  9510. * are defined in enum qca_wlan_twt_operation. The parameters for the
  9511. * respective operation is specified through
  9512. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
  9513. *
  9514. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
  9515. * parameters configured for TWT. These parameters are represented by
  9516. * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
  9517. * enum qca_wlan_vendor_attr_twt_set_param or
  9518. * enum qca_wlan_vendor_attr_twt_stats based on the operation.
  9519. *
  9520. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
  9521. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
  9522. * The values used by this attribute are defined in
  9523. * enum qca_wlan_vendor_twt_status.
  9524. */
  9525. enum qca_wlan_vendor_attr_config_twt {
  9526. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
  9527. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
  9528. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
  9529. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
  9530. /* keep last */
  9531. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
  9532. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
  9533. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
  9534. };
  9535. /**
  9536. * qca_wlan_twt_setup_state: Represents the TWT session states.
  9537. *
  9538. * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
  9539. * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
  9540. * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
  9541. */
  9542. enum qca_wlan_twt_setup_state {
  9543. QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
  9544. QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
  9545. QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
  9546. };
  9547. /**
  9548. * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
  9549. * TWT (Target Wake Time) setup request. These attributes are sent as part of
  9550. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
  9551. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
  9552. * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9553. *
  9554. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
  9555. * Disable (flag attribute not present) - Individual TWT
  9556. * Enable (flag attribute present) - Broadcast TWT.
  9557. * Individual means the session is between the STA and the AP.
  9558. * This session is established using a separate negotiation between
  9559. * STA and AP.
  9560. * Broadcast means the session is across multiple STAs and an AP. The
  9561. * configuration parameters are announced in Beacon frames by the AP.
  9562. * This is used in
  9563. * 1. TWT SET Request and Response
  9564. * 2. TWT GET Response
  9565. *
  9566. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
  9567. * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
  9568. * specify the TWT request type. This is used in TWT SET operation.
  9569. *
  9570. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
  9571. * Enable (flag attribute present) - TWT with trigger support.
  9572. * Disable (flag attribute not present) - TWT without trigger support.
  9573. * Trigger means the AP will send the trigger frame to allow STA to send data.
  9574. * Without trigger, the STA will wait for the MU EDCA timer before
  9575. * transmitting the data.
  9576. * This is used in
  9577. * 1. TWT SET Request and Response
  9578. * 2. TWT GET Response
  9579. *
  9580. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
  9581. * 0 - Announced TWT - In this mode, STA may skip few service periods to
  9582. * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
  9583. * NULL frame to AP.
  9584. * 1 - Unannounced TWT - The STA will wakeup during every SP.
  9585. * This is a required parameter for
  9586. * 1. TWT SET Request and Response
  9587. * 2. TWT GET Response
  9588. *
  9589. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
  9590. * Flow ID is the unique identifier for each TWT session.
  9591. * If not provided then dialog ID will be set to zero.
  9592. * This is an optional parameter for
  9593. * 1. TWT SET Request and Response
  9594. * 2. TWT GET Request and Response
  9595. * 3. TWT TERMINATE Request and Response
  9596. * 4. TWT SUSPEND Request and Response
  9597. * Flow Id values from 0 to 254 represent a single TWT session
  9598. * Flow ID value of 255 represents all twt sessions for the following
  9599. * 1. TWT TERMINATE Request and Response
  9600. * 2. TWT SUSPEND Request and Response
  9601. * 4. TWT CLEAR STATISTICS request
  9602. * 5. TWT GET STATISTICS request and response
  9603. * If an invalid dialog id is provided, status
  9604. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  9605. *
  9606. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
  9607. * This attribute (exp) is used along with the mantissa to derive the
  9608. * wake interval using the following formula:
  9609. * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
  9610. * Wake interval is the interval between 2 successive SP.
  9611. * This is a required parameter for
  9612. * 1. TWT SET Request and Response
  9613. * 2. TWT GET Response
  9614. *
  9615. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
  9616. * Enable (flag attribute present) - Protection required.
  9617. * Disable (flag attribute not present) - Protection not required.
  9618. * If protection is enabled, then the AP will use protection
  9619. * mechanism using RTS/CTS to self to reserve the airtime.
  9620. * This is used in
  9621. * 1. TWT SET Request and Response
  9622. * 2. TWT GET Response
  9623. *
  9624. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
  9625. * This attribute is used as the SP offset which is the offset from
  9626. * TSF after which the wake happens. The units are in microseconds. If
  9627. * this attribute is not provided, then the value will be set to zero.
  9628. * This is an optional parameter for
  9629. * 1. TWT SET Request and Response
  9630. * 2. TWT GET Response
  9631. *
  9632. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
  9633. * This is the duration of the service period. This is specified as
  9634. * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
  9635. * This is a required parameter for
  9636. * 1. TWT SET Request and Response
  9637. * 2. TWT GET Response
  9638. *
  9639. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
  9640. * This attribute is used to configure wake interval mantissa.
  9641. * The units are in TU.
  9642. * This is a required parameter for
  9643. * 1. TWT SET Request and Response
  9644. * 2. TWT GET Response
  9645. *
  9646. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
  9647. * This field is applicable for TWT response only.
  9648. * This contains status values in enum qca_wlan_vendor_twt_status
  9649. * and is passed to the userspace. This is used in TWT SET operation.
  9650. * This is a required parameter for
  9651. * 1. TWT SET Response
  9652. * 2. TWT TERMINATE Response
  9653. * 3. TWT SUSPEND Response
  9654. * 4. TWT RESUME Response
  9655. * 5. TWT NUDGE Response
  9656. *
  9657. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
  9658. * This field is applicable for TWT response only.
  9659. * This field contains response type from the TWT responder and is
  9660. * passed to the userspace. The values for this field are defined in
  9661. * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
  9662. * response.
  9663. *
  9664. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
  9665. * In TWT setup command this field contains absolute TSF that will
  9666. * be used by TWT requester during setup.
  9667. * In TWT response this field contains absolute TSF value of the
  9668. * wake time received from the TWT responder and is passed to
  9669. * the userspace.
  9670. * This is an optional parameter for
  9671. * 1. TWT SET Request
  9672. * This is a required parameter for
  9673. * 1. TWT SET Response
  9674. * 2. TWT GET Response
  9675. *
  9676. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
  9677. * Enable (flag attribute present) - Indicates that the TWT responder
  9678. * supports reception of TWT information frame from the TWT requestor.
  9679. * Disable (flag attribute not present) - Indicates that the responder
  9680. * doesn't support reception of TWT information frame from requestor.
  9681. * This is used in
  9682. * 1. TWT SET Response
  9683. * 2. TWT GET Response
  9684. *
  9685. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
  9686. * Represents the MAC address of the peer for which the TWT session
  9687. * is being configured. This is used in AP mode to represent the respective
  9688. * client
  9689. * In AP mode, this is a required parameter in response for
  9690. * 1. TWT SET
  9691. * 2. TWT GET
  9692. * 3. TWT TERMINATE
  9693. * 4. TWT SUSPEND
  9694. * In STA mode, this is an optional parameter in request and response for
  9695. * the above four TWT operations.
  9696. * In AP mode, this is a required parameter in request for
  9697. * 1. TWT GET
  9698. * 2. TWT TERMINATE
  9699. *
  9700. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
  9701. * Minimum tolerance limit of wake interval parameter in microseconds.
  9702. *
  9703. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
  9704. * Maximum tolerance limit of wake interval parameter in microseconds.
  9705. *
  9706. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
  9707. * Minimum tolerance limit of wake duration parameter in microseconds.
  9708. *
  9709. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
  9710. * Maximum tolerance limit of wake duration parameter in microseconds.
  9711. *
  9712. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
  9713. * TWT state for the given dialog id. The values for this are represented
  9714. * by enum qca_wlan_twt_setup_state.
  9715. * This is obtained through TWT GET operation.
  9716. *
  9717. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
  9718. * This attribute is used to configure wake interval mantissa.
  9719. * The unit is microseconds. This attribute, when specified, takes
  9720. * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
  9721. * This parameter is used for
  9722. * 1. TWT SET Request and Response
  9723. * 2. TWT GET Response
  9724. *
  9725. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
  9726. * This attribute is used to configure Broadcast TWT ID.
  9727. * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
  9728. * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
  9729. * This parameter is used for
  9730. * 1. TWT SET Request
  9731. * 2. TWT TERMINATE Request
  9732. *
  9733. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
  9734. * This attribute is used to configure Broadcast TWT recommendation.
  9735. * The Broadcast TWT Recommendation subfield contains a value that indicates
  9736. * recommendations on the types of frames that are transmitted by TWT
  9737. * scheduled STAs and scheduling AP during the broadcast TWT SP.
  9738. * The allowed values are 0 - 3.
  9739. * This parameter is used for
  9740. * 1. TWT SET Request
  9741. *
  9742. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
  9743. * This attribute is used to configure Broadcast TWT Persistence.
  9744. * The Broadcast TWT Persistence subfield indicates the number of
  9745. * TBTTs during which the Broadcast TWT SPs corresponding to this
  9746. * broadcast TWT Parameter set are present. The number of beacon intervals
  9747. * during which the Broadcast TWT SPs are present is equal to the value in the
  9748. * Broadcast TWT Persistence subfield plus 1 except that the value 255
  9749. * indicates that the Broadcast TWT SPs are present until explicitly terminated.
  9750. * This parameter is used for
  9751. * 1. TWT SET Request
  9752. *
  9753. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
  9754. * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
  9755. * from TWT response frame.
  9756. * This parameter is used for
  9757. * 1. TWT SET Response
  9758. * 2. TWT GET Response
  9759. *
  9760. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
  9761. * This attribute is used to configure the announce timeout value (in us) in
  9762. * firmware. This timeout value is only applicable for announced TWT. If
  9763. * timeout value is non-zero then firmware waits upto timeout value to use
  9764. * data frame as announcement frame. If timeout value is 0 then firmware sends
  9765. * explicit QoS NULL frame as announcement frame on SP start. Default value in
  9766. * firmware is 0.
  9767. * This parameter is used for
  9768. * 1. TWT SET Request
  9769. */
  9770. enum qca_wlan_vendor_attr_twt_setup {
  9771. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
  9772. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
  9773. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
  9774. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
  9775. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
  9776. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
  9777. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
  9778. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
  9779. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
  9780. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
  9781. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
  9782. /* TWT Response only attributes */
  9783. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
  9784. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
  9785. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
  9786. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
  9787. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
  9788. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
  9789. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
  9790. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
  9791. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
  9792. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
  9793. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
  9794. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
  9795. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
  9796. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
  9797. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
  9798. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
  9799. /* keep last */
  9800. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
  9801. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
  9802. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
  9803. };
  9804. /**
  9805. * enum qca_wlan_vendor_twt_status - Represents the status of the requested
  9806. * TWT operation
  9807. *
  9808. * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
  9809. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
  9810. * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
  9811. * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
  9812. * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
  9813. * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
  9814. * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
  9815. * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
  9816. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
  9817. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
  9818. * request/response frame
  9819. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
  9820. * frame
  9821. * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
  9822. * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
  9823. * unknown reason
  9824. * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
  9825. * suspend state
  9826. * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
  9827. * invalid IE in the received TWT frame
  9828. * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
  9829. * the responder are not in the specified range
  9830. * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
  9831. * session due to request from the responder. Used on the TWT_TERMINATE
  9832. * notification from the firmware.
  9833. * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
  9834. * session due to roaming. Used on the TWT_TERMINATE notification from the
  9835. * firmware.
  9836. * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
  9837. * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel)
  9838. * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
  9839. * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
  9840. * request due to roaming in progress.
  9841. * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
  9842. * setup request due to channel switch in progress.
  9843. * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
  9844. * request due to scan in progress.
  9845. * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
  9846. * terminate an existing TWT session on power save exit request from userspace.
  9847. * Used on the TWT_TERMINATE notification from the driver/firmware.
  9848. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
  9849. * required bit in its capabilities.
  9850. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
  9851. * the TWT required bit(1->0) in its capabilities.
  9852. */
  9853. enum qca_wlan_vendor_twt_status {
  9854. QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
  9855. QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
  9856. QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
  9857. QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
  9858. QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
  9859. QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
  9860. QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
  9861. QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
  9862. QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
  9863. QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
  9864. QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
  9865. QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
  9866. QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
  9867. QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
  9868. QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
  9869. QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
  9870. QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
  9871. QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
  9872. QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
  9873. QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
  9874. QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
  9875. QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
  9876. QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
  9877. QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
  9878. QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
  9879. };
  9880. /**
  9881. * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
  9882. * TWT (Target Wake Time) resume request. These attributes are sent as part of
  9883. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
  9884. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
  9885. * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9886. *
  9887. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
  9888. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
  9889. * These attributes are used as the SP offset which is the offset from TSF after
  9890. * which the wake happens. The units are in microseconds. Please note that
  9891. * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
  9892. * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
  9893. * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
  9894. * will be set to zero.
  9895. *
  9896. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
  9897. * This attribute represents the next TWT subfield size.
  9898. * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
  9899. * and 4 for 64 bits.
  9900. *
  9901. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
  9902. * Flow ID is the unique identifier for each TWT session. This attribute
  9903. * represents the respective TWT session to resume.
  9904. * Flow Id values from 0 to 254 represent a single TWT session
  9905. * Flow ID value of 255 represents all TWT sessions.
  9906. * If an invalid dialog id is provided, status
  9907. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  9908. *
  9909. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
  9910. * Represents the MAC address of the peer to which TWT Resume is
  9911. * being sent. This is used in AP mode to represent the respective
  9912. * client and is a required parameter. In STA mode, this is an optional
  9913. * parameter
  9914. *
  9915. */
  9916. enum qca_wlan_vendor_attr_twt_resume {
  9917. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
  9918. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
  9919. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
  9920. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
  9921. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
  9922. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
  9923. /* keep last */
  9924. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
  9925. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
  9926. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
  9927. };
  9928. /**
  9929. * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
  9930. * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
  9931. * and resume in a single request. These attributes are sent as part of
  9932. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9933. *
  9934. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
  9935. * Flow ID is the unique identifier for each TWT session. This attribute
  9936. * represents the respective TWT session to suspend and resume.
  9937. *
  9938. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
  9939. * Flow ID is the unique identifier for each TWT session. This attribute
  9940. * represents the respective TWT session to suspend and resume.
  9941. * Flow Id values from 0 to 254 represent a single TWT session
  9942. * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
  9943. * and response.
  9944. * If an invalid dialog id is provided, status
  9945. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  9946. *
  9947. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
  9948. * This attribute is used as the SP offset which is the offset from
  9949. * TSF after which the wake happens. The units are in microseconds.
  9950. *
  9951. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
  9952. * This attribute represents the next TWT subfield size.
  9953. * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
  9954. * and 4 for 64 bits.
  9955. *
  9956. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
  9957. * Represents the MAC address of the peer to which TWT Suspend and Resume is
  9958. * being sent. This is used in AP mode to represent the respective
  9959. * client and is a required parameter. In STA mode, this is an optional
  9960. * parameter.
  9961. *
  9962. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
  9963. * This field contains absolute TSF value of the time at which twt
  9964. * sesion will be resumed.
  9965. *
  9966. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32)
  9967. * This field will be used when device supports Flexible TWT.
  9968. * This field contains an offset value by which to shift the starting time
  9969. * of the next service period. The value of offset can be negative or positive.
  9970. * If provided, this attribute will override
  9971. * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds.
  9972. */
  9973. enum qca_wlan_vendor_attr_twt_nudge {
  9974. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
  9975. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
  9976. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
  9977. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
  9978. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
  9979. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
  9980. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6,
  9981. /* keep last */
  9982. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
  9983. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
  9984. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
  9985. };
  9986. /**
  9987. * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
  9988. * TWT (Target Wake Time) get statistics and clear statistics request.
  9989. * These attributes are sent as part of
  9990. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9991. *
  9992. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
  9993. * Flow ID is the unique identifier for each TWT session. This attribute
  9994. * represents the respective TWT session for get and clear TWT statistics.
  9995. * Flow Id values from 0 to 254 represent a single TWT session
  9996. * Flow ID value of 255 represents all TWT sessions in
  9997. * 1) TWT GET STATISTICS request and response
  9998. * 2) TWT CLEAR STATISTICS request
  9999. *
  10000. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
  10001. * Represents the MAC address of the peer for which TWT Statistics
  10002. * is required.
  10003. * In AP mode this is used to represent the respective
  10004. * client and is a required parameter for
  10005. * 1) TWT GET STATISTICS request and response
  10006. * 2) TWT CLEAR STATISTICS request and response
  10007. * In STA mode, this is an optional parameter.
  10008. *
  10009. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
  10010. * This is the duration of the service period in microseconds.
  10011. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10012. *
  10013. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
  10014. * Average of actual wake duration observed so far. Unit is microseconds.
  10015. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10016. *
  10017. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
  10018. * Number of TWT service period elapsed so far.
  10019. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10020. *
  10021. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
  10022. * This is the minimum value of wake duration observed across
  10023. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
  10024. * microseconds.
  10025. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10026. *
  10027. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
  10028. * This is the maximum value of wake duration observed across
  10029. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
  10030. * microseconds.
  10031. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10032. *
  10033. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
  10034. * Average number of MPDU's transmitted successfully across
  10035. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  10036. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10037. *
  10038. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
  10039. * Average number of MPDU's received successfully across
  10040. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  10041. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10042. *
  10043. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
  10044. * Average number of bytes transmitted successfully across
  10045. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  10046. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10047. *
  10048. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET SIZE: Required (u32)
  10049. * Average number of bytes received successfully across
  10050. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  10051. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10052. *
  10053. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
  10054. * Status of the TWT GET STATISTICS request.
  10055. * This contains status values in enum qca_wlan_vendor_twt_status
  10056. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10057. */
  10058. enum qca_wlan_vendor_attr_twt_stats {
  10059. QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
  10060. QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
  10061. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
  10062. QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
  10063. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
  10064. QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
  10065. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
  10066. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
  10067. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
  10068. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
  10069. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
  10070. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
  10071. QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
  10072. /* keep last */
  10073. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
  10074. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
  10075. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
  10076. };
  10077. /**
  10078. * qca_wlan_twt_get_capa - Represents the Bitmap of TWT capabilities
  10079. * supported by the device and peer.
  10080. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
  10081. *
  10082. * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
  10083. * TWT non-scheduling STA. This capability is advertised in the HE
  10084. * capability/Extended capabilities information element in the
  10085. * Association request frame by the device.
  10086. *
  10087. * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised
  10088. * by the TWT scheduling AP. This capability is advertised in the extended
  10089. * capabilities/HE capabilities information element.
  10090. *
  10091. * @QCA_WLAN_TWT_CAPA_BROADCAST: On requestor side, this indicates support
  10092. * for the broadcast TWT functionality. On responder side, this indicates
  10093. * support for the role of broadcast TWT scheduling functionality. This
  10094. * capability is advertised in the HE capabilities information element.
  10095. *
  10096. * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: Device supports flexible TWT schedule.
  10097. * This capability is advertised in the HE capabilities information element.
  10098. *
  10099. * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
  10100. * that it mandates the associated HE STAs to support TWT. This capability is
  10101. * advertised by AP in the HE Operation Parameters field of the HE operation
  10102. * information element.
  10103. */
  10104. enum qca_wlan_twt_capa {
  10105. QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
  10106. QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
  10107. QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
  10108. QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3),
  10109. QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4),
  10110. };
  10111. /**
  10112. * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT
  10113. * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
  10114. * operation.
  10115. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
  10116. * Represents the MAC address of the peer for which the TWT capabilities
  10117. * are being queried. This is used in AP mode to represent the respective
  10118. * client. In STA mode, this is an optional parameter.
  10119. *
  10120. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
  10121. * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
  10122. * enum qca_wlan_twt_capa.
  10123. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
  10124. * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
  10125. * enum qca_wlan_twt_capa.
  10126. */
  10127. enum qca_wlan_vendor_attr_twt_capability {
  10128. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
  10129. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
  10130. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
  10131. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
  10132. /* keep last */
  10133. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
  10134. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
  10135. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
  10136. };
  10137. /**
  10138. * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
  10139. * TWT (Target Wake Time) related parameters. It is used when
  10140. * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
  10141. * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  10142. *
  10143. * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
  10144. * This attribute configures AC parameters to be used for all TWT
  10145. * sessions in AP mode.
  10146. * Uses the enum qca_wlan_ac_type values.
  10147. */
  10148. enum qca_wlan_vendor_attr_twt_set_param {
  10149. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
  10150. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
  10151. /* keep last */
  10152. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
  10153. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
  10154. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
  10155. };
  10156. /**
  10157. * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
  10158. * the TWT responder
  10159. *
  10160. * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
  10161. * parameters that are different from TWT requesting STA suggested
  10162. * or demanded TWT parameters
  10163. * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
  10164. * parameters that are different from TWT requesting STA TWT suggested
  10165. * or demanded parameters
  10166. * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
  10167. * setup
  10168. * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
  10169. * setup.
  10170. */
  10171. enum qca_wlan_vendor_twt_setup_resp_type {
  10172. QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
  10173. QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
  10174. QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
  10175. QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
  10176. };
  10177. /**
  10178. * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
  10179. * Represents the setup type being requested for TWT.
  10180. * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
  10181. * parameters but relying on AP to fill the parameters during the negotiation.
  10182. * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
  10183. * values which the AP may accept or AP may provide alternative parameters
  10184. * which the STA may accept.
  10185. * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
  10186. * alternate parameters than the requested ones.
  10187. */
  10188. enum qca_wlan_vendor_twt_setup_req_type {
  10189. QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
  10190. QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
  10191. QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
  10192. };
  10193. /**
  10194. * enum qca_wlan_throughput_level - Current throughput level
  10195. *
  10196. * Indicates the current level of throughput calculated by driver. The driver
  10197. * may choose different thresholds to decide whether the throughput level is
  10198. * low or medium or high based on variety of parameters like physical link
  10199. * capacity of current connection, number of pakcets being dispatched per
  10200. * second etc. The throughput level events might not be consistent with the
  10201. * actual current throughput value being observed.
  10202. *
  10203. * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
  10204. * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
  10205. * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
  10206. */
  10207. enum qca_wlan_throughput_level {
  10208. QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
  10209. QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
  10210. QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
  10211. };
  10212. /**
  10213. * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
  10214. * report throughput changes from driver to user space. enum values are used
  10215. * for NL attributes sent with
  10216. * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
  10217. */
  10218. enum qca_wlan_vendor_attr_throughput_change {
  10219. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
  10220. /*
  10221. * Indicates the direction of throughput in which the change is being
  10222. * reported. u8 attribute. Value is 0 for TX and 1 for RX.
  10223. */
  10224. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
  10225. /*
  10226. * Indicates the newly observed throughput level.
  10227. * qca_wlan_throughput_level describes the possible range of values.
  10228. * u8 attribute.
  10229. */
  10230. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
  10231. /*
  10232. * Indicates the driver's guidance on the new value to be set to
  10233. * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver
  10234. * may optionally include this attribute.
  10235. */
  10236. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
  10237. /*
  10238. * Indicates the driver's guidance on the new value to be set to
  10239. * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible
  10240. * values are from -31 to 31. Driver may optionally include this
  10241. * attribute.
  10242. */
  10243. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
  10244. /*
  10245. * Indicates the driver's guidance on the new value to be set to
  10246. * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may
  10247. * optionally include this attribute.
  10248. */
  10249. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
  10250. /* keep last */
  10251. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
  10252. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
  10253. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
  10254. };
  10255. /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
  10256. * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
  10257. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  10258. */
  10259. enum qca_wlan_nan_ext_subcmd_type {
  10260. /* Subcmd of type NAN Enable Request */
  10261. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
  10262. /* Subcmd of type NAN Disable Request */
  10263. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
  10264. };
  10265. /**
  10266. * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
  10267. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  10268. */
  10269. enum qca_wlan_vendor_attr_nan_params {
  10270. QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
  10271. /* Carries NAN command for firmware component. Every vendor command
  10272. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
  10273. * payload containing the NAN command. NLA_BINARY attribute.
  10274. */
  10275. QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
  10276. /* Indicates the type of NAN command sent with
  10277. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
  10278. * describes the possible range of values. This attribute is mandatory
  10279. * if the command being issued is either
  10280. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
  10281. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
  10282. */
  10283. QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
  10284. /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
  10285. * band. This attribute is mandatory when command type is
  10286. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
  10287. */
  10288. QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
  10289. /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
  10290. * band. This attribute is optional and should be included when command
  10291. * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
  10292. * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
  10293. */
  10294. QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
  10295. /* keep last */
  10296. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
  10297. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
  10298. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
  10299. };
  10300. /**
  10301. * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
  10302. * transport modes and is used by attribute
  10303. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as part of vendor command
  10304. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
  10305. * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use RELAY FS to send CFR data.
  10306. * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
  10307. * data. The data shall be encapsulated within
  10308. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with vendor sub command
  10309. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
  10310. */
  10311. enum qca_wlan_vendor_cfr_data_transport_modes {
  10312. QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
  10313. QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
  10314. };
  10315. /**
  10316. * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
  10317. * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
  10318. * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
  10319. * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QOS Null frame.
  10320. * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QOS Null frame
  10321. * with phase
  10322. * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using probe response frame
  10323. */
  10324. enum qca_wlan_vendor_cfr_method {
  10325. QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
  10326. QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
  10327. QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
  10328. };
  10329. /**
  10330. * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
  10331. * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
  10332. * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
  10333. * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
  10334. * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
  10335. * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
  10336. * is provided by one or more of below attributes:
  10337. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
  10338. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
  10339. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
  10340. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
  10341. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
  10342. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
  10343. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
  10344. * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
  10345. * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
  10346. */
  10347. enum qca_wlan_vendor_cfr_capture_type {
  10348. QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
  10349. QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
  10350. QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
  10351. QCA_WLAN_VENDOR_CFR_TA_RA = 3,
  10352. QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
  10353. QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
  10354. };
  10355. /**
  10356. * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
  10357. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
  10358. * Channel Frequency Response capture parameters and enable periodic CFR
  10359. * capture.
  10360. *
  10361. * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
  10362. * MAC address of peer. This is for CFR version 1 only.
  10363. *
  10364. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
  10365. * Enable peer CFR Capture. This attribute is mandatory to
  10366. * enable peer CFR capture. If this attribute is not present,
  10367. * peer CFR capture is disabled.
  10368. *
  10369. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
  10370. * BW of measurement, attribute uses the values in enum nl80211_chan_width
  10371. * Supported values: 20, 40, 80, 80+80, 160.
  10372. * Note that all targets may not support all bandwidths.
  10373. * This attribute is mandatory for version 1 if attribute
  10374. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  10375. *
  10376. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
  10377. * Periodicity of CFR measurement in msec.
  10378. * Periodicity should be a multiple of Base timer.
  10379. * Current Base timer value supported is 10 msecs (default).
  10380. * 0 for one shot capture.
  10381. * This attribute is mandatory for version 1 if attribute
  10382. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  10383. *
  10384. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
  10385. * Method used to capture Channel Frequency Response.
  10386. * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
  10387. * This attribute is mandatory for version 1 if attribute
  10388. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  10389. *
  10390. * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
  10391. * Enable periodic CFR capture.
  10392. * This attribute is mandatory for version 1 to enable Periodic CFR capture.
  10393. * If this attribute is not present, periodic CFR capture is disabled.
  10394. *
  10395. * @QCA_WLAN_VENDOR_ATTR_CFR_VERSION: Optional (u8)
  10396. * Value is 1 or 2 since there are two versions of CFR capture. Two versions
  10397. * can't be enabled at same time. This attribute is mandatory if target
  10398. * support both versions and use one of them.
  10399. *
  10400. * @QCA_WLAN_VENDOR_ATTR_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
  10401. * This attribute is mandatory for version 2 if
  10402. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
  10403. * Bits 15:0 Bit fields indicating which group to be enabled.
  10404. * Bits 31:16 Reserved for future use.
  10405. *
  10406. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
  10407. * CFR capture duration in microsecond. This attribute is mandatory for
  10408. * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
  10409. *
  10410. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
  10411. * CFR capture interval in microsecond. This attribute is mandatory for
  10412. * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
  10413. *
  10414. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
  10415. * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
  10416. * This attribute is mandatory for version 2.
  10417. *
  10418. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
  10419. * Bit fields indicating which user in the current UL MU
  10420. * transmissions are enabled for CFR capture. Bits 36 to 0 indicating
  10421. * user indexes for 37 users in a UL MU transmission. If bit 0 is set,
  10422. * then the CFR capture will happen for user index 0 in the current
  10423. * UL MU transmission. If bits 0,2 are set, then CFR capture for UL MU
  10424. * TX corresponds to user indices 0 and 2. Bits 63:37 Reserved for future use.
  10425. * This is for CFR version 2 only.
  10426. *
  10427. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
  10428. * Indicates the number of consecutive Rx packets to be skipped
  10429. * before CFR capture is enabled again.
  10430. * This is for CFR version 2 only.
  10431. *
  10432. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
  10433. * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
  10434. *
  10435. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
  10436. * the following GROUP attributes:
  10437. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
  10438. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
  10439. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
  10440. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
  10441. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
  10442. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
  10443. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
  10444. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
  10445. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
  10446. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
  10447. *
  10448. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
  10449. * Target support multiple groups for some configurations. Group number could be
  10450. * any value between 0 and 15. This is for CFR version 2 only.
  10451. *
  10452. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
  10453. * Transmitter address which is used to filter packets, this MAC address takes
  10454. * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK.
  10455. * This is for CFR version 2 only.
  10456. *
  10457. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
  10458. * Receiver address which is used to filter packets, this MAC address takes
  10459. * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK.
  10460. * This is for CFR version 2 only.
  10461. *
  10462. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
  10463. * Mask of transmitter address which is used to filter packets.
  10464. * This is for CFR version 2 only.
  10465. *
  10466. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
  10467. * Mask of receiver address which is used to filter packets.
  10468. * This is for CFR version 2 only.
  10469. *
  10470. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
  10471. * Indicates packets with a specific NSS will be filtered for CFR capture.
  10472. * This is for CFR version 2 only. This is a bitmask. Bits 7:0, CFR capture will
  10473. * be done for packets matching the NSS specified within this bitmask.
  10474. * Bits 31:8 Reserved for future use. Bits 7:0 map to NSS:
  10475. * bit 0 : NSS 1
  10476. * bit 1 : NSS 2
  10477. * ...
  10478. * bit 7 : NSS 8
  10479. *
  10480. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
  10481. * Indicates packets with a specific BW will be filtered for CFR capture.
  10482. * This is for CFR version 2 only. This is a bitmask. Bits 4:0, CFR capture
  10483. * will be done for packets matching the bandwidths specified within this
  10484. * bitmask. Bits 31:5 Reserved for future use. Bits 4:0 map to bandwidth
  10485. * numerated in enum nl80211_band (although not all bands may be supported
  10486. * by a given device).
  10487. *
  10488. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
  10489. * Management packets matching the subtype filter categories will be
  10490. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  10491. * represents the corresponding mgmt subtype value as per
  10492. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  10493. * For example, beacon frame control type is 8, its value is 1<<8 = 0x100.
  10494. * This is for CFR version 2 only
  10495. *
  10496. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
  10497. * Control packets matching the subtype filter categories will be
  10498. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  10499. * represents the corresponding control subtype value as per
  10500. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  10501. * This is for CFR version 2 only.
  10502. *
  10503. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
  10504. * Data packets matching the subtype filter categories will be
  10505. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  10506. * represents the corresponding data subtype value as per
  10507. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  10508. * This is for CFR version 2 only.
  10509. *
  10510. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
  10511. * Userspace can use this attribute to specify the driver about which transport
  10512. * mode shall be used by the driver to send CFR data to userspace. Uses values
  10513. * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
  10514. * not present, driver shall choose the default transport mechanism which is
  10515. * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
  10516. *
  10517. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
  10518. * Userspace can use this attribute to specify the nl port id of the application
  10519. * which receives the CFR data and processes it further so that the drivers can
  10520. * unicast the NL events to a specific application. Optionally included when
  10521. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
  10522. * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
  10523. * shall multicast the netlink events when this attribute is not included.
  10524. *
  10525. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
  10526. * This attribute will be used by the driver to encapsulate and send CFR data
  10527. * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
  10528. * asynchronous event when the driver is configured to send CFR data using NL
  10529. * events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS
  10530. *
  10531. */
  10532. enum qca_wlan_vendor_peer_cfr_capture_attr {
  10533. QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
  10534. QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
  10535. QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
  10536. QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
  10537. QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
  10538. QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
  10539. QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
  10540. QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
  10541. QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
  10542. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
  10543. QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
  10544. QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
  10545. QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
  10546. QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
  10547. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
  10548. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
  10549. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
  10550. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
  10551. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
  10552. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
  10553. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
  10554. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
  10555. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
  10556. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
  10557. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
  10558. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
  10559. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
  10560. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
  10561. QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
  10562. /* Keep last */
  10563. QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
  10564. QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
  10565. QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
  10566. };
  10567. /**
  10568. * enum qca_coex_config_profiles - This enum defines different types of
  10569. * traffic streams that can be prioritized one over the other during coex
  10570. * scenarios.
  10571. * The types defined in this enum are categorized in the below manner.
  10572. * 0 - 31 values corresponds to WLAN
  10573. * 32 - 63 values corresponds to BT
  10574. * 64 - 95 values corresponds to Zigbee
  10575. * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
  10576. * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
  10577. * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
  10578. * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
  10579. * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
  10580. * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
  10581. * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
  10582. * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
  10583. * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
  10584. * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
  10585. * @QCA_BT_A2DP: Prioritize BT A2DP
  10586. * @QCA_BT_BLE: Prioritize BT BLE
  10587. * @QCA_BT_SCO: Prioritize BT SCO
  10588. * @QCA_ZB_LOW: Prioritize Zigbee Low
  10589. * @QCA_ZB_HIGH: Prioritize Zigbee High
  10590. */
  10591. enum qca_coex_config_profiles {
  10592. /* 0 - 31 corresponds to WLAN */
  10593. QCA_WIFI_STA_DISCOVERY = 0,
  10594. QCA_WIFI_STA_CONNECTION = 1,
  10595. QCA_WIFI_STA_CLASS_3_MGMT = 2,
  10596. QCA_WIFI_STA_DATA = 3,
  10597. QCA_WIFI_STA_ALL = 4,
  10598. QCA_WIFI_SAP_DISCOVERY = 5,
  10599. QCA_WIFI_SAP_CONNECTION = 6,
  10600. QCA_WIFI_SAP_CLASS_3_MGMT = 7,
  10601. QCA_WIFI_SAP_DATA = 8,
  10602. QCA_WIFI_SAP_ALL = 9,
  10603. QCA_WIFI_CASE_MAX = 31,
  10604. /* 32 - 63 corresponds to BT */
  10605. QCA_BT_A2DP = 32,
  10606. QCA_BT_BLE = 33,
  10607. QCA_BT_SCO = 34,
  10608. QCA_BT_CASE_MAX = 63,
  10609. /* 64 - 95 corresponds to Zigbee */
  10610. QCA_ZB_LOW = 64,
  10611. QCA_ZB_HIGH = 65,
  10612. QCA_ZB_CASE_MAX = 95,
  10613. /* 0xff is default value if the u8 profile value is not set. */
  10614. QCA_PROFILE_DEFAULT_VALUE = 255
  10615. };
  10616. /**
  10617. * enum qca_vendor_attr_coex_config_types - Coex configurations types.
  10618. * This enum defines the valid set of values of coex configuration types. These
  10619. * values may used by attribute
  10620. * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
  10621. *
  10622. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
  10623. * weights to default values.
  10624. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
  10625. * weights with configurability value.
  10626. */
  10627. enum qca_vendor_attr_coex_config_types {
  10628. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
  10629. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
  10630. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
  10631. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX
  10632. };
  10633. /**
  10634. * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
  10635. * attributes
  10636. * Attributes for data used by
  10637. * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
  10638. *
  10639. * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
  10640. * Indicate config type.
  10641. * the config types are 32-bit values from qca_vendor_attr_coex_config_types
  10642. *
  10643. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
  10644. * Indicate the Priority 1 profiles.
  10645. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10646. * In same priority level, maximum to 4 profiles can be set here.
  10647. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
  10648. * Indicate the Priority 2 profiles.
  10649. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10650. * In same priority level, maximum to 4 profiles can be set here.
  10651. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
  10652. * Indicate the Priority 3 profiles.
  10653. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10654. * In same priority level, maximum to 4 profiles can be set here.
  10655. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
  10656. * Indicate the Priority 4 profiles.
  10657. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10658. * In same priority level, maximum to 4 profiles can be set here.
  10659. * NOTE:
  10660. * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
  10661. * arrangement:
  10662. * 1: In the same u32 attribute(priority x), the profiles enum values own
  10663. * same priority level.
  10664. * 2: 0xff is default value if the u8 profile value is not set.
  10665. * 3: max to 4 rules/profiles in same priority level.
  10666. * 4: max to 4 priority level (priority 1 - priority 4)
  10667. * 5: one priority level only supports one scenario from WLAN/BT/ZB,
  10668. * hybrid rules not support.
  10669. * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
  10670. * remain blank to reset all parameters.
  10671. * For example:
  10672. *
  10673. * If the attributes as follow:
  10674. * priority 1:
  10675. * ------------------------------------
  10676. * | 0xff | 0 | 1 | 2 |
  10677. * ------------------------------------
  10678. * priority 2:
  10679. * -------------------------------------
  10680. * | 0xff | 0xff | 0xff | 32 |
  10681. * -------------------------------------
  10682. * priority 3:
  10683. * -------------------------------------
  10684. * | 0xff | 0xff | 0xff | 65 |
  10685. * -------------------------------------
  10686. * then it means:
  10687. * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  10688. * owns same priority level.
  10689. * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  10690. * has priority over BT_A2DP and ZB_HIGH.
  10691. * 3: BT_A2DP has priority over ZB_HIGH.
  10692. */
  10693. enum qca_vendor_attr_coex_config_three_way {
  10694. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
  10695. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
  10696. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
  10697. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
  10698. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
  10699. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
  10700. /* Keep last */
  10701. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
  10702. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
  10703. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
  10704. };
  10705. /**
  10706. * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
  10707. * This enum defines the valid set of values of peer stats cache types. These
  10708. * values are used by attribute
  10709. * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID.
  10710. *
  10711. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics.
  10712. * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics.
  10713. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn
  10714. * statistics
  10715. */
  10716. enum qca_vendor_attr_peer_stats_cache_type {
  10717. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
  10718. QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
  10719. QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
  10720. QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
  10721. };
  10722. /**
  10723. * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
  10724. * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
  10725. * Attributes are required to flush peer rate statistics from driver to
  10726. * user application.
  10727. *
  10728. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
  10729. * Indicate peer stats cache type.
  10730. * The statistics types are 32-bit values from
  10731. * qca_vendor_attr_peer_stats_cache_type
  10732. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
  10733. * of size 6, representing peer mac address.
  10734. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
  10735. * containing buffer of statistics to send event to application layer entity.
  10736. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
  10737. * representing cookie for peer unique session.
  10738. */
  10739. enum qca_wlan_vendor_attr_peer_stats_cache_params {
  10740. QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
  10741. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
  10742. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
  10743. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
  10744. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
  10745. /* Keep last */
  10746. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
  10747. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
  10748. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
  10749. };
  10750. /**
  10751. * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee.
  10752. * this enum defines all the possible state of zigbee, which can be
  10753. * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE.
  10754. *
  10755. * @ZIGBEE_IDLE: zigbee in idle state
  10756. * @ZIGBEE_FORM_NETWORK: zibee forming network
  10757. * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network
  10758. * @ZIGBEE_JOIN: zigbee joining network
  10759. * @ZIGBEE_NETWORK_UP: zigbee network is up
  10760. * @ZIGBEE_HMI: zigbee in HMI mode
  10761. */
  10762. enum qca_mpta_helper_attr_zigbee_state {
  10763. ZIGBEE_IDLE = 0,
  10764. ZIGBEE_FORM_NETWORK = 1,
  10765. ZIGBEE_WAIT_JOIN = 2,
  10766. ZIGBEE_JOIN = 3,
  10767. ZIGBEE_NETWORK_UP = 4,
  10768. ZIGBEE_HMI = 5,
  10769. };
  10770. /**
  10771. * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by
  10772. * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
  10773. */
  10774. enum qca_mpta_helper_vendor_attr {
  10775. QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
  10776. /* Optional attribute used to update zigbee state.
  10777. * enum qca_mpta_helper_attr_zigbee_state.
  10778. * NLA_U32 attribute.
  10779. */
  10780. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
  10781. /* Optional attribute used to configure wlan duration for Shape-OCS
  10782. * during interrupt.
  10783. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
  10784. * Value range 0 ~ 300 (ms).
  10785. * NLA_U32 attribute.
  10786. */
  10787. QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
  10788. /* Optional attribute used to configure non wlan duration for Shape-OCS
  10789. * during interrupt.
  10790. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
  10791. * Value range 0 ~ 300 (ms).
  10792. * NLA_U32 attribute.
  10793. */
  10794. QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
  10795. /* Optional attribute used to configure wlan duration for Shape-OCS
  10796. * monitor period.
  10797. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
  10798. * Value range 0 ~ 300 (ms)
  10799. * NLA_U32 attribute
  10800. */
  10801. QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
  10802. /* Optional attribute used to configure non wlan duration for Shape-OCS
  10803. * monitor period.
  10804. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
  10805. * Value range 0 ~ 300 (ms)
  10806. * NLA_U32 attribute
  10807. */
  10808. QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
  10809. /* Optional attribute used to configure ocs interrupt duration.
  10810. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
  10811. * Value range 1000 ~ 20000 (ms)
  10812. * NLA_U32 attribute
  10813. */
  10814. QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
  10815. /* Optional attribute used to configure ocs monitor duration.
  10816. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
  10817. * Value range 1000 ~ 20000 (ms)
  10818. * NLA_U32 attribute
  10819. */
  10820. QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
  10821. /* Optional attribute used to notify wlan FW current zigbee channel.
  10822. * Value range 11 ~ 26
  10823. * NLA_U32 attribute
  10824. */
  10825. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
  10826. /* Optional attribute used to configure wlan mute duration.
  10827. * Value range 0 ~ 400 (ms)
  10828. * NLA_U32 attribute
  10829. */
  10830. QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
  10831. /* keep last */
  10832. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
  10833. QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
  10834. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
  10835. };
  10836. /**
  10837. * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
  10838. * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be
  10839. * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
  10840. *
  10841. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
  10842. * to request the driver to start reporting Beacon frames.
  10843. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver
  10844. * to request the driver to stop reporting Beacon frames.
  10845. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
  10846. * userspace to report received Beacon frames.
  10847. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
  10848. * to indicate that the driver is going to pause reporting Beacon frames.
  10849. */
  10850. enum qca_wlan_vendor_beacon_reporting_op_types {
  10851. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
  10852. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
  10853. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
  10854. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
  10855. };
  10856. /**
  10857. * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different
  10858. * types of reasons for which the driver is pausing reporting Beacon frames.
  10859. * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
  10860. *
  10861. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
  10862. * reasons.
  10863. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
  10864. * driver/firmware is starting a scan.
  10865. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
  10866. * driver/firmware disconnects from the ESS and indicates the disconnection to
  10867. * userspace (non-seamless roaming case). This reason code will be used by the
  10868. * driver/firmware to indicate stopping of beacon report events. Userspace
  10869. * will need to start beacon reporting again (if desired) by sending vendor
  10870. * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
  10871. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
  10872. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
  10873. * completed.
  10874. */
  10875. enum qca_wlan_vendor_beacon_reporting_pause_reasons {
  10876. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
  10877. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
  10878. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
  10879. };
  10880. /*
  10881. * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
  10882. * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
  10883. */
  10884. enum qca_wlan_vendor_attr_beacon_reporting_params {
  10885. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
  10886. /* Specifies the type of operation that the vendor command/event is
  10887. * intended for. Possible values for this attribute are defined in
  10888. * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
  10889. */
  10890. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
  10891. /* Optionally set by userspace to request the driver to report Beacon
  10892. * frames using asynchronous vendor events when the
  10893. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10894. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  10895. * If this flag is not set, the driver will only update Beacon frames
  10896. * in cfg80211 scan cache but not send any vendor events.
  10897. */
  10898. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
  10899. /* Optionally used by userspace to request the driver/firmware to
  10900. * report Beacon frames periodically when the
  10901. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10902. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
  10903. * u32 attribute, indicates the period of Beacon frames to be reported
  10904. * and in the units of beacon interval.
  10905. * If this attribute is missing in the command, then the default value
  10906. * of 1 will be assumed by driver, i.e., to report every Beacon frame.
  10907. * Zero is an invalid value.
  10908. * If a valid value is received for this attribute, the driver will
  10909. * update the cfg80211 scan cache periodically as per the value
  10910. * received in this attribute in addition to updating the cfg80211 scan
  10911. * cache when there is significant change in Beacon frame IEs.
  10912. */
  10913. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
  10914. /* Used by the driver to encapsulate the SSID when the
  10915. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10916. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  10917. * u8 array with a maximum size of 32.
  10918. *
  10919. * When generating beacon report from non-MBSSID Beacon frame, the SSID
  10920. * will be taken from the SSID element of the received Beacon frame.
  10921. *
  10922. * When generating beacon report from Multiple BSSID Beacon frame and
  10923. * if the BSSID of the current connected BSS matches the BSSID of the
  10924. * transmitting BSS, the SSID will be taken from the SSID element of
  10925. * the received Beacon frame.
  10926. *
  10927. * When generating beacon report from Multiple BSSID Beacon frame and
  10928. * if the BSSID of the current connected BSS matches the BSSID of one
  10929. * of the* nontransmitting BSSs, the SSID will be taken from the SSID
  10930. * field included in the nontransmitted BSS profile whose derived BSSI
  10931. * is same as the BSSID of the current connected BSS. When there is no
  10932. * nontransmitted BSS profile whose derived BSSID is same as the BSSID
  10933. * of current connected* BSS, this attribute will not be present.
  10934. */
  10935. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
  10936. /* Used by the driver to encapsulate the BSSID of the AP to which STA
  10937. * is currently connected to when the
  10938. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10939. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
  10940. * fixed size of 6 bytes.
  10941. *
  10942. * When generating beacon report from a Multiple BSSID beacon and the
  10943. * current connected BSSID matches one of the nontransmitted BSSIDs in
  10944. * a Multiple BSSID set, this BSSID will be that particular
  10945. * nontransmitted BSSID and not the transmitted BSSID (i.e., the
  10946. * transmitting address of the Beacon frame).
  10947. */
  10948. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
  10949. /* Used by the driver to encapsulate the frequency in MHz on which
  10950. * the Beacon frame was received when the
  10951. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
  10952. * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  10953. * u32 attribute.
  10954. */
  10955. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
  10956. /* Used by the driver to encapsulate the Beacon interval
  10957. * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10958. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  10959. * u16 attribute. The value will be copied from the Beacon frame and
  10960. * the units are TUs.
  10961. */
  10962. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
  10963. /* Used by the driver to encapsulate the Timestamp field from the
  10964. * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE
  10965. * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  10966. * u64 attribute.
  10967. */
  10968. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
  10969. /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
  10970. * Beacon frame is received in the driver when the
  10971. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10972. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
  10973. * the units of nanoseconds. This value is expected to have accuracy of
  10974. * about 10 ms.
  10975. */
  10976. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
  10977. /* Used by the driver to encapsulate the IEs of the Beacon frame from
  10978. * which this event is generated when the
  10979. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10980. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
  10981. */
  10982. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
  10983. /* Used by the driver to specify the reason for the driver/firmware to
  10984. * pause sending beacons to userspace when the
  10985. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10986. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
  10987. * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
  10988. * attribute.
  10989. */
  10990. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
  10991. /* Used by the driver to specify whether the driver will automatically
  10992. * resume reporting beacon events to userspace later (for example after
  10993. * the ongoing off-channel activity is completed etc.) when the
  10994. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10995. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
  10996. */
  10997. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
  10998. /* Optionally set by userspace to request the driver not to resume
  10999. * beacon reporting after a pause is completed, when the
  11000. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11001. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  11002. * If this flag is set, the driver will not resume beacon reporting
  11003. * after any pause in beacon reporting is completed. Userspace has to
  11004. * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
  11005. * to initiate beacon reporting again. If this flag is set in the recent
  11006. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
  11007. * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
  11008. * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
  11009. * set by the driver. Setting this flag until and unless there is a
  11010. * specific need is not recommended as there is a chance of some beacons
  11011. * received after pause command and next start command being not
  11012. * reported.
  11013. */
  11014. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
  11015. /* Keep last */
  11016. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
  11017. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
  11018. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
  11019. };
  11020. /**
  11021. * enum qca_vendor_oem_device_type - Represents the target device in firmware.
  11022. * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
  11023. *
  11024. * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
  11025. * a virtual device.
  11026. *
  11027. * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
  11028. * a physical device.
  11029. */
  11030. enum qca_vendor_oem_device_type {
  11031. QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
  11032. QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
  11033. };
  11034. /*
  11035. * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command
  11036. * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
  11037. *
  11038. * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
  11039. * used to set/query the data to/from the firmware. On query, the same
  11040. * attribute is used to carry the respective data in the reply sent by the
  11041. * driver to userspace. The request to set/query the data and the format of the
  11042. * respective data from the firmware are embedded in the attribute. The
  11043. * maximum size of the attribute payload is 1024 bytes.
  11044. *
  11045. * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
  11046. * based on this field. This optional attribute is included to specify whether
  11047. * the device type is a virtual device or a physical device for the command.
  11048. * This attribute can be omitted for a virtual device (default) command.
  11049. * This u8 attribute is used to carry information for the device type using
  11050. * values defined by enum qca_vendor_oem_device_type.
  11051. *
  11052. * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
  11053. * attribute when the data is queried from the firmware.
  11054. *
  11055. * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
  11056. * is set when the userspace queries data from the firmware. This attribute
  11057. * should not be set when userspace sets the OEM data to the firmware.
  11058. */
  11059. enum qca_wlan_vendor_attr_oem_data_params {
  11060. QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
  11061. QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
  11062. QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
  11063. QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
  11064. /* keep last */
  11065. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
  11066. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
  11067. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
  11068. };
  11069. /**
  11070. * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
  11071. * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
  11072. *
  11073. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
  11074. * Nested attribute containing multiple ranges with following attributes:
  11075. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
  11076. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
  11077. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
  11078. *
  11079. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
  11080. * Starting center frequency in MHz.
  11081. *
  11082. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
  11083. * Ending center frequency in MHz.
  11084. *
  11085. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
  11086. * s32 attribute, optional. It is a per frequency range attribute.
  11087. * The maximum TX power limit from user space is to be applied on an
  11088. * unrestricted interface for corresponding frequency range. It is also
  11089. * possible that the actual TX power may be even lower than this cap due to
  11090. * other considerations such as regulatory compliance, SAR, etc. In absence of
  11091. * this attribute the driver shall follow current behavior which means
  11092. * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
  11093. * power derived by the driver based on regulatory/SAR during interface up.
  11094. *
  11095. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
  11096. * u32 attribute, optional. Indicates all the interface types which are
  11097. * restricted for all frequency ranges provided in
  11098. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
  11099. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
  11100. * This attribute encapsulates bitmasks of interface types defined in
  11101. * enum nl80211_iftype. If an interface is marked as restricted the driver must
  11102. * move to a safe channel and if no safe channel is available the driver shall
  11103. * terminate that interface functionality. In absence of this attribute,
  11104. * interface (SAP/P2P) can still continue operating on an unsafe channel with
  11105. * TX power limit derived from either
  11106. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
  11107. * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
  11108. * is not provided.
  11109. */
  11110. enum qca_wlan_vendor_attr_avoid_frequency_ext {
  11111. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
  11112. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
  11113. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
  11114. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
  11115. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
  11116. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
  11117. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
  11118. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
  11119. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
  11120. };
  11121. /*
  11122. * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
  11123. * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
  11124. */
  11125. enum qca_wlan_vendor_attr_add_sta_node_params {
  11126. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
  11127. /* 6 byte MAC address of STA */
  11128. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
  11129. /* Authentication algorithm used by the station of size u16;
  11130. * defined in enum nl80211_auth_type.
  11131. */
  11132. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
  11133. /* keep last */
  11134. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
  11135. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
  11136. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
  11137. };
  11138. /**
  11139. * enum qca_btc_chain_mode - Specifies BT coex chain mode.
  11140. * This enum defines the valid set of values of BT coex chain mode.
  11141. * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
  11142. * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
  11143. *
  11144. * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared.
  11145. * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are
  11146. * separated, hybrid mode.
  11147. * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are
  11148. * separated, fixed FDD mode.
  11149. */
  11150. enum qca_btc_chain_mode {
  11151. QCA_BTC_CHAIN_SHARED = 0,
  11152. QCA_BTC_CHAIN_SEPARATED_HYBRID = 1,
  11153. QCA_BTC_CHAIN_SEPARATED_FDD = 2,
  11154. };
  11155. /* deprecated legacy name */
  11156. #define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID
  11157. /**
  11158. * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
  11159. * chain mode.
  11160. * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
  11161. *
  11162. * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
  11163. * Indicates the BT coex chain mode, are 32-bit values from
  11164. * enum qca_btc_chain_mode. This attribute is mandatory.
  11165. *
  11166. * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
  11167. * If set, vdev should be restarted when BT coex chain mode is updated.
  11168. * This attribute is optional.
  11169. */
  11170. enum qca_vendor_attr_btc_chain_mode {
  11171. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
  11172. QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
  11173. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
  11174. /* Keep last */
  11175. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
  11176. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
  11177. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
  11178. };
  11179. /**
  11180. * enum qca_vendor_wlan_sta_flags - Station feature flags
  11181. * Bits will be set to 1 if the corresponding features are enabled.
  11182. * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
  11183. * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
  11184. for the station
  11185. * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
  11186. for the station
  11187. */
  11188. enum qca_vendor_wlan_sta_flags {
  11189. QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
  11190. QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
  11191. QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
  11192. };
  11193. /**
  11194. * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
  11195. * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
  11196. * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
  11197. * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
  11198. * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
  11199. */
  11200. enum qca_vendor_wlan_sta_guard_interval {
  11201. QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
  11202. QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
  11203. QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
  11204. QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
  11205. };
  11206. /**
  11207. * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
  11208. * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
  11209. *
  11210. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
  11211. * Required attribute in request for AP mode only, 6-byte MAC address,
  11212. * corresponding to the station's MAC address for which information is
  11213. * requested. For STA mode this is not required as the info always correspond
  11214. * to the self STA and the current/last association.
  11215. *
  11216. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
  11217. * Optionally used in response, u32 attribute, contains a bitmap of different
  11218. * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
  11219. *
  11220. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
  11221. * Optionally used in response, u32 attribute, possible values are defined in
  11222. * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
  11223. * Guard interval used by the station.
  11224. *
  11225. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
  11226. * Optionally used in response, u32 attribute, used in AP mode only.
  11227. * Value indicates the number of data frames received from station with retry
  11228. * bit set to 1 in FC.
  11229. *
  11230. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
  11231. * Optionally used in response, u32 attribute, used in AP mode only.
  11232. * Counter for number of data frames with broadcast or multicast address in
  11233. * the destination address received from the station.
  11234. *
  11235. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
  11236. * Optionally used in response, u32 attribute, used in both STA and AP modes.
  11237. * Value indicates the number of data frames successfully transmitted only
  11238. * after retrying the packets and for which the TX status has been updated
  11239. * back to host from target.
  11240. *
  11241. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
  11242. * Optionally used in response, u32 attribute, used in both STA and AP mode.
  11243. * Value indicates the number of data frames not transmitted successfully even
  11244. * after retrying the packets for the number of times equal to the total number
  11245. * of retries allowed for that packet and for which the TX status has been
  11246. * updated back to host from target.
  11247. *
  11248. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
  11249. * Optionally used in response, u32 attribute, used in AP mode only.
  11250. * Counter in the target for the number of data frames successfully transmitted
  11251. * to the station.
  11252. *
  11253. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
  11254. * Optionally used in response, u32 attribute, used in AP mode only.
  11255. * Value indicates the number of data frames successfully transmitted only
  11256. * after retrying the packets.
  11257. *
  11258. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
  11259. * Optionally used in response, u32 attribute, used in both STA & AP mode.
  11260. * Value indicates the number of data frames not transmitted successfully even
  11261. * after retrying the packets for the number of times equal to the total number
  11262. * of retries allowed for that packet.
  11263. *
  11264. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
  11265. * the STA mode only. Represent the number of probe requests sent by the STA
  11266. * while attempting to roam on missing certain number of beacons from the
  11267. * connected AP. If queried in the disconnected state, this represents the
  11268. * count for the last connected state.
  11269. *
  11270. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
  11271. * the STA mode. Represent the number of probe responses received by the station
  11272. * while attempting to roam on missing certain number of beacons from the
  11273. * connected AP. When queried in the disconnected state, this represents the
  11274. * count when in last connected state.
  11275. *
  11276. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
  11277. * STA mode only. Represents the total number of frames sent out by STA
  11278. * including Data, ACK, RTS, CTS, Control Management. This data is maintained
  11279. * only for the connect session. Represents the count of last connected session,
  11280. * when queried in the disconnected state.
  11281. *
  11282. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
  11283. * Total number of RTS sent out by the STA. This data is maintained per connect
  11284. * session. Represents the count of last connected session, when queried in the
  11285. * disconnected state.
  11286. *
  11287. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
  11288. * STA mode.Represent the number of RTS transmission failure that reach retry
  11289. * limit. This data is maintained per connect session. Represents the count of
  11290. * last connected session, when queried in the disconnected state.
  11291. *
  11292. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
  11293. * the STA mode. Represent the total number of non aggregated frames transmitted
  11294. * by the STA. This data is maintained per connect session. Represents the count
  11295. * of last connected session, when queried in the disconnected state.
  11296. *
  11297. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
  11298. * STA mode. Represent the total number of aggregated frames transmitted by the
  11299. * STA. This data is maintained per connect session. Represents the count of
  11300. * last connected session, when queried in the disconnected state.
  11301. *
  11302. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
  11303. * the STA mode. Represents the number of received frames with a good PLCP. This
  11304. * data is maintained per connect session. Represents the count of last
  11305. * connected session, when queried in the disconnected state.
  11306. *
  11307. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
  11308. * used in the STA mode. Represents the number of occasions that no valid
  11309. * delimiter is detected by A-MPDU parser. This data is maintained per connect
  11310. * session. Represents the count of last connected session, when queried in the
  11311. * disconnected state.
  11312. *
  11313. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
  11314. * STA mode. Represents the number of frames for which CRC check failed in the
  11315. * MAC. This data is maintained per connect session. Represents the count of
  11316. * last connected session, when queried in the disconnected state.
  11317. *
  11318. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
  11319. * STA mode. Represents the number of unicast ACKs received with good FCS. This
  11320. * data is maintained per connect session. Represents the count of last
  11321. * connected session, when queried in the disconnected state.
  11322. *
  11323. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
  11324. * mode. Represents the number of received Block Acks. This data is maintained
  11325. * per connect session. Represents the count of last connected session, when
  11326. * queried in the disconnected state.
  11327. *
  11328. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
  11329. * mode. Represents the number of beacons received from the connected BSS. This
  11330. * data is maintained per connect session. Represents the count of last
  11331. * connected session, when queried in the disconnected state.
  11332. *
  11333. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
  11334. * STA mode. Represents the number of beacons received by the other BSS when in
  11335. * connected state (through the probes done by the STA). This data is maintained
  11336. * per connect session. Represents the count of last connected session, when
  11337. * queried in the disconnected state.
  11338. *
  11339. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
  11340. * the STA mode. Represents the number of received DATA frames with good FCS and
  11341. * matching Receiver Address when in connected state. This data is maintained
  11342. * per connect session. Represents the count of last connected session, when
  11343. * queried in the disconnected state.
  11344. *
  11345. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
  11346. * STA mode. Represents the number of RX Data multicast frames dropped by the HW
  11347. * when in the connected state. This data is maintained per connect session.
  11348. * Represents the count of last connected session, when queried in the
  11349. * disconnected state.
  11350. *
  11351. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
  11352. * STA mode. This represents the target power in dBm for the transmissions done
  11353. * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
  11354. * connect session. Represents the count of last connected session, when
  11355. * queried in the disconnected state.
  11356. *
  11357. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
  11358. * STA mode. This represents the Target power in dBm for transmissions done to
  11359. * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
  11360. * session. Represents the count of last connected session, when queried in the
  11361. * disconnected state.
  11362. *
  11363. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
  11364. * STA mode. This represents the Target power in dBm for transmissions done to
  11365. * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
  11366. * Represents the count of last connected session, when queried in the
  11367. * disconnected state.
  11368. *
  11369. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
  11370. * STA mode. This represents the Target power in dBm for transmissions done to
  11371. * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
  11372. * session. Represents the count of last connected session, when queried in
  11373. * the disconnected state.
  11374. *
  11375. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
  11376. * STA mode. This represents the Target power in dBm for for transmissions done
  11377. * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
  11378. * Represents the count of last connected session, when queried in the
  11379. * disconnected state.
  11380. *
  11381. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
  11382. * in the STA mode. This represents the Nested attribute representing the
  11383. * overflow counts of each receive buffer allocated to the hardware during the
  11384. * STA's connection. The number of hw buffers might vary for each WLAN
  11385. * solution and hence this attribute represents the nested array of all such
  11386. * HW buffer count. This data is maintained per connect session. Represents
  11387. * the count of last connected session, when queried in the disconnected state.
  11388. *
  11389. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
  11390. * allowed as per the regulatory requirements for the current or last connected
  11391. * session. Used in the STA mode.
  11392. *
  11393. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
  11394. * (dBm) used by the station in its latest unicast frame while communicating
  11395. * to the AP in the connected state. When queried in the disconnected state,
  11396. * this represents the TX power used by the STA with last AP communication
  11397. * when in connected state.
  11398. *
  11399. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
  11400. * level used to adjust the RX sensitivity. Represents the current ANI level
  11401. * when queried in the connected state. When queried in the disconnected
  11402. * state, this corresponds to the latest ANI level at the instance of
  11403. * disconnection.
  11404. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
  11405. * only. This represents the number of group addressed robust management frames
  11406. * received from this station with an invalid MIC or a missing MME when PMF is
  11407. * enabled.
  11408. *
  11409. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
  11410. * only. This represents the number of group addressed robust management frames
  11411. * received from this station with the packet number less than or equal to the
  11412. * last received packet number when PMF is enabled.
  11413. *
  11414. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
  11415. * mode only. This represents the number of Beacon frames received from this
  11416. * station with an invalid MIC or a missing MME when beacon protection is
  11417. * enabled.
  11418. *
  11419. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
  11420. * only. This represents number of Beacon frames received from this station with
  11421. * the packet number less than or equal to the last received packet number when
  11422. * beacon protection is enabled.
  11423. *
  11424. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
  11425. * STA mode only. Driver uses this attribute to populate the connection failure
  11426. * reason codes and the values are defined in
  11427. * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
  11428. * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
  11429. * connection failure from driver. The driver shall not include this attribute
  11430. * in response to QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no
  11431. * connection failure observed in the last attempted connection.
  11432. *
  11433. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
  11434. * used by the station in its last TX frame while communicating to the AP in the
  11435. * connected state. When queried in the disconnected state, this represents the
  11436. * rate used by the STA in the last TX frame to the AP when it was connected.
  11437. * This attribute is used for STA mode only.
  11438. *
  11439. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
  11440. * This represents the rate index used by the STA for the last TX frame to the
  11441. * AP. When queried in the disconnected state, this gives the last RIX used by
  11442. * the STA in the last TX frame to the AP when it was connected.
  11443. *
  11444. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
  11445. * mode only. This represents the number of times the STA TSF goes out of sync
  11446. * from the AP after the connection. If queried in the disconnected state, this
  11447. * gives the count of TSF out of sync for the last connection.
  11448. *
  11449. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
  11450. * mode only. This represents the roam trigger reason for the last roaming
  11451. * attempted by the firmware. This can be queried either in connected state or
  11452. * disconnected state. Each bit of this attribute represents the different
  11453. * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
  11454. *
  11455. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
  11456. * only. This represents the roam fail reason for the last failed roaming
  11457. * attempt by the firmware. Different roam failure reason codes are specified
  11458. * in enum qca_vendor_roam_fail_reasons. This can be queried either in
  11459. * connected state or disconnected state.
  11460. *
  11461. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
  11462. * STA mode only. This represents the roam invoke fail reason for the last
  11463. * failed roam invoke. Different roam invoke failure reason codes
  11464. * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
  11465. * queried either in connected state or disconnected state.
  11466. *
  11467. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
  11468. * This represents the average congestion duration of uplink frames in MAC
  11469. * queue in unit of ms. This can be queried either in connected state or
  11470. * disconnected state.
  11471. *
  11472. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Mandatory u32 Nested
  11473. * attribute, used in AP mode. This represents the MPDU packet count per MCS
  11474. * rate value of TX packets. Every index of this nested attribute corresponds
  11475. * to MCS index, for example Index 0 represents MCS0 TX rate. This can be
  11476. * queried in connected state.
  11477. *
  11478. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Mandatory u32 Nested
  11479. * attribute, used in AP mode. This represents the MPDU packet count per MCS
  11480. * rate value of RX packets. Every index of this nested attribute corresponds
  11481. * to MCS index, for example Index 0 represents MCS0 RX rate. This can be
  11482. * queried in connected state.
  11483. */
  11484. enum qca_wlan_vendor_attr_get_sta_info {
  11485. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
  11486. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
  11487. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
  11488. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
  11489. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
  11490. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
  11491. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
  11492. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
  11493. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
  11494. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
  11495. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
  11496. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
  11497. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
  11498. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
  11499. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
  11500. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
  11501. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
  11502. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
  11503. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
  11504. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
  11505. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
  11506. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
  11507. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
  11508. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
  11509. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
  11510. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
  11511. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
  11512. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
  11513. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
  11514. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
  11515. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
  11516. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
  11517. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
  11518. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
  11519. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
  11520. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
  11521. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
  11522. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
  11523. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
  11524. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
  11525. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
  11526. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
  11527. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
  11528. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
  11529. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
  11530. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
  11531. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
  11532. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
  11533. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51,
  11534. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52,
  11535. /* keep last */
  11536. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
  11537. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
  11538. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
  11539. };
  11540. /**
  11541. * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
  11542. * Used when the driver triggers the STA to disconnect from the AP.
  11543. *
  11544. * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
  11545. * disconnection with the AP due to unspecified reasons.
  11546. *
  11547. * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
  11548. * disconnection with the AP due to a roaming failure. This roaming is triggered
  11549. * internally (host driver/firmware).
  11550. *
  11551. * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
  11552. * the AP when the user/external triggered roaming fails.
  11553. *
  11554. * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
  11555. * by the host driver whenever gateway reachability failure is detected and the
  11556. * driver disconnects with AP.
  11557. *
  11558. * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
  11559. * the AP on a channel switch announcement from it with an unsupported channel.
  11560. *
  11561. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
  11562. * with indoor channels disabled and if the STA is connected on one of these
  11563. * disabled channels, the host driver disconnected the STA with this reason
  11564. * code.
  11565. *
  11566. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
  11567. * explicit request from the user to disable the current operating channel.
  11568. *
  11569. * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
  11570. * the internal host driver/firmware recovery.
  11571. *
  11572. * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
  11573. * a timeout for the key installations from the user space.
  11574. *
  11575. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
  11576. * STA on a band change request from the user space to a different band from the
  11577. * current operation channel/band.
  11578. *
  11579. * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
  11580. * interface down trigger from the user space.
  11581. *
  11582. * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
  11583. * STA on getting continuous transmission failures for multiple Data frames.
  11584. *
  11585. * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
  11586. * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
  11587. * represents inactivity from AP on such transmissions.
  11588. * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
  11589. * disconnection when SA Query times out (AP does not respond to SA Query).
  11590. *
  11591. * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
  11592. * STA on missing the beacons continuously from the AP.
  11593. *
  11594. * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
  11595. * able to move to the channel mentioned by the AP in CSA.
  11596. *
  11597. * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
  11598. */
  11599. enum qca_disconnect_reason_codes {
  11600. QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
  11601. QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
  11602. QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
  11603. QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
  11604. QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
  11605. QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
  11606. QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
  11607. QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
  11608. QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
  11609. QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
  11610. QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
  11611. QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
  11612. QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
  11613. QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
  11614. QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
  11615. QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
  11616. QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
  11617. };
  11618. /**
  11619. * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
  11620. * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
  11621. *
  11622. * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
  11623. * This attribute represents the driver specific reason codes (local
  11624. * driver/firmware initiated reasons for disconnection) defined
  11625. * in enum qca_disconnect_reason_codes.
  11626. */
  11627. enum qca_wlan_vendor_attr_driver_disconnect_reason {
  11628. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
  11629. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
  11630. /* keep last */
  11631. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
  11632. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
  11633. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
  11634. };
  11635. /**
  11636. * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
  11637. *
  11638. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
  11639. */
  11640. enum qca_wlan_tspec_operation {
  11641. QCA_WLAN_TSPEC_ADD = 0,
  11642. QCA_WLAN_TSPEC_DEL = 1,
  11643. QCA_WLAN_TSPEC_GET = 2,
  11644. };
  11645. /**
  11646. * enum qca_wlan_tspec_direction - Direction in TSPEC
  11647. * As what is defined in IEEE Std 802.11-2016, Table 9-139.
  11648. *
  11649. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
  11650. */
  11651. enum qca_wlan_tspec_direction {
  11652. QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
  11653. QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
  11654. QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
  11655. QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
  11656. };
  11657. /**
  11658. * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC
  11659. * As what is defined in IEEE Std 802.11-2016, Table 9-141.
  11660. *
  11661. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
  11662. */
  11663. enum qca_wlan_tspec_ack_policy {
  11664. QCA_WLAN_TSPEC_NORMAL_ACK = 0,
  11665. QCA_WLAN_TSPEC_NO_ACK = 1,
  11666. /* Reserved */
  11667. QCA_WLAN_TSPEC_BLOCK_ACK = 3,
  11668. };
  11669. /**
  11670. * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
  11671. * used by QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
  11672. *
  11673. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
  11674. * u8 attribute. Specify the TSPEC operation of this request. Possible values
  11675. * are defined in enum qca_wlan_tspec_operation.
  11676. * Mandatory attribute for all kinds of config TSPEC requests.
  11677. *
  11678. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
  11679. * u8 attribute. TS ID. Possible values are 0-7.
  11680. * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
  11681. * QCA_WLAN_TSPEC_GET. A mandatory attribute.
  11682. *
  11683. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
  11684. * u8 attribute. Direction of data carried by the TS. Possible values are
  11685. * defined in enum qca_wlan_tspec_direction.
  11686. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11687. *
  11688. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
  11689. * Flag attribute. Indicate whether APSD is enabled for the traffic associated
  11690. * with the TS. set - enabled, not set - disabled.
  11691. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11692. *
  11693. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
  11694. * u8 attribute. User priority to be used for the transport of MSDUs/ -MSDUs
  11695. * belonging to this TS. Possible values are 0-7.
  11696. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11697. *
  11698. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
  11699. * u8 attribute. Indicate whether MAC acknowledgements are required for
  11700. * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
  11701. * Possible values are defined in enum qca_wlan_tspec_ack_policy.
  11702. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11703. *
  11704. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
  11705. * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
  11706. * belonging to this TS.
  11707. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11708. *
  11709. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
  11710. * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
  11711. * belonging to this TS.
  11712. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11713. *
  11714. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
  11715. * u32 attribute. Specify the minimum interval in microseconds between the
  11716. * start of two successive SPs.
  11717. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11718. *
  11719. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
  11720. * u32 attribute. Specify the maximum interval in microseconds between the
  11721. * start of two successive SPs.
  11722. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11723. *
  11724. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
  11725. * u32 attribute. Specify the minimum interval in microseconds that can elapse
  11726. * without arrival or transfer of an MPDU belonging to the TS before this TS
  11727. * is deleted by the MAC entity at the HC.
  11728. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11729. *
  11730. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
  11731. * u32 attribute. Specify the minimum interval in microseconds that can elapse
  11732. * without arrival or transfer of an MSDU belonging to the TS before the
  11733. * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
  11734. * 0xFFFFFFFF disables the suspension interval. The value of the suspension
  11735. * interval is always less than or equal to the inactivity interval.
  11736. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11737. *
  11738. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
  11739. * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
  11740. * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
  11741. * bounds of this TSPEC.
  11742. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11743. *
  11744. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
  11745. * u32 attribute. Indicate the average data rate in bps specified at the MAC
  11746. * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
  11747. * bounds of this TSPEC.
  11748. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11749. *
  11750. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
  11751. * u32 attribute. Indicate the maximum allowable data rate in bps specified at
  11752. * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
  11753. * the bounds of this TSPEC.
  11754. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11755. *
  11756. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
  11757. * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
  11758. * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
  11759. * value of 0 indicates that there are no bursts.
  11760. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11761. *
  11762. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
  11763. * u32 attribute. Indicate the minimum PHY rate in bps for transport of
  11764. * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
  11765. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11766. *
  11767. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
  11768. * u16 attribute. Specify the excess allocation of time (and bandwidth) over
  11769. * and above the stated application rates required to transport an MSDU/A-MSDU
  11770. * belonging to the TS in this TSPEC.
  11771. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11772. */
  11773. enum qca_wlan_vendor_attr_config_tspec {
  11774. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
  11775. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
  11776. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
  11777. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
  11778. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
  11779. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
  11780. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
  11781. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
  11782. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
  11783. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
  11784. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
  11785. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
  11786. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
  11787. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
  11788. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
  11789. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
  11790. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
  11791. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
  11792. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
  11793. /* keep last */
  11794. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
  11795. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
  11796. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
  11797. };
  11798. /**
  11799. * enum qca_wlan_medium_assess_type - Type of medium assess request
  11800. *
  11801. * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
  11802. */
  11803. enum qca_wlan_medium_assess_type {
  11804. QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
  11805. QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
  11806. };
  11807. /**
  11808. * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
  11809. * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
  11810. *
  11811. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
  11812. * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
  11813. * Specify the type of medium assess request and indicate its type in response.
  11814. * Possible values are defined in enum qca_wlan_medium_assess_type.
  11815. *
  11816. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
  11817. * u32 attribute. Mandatory in CCA request.
  11818. * Specify the assessment period in terms of seconds. Assessment result will be
  11819. * sent as the response to the CCA request after the assessment period.
  11820. *
  11821. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
  11822. * u32 attribute. Mandatory in response to CCA request.
  11823. * Total timer tick count of the assessment cycle.
  11824. *
  11825. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
  11826. * u32 attribute. Mandatory in response to CCA request.
  11827. * Timer tick count of idle time in the assessment cycle.
  11828. *
  11829. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
  11830. * u32 attribute. Mandatory in response to CCA request.
  11831. * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
  11832. *
  11833. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
  11834. * u32 attribute. Mandatory in response to CCA request.
  11835. * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
  11836. *
  11837. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
  11838. * s32 attribute. Mandatory in response to CCA request.
  11839. * Maximum RSSI of Intra BSS traffic in the assessment cycle.
  11840. *
  11841. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
  11842. * s32 attribute. Mandatory in response to CCA request.
  11843. * Minimum RSSI of Intra BSS traffic in the assessment cycle.
  11844. *
  11845. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
  11846. * u8 attribute. Mandatory in congestion report request.
  11847. * 1-enable 0-disable.
  11848. *
  11849. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
  11850. * u8 attribute. Mandatory in congestion report enable request and will be
  11851. * ignored if present in congestion report disable request. Possible values are
  11852. * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
  11853. * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
  11854. * congestion percentage reaches the configured threshold.
  11855. *
  11856. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
  11857. * u8 attribute. Optional in congestion report enable request and will be
  11858. * ignored if present in congestion report disable request.
  11859. * Specify the interval of congestion report event in terms of seconds. Possible
  11860. * values are 1-255. Default value 1 will be used if this attribute is omitted
  11861. * or using invalid values.
  11862. *
  11863. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
  11864. * u8 attribute. Mandatory in congestion report event.
  11865. * Indicate the actual congestion percentage. Possible values are 0-100.
  11866. */
  11867. enum qca_wlan_vendor_attr_medium_assess {
  11868. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
  11869. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
  11870. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
  11871. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
  11872. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
  11873. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
  11874. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
  11875. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
  11876. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
  11877. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
  11878. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
  11879. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
  11880. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
  11881. /* keep last */
  11882. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
  11883. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
  11884. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
  11885. };
  11886. /**
  11887. * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
  11888. * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
  11889. *
  11890. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
  11891. * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
  11892. * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
  11893. * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
  11894. *
  11895. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
  11896. * u8 attribute, required. 1 means Tx VDEV up event.0 mean Tx VDEV down event.
  11897. *
  11898. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
  11899. * u8 attribute, required. indicates group id of Tx VDEV
  11900. *
  11901. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
  11902. * Nested attribute. This attribute shall be used by the driver to send
  11903. * group information. The attributes defined in enum
  11904. * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
  11905. * are nested in this attribute.
  11906. */
  11907. enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
  11908. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
  11909. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
  11910. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
  11911. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
  11912. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
  11913. /* keep last */
  11914. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
  11915. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
  11916. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
  11917. };
  11918. /**
  11919. * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
  11920. * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
  11921. *
  11922. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
  11923. * u32 attribute, required. contains interface index.
  11924. *
  11925. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
  11926. * u8 attribute, required. 0 - means vdev is in down state.
  11927. * 1- means vdev is in up state.
  11928. */
  11929. enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
  11930. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
  11931. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
  11932. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
  11933. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
  11934. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
  11935. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
  11936. };
  11937. /**
  11938. * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
  11939. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
  11940. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
  11941. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
  11942. * frame
  11943. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
  11944. * Request frame.
  11945. */
  11946. enum qca_wlan_vendor_oci_override_frame_type {
  11947. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
  11948. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
  11949. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
  11950. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
  11951. };
  11952. /**
  11953. * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
  11954. *
  11955. * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
  11956. * STA interface has to be given while selecting the connection policies
  11957. * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
  11958. * An interface is set as primary through the attribute
  11959. * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
  11960. * applicable if the primary interface has not been set earlier.
  11961. *
  11962. * The intention is not to downgrade the primary STA performance, such as:
  11963. * - Do not reduce the number of TX/RX chains of primary connection.
  11964. * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
  11965. * chains.
  11966. * - If using MCC, should set the MCC duty cycle of the primary connection to
  11967. * be higher than the secondary connection.
  11968. *
  11969. * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
  11970. * subsequent STA connection shall be chosen to balance with the existing
  11971. * concurrent STA's performance.
  11972. * Such as
  11973. * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
  11974. * capability.
  11975. * - If using MCC, set the MCC duty cycle of the primary connection to be equal
  11976. * to the secondary.
  11977. * - Prefer BSSID candidates which will help provide the best "overall"
  11978. * performance for all the STA connections.
  11979. */
  11980. enum qca_wlan_concurrent_sta_policy_config {
  11981. QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
  11982. QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
  11983. };
  11984. /**
  11985. * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies
  11986. *
  11987. * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP
  11988. * interface.
  11989. *
  11990. * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies
  11991. * to meet gaming audio latency requirements.
  11992. *
  11993. * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface
  11994. * concurrencies to meet lossless audio streaming requirements.
  11995. *
  11996. * @QCA_WLAN_CONCURRENT_AP_POLICY_XR: Select interface concurrencies to meet
  11997. * XR (eXtended Reality) requirements.
  11998. */
  11999. enum qca_wlan_concurrent_ap_policy_config {
  12000. QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0,
  12001. QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1,
  12002. QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2,
  12003. QCA_WLAN_CONCURRENT_AP_POLICY_XR = 3,
  12004. };
  12005. /**
  12006. * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes
  12007. * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command.
  12008. *
  12009. * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG:
  12010. * u8 attribute. Configures the concurrent STA policy configuration.
  12011. * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
  12012. * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG:
  12013. * u8 attribute. Configures the concurrent AP policy configuration.
  12014. * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config.
  12015. */
  12016. enum qca_wlan_vendor_attr_concurrent_policy {
  12017. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0,
  12018. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1,
  12019. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2,
  12020. /* keep last */
  12021. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST,
  12022. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX =
  12023. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1,
  12024. };
  12025. /* Compatibility defines for previously used enum
  12026. * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used
  12027. * in any new implementation.
  12028. */
  12029. #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \
  12030. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG
  12031. #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \
  12032. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX
  12033. #define qca_wlan_vendor_attr_concurrent_sta_policy \
  12034. qca_wlan_vendor_attr_concurrent_policy
  12035. /**
  12036. * enum qca_sta_connect_fail_reason_codes - Defines values carried
  12037. * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
  12038. * attribute.
  12039. * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No probe response frame received
  12040. * for unicast probe request.
  12041. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
  12042. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
  12043. * ath request.
  12044. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
  12045. * received from AP.
  12046. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send assoc
  12047. * request.
  12048. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
  12049. * assoc request.
  12050. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Assoc response is not
  12051. * received from AP.
  12052. */
  12053. enum qca_sta_connect_fail_reason_codes {
  12054. QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
  12055. QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
  12056. QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
  12057. QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
  12058. QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
  12059. QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
  12060. QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
  12061. };
  12062. /**
  12063. * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
  12064. * OCI override request. These attributes are used inside nested attribute
  12065. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
  12066. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  12067. *
  12068. * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
  12069. * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
  12070. * attribute to specify the frame type in which the OCI is to be overridden.
  12071. *
  12072. * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
  12073. * OCI frequency (in MHz) to override in the specified frame type.
  12074. */
  12075. enum qca_wlan_vendor_attr_oci_override {
  12076. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
  12077. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
  12078. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
  12079. /* keep last */
  12080. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
  12081. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
  12082. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
  12083. };
  12084. /**
  12085. * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
  12086. * filters defined in this enum are used in attribute
  12087. * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
  12088. *
  12089. * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
  12090. * shall filter the channels which are not usable because of coexistence with
  12091. * cellular radio.
  12092. * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
  12093. * shall filter the channels which are not usable because of existing active
  12094. * interfaces in the driver and will result in Multi Channel Concurrency, etc.
  12095. *
  12096. */
  12097. enum qca_wlan_vendor_usable_channels_filter {
  12098. QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
  12099. QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
  12100. };
  12101. /**
  12102. * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
  12103. * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
  12104. *
  12105. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
  12106. * u32 attribute, required. Indicates the center frequency of the primary
  12107. * channel in MHz.
  12108. *
  12109. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
  12110. * u32 attribute. Indicates the center frequency of the primary segment of the
  12111. * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
  12112. * 160 MHz, and 320 MHz channels.
  12113. *
  12114. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
  12115. * u32 attribute. Indicates the center frequency of the secondary segment of
  12116. * 80+80 channel in MHz. This attribute is required only when
  12117. * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
  12118. *
  12119. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
  12120. * u32 attribute, required. Indicates the bandwidth of the channel, possible
  12121. * values are defined in enum nl80211_chan_width.
  12122. *
  12123. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
  12124. * u32 attribute, required. Indicates all the interface types for which this
  12125. * channel is usable. This attribute encapsulates bitmasks of interface types
  12126. * defined in enum nl80211_iftype.
  12127. *
  12128. */
  12129. enum qca_wlan_vendor_attr_chan_info {
  12130. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
  12131. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
  12132. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
  12133. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
  12134. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
  12135. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
  12136. /* keep last */
  12137. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
  12138. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
  12139. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
  12140. };
  12141. /**
  12142. * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
  12143. * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
  12144. *
  12145. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
  12146. * u32 attribute. Indicates the bands from which the channels should be reported
  12147. * in response. This attribute encapsulates bit masks of bands defined in enum
  12148. * nl80211_band. Optional attribute, if not present in the request the driver
  12149. * shall return channels from all supported bands.
  12150. *
  12151. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
  12152. * u32 attribute. Indicates all the interface types for which the usable
  12153. * channels information is requested. This attribute encapsulates bitmasks of
  12154. * interface types defined in enum nl80211_iftype. Optional attribute, if not
  12155. * present in the request the driver shall send information of all supported
  12156. * interface modes.
  12157. *
  12158. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
  12159. * u32 attribute. This attribute carries information of all filters that shall
  12160. * be applied while populating usable channels information by the driver. This
  12161. * attribute carries bit masks of different filters defined in enum
  12162. * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
  12163. * in the request the driver shall send information of channels without applying
  12164. * any of the filters that can be configured through this attribute.
  12165. *
  12166. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
  12167. * Nested attribute. This attribute shall be used by the driver to send
  12168. * usability information of each channel. The attributes defined in enum
  12169. * qca_wlan_vendor_attr_chan_info are used inside this attribute.
  12170. */
  12171. enum qca_wlan_vendor_attr_usable_channels {
  12172. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
  12173. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
  12174. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
  12175. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
  12176. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
  12177. /* keep last */
  12178. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
  12179. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
  12180. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
  12181. };
  12182. /**
  12183. * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
  12184. * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
  12185. *
  12186. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
  12187. * the list of radar history entries.
  12188. * Each entry contains freq, timestamp, and radar signal detect flag.
  12189. * The driver shall add an entry when CAC has finished, or radar signal
  12190. * has been detected post AP beaconing. The driver shall maintain at least
  12191. * 8 entries in order to save CAC result for a 160 MHz channel.
  12192. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
  12193. * Channel frequency in MHz.
  12194. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
  12195. * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
  12196. * or radar detection.
  12197. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
  12198. * This flag indicates radar signal has been detected.
  12199. */
  12200. enum qca_wlan_vendor_attr_radar_history {
  12201. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
  12202. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
  12203. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
  12204. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
  12205. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
  12206. /* keep last */
  12207. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
  12208. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
  12209. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
  12210. };
  12211. /**
  12212. * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
  12213. *
  12214. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
  12215. * target exited MCC state and cleared the quota information. In the
  12216. * command it clears MCC quota setting and restores adaptive scheduling.
  12217. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
  12218. * will not be changed.
  12219. * This quota type is present in command/event.
  12220. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
  12221. * and the target may change the quota based on the data activity.
  12222. * This quota type is only present in event.
  12223. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY: Channel time quota is optimized
  12224. * by the target for low latency.
  12225. * This quota type is only present in command.
  12226. */
  12227. enum qca_wlan_vendor_mcc_quota_type {
  12228. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
  12229. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
  12230. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
  12231. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY = 3,
  12232. };
  12233. /**
  12234. * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
  12235. * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
  12236. * quota information or as a command to set the required MCC quota for an
  12237. * interface.
  12238. *
  12239. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
  12240. * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
  12241. * In a command this specifies the MCC quota type to be set for the interface.
  12242. * In an event this provides the current quota type in force.
  12243. * This is required in a command and an event.
  12244. *
  12245. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
  12246. * the list of channel quota entries.
  12247. * In an event each entry contains the frequency and respective time quota for
  12248. * all the MCC interfaces.
  12249. * In a command it specifies the interface index and respective time quota.
  12250. * In a command only one entry (ifindex, quota pair) may be specified.
  12251. *
  12252. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
  12253. * Channel frequency in MHz. This is present only in an event.
  12254. *
  12255. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
  12256. * Channel time quota expressed as percentage.
  12257. * This is present in an event and a command.
  12258. * In an command, the user shall specify the quota to be allocated for the
  12259. * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
  12260. * In an event this provides the existing quota for the channel.
  12261. *
  12262. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
  12263. * Specifies the interface index (netdev) for which the corresponding
  12264. * configurations are applied. This is required in a command only. Only one
  12265. * interface index may be specified. If not specified, the configuration is
  12266. * rejected.
  12267. *
  12268. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE
  12269. * 8-bit unsigned value to enable/disable Multi-Channel Concurrency
  12270. * low latency mode. The firmware will do optimization for low
  12271. * latency in Multi-Channel concurrency state if enabled. And all existing
  12272. * user quota setting will be overwritten by the target.
  12273. * 0 - disable(default), 1 - enable.
  12274. * It is only present in a command with quota type of
  12275. * QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY.
  12276. */
  12277. enum qca_wlan_vendor_attr_mcc_quota {
  12278. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
  12279. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
  12280. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
  12281. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
  12282. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
  12283. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
  12284. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE = 6,
  12285. /* keep last */
  12286. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
  12287. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
  12288. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
  12289. };
  12290. /**
  12291. * enum qca_wlan_roam_stats_invoke_reason - Roam invoke reason. These values
  12292. * are used by the attribute
  12293. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON.
  12294. *
  12295. * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED: Default value when target
  12296. * invoke roam.
  12297. * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE: Neighbor unreachable
  12298. * detection failed when the roam trigger.
  12299. * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE: Invoke from user space.
  12300. */
  12301. enum qca_wlan_roam_stats_invoke_reason {
  12302. QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED = 0,
  12303. QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE = 1,
  12304. QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE = 2,
  12305. };
  12306. /**
  12307. * enum qca_wlan_roam_stats_tx_failures_reason - Roam TX failures reason. These
  12308. * values are used by the attribute
  12309. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON.
  12310. *
  12311. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED: Default value when
  12312. * roam by kickout.
  12313. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY: Excessive retry when roam
  12314. * trigger by kickout.
  12315. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY: Station inactivity when
  12316. * roam trigger by kickout.
  12317. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT: IBSS disconnect when
  12318. * roam trigger by kickout.
  12319. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT: TDLS peer has
  12320. * disappeared, and all TX is failing when roam trigger by kickout.
  12321. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT: SA query process
  12322. * timeout when roam trigger by kickout.
  12323. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT: Directly connected
  12324. * peer has roamed to a repeater.
  12325. */
  12326. enum qca_wlan_roam_stats_tx_failures_reason {
  12327. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED = 0,
  12328. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY = 1,
  12329. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY = 2,
  12330. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT = 3,
  12331. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT = 4,
  12332. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT = 5,
  12333. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT = 6,
  12334. };
  12335. /**
  12336. * enum qca_wlan_roam_stats_abort_reason - Roam abort reason. These values
  12337. * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON.
  12338. *
  12339. * @QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED: Target did not specify the
  12340. * detailed reason for roam scan being aborted.
  12341. * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH: Roam scan is not
  12342. * started due to high data RSSI during LOW-RSSI roaming.
  12343. * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD: Roam scan is not
  12344. * started due to good link speed during LOW-RSSI roaming.
  12345. * @QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH: Roam scan is not started
  12346. * due to high data RSSI during background roaming.
  12347. * @QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD: Roam scan is not
  12348. * started due to high beacon RSSI during background roaming
  12349. */
  12350. enum qca_wlan_roam_stats_abort_reason {
  12351. QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED = 0,
  12352. QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH = 1,
  12353. QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD = 2,
  12354. QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH = 3,
  12355. QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD = 4,
  12356. };
  12357. /**
  12358. * enum qca_wlan_roam_stats_scan_type - Roam scan type define.
  12359. * These values are used by the attribute
  12360. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE.
  12361. *
  12362. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL: Partial channel scan
  12363. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL: Full channel scan
  12364. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN: No roam scan was triggered.
  12365. * This is generally used in BTM events to indicate BTM frame exchange logs.
  12366. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ: Higher band roam scan
  12367. * from 2.4 GHz to 5 GHz or 6 GHz
  12368. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ: Higher band roam scan from
  12369. * 5 GHz to 6 GHz
  12370. */
  12371. enum qca_wlan_roam_stats_scan_type {
  12372. QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL = 0,
  12373. QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL = 1,
  12374. QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN = 2,
  12375. QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ = 3,
  12376. QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ = 4,
  12377. };
  12378. /**
  12379. * enum qca_wlan_roam_stats_scan_dwell_type - Roam scan dwell type.
  12380. * These values are used by the attribute
  12381. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE.
  12382. *
  12383. * @QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED: Target did not specify the
  12384. * detailed roam scan type.
  12385. * @QCA_WLAN_ROAM_STATS_DWELL_ACTIVE_TYPE: Active scan during roam.
  12386. * @QCA_WLAN_ROAM_STATS_DWELL_PASSIVE_TYPE: Passive scan during roam.
  12387. */
  12388. enum qca_wlan_roam_stats_scan_dwell_type {
  12389. QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED = 0,
  12390. QCA_WLAN_ROAM_STATS_DWELL_TYPE_ACTIVE = 1,
  12391. QCA_WLAN_ROAM_STATS_DWELL_TYPE_PASSIVE = 2,
  12392. };
  12393. /**
  12394. * enum qca_wlan_vendor_attr_roam_stats_scan_chan_info - Attributes used inside
  12395. * the %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO nested attribute.
  12396. */
  12397. enum qca_wlan_vendor_attr_roam_stats_scan_chan_info {
  12398. /* 32-bit unsigned value to indicate center frequency of the primary
  12399. * channel in MHz for each roam scan channel.
  12400. */
  12401. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHANNEL_FREQ = 1,
  12402. /* 8-bit unsigned value to indicate channel scan type for each
  12403. * roam scan channel, values in qca_wlan_roam_stats_scan_dwell_type.
  12404. */
  12405. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE = 2,
  12406. /* 32-bit unsigned value to indicate maximum scan time in milliseconds
  12407. * for each roam scan channel.
  12408. */
  12409. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX_DWELL_TIME = 3,
  12410. /* keep last */
  12411. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST,
  12412. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_FRAME_MAX =
  12413. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST - 1,
  12414. };
  12415. /**
  12416. * enum qca_wlan_roam_stats_frame_subtype - Roam frame subtypes. These values
  12417. * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE.
  12418. *
  12419. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH: Pre-authentication frame
  12420. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC: Reassociation frame
  12421. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1: EAPOL-Key M1 frame
  12422. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2: EAPOL-Key M2 frame
  12423. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3: EAPOL-Key M3 frame
  12424. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4: EAPOL-Key M4 frame
  12425. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1: EAPOL-Key GTK M1 frame
  12426. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2: EAPOL-Key GTK M2 frame
  12427. */
  12428. enum qca_wlan_roam_stats_frame_subtype {
  12429. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH = 1,
  12430. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC = 2,
  12431. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1 = 3,
  12432. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2 = 4,
  12433. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3 = 5,
  12434. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4 = 6,
  12435. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1 = 7,
  12436. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2 = 8,
  12437. };
  12438. /**
  12439. * enum roam_frame_status - Specifies the valid values the vendor roam frame
  12440. * attribute QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS can take.
  12441. *
  12442. * @QCA_WLAN_ROAM_FRAME_STATUS_SUCCESS: It indicates the roam frame was
  12443. * sent or received successfully.
  12444. * @QCA_WLAN_ROAM_FRAME_STATUS_FAIL: It indicates the roam frame sending or
  12445. * receiving failed.
  12446. */
  12447. enum qca_wlan_roam_stats_frame_status {
  12448. QCA_WLAN_ROAM_STATS_FRAME_STATUS_SUCCESS = 0,
  12449. QCA_WLAN_ROAM_STATS_FRAME_STATUS_FAIL = 1,
  12450. };
  12451. /**
  12452. * enum qca_wlan_vendor_attr_roam_stats_frame_info - Attributes used within the
  12453. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO nested attribute.
  12454. */
  12455. enum qca_wlan_vendor_attr_roam_stats_frame_info {
  12456. /* 8-bit unsigned value to indicate the frame subtype during
  12457. * roaming, one of the values in qca_wlan_roam_stats_frame_subtype.
  12458. */
  12459. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE = 1,
  12460. /* 8-bit unsigned value to indicate the frame is successful or failed
  12461. * during roaming, one of the values in
  12462. * qca_wlan_roam_stats_frame_status.
  12463. */
  12464. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS = 2,
  12465. /* 64-bit unsigned value to indicate the timestamp for frame of
  12466. * preauthentication/reassociation/EAPOL-M1/EAPOL-M2/EAPOL-M3/EAPOL-M4
  12467. * when sent or received during roaming, timestamp in milliseconds
  12468. * from system boot.
  12469. */
  12470. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3,
  12471. /* keep last */
  12472. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST,
  12473. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_MAX =
  12474. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST - 1,
  12475. };
  12476. /**
  12477. * enum qca_wlan_vendor_attr_roam_stats_info - Used by the attribute
  12478. * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO.
  12479. */
  12480. enum qca_wlan_vendor_attr_roam_stats_info {
  12481. /* 64-bit unsigned value to indicate the timestamp when roam was
  12482. * triggered by the firmware, timestamp in milliseconds from system
  12483. * boot.
  12484. */
  12485. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_TRIGGER_TIMESTAMP = 1,
  12486. /* 32-bit unsigned value to indicate the roam trigger reason for the
  12487. * last roaming attempted by the firmware. This can be queried either
  12488. * in a connected state or disconnected state. The values of this
  12489. * attribute represent the roam trigger reason codes, which
  12490. * are defined in enum qca_roam_reason.
  12491. */
  12492. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TRIGGER_REASON = 2,
  12493. /* 8-bit unsigned value to indicate percentage of packets for which
  12494. * the RX rate is lower than the RX rate threshold in total RX packets,
  12495. * used for roaming trigger by per.
  12496. */
  12497. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_RXRATE_THRESHOLD_PERCENT = 3,
  12498. /* 8-bit unsigned value to indicate percentage of packets for which
  12499. * the TX rate is lower than TX rate threshold in total TX packets,
  12500. * used for roaming trigger by per.
  12501. */
  12502. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_TXRATE_THRESHOLD_PERCENT = 4,
  12503. /* 32-bit unsigned value to indicate final beacon miss count for
  12504. * trigger reason of beacon miss.
  12505. */
  12506. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FINAL_BMISS_CNT = 5,
  12507. /* 32-bit unsigned value to indicate consecutive beacon miss count
  12508. * for trigger reason of beacon miss.
  12509. */
  12510. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONSECUTIVE_BMISS_CNT = 6,
  12511. /* 8-bit unsigned value to indicate QOS-NULL TX status for trigger
  12512. * reason of beacon miss, 0 - success, 1 - fail.
  12513. * If QOS-NULL TX status is successful, beacon miss final count and
  12514. * consecutive beacon miss count will be reset to zero, and roam will
  12515. * not be triggered. If QOS-NULL TX status is failed, beacon miss final
  12516. * count and consecutive beacon miss count continue to calculate until
  12517. * roaming trigger by beacon miss.
  12518. */
  12519. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BMISS_QOS_NULL_SUCCESS = 7,
  12520. /* 8-bit signed value to indicate connected AP RSSI in dBm
  12521. * for trigger reason of poor RSSI.
  12522. */
  12523. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_CURRENT_RSSI = 8,
  12524. /* 8-bit signed value to indicate RSSI threshold value in dBm
  12525. * for trigger reason of poor RSSI.
  12526. */
  12527. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_ROAM_RSSI_THRESHOLD = 9,
  12528. /* 8-bit unsigned value to indicate RX link speed status
  12529. * for trigger reason of poor RSSI, 0 - good link speed,
  12530. * 1 - bad link speed.
  12531. */
  12532. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_RX_LINKSPEED_STATUS = 10,
  12533. /* 8-bit signed value to indicate connected AP RSSI in dBm
  12534. * for trigger reason of better RSSI.
  12535. */
  12536. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_CURRENT_RSSI = 11,
  12537. /* 8-bit signed value to indicate RSSI threshold value in dBm
  12538. * for trigger reason of better RSSI.
  12539. */
  12540. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_HIGH_RSSI_THRESHOLD = 12,
  12541. /* 32-bit unsigned value to indicate RX throughput in bytes per second
  12542. * for trigger reason of congestion.
  12543. */
  12544. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_RX_TPUT = 13,
  12545. /* 32-bit unsigned value to indicate TX throughput in bytes per second
  12546. * for trigger reason of congestion.
  12547. */
  12548. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_TX_TPUT = 14,
  12549. /* 8-bit unsigned value to indicate roamable AP count
  12550. * for trigger reason of congestion.
  12551. */
  12552. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_ROAMABLE_CNT = 15,
  12553. /* 8-bit unsigned value to indicate invoke reason, one of the values
  12554. * defined in qca_wlan_roam_stats_invoke_reason.
  12555. */
  12556. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON = 16,
  12557. /* 8-bit unsigned value to indicate request mode for trigger reason
  12558. * of BTM, values are defined in IEEE Std 802.11-2020, 9.6.13.9.
  12559. */
  12560. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQUEST_MODE = 17,
  12561. /* 32-bit unsigned value to indicate disassociate time in milliseconds
  12562. * for trigger reason of BTM.
  12563. */
  12564. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_DISASSOC_IMMINENT_TIME = 18,
  12565. /* 32-bit unsigned value to indicate preferred candidate list valid
  12566. * interval in milliseconds for trigger reason of BTM.
  12567. */
  12568. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_VALID_INTERNAL = 19,
  12569. /* 8-bit unsigned value to indicate the number of preferred
  12570. * candidates for trigger reason of BTM.
  12571. */
  12572. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_CANDIDATE_LIST_CNT = 20,
  12573. /* 8-bit unsigned value to indicate response status for trigger
  12574. * reason of BTM, values are defined in IEEE Std 802.11-2020,
  12575. * Table 9-428 (BTM status code definitions).
  12576. */
  12577. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_RESPONSE_STATUS_CODE = 21,
  12578. /* 32-bit unsigned value to indicate BSS termination timeout value
  12579. * in milliseconds for trigger reason of BTM.
  12580. */
  12581. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_BSS_TERMINATION_TIMEOUT = 22,
  12582. /* 32-bit unsigned value to indicate MBO associate retry timeout
  12583. * value in milliseconds for trigger reason of BTM.
  12584. */
  12585. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_MBO_ASSOC_RETRY_TIMEOUT = 23,
  12586. /* 8-bit unsigned value to indicate dialog token number
  12587. * for trigger reason of BTM.
  12588. */
  12589. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQ_DIALOG_TOKEN = 24,
  12590. /* 8-bit unsigned value to indicate percentage of connected AP
  12591. * channel congestion utilization for trigger reason of BSS load.
  12592. */
  12593. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BSS_CU_LOAD = 25,
  12594. /* 8-bit unsigned value to indicate disconnection type
  12595. * for trigger reason of disconnection. 1 - Deauthentication,
  12596. * 2 - Disassociation.
  12597. */
  12598. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_TYPE = 26,
  12599. /* 16-bit unsigned value to indicate deauthentication or disassociation
  12600. * reason for trigger reason of disconnection, values are defined
  12601. * in IEEE Std 802.11-2020, Table 9-49 (Reason codes).
  12602. */
  12603. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_REASON = 27,
  12604. /* 32-bit unsigned value to indicate milliseconds of roam scan
  12605. * periodicity when needing to roam to find a better AP for trigger
  12606. * reason of periodic timer.
  12607. */
  12608. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PERIODIC_TIMER_MS = 28,
  12609. /* 8-bit signed value to indicate connected AP RSSI in dBm for
  12610. * trigger reason of background scan.
  12611. */
  12612. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_CURRENT_RSSI = 29,
  12613. /* 8-bit signed value to indicate data RSSI in dBm for trigger reason
  12614. * of background scan.
  12615. */
  12616. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI = 30,
  12617. /* 8-bit signed value to indicate data RSSI threshold in dBm
  12618. * for trigger reason of background scan.
  12619. */
  12620. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI_THRESH = 31,
  12621. /* 32-bit unsigned value to indicate consecutive TX failure threshold
  12622. * for trigger reason of TX failures.
  12623. */
  12624. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_THRESHOLD = 32,
  12625. /* 8-bit unsigned value to indicate TX failure reason for trigger
  12626. * reason of TX failures, one of the values defined in
  12627. * qca_wlan_roam_stats_tx_failures_reason.
  12628. */
  12629. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON = 33,
  12630. /* 8-bit unsigned value to indicate detail abort reason. One of the
  12631. * values in enum qca_wlan_roam_stats_abort_reason.
  12632. */
  12633. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON = 34,
  12634. /* 8-bit signed value to indicate data RSSI in dBm when aborting the
  12635. * roam scan.
  12636. */
  12637. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI = 35,
  12638. /* 8-bit signed value to indicate data RSSI threshold in dBm when
  12639. * aborting the roam scan.
  12640. */
  12641. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI_THRESHOLD = 36,
  12642. /* 8-bit unsigned value to indicate data RSSI threshold in RX link
  12643. * speed status when aborting the roam scan.
  12644. * 0 - good link speed, 1 - bad link speed
  12645. */
  12646. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RX_LINKSPEED_STATUS = 37,
  12647. /* 8-bit unsigned value to indicate roaming scan type.
  12648. * One of the values in enum qca_wlan_roam_stats_scan_type.
  12649. */
  12650. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE = 38,
  12651. /* 8-bit unsigned value to indicate roaming result, used in STA mode
  12652. * only.
  12653. * 0-Roaming is successful, 1-Roaming is failed
  12654. */
  12655. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS = 39,
  12656. /* 8-bit unsigned value to indicate the roam fail reason for the
  12657. * last failed roaming attempt by the firmware. Different roam failure
  12658. * reason codes are specified in enum qca_vendor_roam_fail_reasons.
  12659. * This can be queried either in connected state or disconnected state.
  12660. */
  12661. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FAIL_REASON = 40,
  12662. /* Nested attribute. Indicate roam scan info for each channel, the
  12663. * attributes defined in enum
  12664. * qca_wlan_vendor_attr_roam_stats_scan_chan_info are used inside
  12665. * this attribute.
  12666. */
  12667. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO = 41,
  12668. /* 32-bit unsigned value to indicate total scan time during roam scan
  12669. * all channels, time in milliseconds.
  12670. */
  12671. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TOTAL_SCAN_TIME = 42,
  12672. /* Nested attribute. This attribute shall be used by the driver to
  12673. * send roam information of each subtype. The attributes defined in
  12674. * enum qca_wlan_vendor_attr_roam_stats_frame_info are used inside
  12675. * this attribute.
  12676. */
  12677. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO = 43,
  12678. /* keep last */
  12679. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST,
  12680. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX =
  12681. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST - 1,
  12682. };
  12683. /**
  12684. * enum qca_wlan_vendor_attr_roam_cached_stats - Vendor subcmd attributes to
  12685. * report cached roam info from the driver to user space, enum values are used
  12686. * for netlink attributes sent with the
  12687. * %QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS sub command.
  12688. */
  12689. enum qca_wlan_vendor_attr_roam_cached_stats {
  12690. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INVALID = 0,
  12691. /* Nested attribute, this attribute contains nested array roam info
  12692. * statistics defined in enum qca_wlan_vendor_attr_roam_stats_info.
  12693. */
  12694. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO = 1,
  12695. /* keep last */
  12696. QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST,
  12697. QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_MAX =
  12698. QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST - 1,
  12699. };
  12700. /**
  12701. * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
  12702. * radio configurations present in each radio combination.
  12703. *
  12704. * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
  12705. * the band info in the radio configuration. Uses the enum qca_set_band values.
  12706. *
  12707. * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
  12708. * the number of antennas info in the radio configuration.
  12709. */
  12710. enum qca_wlan_vendor_attr_supported_radio_cfg {
  12711. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
  12712. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
  12713. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
  12714. /* keep last */
  12715. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
  12716. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
  12717. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
  12718. };
  12719. /**
  12720. * enum qca_wlan_vendor_attr_radio_combination - Attributes for
  12721. * radio combinations supported by the device.
  12722. *
  12723. * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
  12724. * provides the radio configurations present in the radio combination.
  12725. * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
  12726. * This attribute provides the values for radio combination matrix.
  12727. * For standalone config, the number of config values is one and the config
  12728. * carries the band and antenna information for standalone configuration. For
  12729. * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
  12730. * configuration the number of config values is two and the config carries the
  12731. * band and antenna information for each simultaneous radio.
  12732. */
  12733. enum qca_wlan_vendor_attr_radio_combination {
  12734. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
  12735. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
  12736. /* keep last */
  12737. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
  12738. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
  12739. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
  12740. };
  12741. /**
  12742. * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
  12743. * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
  12744. *
  12745. * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
  12746. * provides the radio combinations supported by the device.
  12747. * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
  12748. * For example, in the radio combination matrix for a device which has two
  12749. * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
  12750. * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
  12751. * combinations is 5 and the radio combinations are
  12752. * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
  12753. * {{5 GHz 2X2}}, //Standalone 5 GHz
  12754. * {{6 GHz 2X2}}, //Standalone 6 GHz
  12755. * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
  12756. * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
  12757. * The band and antenna info together as nested data provides one radio config.
  12758. * Standalone configuration has one config with band and antenna nested data.
  12759. * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
  12760. * have two nested band and antenna info data.
  12761. */
  12762. enum qca_wlan_vendor_attr_radio_combination_matrix {
  12763. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
  12764. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
  12765. /* keep last */
  12766. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
  12767. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
  12768. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
  12769. };
  12770. /**
  12771. * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
  12772. * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
  12773. *
  12774. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
  12775. * Enable mDNS offload. This attribute is mandatory to enable
  12776. * mDNS offload feature. If this attribute is not present, mDNS offload
  12777. * is disabled.
  12778. *
  12779. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
  12780. * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
  12781. * attribute is mandatory when enabling the feature, and not required when
  12782. * disabling the feature.
  12783. *
  12784. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
  12785. * the following attributes:
  12786. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
  12787. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
  12788. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
  12789. *
  12790. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
  12791. * It consists of a hostname and ".local" as the domain name. The character
  12792. * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
  12793. * It is used to compare the domain the in the "QU" query. Only 1 FQDN is
  12794. * supported per vdev.
  12795. * For example: myphone.local
  12796. *
  12797. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
  12798. * u16 attribute. It specifies the total number of resource records present
  12799. * in the answer section of the answer payload. This attribute is needed by the
  12800. * firmware to populate the mDNS response frame for mNDS queries without having
  12801. * to parse the answer payload.
  12802. *
  12803. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required Binary blob
  12804. * attribute sent by the mdnsResponder from userspace. It contains resource
  12805. * records of various types (Eg: A, AAAA, PTR, TXT) and service list. This
  12806. * payload is passed down to firmware and is transmitted in response to
  12807. * mDNS queries.
  12808. * The maximum size of the answer payload supported is 512 bytes.
  12809. */
  12810. enum qca_wlan_vendor_attr_mdns_offload {
  12811. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
  12812. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
  12813. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
  12814. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
  12815. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
  12816. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
  12817. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
  12818. /* keep last */
  12819. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
  12820. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
  12821. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
  12822. };
  12823. /**
  12824. * enum qca_vendor_attr_diag_event_type - Attributes used by
  12825. * %QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute.
  12826. *
  12827. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING: Diag event sent from
  12828. * driver/firmware during Connection request from Userspace. Uses the
  12829. * following attributes of enum qca_wlan_vendor_attr_diag:
  12830. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12831. * QCA_WLAN_VENDOR_ATTR_DIAG_SSID,
  12832. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12833. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT,
  12834. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  12835. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT,
  12836. * QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE,
  12837. * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE,
  12838. * QCA_WLAN_VENDOR_ATTR_DIAG_AKM,
  12839. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  12840. * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE,
  12841. * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE,
  12842. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12843. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12844. *
  12845. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL: Diag event sent from
  12846. * driver/firmware when a connection is failed. Uses the
  12847. * following attributes of enum qca_wlan_vendor_attr_diag:
  12848. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12849. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12850. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  12851. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12852. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12853. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12854. *
  12855. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ: Diag event sent from
  12856. * driver/firmware during Authentication request from a device. Uses the
  12857. * following attributes of enum qca_wlan_vendor_attr_diag:
  12858. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12859. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12860. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12861. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  12862. * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
  12863. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12864. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  12865. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12866. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12867. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12868. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12869. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12870. *
  12871. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP: Diag event sent from
  12872. * driver/firmware when device receives an authentication response. Uses the
  12873. * following attributes of enum qca_wlan_vendor_attr_diag:
  12874. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12875. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12876. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  12877. * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
  12878. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12879. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  12880. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12881. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12882. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12883. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12884. *
  12885. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ: Diag event sent from
  12886. * driver/firmware when device sends an association request. Uses the
  12887. * following attributes of enum qca_wlan_vendor_attr_diag:
  12888. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12889. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12890. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12891. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12892. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12893. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12894. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12895. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12896. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12897. *
  12898. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP: Diag event sent from
  12899. * driver/firmware when device receives an association response. Uses the
  12900. * following attributes of enum qca_wlan_vendor_attr_diag:
  12901. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_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_IFINDEX,
  12906. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12907. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12908. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  12909. * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID.
  12910. *
  12911. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX: Diag event sent from
  12912. * driver/userspace when device receives a deauthentication response. Uses the
  12913. * following attributes of enum qca_wlan_vendor_attr_diag:
  12914. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12915. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12916. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12917. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12918. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12919. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12920. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12921. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12922. *
  12923. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX: Diag event sent from
  12924. * driver/userspace when device sends a deauthentication request. Uses the
  12925. * following attributes of enum qca_wlan_vendor_attr_diag:
  12926. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12927. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12928. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12929. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12930. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12931. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12932. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12933. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12934. *
  12935. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX: Diag event sent from
  12936. * driver/firmware when device receives a disassociation response. Uses the
  12937. * following attributes of enum qca_wlan_vendor_attr_diag:
  12938. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12939. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12940. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12941. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12942. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12943. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12944. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12945. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12946. *
  12947. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX: Diag event sent from
  12948. * driver/firmware when device sends a disassociation request. Uses the
  12949. * following attributes of enum qca_wlan_vendor_attr_diag:
  12950. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12951. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12952. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12953. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12954. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12955. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12956. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12957. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12958. *
  12959. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN: Diag event sent from
  12960. * driver/firmware when device did not receive beacon packets during connection.
  12961. * Uses the following attributes of enum qca_wlan_vendor_attr_diag:
  12962. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12963. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12964. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12965. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12966. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12967. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12968. *
  12969. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START: Diag event sent from
  12970. * driver/firmware when Roaming scan is triggered. Uses the following
  12971. * attributes of enum qca_wlan_vendor_attr_diag:
  12972. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12973. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON,
  12974. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON,
  12975. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12976. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  12977. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE,
  12978. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD,
  12979. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12980. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12981. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12982. *
  12983. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE: Diag event sent from
  12984. * driver/firmware Roam scanning is processed. Uses the following
  12985. * attributes of enum qca_wlan_vendor_attr_diag:
  12986. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12987. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  12988. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST,
  12989. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT,
  12990. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  12991. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12992. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12993. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  12994. * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE.
  12995. *
  12996. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP: Diag event sent from
  12997. * driver/firmware to provide Roam information of the current AP. Uses the
  12998. * following attributes of enum qca_wlan_vendor_attr_diag:
  12999. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13000. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13001. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13002. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  13003. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  13004. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
  13005. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13006. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13007. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13008. *
  13009. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP: Diag event sent from
  13010. * driver/firmware to provide Roam information of the candid AP. Uses the
  13011. * following attributes of enum qca_wlan_vendor_attr_diag:
  13012. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13013. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13014. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13015. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  13016. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  13017. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
  13018. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP,
  13019. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  13020. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13021. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13022. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13023. *
  13024. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT: Diag event sent from
  13025. * driver/firmware to provide Roam result after selecting a candidate. Uses the
  13026. * following attributes of enum qca_wlan_vendor_attr_diag:
  13027. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13028. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL,
  13029. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13030. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13031. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13032. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13033. *
  13034. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL: Diag event sent from
  13035. * driver/firmware to indicate Roam Cancellation due to higher priority events.
  13036. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13037. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13038. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13039. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13040. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13041. *
  13042. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ: Diag event sent from driver
  13043. * /firmware when STA sends a BTM request frame. Uses the following attributes
  13044. * of enum qca_wlan_vendor_attr_diag:
  13045. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13046. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  13047. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE,
  13048. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER,
  13049. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL,
  13050. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT,
  13051. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13052. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13053. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13054. *
  13055. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY: Diag event sent from
  13056. * driver/firmware when STA queries about BTM transition. Uses the following
  13057. * attributes of enum qca_wlan_vendor_attr_diag:
  13058. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13059. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  13060. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON,
  13061. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13062. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13063. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13064. *
  13065. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP: Diag event sent from driver
  13066. * /firmware when STA receives BTM response frame. Uses the following
  13067. * attributes of enum qca_wlan_vendor_attr_diag:
  13068. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13069. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  13070. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE,
  13071. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY,
  13072. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID,
  13073. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13074. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13075. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13076. *
  13077. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI: Diag event sent from
  13078. * driver/firmware to provide BTM request candidate information. Uses the
  13079. * following attributes of enum qca_wlan_vendor_attr_diag:
  13080. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13081. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13082. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE,
  13083. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  13084. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13085. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13086. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13087. *
  13088. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC: Diag event sent from driver
  13089. * /firmware when ROAM WTC trigger happens. Uses the following attributes of
  13090. * enum qca_wlan_vendor_attr_diag:
  13091. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13092. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE,
  13093. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13094. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION,
  13095. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13096. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13097. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13098. *
  13099. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER: Diag event sent from
  13100. * driver/firmware to indicate DHCP discovery to AP. Uses the following
  13101. * attributes of enum qca_wlan_vendor_attr_diag:
  13102. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13103. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13104. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13105. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13106. *
  13107. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER: Diag event sent from
  13108. * driver/firmware to indicate DHCP offering to AP. Uses the following
  13109. * attributes of enum qca_wlan_vendor_attr_diag:
  13110. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13111. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13112. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13113. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13114. *
  13115. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST: Diag event sent from
  13116. * driver/firmware to indicate driver sent DHCP packets. Uses the following
  13117. * attributes of enum qca_wlan_vendor_attr_diag:
  13118. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13119. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13120. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13121. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13122. *
  13123. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK: Diag event sent from driver
  13124. * /firmware to indicate acknowledgement of DHCP packets. Uses the following
  13125. * attributes of enum qca_wlan_vendor_attr_diag:
  13126. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13127. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13128. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13129. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13130. *
  13131. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK: Diag event sent from driver
  13132. * /firmware to indicate negative acknowledgement of DHCP packets. Uses the
  13133. * following attributes of enum qca_wlan_vendor_attr_diag:
  13134. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13135. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13136. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13137. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13138. *
  13139. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1: Diag event sent from driver
  13140. * /firmware to indicate EAPOL M1 message. Uses the following attributes of
  13141. * enum qca_wlan_vendor_attr_diag:
  13142. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13143. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13144. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13145. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13146. *
  13147. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2: Diag event sent from driver
  13148. * /firmware to indicate EAPOL M2 message. Uses the following attributes of
  13149. * enum qca_wlan_vendor_attr_diag:
  13150. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13151. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13152. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13153. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13154. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13155. *
  13156. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3: Diag event sent from driver
  13157. * /firmware to indicate EAPOL M3 message. Uses the following attributes of
  13158. * enum qca_wlan_vendor_attr_diag:
  13159. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13160. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13161. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13162. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13163. *
  13164. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4: Diag event sent from driver
  13165. * /firmware to indicate EAPOL M4 message. Uses the following attributes of
  13166. * enum qca_wlan_vendor_attr_diag:
  13167. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13168. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13169. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13170. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13171. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13172. *
  13173. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1: Diag event sent from driver
  13174. * /firmware to indicate GTK rekey M1 frame. Uses the following attributes of
  13175. * enum qca_wlan_vendor_attr_diag:
  13176. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13177. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13178. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13179. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13180. *
  13181. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2: Diag event sent from driver
  13182. * /firmware to indicate GTK Rekey M2 frame. Uses the following attributes of
  13183. * enum qca_wlan_vendor_attr_diag:
  13184. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13185. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13186. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13187. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13188. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13189. *
  13190. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST: Diag event sent from driver
  13191. * /firmware to indicate device sent EAP request. Uses the following attributes
  13192. * of enum qca_wlan_vendor_attr_diag:
  13193. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13194. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
  13195. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
  13196. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13197. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13198. *
  13199. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE: Diag event sent from driver
  13200. * /firmware to indicate device received EAP response. Uses the following
  13201. * attributes of enum qca_wlan_vendor_attr_diag:
  13202. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13203. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
  13204. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
  13205. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13206. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13207. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13208. *
  13209. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS: Diag event sent from driver
  13210. * /firmware to indicate EAP frame transmission is success. Uses the following
  13211. * attributes of enum qca_wlan_vendor_attr_diag:
  13212. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13213. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13214. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13215. *
  13216. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE: Diag event sent from driver
  13217. * /firmware to indicate EAP frame transmission is failed. Uses the following
  13218. * attributes of enum qca_wlan_vendor_attr_diag:
  13219. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13220. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13221. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13222. *
  13223. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ: Diag event sent from driver
  13224. * /firmware to indicate Reassocation request. Uses the following attributes
  13225. * of enum qca_wlan_vendor_attr_diag:
  13226. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  13227. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13228. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13229. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13230. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13231. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13232. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13233. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  13234. *
  13235. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES: Diag event sent from driver
  13236. * /firmware to indicate Reassocation response. Uses the following attributes
  13237. * of enum qca_wlan_vendor_attr_diag:
  13238. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  13239. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13240. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13241. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  13242. * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID,
  13243. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13244. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13245. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  13246. */
  13247. enum qca_vendor_attr_diag_event_type {
  13248. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING = 0,
  13249. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL = 1,
  13250. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ = 2,
  13251. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP = 3,
  13252. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ = 4,
  13253. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP = 5,
  13254. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX = 6,
  13255. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX = 7,
  13256. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX = 8,
  13257. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX = 9,
  13258. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN = 10,
  13259. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START = 11,
  13260. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE = 12,
  13261. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP = 13,
  13262. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP = 14,
  13263. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT = 15,
  13264. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL = 16,
  13265. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ = 17,
  13266. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY = 18,
  13267. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP = 19,
  13268. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI = 20,
  13269. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC = 21,
  13270. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER = 22,
  13271. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER = 23,
  13272. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST = 24,
  13273. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK = 25,
  13274. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK = 26,
  13275. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1 = 27,
  13276. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2 = 28,
  13277. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3 = 29,
  13278. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4 = 30,
  13279. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1 = 31,
  13280. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2 = 32,
  13281. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST = 33,
  13282. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE = 34,
  13283. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS = 35,
  13284. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE = 36,
  13285. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ = 37,
  13286. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES = 38,
  13287. /* keep last */
  13288. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST,
  13289. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_MAX =
  13290. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST - 1,
  13291. };
  13292. /**
  13293. * enum qca_wlan_vendor_tx_status - Used by attribute
  13294. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS to indicate TX status.
  13295. * @QCA_WLAN_VENDOR_TX_STATUS_FAIL: Indicates frame is not sent over the air.
  13296. * @QCA_WLAN_VENDOR_TX_STATUS_NO_ACK: Indicates packet sent but acknowledgement
  13297. * is not received.
  13298. * @QCA_WLAN_VENDOR_TX_STATUS_ACK: Indicates the frame is successfully sent and
  13299. * acknowledged.
  13300. */
  13301. enum qca_wlan_vendor_tx_status {
  13302. QCA_WLAN_VENDOR_TX_STATUS_FAIL = 1,
  13303. QCA_WLAN_VENDOR_TX_STATUS_NO_ACK = 2,
  13304. QCA_WLAN_VENDOR_TX_STATUS_ACK = 3,
  13305. };
  13306. /**
  13307. * enum qca_roam_sub_reason - Used by attribute
  13308. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON
  13309. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER: Roam scan triggered due to periodic
  13310. * timer expiry
  13311. * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI: Roam scan trigger due
  13312. * to no candidate found during LOW RSSI trigger.
  13313. * @QCA_ROAM_SUB_REASON_BTM_DI_TIMER: Roam scan triggered due to BTM Disassoc
  13314. * Imminent timeout
  13315. * @QCA_ROAM_SUB_REASON_FULL_SCAN: Roam scan triggered due to partial scan
  13316. * failure
  13317. * @QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC: Roam trigger due to
  13318. * emergency like deauth/disassoc.
  13319. * @QCA_ROAM_SUB_REASON_CU_PERIODIC: Roam trigger due to
  13320. * BSS transition management request.
  13321. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI:
  13322. * Roam scan triggered due to Low RSSI periodic timer
  13323. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU:
  13324. * Roam trigger due to periodic timer after no candidate found during CU
  13325. * inactivity timer scan.
  13326. * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU: Roam trigger due to no candidate
  13327. * found in high CU roam trigger.
  13328. */
  13329. enum qca_roam_sub_reason {
  13330. QCA_ROAM_SUB_REASON_PERIODIC_TIMER = 1,
  13331. QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI = 2,
  13332. QCA_ROAM_SUB_REASON_BTM_DI_TIMER = 3,
  13333. QCA_ROAM_SUB_REASON_FULL_SCAN = 4,
  13334. QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC = 5,
  13335. QCA_ROAM_SUB_REASON_CU_PERIODIC = 6,
  13336. QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI = 7,
  13337. QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU = 8,
  13338. QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU = 9,
  13339. };
  13340. /*
  13341. * enum qca_wlan_vendor_attr_diag - Defines attributes used by the driver
  13342. * to send diag data to the userspace. The attributes defined in this enum are
  13343. * used with QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
  13344. *
  13345. * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT: Required Attribute. Nested attribute used
  13346. * by driver/firmware to send diag data. Each instance of this nested attribute
  13347. * contains one QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute and other
  13348. * attributes defined in enum qca_wlan_vendor_attr_diag that belong to the
  13349. * event type defined by QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE. Multiple of this
  13350. * nested attribute can be sent with one vendor command
  13351. * QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
  13352. *
  13353. * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE: Required u32 attribute. This
  13354. * attribute indicates the type of the diag event from driver/firmware. Uses
  13355. * values from enum qca_vendor_attr_diag_event_type.
  13356. *
  13357. * @QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP: Required u64 attribute. This
  13358. * attribute indicates the system timestamp. Driver uses ktime_get_real_ts64()
  13359. * API to send time of the day in microseconds to userspace.
  13360. *
  13361. * @QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP: Optional u64 attribute.
  13362. * This attribute indicates firmware timestamp in microseconds.
  13363. *
  13364. * @QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX: Optional u8 attribute. This attribute
  13365. * indicates wlan interface index.
  13366. *
  13367. * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID: Optional attribute. This attribute
  13368. * indicates 6-byte MAC address representing the BSSID of the AP.
  13369. *
  13370. * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT: Optional attribute. This attribute
  13371. * indicates the 6-byte MAC address representing the BSSID hint sent in
  13372. * the connect request.
  13373. *
  13374. * @QCA_WLAN_VENDOR_ATTR_DIAG_SSID: Optional attribute. This attribute
  13375. * indicates the SSID in u8 array with a maximum length of 32.
  13376. *
  13377. * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ: Optional u16 attribute. This attribute
  13378. * indicates the frequency of AP in MHz.
  13379. *
  13380. * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT: Optional u16 attribute. This attribute
  13381. * indicates frequency hint given in the connect request in MHz.
  13382. *
  13383. * @QCA_WLAN_VENDOR_ATTR_DIAG_RSSI: Optional signed 32 attribute.
  13384. * This attribute indicates RSSI of the 802.11 frame in dBm.
  13385. *
  13386. * @QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE: Optional u32 attribute.
  13387. * This attribute indicates Pairwise cipher suite defined in IEEE 802.11 2020
  13388. * Table 12-10—Integrity and key wrap algorithms.
  13389. *
  13390. * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE: Optional u32 attribute.
  13391. * This attribute indicates Group cipher suite defined in IEEE 802.11 2020
  13392. * Table 12-10—Integrity and key wrap algorithms.
  13393. *
  13394. * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE: Optional u32 attribute. This
  13395. * attribute indicates Group management cipher suite defined in IEEE Std
  13396. * 802.11‐2020 spec. Table 12-10—Integrity and key wrap algorithms.
  13397. *
  13398. * @QCA_WLAN_VENDOR_ATTR_DIAG_AKM: Optional u32 attribute. This attribute
  13399. * indicates Auth key management suite defined in IEEE Std 802.11‐2020
  13400. * Table 9-151—AKM suite selectors.
  13401. *
  13402. * @QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO: Optional u8 attribute. This attribute
  13403. * indicates authentication algorithm number defined in IEEE Std 802.11‐2020
  13404. * Section 9.4.1.1 Authentication Algorithm Number field.
  13405. *
  13406. * @QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE: Optional flag. This attribute
  13407. * indicates bluetooth COEX is active or not.
  13408. *
  13409. * @QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE: Optional u8 attribute. This
  13410. * attribute indicates SAE authentication frame type. The possible values are
  13411. * 1 - SAE commit frame
  13412. * 2 - SAE confirm frame
  13413. *
  13414. * @QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE: Optional u16 attribute. This
  13415. * attribute indicates the reason codes defined in IEEE Std 802.11‐2020
  13416. * Table 9-49—Reason codes.
  13417. *
  13418. * @QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER: Optional u16 attribute. This
  13419. * attribute indicates sequence number of the frame defined in IEEE Std
  13420. * 802.11‐2020 Section 9.4.1.2 Authentication Transaction Sequence Number
  13421. * field.
  13422. *
  13423. * @QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE: Optional u8 attribute. This
  13424. * attribute indicates the status codes defined in IEEE Std 802.11‐2020 Table
  13425. * 9-50—Status codes.
  13426. *
  13427. * @QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS: Optional u8 attribute.
  13428. * Uses enum qca_wlan_vendor_tx_status.
  13429. *
  13430. * @QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME: Optional flag. This attribute
  13431. * indicates if frame transmission is retried.
  13432. *
  13433. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON: Optional u8 attribute.
  13434. * Uses enum qca_roam_reason.
  13435. *
  13436. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON: Optional u8 attribute.
  13437. * Uses enum qca_roam_sub_reason.
  13438. *
  13439. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU: Optional u8 attribute. This attribute
  13440. * indicates channel utilization in percentage.
  13441. *
  13442. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE: Optional u8 attribute. This
  13443. * attribute indicates scan type used. Uses enum qca_roam_scan_scheme.
  13444. *
  13445. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD: Optional signed 32 attribute.
  13446. * This attribute indicates current RSSI threshold in dBm.
  13447. *
  13448. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST: Required Attribute.
  13449. * Nested attribute used by QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE
  13450. * to carry list of QCA_WLAN_VENDOR_ATTR_DIAG_FREQ.
  13451. *
  13452. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT: optional u8 attribute.
  13453. * This attribute indicates number of scanned candidate APs.
  13454. *
  13455. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK: Optional u8 attribute. This
  13456. * attribute indicates roam AP rank computed based on connection preference.
  13457. *
  13458. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP: Optional u32 attribute.
  13459. * This attribute indicates expected throughput in kbps.
  13460. *
  13461. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE: Optional u16 attribute.
  13462. * This attribute indicates the preference value of candidate AP / connected AP
  13463. * calculated in the firmware.
  13464. *
  13465. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL: Optional flag. This attribute
  13466. * indicates connection/roaming is successful or not.
  13467. *
  13468. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE: Optional u8 attribute.
  13469. * This attribute indicates BTM WTC sub reason code in the WTC vendor specific
  13470. * IE present in the BTM frame.
  13471. *
  13472. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION: Optional u32 attribute.
  13473. * This attribute indicates BTM WTC duration in milliseconds.
  13474. *
  13475. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN: Optional u8 attribute. This attribute
  13476. * indicates dialog token value of BTM query/request/response frames.
  13477. *
  13478. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON: Optional u8 attribute. This
  13479. * attribute indicates the Transition Reason field indicates the reason why
  13480. * a transition attempt occurred and contains one of the values defined in IEEE
  13481. * Std 802.11‐2020 Table 9-198—Transition and Transition Query reasons.
  13482. *
  13483. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE: Optional u8 attribute. This attribute
  13484. * indicates BTM mode defined in IEEE Std 802.11‐2020
  13485. * Figure 9-924—Request Mode field format.
  13486. *
  13487. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER: Optional u16 attribute.
  13488. * This attribute indicates the Disassociation Timer field which is the number
  13489. * of beacon transmission times (TBTTs) until the serving AP will send a
  13490. * Disassociation frame to this STA.
  13491. *
  13492. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL: Optional u8 attribute.
  13493. * This attribute indicates BTM validity interval field in TBTTs defined in
  13494. * IEEE Std 802.11‐2020 Figure 9-923—BSS Transition Management Request frame
  13495. * Action field format.
  13496. *
  13497. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT: Optional u8 attribute.
  13498. * This attribute indicates BTM candidate list entries.
  13499. *
  13500. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE: Optional u8 attribute.
  13501. * This attribute indicates network preference for BTM transition defined in
  13502. * IEEE Std 802.11‐2020 Table 9-174—Preference field values.
  13503. *
  13504. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE: Optional u8 attribute.
  13505. * This attribute indicates BTM transition status code defined in IEEE Std
  13506. * 802.11‐2020 Table 9-428—BTM status code definitions.
  13507. *
  13508. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY: Optional u8 attribute.
  13509. * This attribute indicates BSS termination delay defined in IEEE Std
  13510. * 802.11‐2020 Section 9.6.13.10 BSS Transition Management Response frame format.
  13511. *
  13512. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID: Optional attribute.
  13513. * This attribute indicates 6-byte MAC address representing the BSSID of the
  13514. * BSS that the non-AP STA transitions to.
  13515. *
  13516. * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE: Optional u8 attribute. This attribute
  13517. * indicates EAP frame type. The methods are enumerated by IANA at
  13518. * https://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml.
  13519. *
  13520. * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN: Optional u8 attribute. This attribute
  13521. * indicates EAP frame length.
  13522. *
  13523. * @QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP: Required u64 attribute. This
  13524. * attribute indicates the kernel timestamp. Driver uses ktime_get() API
  13525. * (Time from boot but not the time spent in suspend) to send in microseconds
  13526. * to userspace.
  13527. *
  13528. * @QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID: Optional u16 attribute. This attribute
  13529. * indicates the association id received in the (re)association response frame
  13530. * defined in IEEE Std 802.11-2020 Figure 9-91-AID field format.
  13531. */
  13532. enum qca_wlan_vendor_attr_diag {
  13533. QCA_WLAN_VENDOR_ATTR_DIAG_INVALID = 0,
  13534. QCA_WLAN_VENDOR_ATTR_DIAG_EVENT = 1,
  13535. QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE = 2,
  13536. QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP = 3,
  13537. QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP = 4,
  13538. QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX = 5,
  13539. QCA_WLAN_VENDOR_ATTR_DIAG_BSSID = 6,
  13540. QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT = 7,
  13541. QCA_WLAN_VENDOR_ATTR_DIAG_SSID = 8,
  13542. QCA_WLAN_VENDOR_ATTR_DIAG_FREQ = 9,
  13543. QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT = 10,
  13544. QCA_WLAN_VENDOR_ATTR_DIAG_RSSI = 11,
  13545. QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE = 12,
  13546. QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE = 13,
  13547. QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE = 14,
  13548. QCA_WLAN_VENDOR_ATTR_DIAG_AKM = 15,
  13549. QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO = 16,
  13550. QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE = 17,
  13551. QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE = 18,
  13552. QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE = 19,
  13553. QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER = 20,
  13554. QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE = 21,
  13555. QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS = 22,
  13556. QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME = 23,
  13557. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON = 24,
  13558. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON = 25,
  13559. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU = 26,
  13560. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE = 27,
  13561. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD = 28,
  13562. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST = 29,
  13563. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT = 30,
  13564. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK = 31,
  13565. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP = 32,
  13566. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE = 33,
  13567. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL = 34,
  13568. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE = 35,
  13569. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION = 36,
  13570. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN = 37,
  13571. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON = 38,
  13572. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE = 39,
  13573. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER = 40,
  13574. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL = 41,
  13575. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT = 42,
  13576. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE = 43,
  13577. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE = 44,
  13578. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY = 45,
  13579. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID = 46,
  13580. QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE = 47,
  13581. QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN = 48,
  13582. QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP = 49,
  13583. QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID = 50,
  13584. /* keep last */
  13585. QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST,
  13586. QCA_WLAN_VENDOR_ATTR_DIAG_MAX =
  13587. QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST - 1,
  13588. };
  13589. /**
  13590. * qca_wlan_vendor_monitor_data_frame_type - Represent the various
  13591. * data types to be sent over the monitor interface.
  13592. */
  13593. enum qca_wlan_vendor_monitor_data_frame_type {
  13594. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
  13595. /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is
  13596. not set */
  13597. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
  13598. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
  13599. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
  13600. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
  13601. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
  13602. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
  13603. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
  13604. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
  13605. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
  13606. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
  13607. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
  13608. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
  13609. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
  13610. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
  13611. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
  13612. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
  13613. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
  13614. };
  13615. /**
  13616. * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
  13617. * mgmt types to be sent over the monitor interface.
  13618. * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the MGMT Frames.
  13619. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the MGMT Frames
  13620. * except the Beacons. Valid only in the Connect state.
  13621. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
  13622. * BSSID Beacons. Valid only in the Connect state.
  13623. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
  13624. * the Beacons obtained during the scan (off channel and connected channel)
  13625. * when in connected state.
  13626. */
  13627. enum qca_wlan_vendor_monitor_mgmt_frame_type {
  13628. QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
  13629. /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set */
  13630. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON = BIT(1),
  13631. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
  13632. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
  13633. };
  13634. /**
  13635. * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
  13636. * ctrl types to be sent over the monitor interface.
  13637. * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the ctrl Frames.
  13638. * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger Frame.
  13639. */
  13640. enum qca_wlan_vendor_monitor_ctrl_frame_type {
  13641. QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
  13642. /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set */
  13643. QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
  13644. };
  13645. /**
  13646. * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
  13647. * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
  13648. * monitor mode.
  13649. *
  13650. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute,
  13651. * Represents the tx data packet type to be monitored (u32). These data packets
  13652. * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
  13653. *
  13654. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute,
  13655. * Represents the tx data packet type to be monitored (u32). These data packets
  13656. * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
  13657. *
  13658. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute,
  13659. * Represents the tx data packet type to be monitored (u32). These mgmt packets
  13660. * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
  13661. *
  13662. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute,
  13663. * Represents the tx data packet type to be monitored (u32). These mgmt packets
  13664. * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
  13665. *
  13666. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute,
  13667. * Represents the tx data packet type to be monitored (u32). These ctrl packets
  13668. * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
  13669. *
  13670. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute,
  13671. * Represents the tx data packet type to be monitored (u32). These ctrl packets
  13672. * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
  13673. *
  13674. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL:
  13675. * u32 attribute, An interval only for the connected beacon interval, which
  13676. * expects that the connected BSSID's beacons shall be sent on the monitor
  13677. * interface only on this specific interval.
  13678. */
  13679. enum qca_wlan_vendor_attr_set_monitor_mode {
  13680. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
  13681. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
  13682. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
  13683. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
  13684. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
  13685. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
  13686. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
  13687. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
  13688. /* keep last */
  13689. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
  13690. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
  13691. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
  13692. };
  13693. /**
  13694. * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
  13695. * Bits will be set to 1 if the corresponding state is enabled.
  13696. *
  13697. * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
  13698. * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
  13699. */
  13700. enum qca_wlan_vendor_roam_scan_state {
  13701. QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
  13702. QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
  13703. };
  13704. /**
  13705. * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
  13706. * Bits will be set to 1 if the corresponding event is notified.
  13707. *
  13708. * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
  13709. * carries the trigger reason. When set, it is expected that the roam event
  13710. * carries the respective reason via the attribute
  13711. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
  13712. * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
  13713. *
  13714. * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
  13715. * carries the roam fail reason. When set, it is expected that the roam event
  13716. * carries the respective reason via the attribute
  13717. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
  13718. * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
  13719. *
  13720. * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
  13721. * event carries the roam invoke fail reason. When set, it is expected that
  13722. * the roam event carries the respective reason via the attribute
  13723. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
  13724. *
  13725. * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
  13726. * carries the roam scan state. When set, it is expected that the roam event
  13727. * carries the respective scan state via the attribute
  13728. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
  13729. * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
  13730. */
  13731. enum qca_wlan_vendor_roam_event_type {
  13732. QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
  13733. QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
  13734. QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
  13735. QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
  13736. };
  13737. /**
  13738. * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
  13739. * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
  13740. *
  13741. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
  13742. * representing the BSSID of the AP to which the Roam is attempted.
  13743. *
  13744. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
  13745. * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
  13746. * attempted.
  13747. *
  13748. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, Frequency in MHz
  13749. * on which the roam is attempted.
  13750. *
  13751. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
  13752. * STA mode only. This represents the roam fail reason for the last failed
  13753. * roaming attempt by the firmware for the specific BSSID. Different roam
  13754. * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
  13755. */
  13756. enum qca_wlan_vendor_attr_roam_events_candidate_info {
  13757. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
  13758. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
  13759. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
  13760. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
  13761. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
  13762. /* keep last */
  13763. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
  13764. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
  13765. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
  13766. };
  13767. /**
  13768. * enum qca_wlan_vendor_attr_roam_events - Used by the
  13769. * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
  13770. * roam events to the driver or notify these events from the driver.
  13771. *
  13772. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
  13773. * driver/firmware to enable/disable the notification of roam events. It's a
  13774. * mandatory attribute and used only in the request from the userspace to the
  13775. * host driver. 1-Enable, 0-Disable.
  13776. * If the roaming is totally offloaded to the firmware, this request when
  13777. * enabled shall mandate the firmware to notify all the relevant roam events
  13778. * represented by the below attributes. If the host is in the suspend mode,
  13779. * the behavior of the firmware to notify these events is guided by
  13780. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
  13781. * these events in the suspend state, the firmware is expected to wake up the
  13782. * host before the respective events are notified. Please note that such a
  13783. * request to get the events in the suspend state will have a definite power
  13784. * implication.
  13785. *
  13786. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
  13787. * that the roam events need to be notified in the suspend state too. By
  13788. * default, these roam events are notified in the resume state. With this flag,
  13789. * the roam events are notified in both resume and suspend states.
  13790. * This attribute is used in the request from the userspace to the host driver.
  13791. *
  13792. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
  13793. * Represents the different roam event types, signified by the enum
  13794. * qca_wlan_vendor_roam_event_type.
  13795. * Each bit of this attribute represents the different roam even types reported
  13796. * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13797. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13798. *
  13799. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
  13800. * mode only. This represents the roam trigger reason for the last roaming
  13801. * attempted by the firmware. Each bit of this attribute represents the
  13802. * different roam trigger reason code which are defined in enum
  13803. * qca_vendor_roam_triggers.
  13804. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13805. *
  13806. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
  13807. * STA mode only. This represents the roam invoke fail reason for the last
  13808. * failed roam invoke. Different roam invoke failure reason codes
  13809. * are specified in enum qca_vendor_roam_invoke_fail_reasons.
  13810. *
  13811. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
  13812. * for which the roam is attempted. Each entry is a nested attribute defined
  13813. * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
  13814. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13815. *
  13816. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
  13817. * the scan state on which the roam events need to be notified. The values for
  13818. * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
  13819. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13820. *
  13821. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
  13822. * u32 values. List of frequencies in MHz considered for a roam scan.
  13823. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13824. */
  13825. enum qca_wlan_vendor_attr_roam_events {
  13826. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
  13827. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
  13828. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
  13829. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
  13830. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
  13831. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
  13832. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
  13833. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
  13834. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
  13835. /* keep last */
  13836. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
  13837. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
  13838. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1,
  13839. };
  13840. /*
  13841. * enum qca_wlan_ratemask_params_type - Rate mask config type.
  13842. *
  13843. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK_OFDM rate mask config
  13844. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
  13845. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
  13846. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
  13847. */
  13848. enum qca_wlan_ratemask_params_type {
  13849. QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
  13850. QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
  13851. QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
  13852. QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
  13853. };
  13854. /* enum qca_wlan_vendor_attr_ratemask_params - Used by the
  13855. * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
  13856. * This is used to set the rate mask value to be used in rate selection.
  13857. *
  13858. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
  13859. * Array of nested containing attributes
  13860. * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
  13861. * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
  13862. *
  13863. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
  13864. * the different phy types to which the rate mask config is to be applied.
  13865. * The values for this attribute are referred from enum
  13866. * qca_wlan_vendor_ratemask_params_type.
  13867. *
  13868. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
  13869. * A bit value of 1 represents rate is enabled and a value of 0
  13870. * represents rate is disabled.
  13871. * For HE targets, 12 bits correpond to one NSS setting.
  13872. * b0-13 => NSS1, MCS 0-13
  13873. * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
  13874. * For VHT targets, 10 bits correspond to one NSS setting.
  13875. * b0-9 => NSS1, MCS 0-9
  13876. * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
  13877. * For HT targets, 8 bits correspond to one NSS setting.
  13878. * b0-7 => NSS1, MCS 0-7
  13879. * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
  13880. * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
  13881. */
  13882. enum qca_wlan_vendor_attr_ratemask_params {
  13883. QCA_WLAN_VENDOR_ATTR_RATEMASK_INVALID = 0,
  13884. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
  13885. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
  13886. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
  13887. /* keep last */
  13888. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
  13889. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
  13890. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
  13891. };
  13892. /**
  13893. * enum qca_wlan_vendor_flush_pending_policy: Represents values for
  13894. * the policy to flush pending frames, configured via
  13895. * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
  13896. * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
  13897. *
  13898. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
  13899. * the flush policy configured before. This command basically disables the
  13900. * flush config set by the user.
  13901. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
  13902. * the flush policy to be immediate. All pending packets for the peer/TID are
  13903. * flushed when this command/policy is received.
  13904. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
  13905. * the flush policy to the end of TWT SP. All pending packets for the peer/TID
  13906. * are flushed when the end of TWT SP is reached.
  13907. */
  13908. enum qca_wlan_vendor_flush_pending_policy {
  13909. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
  13910. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
  13911. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
  13912. };
  13913. /**
  13914. * enum qca_wlan_vendor_attr_flush_pending - Attributes for
  13915. * flushing pending traffic in firmware.
  13916. *
  13917. * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
  13918. * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
  13919. * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
  13920. * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
  13921. * flush packets with access category. This is optional. See below.
  13922. * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
  13923. * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
  13924. * bit to 1 to act upon the TID. This is optional. Either this attribute or
  13925. * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
  13926. * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
  13927. * it is an error.
  13928. * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
  13929. * packets corresponding to the peer/TID provided. It is a u32 value,
  13930. * represented by %enum qca_wlan_vendor_flush_pending_policy. This
  13931. * value is honored only when TID mask is provided. This is not honored when AC
  13932. * mask is provided.
  13933. */
  13934. enum qca_wlan_vendor_attr_flush_pending {
  13935. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
  13936. QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
  13937. QCA_WLAN_VENDOR_ATTR_AC = 2,
  13938. QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
  13939. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
  13940. /* keep last */
  13941. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
  13942. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
  13943. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
  13944. };
  13945. /**
  13946. * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
  13947. * for) or drop existing PASN security association for the listed the
  13948. * peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
  13949. * to userspace.
  13950. *
  13951. * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
  13952. * devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
  13953. * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
  13954. * the driver to userspace to inform that the existing PASN keys of the
  13955. * peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
  13956. * not valid anymore.
  13957. */
  13958. enum qca_wlan_vendor_pasn_action {
  13959. QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
  13960. QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
  13961. };
  13962. /**
  13963. * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
  13964. * QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
  13965. *
  13966. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
  13967. * event from the driver to userspace and represents the local MAC address
  13968. * to be used for PASN handshake. When this attribute is present, userspace
  13969. * shall use the source address specified in this attribute by the driver
  13970. * for PASN handshake with peer device.
  13971. * This attribute is required in a command response from userspace to the
  13972. * driver and represents the MAC address that was used in PASN handshake
  13973. * with the peer device.
  13974. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
  13975. * peer device to which PASN handshake is requested in an event from the
  13976. * driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
  13977. * QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
  13978. * Indicates the MAC address of the peer device for which the keys are to
  13979. * be invalidated in an event from the driver to userspace when
  13980. * QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
  13981. * QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
  13982. * Indicates the MAC address of the peer device for which the status is
  13983. * being sent in a status report from userspace to the driver.
  13984. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
  13985. * in the event from the driver to userspace. When set, userspace is
  13986. * required to derive LTF key seed from KDK and set it to the driver.
  13987. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
  13988. * attribute is used in the command response from userspace to the driver.
  13989. * If present, it indicates the successful PASN handshake with the peer. If
  13990. * this flag is not present, it indicates that the PASN handshake with the
  13991. * peer device failed.
  13992. */
  13993. enum qca_wlan_vendor_attr_pasn_peer {
  13994. QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
  13995. QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
  13996. QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
  13997. QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
  13998. QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
  13999. /* keep last */
  14000. QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
  14001. QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
  14002. QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
  14003. };
  14004. /**
  14005. * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
  14006. * QCA_NL80211_VENDOR_SUBCMD_PASN command.
  14007. *
  14008. * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
  14009. * defined in enum qca_wlan_vendor_pasn_action and used only in an event
  14010. * from the driver to userspace.
  14011. * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
  14012. * details for each peer and used in both an event and a command response.
  14013. * The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
  14014. * defined in enum qca_wlan_vendor_attr_pasn_peer.
  14015. */
  14016. enum qca_wlan_vendor_attr_pasn {
  14017. QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
  14018. QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
  14019. QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
  14020. /* keep last */
  14021. QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
  14022. QCA_WLAN_VENDOR_ATTR_PASN_MAX =
  14023. QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
  14024. };
  14025. /**
  14026. * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
  14027. * the ranging security context derived from PASN for each peer. Used in
  14028. * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
  14029. *
  14030. * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
  14031. * context for the peer.
  14032. * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
  14033. * context for the peer.
  14034. */
  14035. enum qca_wlan_vendor_secure_ranging_ctx_action {
  14036. QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
  14037. QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
  14038. };
  14039. /**
  14040. * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
  14041. * used for deriving PASN keys to the driver. Used in
  14042. * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
  14043. * @QCA_WLAN_VENDOR_SHA_256: SHA-256
  14044. * @QCA_WLAN_VENDOR_SHA_384: SHA-384
  14045. */
  14046. enum qca_wlan_vendor_sha_type {
  14047. QCA_WLAN_VENDOR_SHA_256,
  14048. QCA_WLAN_VENDOR_SHA_384,
  14049. };
  14050. /**
  14051. * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
  14052. * to set security context for the PASN peer from userspace to the driver.
  14053. * Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
  14054. *
  14055. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
  14056. * values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
  14057. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
  14058. * was used during the PASN handshake.
  14059. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
  14060. * the peer device for which secure ranging context is being configured.
  14061. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
  14062. * hash algorithm to be used, possible values are defined in enum
  14063. * qca_wlan_vendor_sha_type.
  14064. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
  14065. * the temporal key generated from the PASN handshake. The length of this
  14066. * attribute is dependent on the value of
  14067. * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
  14068. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
  14069. * TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
  14070. * (e.g., 0x000FAC04).
  14071. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
  14072. * attribute, holds the LTF keyseed derived from KDK of PASN handshake.
  14073. * The length of this attribute is dependent on the value of
  14074. * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
  14075. *
  14076. */
  14077. enum qca_wlan_vendor_attr_secure_ranging_ctx {
  14078. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
  14079. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
  14080. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
  14081. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
  14082. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
  14083. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
  14084. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
  14085. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
  14086. /* keep last */
  14087. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
  14088. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
  14089. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
  14090. };
  14091. /**
  14092. * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used
  14093. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER
  14094. * nested attribute. The packets that match a filter will be replied with
  14095. * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY.
  14096. *
  14097. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4:
  14098. * u32 attribute. Destination IPv4 address in network byte order, the
  14099. * IPv4 packets with different address will be filtered out.
  14100. * This attribute is optional.
  14101. *
  14102. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC:
  14103. * Flag attribute. If it's present, indicates that
  14104. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast
  14105. * address; while if not, indicates that the address is a unicast/multicast
  14106. * address.
  14107. * This attribute is optional.
  14108. *
  14109. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6:
  14110. * NLA_BINARY attribute, length is 16 bytes.
  14111. * Destination IPv6 address in network byte order, the IPv6 packets
  14112. * with different destination address will be filtered out.
  14113. * This attribute is optional.
  14114. *
  14115. * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and
  14116. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured.
  14117. * Packets on both IPv4 and IPv6 will be processed if both are configured.
  14118. *
  14119. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT:
  14120. * u16 attribute. Destination UDP port, the packets with different destination
  14121. * UDP port will be filtered out.
  14122. * This attribute is mandatory.
  14123. *
  14124. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET:
  14125. * u32 attribute. Represents the offset (in UDP payload) of the data
  14126. * to be matched.
  14127. * This attribute is mandatory.
  14128. *
  14129. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA:
  14130. * NLA_BINARY attribute, the maximum allowed size is 16 bytes.
  14131. * Binary data that is compared bit-by-bit against the data (specified
  14132. * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP
  14133. * payload, the packets don't match will be filtered out.
  14134. * This attribute is mandatory.
  14135. */
  14136. enum qca_wlan_vendor_attr_coap_offload_filter {
  14137. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0,
  14138. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1,
  14139. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2,
  14140. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3,
  14141. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4,
  14142. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5,
  14143. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6,
  14144. /* keep last */
  14145. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST,
  14146. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX =
  14147. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1,
  14148. };
  14149. /**
  14150. * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used
  14151. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute.
  14152. *
  14153. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4:
  14154. * u32 attribute. Source address (in network byte order) for replying
  14155. * the matching broadcast/multicast IPv4 packets.
  14156. * This attribute is optional.
  14157. *
  14158. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6:
  14159. * NLA_BINARY attribute, length is 16 bytes.
  14160. * Source address (in network byte order) for replying the matching
  14161. * multicast IPv6 packets.
  14162. * This attribute is optional.
  14163. *
  14164. * For broadcast/multicast offload reply, one of
  14165. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and
  14166. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be
  14167. * configured according to version of the IP address(es) configured in
  14168. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER;
  14169. * while for unicast case, firmware will take the destination IP address
  14170. * in the received matching packet as the source address for replying.
  14171. *
  14172. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER:
  14173. * Nested attribute. Filter for the received UDP packets, only the matching
  14174. * packets will be replied and cached.
  14175. * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported
  14176. * attributes.
  14177. * This attribute is mandatory.
  14178. *
  14179. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG:
  14180. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  14181. * CoAP message (UDP payload) to be sent upon receiving matching packets.
  14182. * Firmware is responsible for adding any necessary protocol headers.
  14183. * This attribute is mandatory.
  14184. *
  14185. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME:
  14186. * u32 attribute. Expiration time in milliseconds of the cached CoAP messages.
  14187. * A cached message will be dropped by firmware if it's expired.
  14188. * This attribute is optional. A default value of 40000 will be used in the
  14189. * absence of it.
  14190. */
  14191. enum qca_wlan_vendor_attr_coap_offload_reply {
  14192. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0,
  14193. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1,
  14194. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2,
  14195. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3,
  14196. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4,
  14197. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5,
  14198. /* keep last */
  14199. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST,
  14200. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX =
  14201. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1,
  14202. };
  14203. /**
  14204. * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for
  14205. * CoAP message (UDP) transmitting on IPv4.
  14206. *
  14207. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR:
  14208. * u32 attribute. Source address (in network byte order) for transmitting
  14209. * packets on IPv4.
  14210. * This attribute is mandatory.
  14211. *
  14212. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT:
  14213. * u16 attribute. Source UDP port.
  14214. * This attribute is optional, a random port is taken if it's not present.
  14215. *
  14216. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR:
  14217. * u32 attribute. Destination IPv4 address (in network byte order).
  14218. * This attribute is mandatory.
  14219. *
  14220. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC:
  14221. * Flag attribute. If it's present, indicates that
  14222. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast
  14223. * address; while if not, indicates that the address is unicast/multicast
  14224. * address.
  14225. * This attribute is optional.
  14226. *
  14227. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT:
  14228. * u16 attribute. Destination UDP port.
  14229. * This attribute is mandatory.
  14230. */
  14231. enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 {
  14232. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0,
  14233. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1,
  14234. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2,
  14235. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3,
  14236. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4,
  14237. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5,
  14238. /* keep last */
  14239. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST,
  14240. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX =
  14241. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1,
  14242. };
  14243. /**
  14244. * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for
  14245. * CoAP message (UDP) transmitting on IPv6.
  14246. *
  14247. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR:
  14248. * NLA_BINARY attribute, length is 16 bytes.
  14249. * Source address (in network byte order) for transmitting packets on IPv6.
  14250. * This attribute is mandatory.
  14251. *
  14252. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT:
  14253. * u16 attribute. Source UDP port.
  14254. * This attribute is optional, a random port is taken if it's not present.
  14255. *
  14256. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR:
  14257. * NLA_BINARY attribute, length is 16 bytes.
  14258. * Destination IPv6 address (in network byte order).
  14259. * This attribute is mandatory.
  14260. *
  14261. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT:
  14262. * u16 attribute. Destination UDP port.
  14263. * This attribute is mandatory.
  14264. */
  14265. enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 {
  14266. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0,
  14267. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1,
  14268. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2,
  14269. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3,
  14270. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4,
  14271. /* keep last */
  14272. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST,
  14273. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX =
  14274. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1,
  14275. };
  14276. /**
  14277. * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used
  14278. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute.
  14279. *
  14280. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4:
  14281. * Nested attribute. The IPv4 source/destination address/port for offload
  14282. * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list
  14283. * of supported attributes.
  14284. * This attribute is optional.
  14285. *
  14286. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6:
  14287. * Nested attribute. The IPv6 source/destination address/port for offload
  14288. * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list
  14289. * of supported attributes.
  14290. * This attribute is optional.
  14291. *
  14292. * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and
  14293. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured.
  14294. * Firmware will transmit the packets on both IPv4 and IPv6 if both are
  14295. * configured.
  14296. *
  14297. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD:
  14298. * u32 attribute. Period in milliseconds for the periodic transmitting.
  14299. * This attribute is mandatory.
  14300. *
  14301. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG:
  14302. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  14303. * CoAP message (UDP payload) to be periodically transmitted. Firmware
  14304. * is responsible for adding any necessary protocol headers.
  14305. * This attribute is mandatory.
  14306. */
  14307. enum qca_wlan_vendor_attr_coap_offload_periodic_tx {
  14308. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0,
  14309. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1,
  14310. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2,
  14311. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3,
  14312. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4,
  14313. /* keep last */
  14314. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST,
  14315. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX =
  14316. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1,
  14317. };
  14318. /**
  14319. * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used
  14320. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute.
  14321. *
  14322. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS:
  14323. * u64 attribute. Received time (since system booted in microseconds) of
  14324. * the cached CoAP message.
  14325. * This attribute is mandatory.
  14326. *
  14327. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4:
  14328. * u32 attribute. Source IPv4 address (in network byte order) of the cached
  14329. * CoAP message.
  14330. * This attribute is optional.
  14331. *
  14332. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6:
  14333. * NLA_BINARY attribute, length is 16 bytes.
  14334. * Source IPv6 address (in network byte order) of the cached CoAP message.
  14335. * This attribute is optional.
  14336. *
  14337. * At most and at least one of
  14338. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and
  14339. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for
  14340. * an entry.
  14341. *
  14342. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG:
  14343. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  14344. * The cached CoAP message (UDP payload). If the actual message size is
  14345. * greater than the maximum size, it will be truncated and leaving only
  14346. * the first 1152 bytes.
  14347. * This attribute is mandatory.
  14348. */
  14349. enum qca_wlan_vendor_attr_coap_offload_cache_info {
  14350. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0,
  14351. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1,
  14352. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2,
  14353. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3,
  14354. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4,
  14355. /* keep last */
  14356. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST,
  14357. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX =
  14358. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1,
  14359. };
  14360. /**
  14361. * enum qca_wlan_vendor_coap_offload_action - Actions for
  14362. * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
  14363. *
  14364. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE:
  14365. * Enable CoAP offload reply.
  14366. * If it's enabled, firmware will start offload processing on each suspend
  14367. * and stop on each resume.
  14368. *
  14369. * Offload reply on match works as follows:
  14370. * Reply the packets that match the filter with the given CoAP
  14371. * message (with necessary protocol headers), increase the CoAP message
  14372. * ID in the given CoAP message by one for the next use after each successful
  14373. * transmission, and try to store the information of the received packet,
  14374. * including the received time, source IP address, and CoAP message (UDP
  14375. * payload).
  14376. *
  14377. * Firmware has a limit to the maximum stored entries, it takes the source IP
  14378. * address as the key of an entry, and keeps at most one entry for each key.
  14379. * A packet won't be stored if no entry for the same key is present and the
  14380. * total number of the existing unexpired entries reaches the maximum value.
  14381. *
  14382. * If any configured item is changed, user space should disable offload reply
  14383. * first and then issue a new enable request.
  14384. *
  14385. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE:
  14386. * Disable CoAP offload reply and return information of any cached CoAP
  14387. * messages.
  14388. *
  14389. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE:
  14390. * Enable CoAP offload periodic transmitting.
  14391. * If it's enabled, firmware will start offload periodic transmitting on
  14392. * each suspend and stop on each resume.
  14393. *
  14394. * Offload periodic transmitting works as follows:
  14395. * Send the given CoAP message (with necessary protocol headers) with the given
  14396. * source/destination IP address/UDP port periodically based on the given
  14397. * period and increase the CoAP message ID in the given CoAP message by one
  14398. * for the next use after each successful transmission.
  14399. *
  14400. * If any configured item is changed, user space should disable offload
  14401. * periodic transmitting first and then issue a new enable request.
  14402. *
  14403. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE:
  14404. * Disable CoAP offload periodic transmitting.
  14405. *
  14406. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET:
  14407. * Get information of the CoAP messages cached during offload reply
  14408. * processing. The cache is cleared after retrieval.
  14409. */
  14410. enum qca_wlan_vendor_coap_offload_action {
  14411. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0,
  14412. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1,
  14413. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2,
  14414. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3,
  14415. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4,
  14416. };
  14417. /**
  14418. * enum qca_wlan_vendor_attr_coap_offload - Used by the
  14419. * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
  14420. * This is used to set parameters for CoAP offload processing, or get
  14421. * cached CoAP messages from firmware.
  14422. *
  14423. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION:
  14424. * u32 attribute. Action to take in this vendor command.
  14425. * See enum qca_wlan_vendor_coap_offload_action for supported actions.
  14426. * This attribute is mandatory.
  14427. *
  14428. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID:
  14429. * u32 attribute. Represents the Request ID for the CoAP offload
  14430. * configuration, which can help to identify the user entity starting
  14431. * the CoAP offload processing and accordingly stop the respective
  14432. * ones/get the cached CoAP messages with the matching ID.
  14433. * This attribute is mandatory.
  14434. *
  14435. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY:
  14436. * Nested attribute. Parameters for offload reply.
  14437. * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of
  14438. * supported attributes.
  14439. * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
  14440. * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored
  14441. * otherwise.
  14442. *
  14443. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX:
  14444. * Nested attribute. Parameters for offload periodic transmitting.
  14445. * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of
  14446. * supported attributes.
  14447. * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is
  14448. * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored
  14449. * otherwise.
  14450. *
  14451. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES:
  14452. * Array of nested attributes. Information of the cached CoAP messages,
  14453. * where each entry is taken from
  14454. * enum qca_wlan_vendor_attr_coap_offload_cache_info.
  14455. * This attribute is used for reporting the cached CoAP messages
  14456. * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
  14457. * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or
  14458. * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no
  14459. * cached item if this attribute is not present.
  14460. */
  14461. enum qca_wlan_vendor_attr_coap_offload {
  14462. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0,
  14463. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1,
  14464. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2,
  14465. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3,
  14466. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4,
  14467. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5,
  14468. /* keep last */
  14469. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST,
  14470. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX =
  14471. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1,
  14472. };
  14473. /**
  14474. * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command
  14475. * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification
  14476. * Service (SCS) rule.
  14477. *
  14478. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute.
  14479. * Represents the unique id of SCS rule to be configured.
  14480. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute.
  14481. * Represents the request type: add, remove, or change.
  14482. * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request
  14483. * Type definitions).
  14484. *
  14485. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute
  14486. * in case of add/change request type.
  14487. * Represents the output traffic identifier (TID) to be assigned to the flow
  14488. * matching the rule.
  14489. *
  14490. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8
  14491. * attribute in case of add/change request type.
  14492. * Represents type of classifier parameters present in SCS rule.
  14493. * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type).
  14494. * Only classifier types 4 and 10 are supported for SCS.
  14495. *
  14496. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute
  14497. * in case of add/change request type when classifier type is TCLAS4.
  14498. * Represents the IP version (4: IPv4, 6: IPv6) of the rule.
  14499. *
  14500. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional
  14501. * attribute in case of add/change request type when classifier type is TCLAS4
  14502. * and version attribute is IPv4.
  14503. * Represents the source IPv4 address in the rule which is to be compared
  14504. * against the source IP address in the IPv4 header.
  14505. *
  14506. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional
  14507. * attribute in case of add/change request type when classifier type is TCLAS4
  14508. * and version attribute is IPv4.
  14509. * Represents the destination IPv4 address in the rule which is to be compared
  14510. * against the destination IP address in the IPv4 header.
  14511. *
  14512. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional
  14513. * attribute in case of add/change request type when classifier type is TCLAS4
  14514. * and version attribute is IPv6.
  14515. * Represents the source IPv6 address in the rule which is to be compared
  14516. * against the source IP address in the IPv6 header.
  14517. *
  14518. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional
  14519. * attribute in case of add/change request type when classifier type is TCLAS4
  14520. * and version attribute is IPv6.
  14521. * Represents the destination IPv6 address in the rule which is to be compared
  14522. * against the destination IP address in the IPv6 header.
  14523. *
  14524. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute
  14525. * in case of add/change request type when classifier type is TCLAS4.
  14526. * Represents the source port number in the rule which is to be compared against
  14527. * the source port number in the protocol header.
  14528. *
  14529. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute
  14530. * in case of add/change request type when classifier type is TCLAS4.
  14531. * Represents the destination port number in the rule which is to be compared
  14532. * against the destination port number in the protocol header.
  14533. *
  14534. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute
  14535. * in case of add/change request type when classifier type is TCLAS4.
  14536. * Represents the DSCP value in the rule which is to be compared against the
  14537. * DSCP field present in the IP header.
  14538. *
  14539. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8
  14540. * attribute in case of add/change request type when classifier type is TCLAS4.
  14541. * Represents the protocol/next header in the rule which is to be compared
  14542. * against the protocol/next header field present in the IPv4/IPv6 header.
  14543. *
  14544. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional
  14545. * attribute of size 3 bytes present in case of add/change request type
  14546. * when classifier type is TCLAS4 and version is IPv6.
  14547. * Represents the flow label value in the rule which is to be compared against
  14548. * the flow label field present in the IPv6 header.
  14549. *
  14550. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8
  14551. * attribute in case of add/change request type when classifier type is TCLAS10.
  14552. * Represents the protocol instance number in the rule.
  14553. *
  14554. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8
  14555. * attribute in case of add/change request type when classifier type is TCLAS10.
  14556. * Represents the protocol/next header in the rule which is to be compared
  14557. * against the protocol/next header field present in the IPv4/IPv6 header.
  14558. *
  14559. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional
  14560. * attribute of variable length present when request type is add/change and
  14561. * classifier type is TCLAS10.
  14562. * Represents the mask to be used for masking the header contents of the header
  14563. * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER
  14564. * attribute.
  14565. *
  14566. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional
  14567. * attribute of variable length present when request type is add/change and
  14568. * classifier type is TCLAS10.
  14569. * Represents the value to be compared against after masking the header contents
  14570. * of the header specified by the
  14571. * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the
  14572. * filter mask specified by the
  14573. * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute.
  14574. *
  14575. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16
  14576. * attribute.
  14577. * Represents the service class id of the configured SCS rule.
  14578. *
  14579. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR: Optional 6 bytes
  14580. * MAC address.
  14581. * Represents the destination MAC address in the rule.
  14582. *
  14583. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX: Optional u32 attribute
  14584. * Represents the netdevice interface index in the rule.
  14585. */
  14586. enum qca_wlan_vendor_attr_scs_rule_config {
  14587. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0,
  14588. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1,
  14589. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2,
  14590. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3,
  14591. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4,
  14592. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5,
  14593. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6,
  14594. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7,
  14595. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8,
  14596. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9,
  14597. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10,
  14598. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11,
  14599. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12,
  14600. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13,
  14601. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14,
  14602. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15,
  14603. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16,
  14604. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17,
  14605. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18,
  14606. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19,
  14607. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR = 20,
  14608. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX = 21,
  14609. /* Keep last */
  14610. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST,
  14611. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX =
  14612. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1,
  14613. };
  14614. /**
  14615. * enum qca_wlan_vendor_sar_version - This describes the current SAR version
  14616. * used in the firmware.
  14617. *
  14618. * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR.
  14619. * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits.
  14620. *
  14621. * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2,
  14622. * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for
  14623. * each CTL group. So user can select up to 6 SAR indexes from the current CTL
  14624. * groups.
  14625. *
  14626. * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3,
  14627. * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each
  14628. * CTL group but user can choose up to 3 SAR set index only, as the top half
  14629. * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of
  14630. * the SAR index (3 to 5) is used for DBS mode.
  14631. */
  14632. enum qca_wlan_vendor_sar_version {
  14633. QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0,
  14634. QCA_WLAN_VENDOR_SAR_VERSION_1 = 1,
  14635. QCA_WLAN_VENDOR_SAR_VERSION_2 = 2,
  14636. QCA_WLAN_VENDOR_SAR_VERSION_3 = 3,
  14637. };
  14638. /**
  14639. * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether
  14640. * CTL grouping is enabled or disabled in the firmware.
  14641. *
  14642. * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping
  14643. * is enabled in firmware.
  14644. *
  14645. * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping
  14646. * is disabled in firmware.
  14647. *
  14648. */
  14649. enum qca_wlan_vendor_sar_ctl_group_state {
  14650. QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0,
  14651. QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1,
  14652. QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2,
  14653. };
  14654. /**
  14655. * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command
  14656. * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities
  14657. * supported by the firmware.
  14658. * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION:
  14659. * u32 attribute. This field describes current SAR version supported by the
  14660. * firmware.
  14661. * See enum qca_wlan_vendor_sar_version for more information.
  14662. * This attribute is mandatory.
  14663. * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE:
  14664. * u32 attribute. This field describes whether CTL groups are enabled
  14665. * or disabled in the firmware.
  14666. * See enum qca_wlan_vendor_sar_ctl_group_state for more information.
  14667. * This attribute is optional.
  14668. */
  14669. enum qca_wlan_vendor_attr_sar_capability {
  14670. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0,
  14671. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1,
  14672. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2,
  14673. /* Keep last */
  14674. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST,
  14675. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX =
  14676. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1,
  14677. };
  14678. /**
  14679. * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics.
  14680. * These statistics are sent from the driver in a response when userspace
  14681. * queries to get the statistics using the operation
  14682. * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset
  14683. * by the driver when the SR feature is enabled, when the driver receives
  14684. * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected.
  14685. *
  14686. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
  14687. * Mandatory only when non-SRG is supported by the AP and optional otherwise.
  14688. * This represents the number of non-SRG TX opportunities.
  14689. *
  14690. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
  14691. * Mandatory only when non-SRG is supported by the AP and optional otherwise.
  14692. * This represents the number of non-SRG PPDUs tried to transmit.
  14693. *
  14694. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
  14695. * Mandatory only when non-SRG is supported by the AP and optional otherwise.
  14696. * This represents the number of non-SRG PPDUs successfully transmitted.
  14697. *
  14698. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
  14699. * Mandatory only when SRG is supported by the AP and optional otherwise.
  14700. * This represents the number of SRG TX opportunities.
  14701. *
  14702. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
  14703. * Mandatory only when SRG is supported by the AP and optional otherwise.
  14704. * This represents the number of SRG PPDUs tried to transmit.
  14705. *
  14706. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
  14707. * Mandatory only when SRG is supported by the AP and optional otherwise.
  14708. * This represents the number of SRG PPDUs successfully transmitted.
  14709. */
  14710. enum qca_wlan_vendor_attr_sr_stats {
  14711. QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0,
  14712. QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1,
  14713. QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2,
  14714. QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3,
  14715. QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4,
  14716. QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5,
  14717. QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6,
  14718. /* Keep last */
  14719. QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST,
  14720. QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX =
  14721. QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1,
  14722. };
  14723. /**
  14724. * enum qca_wlan_sr_reason_code - Defines the different reason codes used in
  14725. * Spatial Reuse feature.
  14726. *
  14727. * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to
  14728. * roaming to an AP that doesn't support/supports SR feature, respectively.
  14729. *
  14730. * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due
  14731. * to change in concurrent interfaces that are supported by the driver.
  14732. */
  14733. enum qca_wlan_sr_reason_code {
  14734. QCA_WLAN_SR_REASON_CODE_ROAMING = 0,
  14735. QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1,
  14736. };
  14737. /**
  14738. * enum qca_wlan_sr_operation - Defines the different types of SR operations.
  14739. * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION.
  14740. *
  14741. * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the
  14742. * driver to enable the Spatial Reuse feature. Attributes
  14743. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
  14744. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this
  14745. * operation.
  14746. *
  14747. * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the
  14748. * driver to disable the Spatial Reuse feature.
  14749. *
  14750. * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an
  14751. * asynchronous event sent to userspace when the SR feature is disabled.
  14752. * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE
  14753. * and sent along with the asynchronous event.
  14754. *
  14755. * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an
  14756. * asynchronous event when the SR feature is enabled again after the SR feature
  14757. * was suspended by the driver earlier. The enable reason is
  14758. * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are
  14759. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
  14760. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD.
  14761. *
  14762. * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is
  14763. * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial
  14764. * reuse transmissions. Userspace sends this operation to the driver.
  14765. * The driver/firmware upon receiving this operation shall prohibit PSR-based
  14766. * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
  14767. *
  14768. * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is
  14769. * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial
  14770. * reuse transmissions. Userspace sends this operation to the driver.
  14771. * The driver/firmware upon receiving this operation shall allow PSR-based
  14772. * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
  14773. *
  14774. * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the
  14775. * driver to get the SR statistics and the driver sends a synchronous response
  14776. * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the
  14777. * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS.
  14778. *
  14779. * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the
  14780. * driver to clear the SR statistics and upon receiving this operation
  14781. * the driver/firmware shall clear the SR statistics.
  14782. *
  14783. * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the
  14784. * driver to get the SR parameters and the driver sends the synchronous response
  14785. * with the following required attributes:
  14786. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
  14787. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
  14788. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
  14789. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
  14790. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
  14791. *
  14792. * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an
  14793. * asynchronous event to userspace to update any changes in SR parameters.
  14794. * The following attributes are used with this operation:
  14795. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
  14796. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
  14797. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
  14798. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
  14799. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
  14800. */
  14801. enum qca_wlan_sr_operation {
  14802. QCA_WLAN_SR_OPERATION_SR_ENABLE = 0,
  14803. QCA_WLAN_SR_OPERATION_SR_DISABLE = 1,
  14804. QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2,
  14805. QCA_WLAN_SR_OPERATION_SR_RESUME = 3,
  14806. QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4,
  14807. QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5,
  14808. QCA_WLAN_SR_OPERATION_GET_STATS = 6,
  14809. QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7,
  14810. QCA_WLAN_SR_OPERATION_GET_PARAMS = 8,
  14811. QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9,
  14812. };
  14813. /**
  14814. * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration
  14815. * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS.
  14816. *
  14817. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute.
  14818. * This attribute is optionally set in response to
  14819. * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to
  14820. * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std
  14821. * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more
  14822. * about HESIGA_Spatial_reuse_value15_allowed.
  14823. *
  14824. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute.
  14825. * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS
  14826. * operation. This indicates whether non-SRG OBSS PD SR transmissions are
  14827. * allowed or not at non-AP STAs that are associated with the AP. If present
  14828. * non-SRG OBSS PD SR transmissions are not allowed else are allowed.
  14829. *
  14830. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8
  14831. * attribute. This attribute is used in response to
  14832. * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
  14833. * Min Offset field which contains an unsigned integer that is added to -82 dBm
  14834. * to generate the value of the SRG OBSS PD Min parameter.
  14835. *
  14836. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8
  14837. * attribute. This attribute is used in response to
  14838. * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
  14839. * Max Offset field which contains an unsigned integer that is added to -82 dBm
  14840. * to generate the value of the SRG OBSS PD Max parameter.
  14841. *
  14842. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8
  14843. * attribute. This attribute is used in response to
  14844. * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS
  14845. * PD Max Offset field which contains an unsigned integer that is added to -82
  14846. * dBm to generate the value of the Non-SRG OBSS PD Max parameter.
  14847. *
  14848. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm).
  14849. * Userspace optionally sends this attribute with
  14850. * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
  14851. * preferred SRG PD threshold. The driver shall send this attribute to
  14852. * userspace in SR resume event to indicate the PD threshold being used for SR.
  14853. * When there is change in SRG PD threshold (for example, due to roaming, etc.)
  14854. * the driver shall indicate the userspace the newly configured SRG PD threshold
  14855. * using an asynchronous event.
  14856. *
  14857. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm).
  14858. * Userspace optionally sends this attribute with
  14859. * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
  14860. * preferred non-SRG PD threshold. The driver shall send this attribute to
  14861. * userspace in SR resume event to indicate the PD threshold being used for SR.
  14862. * When there is change in non-SRG PD threshold (for example, due to roaming,
  14863. * etc.) the driver shall indicate the userspace the newly configured non-SRG PD
  14864. * threshold using an asynchronous event.
  14865. *
  14866. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible
  14867. * values are defined in enum qca_wlan_sr_reason_code. This
  14868. * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and
  14869. * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations.
  14870. */
  14871. enum qca_wlan_vendor_attr_sr_params {
  14872. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0,
  14873. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1,
  14874. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2,
  14875. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3,
  14876. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4,
  14877. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5,
  14878. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6,
  14879. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7,
  14880. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8,
  14881. /* keep last */
  14882. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST,
  14883. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX =
  14884. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1,
  14885. };
  14886. /**
  14887. * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor
  14888. * command QCA_NL80211_VENDOR_SUBCMD_SR.
  14889. *
  14890. * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests
  14891. * from userspace to the driver. Possible values are defined in enum
  14892. * qca_wlan_sr_operation.
  14893. *
  14894. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR
  14895. * configuration parameters. The possible attributes inside this attribute are
  14896. * defined in enum qca_wlan_vendor_attr_sr_params.
  14897. * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
  14898. * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and
  14899. * also in response from the driver to userspace when the response is sent for
  14900. * %QCA_WLAN_SR_OPERATION_GET_PARAMS.
  14901. * The driver uses this attribute in asynchronous events in which the operation
  14902. * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME,
  14903. * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS.
  14904. *
  14905. * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR
  14906. * statistics. These attributes used inside this are defined in enum
  14907. * qca_wlan_vendor_attr_sr_stats.
  14908. * This attribute is used in response from the driver to a command in which
  14909. * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
  14910. * %QCA_WLAN_SR_OPERATION_GET_STATS.
  14911. */
  14912. enum qca_wlan_vendor_attr_sr {
  14913. QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0,
  14914. QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1,
  14915. QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2,
  14916. QCA_WLAN_VENDOR_ATTR_SR_STATS = 3,
  14917. /* Keep last */
  14918. QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST,
  14919. QCA_WLAN_VENDOR_ATTR_SR_MAX =
  14920. QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1,
  14921. };
  14922. /**
  14923. * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes
  14924. * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand.
  14925. *
  14926. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address
  14927. * used by the peer on the link that corresponds to the link used for sending
  14928. * the event notification.
  14929. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte
  14930. * MLD MAC address of the peer.
  14931. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute,
  14932. * used to pass ifindex of the primary netdev.
  14933. */
  14934. enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event {
  14935. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0,
  14936. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1,
  14937. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2,
  14938. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3,
  14939. /* keep last */
  14940. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST,
  14941. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX =
  14942. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1,
  14943. };
  14944. /**
  14945. * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with
  14946. * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and
  14947. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range
  14948. * and PSD information.
  14949. *
  14950. * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is
  14951. * u32. This attribute is used to indicate the start of the queried frequency
  14952. * range in MHz.
  14953. *
  14954. * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32.
  14955. * This attribute is used to indicate the end of the queried frequency range
  14956. * in MHz.
  14957. *
  14958. * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32.
  14959. * This attribute will contain the PSD information for a single range as
  14960. * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and
  14961. * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes.
  14962. *
  14963. * The PSD power info (dBm/MHz) from user space should be multiplied
  14964. * by a factor of 100 when sending to the driver to preserve granularity
  14965. * up to 2 decimal places.
  14966. * Example:
  14967. * PSD power value: 10.21 dBm/MHz
  14968. * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021.
  14969. *
  14970. * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only
  14971. * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with
  14972. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when
  14973. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  14974. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
  14975. *
  14976. * The following set of attributes will be used to exchange frequency and
  14977. * corresponding PSD information for AFC between the user space and the driver.
  14978. */
  14979. enum qca_wlan_vendor_attr_afc_freq_psd_info {
  14980. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0,
  14981. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1,
  14982. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2,
  14983. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3,
  14984. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST,
  14985. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX =
  14986. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1,
  14987. };
  14988. /**
  14989. * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with
  14990. * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the
  14991. * channel list and corresponding EIRP information.
  14992. *
  14993. * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8.
  14994. * This attribute is used to indicate queried channel from
  14995. * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO.
  14996. *
  14997. * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32.
  14998. * This attribute is used to configure the EIRP power info corresponding
  14999. * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM.
  15000. * The EIRP power info(dBm) from user space should be multiplied
  15001. * by a factor of 100 when sending to Driver to preserve granularity up to
  15002. * 2 decimal places.
  15003. * Example:
  15004. * EIRP power value: 34.23 dBm
  15005. * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423.
  15006. *
  15007. * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with
  15008. * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
  15009. * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when
  15010. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15011. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE:
  15012. *
  15013. * The following set of attributes will be used to exchange Channel and
  15014. * corresponding EIRP information for AFC between the user space and Driver.
  15015. */
  15016. enum qca_wlan_vendor_attr_afc_chan_eirp_info {
  15017. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0,
  15018. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1,
  15019. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2,
  15020. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST,
  15021. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX =
  15022. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1,
  15023. };
  15024. /**
  15025. * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested
  15026. * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
  15027. * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class,
  15028. * channel, and EIRP related information.
  15029. *
  15030. * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8.
  15031. * This attribute is used to indicate the operating class, as listed under
  15032. * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list.
  15033. *
  15034. * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes
  15035. * for updating the channel number and EIRP power information.
  15036. * It uses the attributes defined in
  15037. * enum qca_wlan_vendor_attr_afc_chan_eirp_info.
  15038. *
  15039. * Operating class information packing format for
  15040. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
  15041. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15042. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY.
  15043. *
  15044. * m - Total number of operating classes.
  15045. * n, j - Number of queried channels for the corresponding operating class.
  15046. *
  15047. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
  15048. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
  15049. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  15050. * .....
  15051. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
  15052. * ....
  15053. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
  15054. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
  15055. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  15056. * ....
  15057. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
  15058. *
  15059. * Operating class information packing format for
  15060. * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
  15061. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
  15062. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15063. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
  15064. *
  15065. * m - Total number of operating classes.
  15066. * n, j - Number of channels for the corresponding operating class.
  15067. *
  15068. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
  15069. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
  15070. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  15071. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
  15072. * .....
  15073. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
  15074. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1]
  15075. * ....
  15076. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
  15077. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
  15078. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  15079. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
  15080. * ....
  15081. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
  15082. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1]
  15083. *
  15084. * The following set of attributes will be used to exchange operating class
  15085. * information for AFC between the user space and the driver.
  15086. */
  15087. enum qca_wlan_vendor_attr_afc_opclass_info {
  15088. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0,
  15089. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1,
  15090. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2,
  15091. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST,
  15092. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX =
  15093. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1,
  15094. };
  15095. /**
  15096. * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type.
  15097. * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute.
  15098. *
  15099. * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the
  15100. * driver to userspace in order to query the new AFC power values.
  15101. *
  15102. * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update
  15103. * complete event will be sent from the driver to userspace to indicate
  15104. * processing of the AFC response.
  15105. *
  15106. * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event
  15107. * will be sent from the driver to userspace to indicate last received
  15108. * AFC response data has been cleared on the AP due to invalid data
  15109. * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE.
  15110. *
  15111. * The following enum defines the different event types that will be
  15112. * used by the driver to help trigger corresponding AFC functionality in user
  15113. * space.
  15114. */
  15115. enum qca_wlan_vendor_afc_event_type {
  15116. QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0,
  15117. QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1,
  15118. QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2,
  15119. };
  15120. /**
  15121. * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP
  15122. * deployment type.
  15123. * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute.
  15124. *
  15125. * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment.
  15126. *
  15127. * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment.
  15128. *
  15129. * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment.
  15130. *
  15131. * The following enum defines different deployment modes that the AP might
  15132. * come up in. This information will be essential to retrieve deployment-type
  15133. * specific SP power values for AFC operation.
  15134. */
  15135. enum qca_wlan_vendor_afc_ap_deployment_type {
  15136. QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0,
  15137. QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1,
  15138. QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2,
  15139. };
  15140. /**
  15141. * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to
  15142. * indicate AFC response status.
  15143. * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute.
  15144. *
  15145. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success
  15146. *
  15147. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication
  15148. * command was not received within the expected time of the AFC expiry event
  15149. * being triggered.
  15150. *
  15151. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data
  15152. * parsing error by the driver.
  15153. *
  15154. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local
  15155. * error.
  15156. *
  15157. * The following enum defines the status codes that the driver will use to
  15158. * indicate whether the AFC data is valid or not.
  15159. */
  15160. enum qca_wlan_vendor_afc_evt_status_code {
  15161. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0,
  15162. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1,
  15163. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2,
  15164. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3,
  15165. };
  15166. /**
  15167. * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with
  15168. * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will
  15169. * support sending only a single request to the user space at a time.
  15170. *
  15171. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute.
  15172. * Used with event to notify the type of AFC event received.
  15173. * Valid values are defined in enum qca_wlan_vendor_afc_event_type.
  15174. *
  15175. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when
  15176. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
  15177. * otherwise unused.
  15178. *
  15179. * This attribute is used to indicate the AP deployment type in the AFC request.
  15180. * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type.
  15181. *
  15182. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute.
  15183. * Unique request identifier generated by the AFC client for every
  15184. * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID.
  15185. * The user space application is responsible for ensuring no duplicate values
  15186. * are in-flight with the server, e.g., by delaying a request, should the same
  15187. * value be received from different radios in parallel.
  15188. *
  15189. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional.
  15190. * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15191. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused.
  15192. *
  15193. * This attribute indicates the AFC spec version information. This will
  15194. * indicate the AFC version AFC client must use to query the AFC data.
  15195. * Bits 15:0 - Minor version
  15196. * Bits 31:16 - Major version
  15197. *
  15198. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when
  15199. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
  15200. * otherwise unused.
  15201. * This attribute indicates the minimum desired power (in dBm) for
  15202. * the queried spectrum.
  15203. *
  15204. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when
  15205. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15206. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15207. *
  15208. * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code.
  15209. * This attribute is used to indicate if there were any errors parsing the
  15210. * AFC response.
  15211. *
  15212. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required
  15213. * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15214. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15215. *
  15216. * This attribute indicates the AFC response code. The AFC response codes are
  15217. * in the following categories:
  15218. * -1: General Failure.
  15219. * 0: Success.
  15220. * 100 - 199: General errors related to protocol.
  15221. * 300 - 399: Error events specific to message exchange
  15222. * for the Available Spectrum Inquiry.
  15223. *
  15224. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when
  15225. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15226. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15227. *
  15228. * This attribute indicates the date until which the current response is
  15229. * valid for in UTC format.
  15230. * Date format: bits 7:0 - DD (Day 1-31)
  15231. * bits 15:8 - MM (Month 1-12)
  15232. * bits 31:16 - YYYY (Year)
  15233. *
  15234. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when
  15235. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15236. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15237. *
  15238. * This attribute indicates the time until which the current response is
  15239. * valid for in UTC format.
  15240. * Time format: bits 7:0 - SS (Seconds 0-59)
  15241. * bits 15:8 - MM (Minutes 0-59)
  15242. * bits 23:16 - HH (Hours 0-23)
  15243. * bits 31:24 - Reserved
  15244. *
  15245. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes
  15246. * for updating the list of frequency ranges to be queried.
  15247. * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15248. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
  15249. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15250. * It uses the attributes defined in
  15251. * enum qca_wlan_vendor_attr_afc_freq_psd_info.
  15252. *
  15253. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes
  15254. * for updating the list of operating classes and corresponding channels to be
  15255. * queried.
  15256. * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15257. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
  15258. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15259. * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info.
  15260. */
  15261. enum qca_wlan_vendor_attr_afc_event {
  15262. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0,
  15263. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1,
  15264. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2,
  15265. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3,
  15266. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4,
  15267. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5,
  15268. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6,
  15269. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7,
  15270. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8,
  15271. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9,
  15272. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10,
  15273. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11,
  15274. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST,
  15275. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX =
  15276. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1,
  15277. };
  15278. /**
  15279. * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used
  15280. * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes
  15281. * will support sending only a single AFC response to the driver at a time.
  15282. *
  15283. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute.
  15284. * This attribute will be used to send a single Spectrum Inquiry response object
  15285. * from the 'availableSpectrumInquiryResponses' array object from the response
  15286. * JSON.
  15287. *
  15288. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute.
  15289. *
  15290. * This attribute indicates the period (in seconds) for which the response
  15291. * data received is valid for.
  15292. *
  15293. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute.
  15294. *
  15295. * This attribute indicates the request ID for which the corresponding
  15296. * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID.
  15297. *
  15298. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute.
  15299. *
  15300. * This attribute indicates the date until which the current response is
  15301. * valid for in UTC format.
  15302. * Date format: bits 7:0 - DD (Day 1-31)
  15303. * bits 15:8 - MM (Month 1-12)
  15304. * bits 31:16 - YYYY (Year)
  15305. *
  15306. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME: Required u32 attribute.
  15307. *
  15308. * This attribute indicates the time until which the current response is
  15309. * valid for in UTC format.
  15310. * Time format: bits 7:0 - SS (Seconds 0-59)
  15311. * bits 15:8 - MM (Minutes 0-59)
  15312. * bits 23:16 - HH (Hours 0-23)
  15313. * bits 31:24 - Reserved
  15314. *
  15315. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute.
  15316. *
  15317. * This attribute indicates the AFC response code. The AFC response codes are
  15318. * in the following categories:
  15319. * -1: General Failure.
  15320. * 0: Success.
  15321. * 100 - 199: General errors related to protocol.
  15322. * 300 - 399: Error events specific to message exchange
  15323. * for the Available Spectrum Inquiry.
  15324. *
  15325. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes
  15326. * for PSD info of all the queried frequency ranges. It uses the attributes
  15327. * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute.
  15328. *
  15329. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested
  15330. * attributes for EIRP info of all queried operating class/channels. It uses
  15331. * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and
  15332. * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute.
  15333. *
  15334. */
  15335. enum qca_wlan_vendor_attr_afc_response {
  15336. QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0,
  15337. QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1,
  15338. QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2,
  15339. QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3,
  15340. QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4,
  15341. QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5,
  15342. QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6,
  15343. QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7,
  15344. QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8,
  15345. QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST,
  15346. QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX =
  15347. QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1,
  15348. };
  15349. /**
  15350. * enum qca_wlan_dozed_ap_state - Doze states for AP interface
  15351. *
  15352. * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface.
  15353. *
  15354. * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts
  15355. * beaconing at higher beacon interval with Rx disabled.
  15356. */
  15357. enum qca_wlan_dozed_ap_state {
  15358. QCA_WLAN_DOZED_AP_DISABLE = 0,
  15359. QCA_WLAN_DOZED_AP_ENABLE = 1,
  15360. };
  15361. /**
  15362. * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command
  15363. * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode
  15364. * configuration.
  15365. *
  15366. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute.
  15367. * Configures the doze state for an AP interface. Possible values are defined
  15368. * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event
  15369. * gets triggered asynchronously to provide updated AP interface configuration.
  15370. *
  15371. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by
  15372. * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP
  15373. * command, which is used later to maintain synchronization between commands
  15374. * and asynchronous events.
  15375. *
  15376. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute.
  15377. * Used in event to indicate the next TBTT TSF timer value after applying the
  15378. * doze mode configuration. Next TBTT TSF is the time at which the AP sends
  15379. * the first beacon after entering or exiting dozed mode.
  15380. *
  15381. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute.
  15382. * Used with event to inform the periodicity of beacon transmission that would
  15383. * be skipped at all TBTTs in between.
  15384. */
  15385. enum qca_wlan_vendor_attr_dozed_ap {
  15386. QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0,
  15387. QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1,
  15388. QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2,
  15389. QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3,
  15390. QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4,
  15391. /* Keep last */
  15392. QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST,
  15393. QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX =
  15394. QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1,
  15395. };
  15396. /**
  15397. * enum qca_wlan_vendor_monitor_mode_status - Represents the status codes
  15398. * used with QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE.
  15399. * @QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING: Used to indicate no
  15400. * capture running status.
  15401. * @QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING: Used to indicate
  15402. * capture running status.
  15403. **/
  15404. enum qca_wlan_vendor_monitor_mode_status {
  15405. QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING = 0,
  15406. QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING = 1,
  15407. };
  15408. /**
  15409. * enum qca_wlan_vendor_attr_get_monitor_mode - Used by the
  15410. * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE to report
  15411. * information regarding the local packet capture over the monitor mode.
  15412. *
  15413. * @QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS: u32 attribute. This attribute
  15414. * represents the status of the start capture commands. The values used with
  15415. * this attribute are defined in enum qca_wlan_vendor_monitor_mode_status. This
  15416. * is returned by the driver in the response to the command.
  15417. */
  15418. enum qca_wlan_vendor_attr_get_monitor_mode {
  15419. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_INVALID = 0,
  15420. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS = 1,
  15421. /* Keep last */
  15422. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST,
  15423. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_MAX =
  15424. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST - 1,
  15425. };
  15426. /**
  15427. * enum qca_wlan_vendor_link_state_op_types - Defines different types of
  15428. * operations for which %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE can be used.
  15429. * Will be used with %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE attribute.
  15430. *
  15431. * @QCA_WLAN_VENDOR_LINK_STATE_OP_GET - Get the MLO links state information.
  15432. * @QCA_WLAN_VENDOR_LINK_STATE_OP_SET - Set the MLO links state information.
  15433. */
  15434. enum qca_wlan_vendor_link_state_op_types {
  15435. QCA_WLAN_VENDOR_LINK_STATE_OP_GET = 0,
  15436. QCA_WLAN_VENDOR_LINK_STATE_OP_SET = 1,
  15437. };
  15438. /**
  15439. * enum qca_wlan_vendor_link_state_control_modes - Represents the types of MLO
  15440. * links state control modes. This enum is used by
  15441. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE attribute.
  15442. *
  15443. * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT: MLO links state controlled
  15444. * by the driver.
  15445. * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER: MLO links state controlled by
  15446. * user space.
  15447. * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED: User space provides the
  15448. * desired number of MLO links to operate in active state at any given time.
  15449. * The driver will choose which MLO links should operate in the active state.
  15450. * See enum qca_wlan_vendor_link_state for active state definition.
  15451. */
  15452. enum qca_wlan_vendor_link_state_control_modes {
  15453. QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT = 0,
  15454. QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER = 1,
  15455. QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED = 2,
  15456. };
  15457. /**
  15458. * enum qca_wlan_vendor_link_state_operation_modes - Represents the types of MLO
  15459. * links state operation modes. This enum is used by
  15460. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE attribute.
  15461. *
  15462. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT: In the default operation
  15463. * mode, the driver selects the operating mode of the links, without any
  15464. * guidance from the user space.
  15465. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY: In the low latency
  15466. * operation mode the driver should select MLO links that will achieve low
  15467. * latency.
  15468. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT: In the high
  15469. * throughput operation mode the driver should select MLO links that will
  15470. * achieve higher throughput.
  15471. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER: In the low power
  15472. * operation mode the driver should select MLO links that will achieve low
  15473. * power.
  15474. */
  15475. enum qca_wlan_vendor_link_state_operation_modes {
  15476. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT = 0,
  15477. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY = 1,
  15478. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT = 2,
  15479. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER = 3,
  15480. };
  15481. /**
  15482. * enum qca_wlan_vendor_link_state - Represents the possible link states of an
  15483. * MLO link.
  15484. *
  15485. * @QCA_WLAN_VENDOR_LINK_STATE_INACTIVE: In this state, the link will not
  15486. * be used for data transmission but it can have TIDs mapped to it. It will be
  15487. * in doze state always and does not monitor the beacons.
  15488. * @QCA_WLAN_VENDOR_LINK_STATE_ACTIVE: In this state, the link will be
  15489. * used for data TX/RX and monitors the beacons to check TIM bit indication.
  15490. * It may enter doze state and comes out based on the transmit data traffic and
  15491. * TIM bit indication in the beacon.
  15492. */
  15493. enum qca_wlan_vendor_link_state {
  15494. QCA_WLAN_VENDOR_LINK_STATE_INACTIVE = 0,
  15495. QCA_WLAN_VENDOR_LINK_STATE_ACTIVE = 1,
  15496. };
  15497. /**
  15498. * enum qca_wlan_vendor_attr_link_state_config - Definition of attributes used
  15499. * inside nested attribute %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG.
  15500. *
  15501. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID: u8 attribute, link ID of the
  15502. * MLO link.
  15503. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE: u32 attribute. See
  15504. * enum qca_wlan_vendor_link_state for possible MLO link states.
  15505. */
  15506. enum qca_wlan_vendor_attr_link_state_config {
  15507. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_INVALID = 0,
  15508. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID = 1,
  15509. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE = 2,
  15510. /* Keep last */
  15511. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST,
  15512. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_MAX =
  15513. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST - 1,
  15514. };
  15515. /**
  15516. * enum qca_wlan_vendor_attr_mlo_link_state - Attributes used by
  15517. * %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE vendor command.
  15518. *
  15519. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE: u32 attribute. Indicates the type
  15520. * of the operation %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE intended for.
  15521. * Required only in a command. Possible values for this attribute are defined in
  15522. * enum qca_wlan_vendor_link_state_op_types.
  15523. *
  15524. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE: u32 attribute. Indicates MLO
  15525. * links control mode type. Optional attribute in a command when
  15526. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15527. * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
  15528. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15529. * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
  15530. * See enum qca_wlan_vendor_link_state_control_modes for possible control modes.
  15531. *
  15532. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG: Array of nested attributes.
  15533. * Indicates the state of the each MLO link affiliated with the interface.
  15534. * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
  15535. * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
  15536. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
  15537. * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER. Required attribute in a
  15538. * response when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15539. * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
  15540. * See enum qca_wlan_vendor_attr_link_state_config for the nested attributes.
  15541. *
  15542. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS: u8 attribute.
  15543. * Represents the number of active state links. See enum
  15544. * qca_wlan_vendor_link_state for active state definition.
  15545. * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
  15546. * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
  15547. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
  15548. * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED.
  15549. *
  15550. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE: u32 attribute. Indicates MLO
  15551. * links operation mode type. Optional attribute in a command when
  15552. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15553. * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
  15554. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15555. * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
  15556. * See enum qca_wlan_vendor_link_state_operation_modes for possible operation
  15557. * modes.
  15558. */
  15559. enum qca_wlan_vendor_attr_mlo_link_state {
  15560. QCA_WLAN_VENDOR_ATTR_LINK_STATE_INVALID = 0,
  15561. QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE = 1,
  15562. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE = 2,
  15563. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG = 3,
  15564. QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS = 4,
  15565. QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE = 5,
  15566. /* keep last */
  15567. QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST,
  15568. QCA_WLAN_VENDOR_ATTR_LINK_STATE_MAX =
  15569. QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST - 1,
  15570. };
  15571. /**
  15572. * enum qca_wlan_vendor_attr_tid_link_map_status - Definition of attributes used
  15573. * inside nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
  15574. *
  15575. * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK: Required u16 attribute
  15576. * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
  15577. * Indicates the link mapping bitmap of a TID for uplink traffic. It is a
  15578. * bitmask of the link IDs in which a bit set means that the TID is mapped with
  15579. * that link ID in uplink traffic. Otherwise, the TID is not mapped to uplink
  15580. * traffic for that link.
  15581. *
  15582. * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK: Required u16 attribute
  15583. * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
  15584. * Indicates the link mapping bitmap of a TID for downlink traffic. It is a
  15585. * bitmask of the link IDs in which a bit set means that the TID is mapped with
  15586. * that link ID in downlink traffic. Otherwise, the TID is not mapped to
  15587. * downlink traffic for that link.
  15588. */
  15589. enum qca_wlan_vendor_attr_tid_link_map_status {
  15590. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_INVALID = 0,
  15591. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK = 1,
  15592. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK = 2,
  15593. /* keep last */
  15594. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST,
  15595. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_MAX =
  15596. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST - 1,
  15597. };
  15598. /*
  15599. * enum qca_wlan_vendor_attr_tid_to_link_map: Definition of attributes used with
  15600. * %QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP event.
  15601. *
  15602. * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR: Required attribute. 6-byte
  15603. * AP MLD address with which this TID-to-link negotiation mapping is
  15604. * established/updated.
  15605. *
  15606. * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS: Optional attribute. Array of
  15607. * nested attributes containing TID-to-links mapping information. This will have
  15608. * TID-to-link mapping for TID0 to TID7, each containing the uplink and downlink
  15609. * map information. If this attribute is not present the default TID-to-link
  15610. * mapping is in use, i.e., all TIDs are mapped to all links for both uplink and
  15611. * downlink traffic.
  15612. * See enum qca_wlan_vendor_attr_tid_link_map_status for the nested attributes.
  15613. */
  15614. enum qca_wlan_vendor_attr_tid_to_link_map {
  15615. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_INVALID = 0,
  15616. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR = 1,
  15617. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS = 2,
  15618. /* keep last */
  15619. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST,
  15620. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_MAX =
  15621. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST - 1,
  15622. };
  15623. /**
  15624. * enum qca_wlan_vendor_attr_link_reconfig: Definition of attributes used
  15625. * with %QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG event.
  15626. *
  15627. * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR: Required attribute.
  15628. * 6-byte AP MLD address of the AP which indicated the link reconfiguration.
  15629. *
  15630. * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS: Required u16 attribute.
  15631. * A bitmap of the removed setup links link IDs.
  15632. */
  15633. enum qca_wlan_vendor_attr_link_reconfig {
  15634. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_INVALID = 0,
  15635. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR = 1,
  15636. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS = 2,
  15637. /* keep last */
  15638. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST,
  15639. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_MAX =
  15640. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST - 1,
  15641. };
  15642. /**
  15643. * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext - Attributes used by
  15644. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT vendor command.
  15645. *
  15646. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK: u8 attribute.
  15647. * Indicates the MLO link id on which the TDLS discovery response
  15648. * frame is to be transmitted.
  15649. */
  15650. enum qca_wlan_vendor_attr_tdls_disc_rsp_ext {
  15651. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_INVALID = 0,
  15652. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK = 1,
  15653. /* Keep last */
  15654. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST,
  15655. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_MAX =
  15656. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST - 1,
  15657. };
  15658. #endif