qca_vendor.h 765 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555
  1. /*
  2. * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for
  6. * any purpose with or without fee is hereby granted, provided that the
  7. * above copyright notice and this permission notice appear in all
  8. * copies.
  9. *
  10. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  11. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  12. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  13. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  14. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  15. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  16. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  17. * PERFORMANCE OF THIS SOFTWARE.
  18. */
  19. /**
  20. * DOC: declares vendor commands interfacing with linux kernel
  21. */
  22. #ifndef _WLAN_QCA_VENDOR_H_
  23. #define _WLAN_QCA_VENDOR_H_
  24. /* Vendor id to be used in vendor specific command and events
  25. * to user space.
  26. * NOTE: The authoritative place for definition of QCA_NL80211_VENDOR_ID,
  27. * vendor subcmd definitions prefixed with QCA_NL80211_VENDOR_SUBCMD, and
  28. * qca_wlan_vendor_attr is open source file src/common/qca-vendor.h in
  29. * git://w1.fi/srv/git/hostap.git; the values here are just a copy of that
  30. */
  31. #define QCA_NL80211_VENDOR_ID 0x001374
  32. #ifndef BIT
  33. #define BIT(x) (1U << (x))
  34. #endif
  35. /**
  36. * enum qca_nl80211_vendor_subcmds: NL 80211 vendor sub command
  37. *
  38. * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Unspecified
  39. * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test
  40. * Sub commands 2 to 8 are not used
  41. * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Roaming
  42. * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Avoid frequency.
  43. * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: DFS capability
  44. * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
  45. * NAN Request/Response and NAN Indication messages. These messages are
  46. * interpreted between the framework and the firmware component. While
  47. * sending the command from userspace to the driver, payload is not
  48. * encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
  49. * is used when receiving vendor events in userspace from the driver.
  50. * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT: Ext stats
  51. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET: Link layer stats set
  52. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET: Link layer stats get
  53. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR: Link layer stats clear
  54. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS: Link layer stats radio
  55. * results
  56. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS: Link layer stats interface
  57. * results
  58. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS: Link layer stats peer
  59. * results
  60. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START: Ext scan start
  61. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP: Ext scan stop
  62. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS: Ext scan get valid
  63. * channels
  64. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES: Ext scan get capability
  65. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS: Ext scan get cached
  66. * results
  67. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE: Ext scan results
  68. * available. Used when report_threshold is reached in scan cache.
  69. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT: Ext scan full scan
  70. * result. Used to report scan results when each probe rsp. is received,
  71. * if report_events enabled in wifi_scan_cmd_params.
  72. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT: Ext scan event from target.
  73. * Indicates progress of scanning state-machine.
  74. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND: Ext scan hotlist
  75. * ap found
  76. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST: Ext scan set hotlist
  77. * bssid
  78. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST: Ext scan reset
  79. * hotlist bssid
  80. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE: Ext scan significant
  81. * change
  82. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE: Ext scan set
  83. * significant change
  84. * ap found
  85. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE: Ext scan reset
  86. * significant change
  87. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: This command is used to enable TDLS
  88. * capability or to form a session with the specified peer.
  89. * If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this
  90. * indicates to enable TDLS capability on the interface.
  91. * If %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is nested in
  92. * %NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to
  93. * form a TDLS session with the specified peer MAC address.
  94. * The attributes used with this command are defined in
  95. * enum qca_wlan_vendor_attr_tdls_enable.
  96. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: This command is used to disable TDLS
  97. * capability or to terminate the session with the specified peer.
  98. * If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this
  99. * indicates to disable TDLS capability on the interface.
  100. * If %QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR is nested in
  101. * %NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to
  102. * terminate TDLS session with the specified peer MAC address.
  103. * The attributes used with this command are defined in
  104. * enum qca_wlan_vendor_attr_tdls_disable.
  105. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: This command is to get the TDLS
  106. * status at the interface level or with the specific peer.
  107. * If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this
  108. * indicates the TDLS status query is at interface level.
  109. * If %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR is nested in
  110. * %NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to
  111. * get TDLS session status with the specified peer MAC address.
  112. * The attributes used with this command are defined in
  113. * enum qca_wlan_vendor_attr_tdls_get_status.
  114. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: This event is to indicate the result
  115. * of the TDLS session request with the peer sent by userspace in
  116. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE.
  117. * The attributes used with this command are defined in
  118. * enum qca_wlan_vendor_attr_tdls_state.
  119. * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES: Get supported features
  120. * @QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI: Set scanning_mac_oui
  121. * @QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG: No DFS flag
  122. * @QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX: Get Concurrency Matrix
  123. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Get the key mgmt offload keys
  124. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: After roaming, send the
  125. * roaming and auth information.
  126. * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED: Set OCB schedule
  127. *
  128. * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
  129. * invoke the ACS function in device and pass selected channels to
  130. * hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
  131. *
  132. * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Get the supported features by the
  133. * driver.
  134. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Indicate that driver
  135. * started CAC on DFS channel
  136. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Indicate that driver
  137. * completed the CAC check on DFS channel
  138. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Indicate that the CAC
  139. * check was aborted by the driver
  140. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Indicate that the
  141. * driver completed NOP
  142. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Indicate that the
  143. * driver detected radar signal on the current operating channel
  144. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: get wlan driver information
  145. * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: This command is used to
  146. * configure various wiphy or interface level configurations. Attributes
  147. * are defined in enum qca_wlan_vendor_attr_config. Userspace can send one
  148. * or more configuration attributes with a single command. The driver
  149. * accepts the command only if all the configurations are known, otherwise
  150. * it rejects the command. The driver returns success only if processing of
  151. * all the configurations succeeds. The driver continues to process all the
  152. * configurations even if processing of some configurations failed and
  153. * returns the last error occurred while processing the failed
  154. * configurations.
  155. *
  156. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: This command is used to
  157. * get the current values of the various wiphy or interface level
  158. * configurations. Attributes are defined in enum
  159. * qca_wlan_vendor_attr_config. Userspace needs to specify the
  160. * configuration attributes for which it wants to get the values in the
  161. * command, there is no significance for the value sent in the attribute
  162. * unless explicitly specified in the corresponding configuration
  163. * attribute documentation. The driver accepts the command only if all the
  164. * configurations are known, otherwise it rejects the command. The driver
  165. * returns success only if fetching of all configuration values succeeds
  166. * and indicates the configuration values in corresponding attributes in
  167. * the response. The driver continues to process all the configurations
  168. * even if processing of some configurations failed and returns the last
  169. * error occurred while processing the failed configurations.
  170. *
  171. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START: start wifi logger
  172. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP: memory dump request
  173. * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logger feature set
  174. * @QCA_NL80211_VENDOR_SUBCMD_ROAM: roam
  175. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST: extscan set ssid hotlist
  176. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST:
  177. * extscan reset ssid hotlist
  178. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND: hotlist ssid found
  179. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST: hotlist ssid lost
  180. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST: set pno list
  181. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST: set passpoint list
  182. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST:
  183. * reset passpoint list
  184. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND: pno network found
  185. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND:
  186. * passpoint network found
  187. * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: set wifi config
  188. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: get wifi config
  189. * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logging features
  190. * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: get link properties
  191. * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG: set gateway parameters
  192. * @QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST: get preferred channel
  193. list
  194. * @QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL: channel hint
  195. * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the band
  196. * to the host driver. This command sets the band through either
  197. * the attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or
  198. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE
  199. * refers enum qca_set_band as unsigned integer values and
  200. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32 bit unsigned BitMask
  201. * values. Also, the acceptable values for
  202. * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are only till QCA_SETBAND_2G. Further
  203. * values/bitmask's are valid for QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The
  204. * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the
  205. * recommendation is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the
  206. * implementations configure using both the attributes, the configurations
  207. * through QCA_WLAN_VENDOR_ATTR_SETBAND_MASK shall always take the
  208. * precedence.
  209. * @QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN: venodr scan command
  210. * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE: vendor scan complete
  211. * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: vendor abort scan
  212. * @QCA_NL80211_VENDOR_SUBCMD_OTA_TEST: enable OTA test
  213. * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE: set tx power by percentage
  214. * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB: reduce tx power by DB
  215. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG: SAP configuration
  216. * @QCA_NL80211_VENDOR_SUBCMD_TSF: TSF operations command
  217. * @QCA_NL80211_VENDOR_SUBCMD_WISA: WISA mode configuration
  218. * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
  219. * start the P2P Listen Offload function in device and pass the listen
  220. * channel, period, interval, count, number of device types, device
  221. * types and vendor information elements to device driver and firmware.
  222. * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
  223. * indicate stop request/response of the P2P Listen Offload function in
  224. * device. As an event, it indicates either the feature stopped after it
  225. * was already running or feature has actually failed to start.
  226. * @QCA_NL80211_VENDOR_SUBCMD_GET_STATION: send BSS Information
  227. * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After SAP starts
  228. * beaconing, this sub command provides the driver, the frequencies on the
  229. * 5 GHz to check for any radar activity. Driver selects one channel from
  230. * this priority list provided through
  231. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
  232. * to check for radar activity on it. If no radar activity is detected
  233. * during the channel availability check period, driver internally switches
  234. * to the selected frequency of operation. If the frequency is zero, driver
  235. * internally selects a channel. The status of this conditional switch is
  236. * indicated through an event using the same sub command through
  237. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
  238. * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch
  239. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Command/event used to config
  240. * indication period and threshold for MAC layer counters.
  241. * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
  242. * in the host driver. The different TDLS configurations are defined
  243. * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
  244. * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Get HE related capabilities
  245. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS:Set the Specific Absorption Rate
  246. * (SAR) power limits. A critical regulation for FCC compliance, OEMs
  247. * require methods to set SAR limits on TX power of WLAN/WWAN.
  248. * enum qca_vendor_attr_sar_limits attributes are used with this command.
  249. * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: Vendor command used to get/set
  250. * configuration of vendor ACS.
  251. * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
  252. * requisite information leading to a power save failure. The information
  253. * carried as part of this event is represented by the
  254. * enum qca_attr_chip_power_save_failure attributes.
  255. * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
  256. * collection. Uses attributes defined in enum qca_attr_nud_stats_set.
  257. * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
  258. * statistics are represented by the enum qca_attr_nud_stats_get
  259. * attributes.
  260. * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
  261. * the BSS transition status, whether accept or reject, for a list of
  262. * candidate BSSIDs provided by the userspace. This uses the vendor
  263. * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
  264. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
  265. * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
  266. * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
  267. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
  268. * the driver shall specify array of
  269. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
  270. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
  271. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
  272. * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
  273. * specific QCA module. The trace levels are represented by
  274. * enum qca_attr_trace_level attributes.
  275. * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
  276. * Protocol antenna limit in different modes. See enum
  277. * qca_wlan_vendor_attr_brp_ant_limit_mode.
  278. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
  279. * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
  280. * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
  281. * identifying the operation in success case. In failure cases an
  282. * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
  283. * describing the reason for the failure is returned.
  284. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
  285. * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
  286. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
  287. * be stopped.
  288. * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
  289. * specific interface. This can be used to modify some of the low level
  290. * scan parameters (off channel dwell time, home channel time) in the
  291. * driver/firmware. These parameters are maintained within the host
  292. * driver.
  293. * This command is valid only when the interface is in the connected
  294. * state.
  295. * These scan parameters shall be reset by the driver/firmware once
  296. * disconnected. The attributes used with this command are defined in
  297. * enum qca_wlan_vendor_attr_active_tos.
  298. * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
  299. * driver has detected an internal failure. This event carries the
  300. * information indicating the reason that triggered this detection. The
  301. * attributes for this command are defined in
  302. * enum qca_wlan_vendor_attr_hang.
  303. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
  304. * of spectral parameters used. The spectral scan parameters are specified
  305. * by enum qca_wlan_vendor_attr_spectral_scan.
  306. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
  307. * for spectral scan functionality. The debug stats are specified by
  308. * enum qca_wlan_vendor_attr_spectral_diag_stats.
  309. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
  310. * scan system capabilities. The capabilities are specified
  311. * by enum qca_wlan_vendor_attr_spectral_cap.
  312. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
  313. * status of spectral scan. The status values are specified
  314. * by enum qca_wlan_vendor_attr_spectral_scan_status.
  315. * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
  316. * peer pending packets. Specify the peer MAC address in
  317. * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
  318. * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
  319. * in enum qca_wlan_vendor_attr_flush_pending.
  320. * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
  321. * RF Operating Parameter (RROP) information. The attributes for this
  322. * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
  323. * intended for use by external Auto Channel Selection applications.
  324. * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
  325. * (SAR) power limits. This is a companion to the command
  326. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
  327. * settings currently in use. The attributes returned by this command are
  328. * defined by enum qca_vendor_attr_sar_limits.
  329. * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behaviour of
  330. * the WLAN hardware MAC's associated with each WLAN netdev interface.
  331. * This works both as a query (user space asks the current mode) or event
  332. * interface (driver advertizing the current mode to the user space).
  333. * Driver does not trigger this event for temporary hardware mode changes.
  334. * Mode changes w.r.t Wi-Fi connection updation ( VIZ creation / deletion,
  335. * channel change etc ) are updated with this event. Attributes for this
  336. * interface are defined in enum qca_wlan_vendor_attr_mac.
  337. * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
  338. * per peer per TID. Attributes for this command are define in
  339. * enum qca_wlan_set_qdepth_thresh_attr
  340. * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
  341. * guide for WLAN driver. Request to suspend of driver and FW if the
  342. * temperature is higher than the suspend threshold; resume action is
  343. * requested to driver if the temperature is lower than the resume
  344. * threshold. In user poll mode, request temperature data by user. For test
  345. * purpose, getting thermal shutdown configuration parameters is needed.
  346. * Attributes for this interface are defined in
  347. * enum qca_wlan_vendor_attr_thermal_cmd.
  348. * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
  349. * driver. Thermal temperature and indication of resume completion are
  350. * reported as thermal events. The attributes for this command are defined
  351. * in enum qca_wlan_vendor_attr_thermal_event.
  352. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
  353. * test configuration. Attributes for this command are defined in
  354. * enum qca_wlan_vendor_attr_wifi_test_config.
  355. * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
  356. * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
  357. * carried a payload which was a binary blob of data. The command was not
  358. * extendable to send more information. The newer version carries the
  359. * legacy blob encapsulated within an attribute and can be extended with
  360. * additional vendor attributes that can enhance the NAN command
  361. * interface.
  362. * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
  363. * configure parameters per peer to capture Channel Frequency Response
  364. * (CFR) and enable Periodic CFR capture. The attributes for this command
  365. * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command
  366. * can also be used to send CFR data from the driver to userspace when
  367. * netlink events are used to send CFR data.
  368. * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: Sub command to get firmware state.
  369. * The returned firmware state is specified in the attribute
  370. * QCA_WLAN_VENDOR_ATTR_FW_STATE.
  371. * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
  372. * is used by host driver to flush per-peer cached statistics to user space
  373. * application. This interface is used as an event from host driver to
  374. * user space application. Attributes for this event are specified in
  375. * enum qca_wlan_vendor_attr_peer_stats_cache_params.
  376. * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
  377. * sent as event from host driver.
  378. * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
  379. * improve the success rate of Zigbee joining network.
  380. * Due to PTA master limitation, zigbee joining network success rate is
  381. * low while wlan is working. Wlan host driver need to configure some
  382. * parameters including Zigbee state and specific WLAN periods to enhance
  383. * PTA master. All this parameters are delivered by the NetLink attributes
  384. * defined in "enum qca_mpta_helper_vendor_attr".
  385. * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
  386. * implement Beacon frame reporting feature.
  387. *
  388. * Userspace can request the driver/firmware to periodically report
  389. * received Beacon frames whose BSSID is same as the current connected
  390. * BSS's MAC address.
  391. *
  392. * In case the STA seamlessly (without sending disconnect indication to
  393. * userspace) roams to a different BSS, Beacon frame reporting will be
  394. * automatically enabled for the Beacon frames whose BSSID is same as the
  395. * MAC address of the new BSS. Beacon reporting will be stopped when the
  396. * STA is disconnected (when the disconnect indication is sent to
  397. * userspace) and need to be explicitly enabled by userspace for next
  398. * connection.
  399. *
  400. * When a Beacon frame matching configured conditions is received, and if
  401. * userspace has requested to send asynchronous beacon reports, the
  402. * driver/firmware will encapsulate the details of the Beacon frame in an
  403. * event and send it to userspace along with updating the BSS information
  404. * in cfg80211 scan cache, otherwise driver will only update the cfg80211
  405. * scan cache with the information from the received Beacon frame but
  406. * will not send any active report to userspace.
  407. *
  408. * The userspace can request the driver/firmware to stop reporting Beacon
  409. * frames. If the driver/firmware is not able to receive Beacon frames
  410. * due to other Wi-Fi operations such as off-channel activities, etc.,
  411. * the driver/firmware will send a pause event to userspace and stop
  412. * reporting Beacon frames. Whether the beacon reporting will be
  413. * automatically resumed or not by the driver/firmware later will be
  414. * reported to userspace using the
  415. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES flag. The beacon
  416. * reporting shall be resumed for all the cases except either when
  417. * userspace sets QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag
  418. * in the command which triggered the current beacon reporting or during
  419. * any disconnection case as indicated by setting
  420. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
  421. * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
  422. * driver.
  423. *
  424. * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
  425. * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
  426. * flag not set, the next first
  427. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
  428. * shall be considered as un-pause event.
  429. *
  430. * All the attributes used with this command are defined in
  431. * enum qca_wlan_vendor_attr_beacon_reporting_params.
  432. * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some aps have
  433. * interop issues with the DUT. This sub command is used to transfer the
  434. * ap info between driver and user space. This works both as a command
  435. * or event. As a command, it configs the stored list of aps from user
  436. * space to firmware; as an event, it indicates the ap info detected by
  437. * firmware to user space for persistent storage. The attributes defined
  438. * in enum qca_vendor_attr_interop_issues_ap are used to deliver the
  439. * parameters.
  440. * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command is used to send OEM data
  441. * binary blobs from application/service to firmware. The attributes
  442. * defined in enum qca_wlan_vendor_attr_oem_data_params are used to
  443. * deliver the parameters.
  444. * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
  445. * to send/receive avoid frequency data using
  446. * enum qca_wlan_vendor_attr_avoid_frequency_ext.
  447. * This new command is alternative to existing command
  448. * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
  449. * is using stream of bytes instead of structured data using vendor
  450. * attributes. User space sends unsafe frequency ranges to the driver using
  451. * a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On
  452. * reception of this command, the driver shall check if an interface is
  453. * operating on an unsafe frequency and the driver shall try to move to a
  454. * safe channel when needed. If the driver is not able to find a safe
  455. * channel the interface can keep operating on an unsafe channel with the
  456. * TX power limit derived based on internal configurations like
  457. * regulatory/SAR rules.
  458. *
  459. * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
  460. * add the STA node details in driver/firmware. Attributes for this event
  461. * are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
  462. * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
  463. * coex chain mode from application/service.
  464. * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
  465. * to deliver the parameters.
  466. * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
  467. * get information of a station from driver to userspace. This command can
  468. * be used in both STA and AP modes. For STA mode, it provides information
  469. * of the current association when in connected state or the last
  470. * association when in disconnected state. For AP mode, only information
  471. * of the currently connected stations is available. This command uses
  472. * attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
  473. * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
  474. * Host drivers can request the user space entity to set the SAR power
  475. * limits with this event. Accordingly, the user space entity is expected
  476. * to set the SAR power limits. Host drivers can retry this event to the
  477. * user space for the SAR power limits configuration from user space. If
  478. * the driver does not get the SAR power limits from user space for all
  479. * the retried attempts, it can configure a default SAR power limit.
  480. * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
  481. * is used to update the information about the station from the driver to
  482. * userspace. Uses attributes from enum
  483. * qca_wlan_vendor_attr_update_sta_info.
  484. *
  485. * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
  486. * The host driver initiates the disconnection for scenarios such as beacon
  487. * miss, NUD failure, peer kick out, etc. The disconnection indication
  488. * through cfg80211_disconnected() expects the reason codes from enum
  489. * ieee80211_reasoncode which does not signify these various reasons why
  490. * the driver has triggered the disconnection. This event will be used to
  491. * send the driver specific reason codes by the host driver to userspace.
  492. * Host drivers should trigger this event and pass the respective reason
  493. * code immediately prior to triggering cfg80211_disconnected(). The
  494. * attributes used with this event are defined in enum
  495. * qca_wlan_vendor_attr_driver_disconnect_reason.
  496. *
  497. * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
  498. * add/delete TSPEC for each AC. One command is for one specific AC only.
  499. * This command can only be used in STA mode and the STA must be
  500. * associated with an AP when the command is issued. Uses attributes
  501. * defined in enum qca_wlan_vendor_attr_config_tspec.
  502. *
  503. * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
  504. * Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
  505. *
  506. * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the configured band from
  507. * the host driver. The band configurations obtained are referred through
  508. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
  509. *
  510. * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
  511. * assessment.
  512. * Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
  513. *
  514. * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
  515. * used to update SSID information in hostapd when it is updated in the
  516. * driver. Uses the attribute NL80211_ATTR_SSID.
  517. *
  518. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
  519. * the driver to send opaque data from the firmware to userspace. The
  520. * driver sends an event to userspace whenever such data is received from
  521. * the firmware.
  522. *
  523. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
  524. * send this opaque data for this event.
  525. *
  526. * The format of the opaque data is specific to the particular firmware
  527. * version and there is no guarantee of the format remaining same.
  528. *
  529. * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
  530. * The host driver selects Tx VDEV, and notifies user. The attributes
  531. * used with this event are defined in enum
  532. * qca_wlan_vendor_attr_mbssid_tx_vdev_status.
  533. * This event contains Tx VDEV group information contains other VDEVs
  534. * interface index and status information.
  535. *
  536. * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY: Vendor command to
  537. * configure the concurrent session policies when multiple interfaces
  538. * are (getting) active. The attributes used by this command are defined
  539. * in enum qca_wlan_vendor_attr_concurrent_policy.
  540. *
  541. * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command
  542. * to query usable channels for different interface types such as STA,
  543. * AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable
  544. * channels in the response based on country code, different static
  545. * configurations, concurrency combinations, etc. The attributes used
  546. * with this command are defined in
  547. * enum qca_wlan_vendor_attr_usable_channels.
  548. *
  549. * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used
  550. * to get DFS radar history from the driver to userspace. The driver
  551. * returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an
  552. * array of nested entries.
  553. * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to
  554. * enable/disable mDNS offload to the firmware. The attributes used with
  555. * this command are defined in enum qca_wlan_vendor_attr_mdns_offload.
  556. *
  557. * @QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA: Driver uses this command to send
  558. * important debug events that are required for various issues. The
  559. * attributes used with this command are defined in
  560. * enum qca_wlan_vendor_attr_diag.
  561. * This command is defined for temporary usage until this interface is
  562. * moved to the existing diag infra with cnss diag events. This command
  563. * will be deprecated soon and it is not recommended to do any further
  564. * enhancements to this command.
  565. *
  566. * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used
  567. * to set packet monitor mode that aims to send the specified set of TX and
  568. * RX frames on the current client interface to an active monitor interface.
  569. * If this Monitor mode is set, the driver will send the configured frames,
  570. * from the interface on which the command is issued, to an active monitor
  571. * interface. The attributes used with this command are defined in
  572. * enum qca_wlan_vendor_attr_set_monitor_mode.
  573. *
  574. * Though the monitor mode is configured for the respective data/mgmt/ctrl
  575. * frames, it is up to the respective WLAN driver/firmware/hardware designs
  576. * to consider the possibility of sending these frames over the monitor
  577. * interface. For example, the control frames are handled with in the
  578. * hardware and thus passing such frames over the monitor interface is left
  579. * to the respective designs.
  580. *
  581. * Also, this monitor mode is governed to behave accordingly in
  582. * suspend/resume states. If the firmware handles any of such frames
  583. * in suspend state without waking up the host and if the monitor mode
  584. * is configured to notify all such frames, then the firmware is expected
  585. * to resume the host and forward the respective frames to the monitor
  586. * interface. Please note that such a request to get the frames over the
  587. * monitor interface will have a definite power implications.
  588. *
  589. * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both
  590. * as a request to set the driver/firmware with the parameters to trigger
  591. * the roaming events, and also used by the driver/firmware to pass on the
  592. * various roam events to userspace.
  593. * Applicable only for the STA mode. The attributes used with this command
  594. * are defined in enum qca_wlan_vendor_attr_roam_events.
  595. *
  596. * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Sub-command to set or reset the
  597. * rate mask config for a list of phy types. Userspace shall provide
  598. * an array of the vendor attributes defined in
  599. * enum QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS.
  600. *
  601. * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs
  602. * when two interfaces are active on the same band, using two different
  603. * home channels, and only supported by a single radio. In this scenario
  604. * the device must split the use of the radio between the two interfaces.
  605. * The percentage of time allocated to a given interface is the quota.
  606. * Depending on the configuration, the quota can either be fixed or
  607. * dynamic.
  608. *
  609. * When used as an event, the device will report the quota type, and for
  610. * all interfaces operating in MCC it will report the current quota.
  611. * When used as a command, the device can be configured for a specific
  612. * quota type, and in the case of a fixed quota, the quota to apply to one
  613. * of the interfaces.
  614. *
  615. * Applications can use the event to do TX bitrate control based on the
  616. * information, and can use the command to explicitly set the quota to
  617. * enhance performance in specific scenarios.
  618. *
  619. * The attributes used with this command are defined in
  620. * enum qca_wlan_vendor_attr_mcc_quota.
  621. *
  622. * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the
  623. * user space that the driver is ready for operations again after
  624. * recovering from internal failures. This occurs following a failure
  625. * that was indicated by @QCA_NL80211_VENDOR_SUBCMD_HANG.
  626. *
  627. * @QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX: Vendor command to
  628. * get the WLAN radio combinations matrix supported by the device which
  629. * provides the device simultaneous radio configurations such as
  630. * standalone, dual band simultaneous, and single band simultaneous.
  631. *
  632. * The attributes used with this command are defined in
  633. * enum qca_wlan_vendor_attr_radio_combination_matrix.
  634. *
  635. * @QCA_NL80211_VENDOR_SUBCMD_PASN: Subcommand used to offload preassociation
  636. * security negotiation and key generation to user space.
  637. *
  638. * When used as an event, the driver requests userspace to trigger the PASN
  639. * authentication or dropping of a PTKSA for the indicated peer devices.
  640. * When used as a command response, userspace indicates a consolidated
  641. * status report for all the peers that were requested for.
  642. *
  643. * The attributes used with this command are defined in
  644. * enum qca_wlan_vendor_attr_pasn.
  645. *
  646. * @QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT: Subcommand used to set
  647. * secure ranging context such as TK and LTF keyseed for each peer
  648. * requested by the driver with a @QCA_NL80211_VENDOR_SUBCMD_PASN event.
  649. *
  650. * The attributes used with this command are defined in
  651. * enum qca_wlan_vendor_attr_secure_ranging_ctx.
  652. *
  653. * @QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD: This vendor subcommand is used to
  654. * enable/disable offload processing in firmware during system/runtime
  655. * suspend for CoAP messages (see RFC7252: The Constrained Application
  656. * Protocol) and fetch information of the CoAP messages cached during
  657. * offload processing.
  658. *
  659. * The attributes used with this command are defined in
  660. * enum qca_wlan_vendor_attr_coap_offload.
  661. *
  662. * @QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG: Subcommand to configure
  663. * (add, remove, or change) a Stream Classification Service (SCS) rule.
  664. *
  665. * The attributes used with this event are defined in
  666. * enum qca_wlan_vendor_attr_scs_rule_config.
  667. *
  668. * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY: Fetch SAR capabilities
  669. * supported by the WLAN firmware.
  670. *
  671. * The attributes used with this command are defined in
  672. * enum qca_wlan_vendor_attr_sar_capability.
  673. *
  674. * @QCA_NL80211_VENDOR_SUBCMD_SR: Subcommand used to implement Spatial Reuse
  675. * (SR) feature. This command is used by userspace to configure SR
  676. * parameters to the driver and to get the SR related parameters and
  677. * statistics with synchronous responses from the driver.
  678. * The driver also uses this command to send asynchronous events to
  679. * userspace to indicate suspend/resume of SR feature and changes
  680. * in SR parameters.
  681. *
  682. * The attributes used with this command are defined in
  683. * enum qca_wlan_vendor_attr_sr.
  684. *
  685. * @QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT: Subcommand used to
  686. * notify application layer about the primary netdev of an MLO connection.
  687. * In some implementations, MLO has multiple netdevs out of which one
  688. * netdev is designated as primary to provide a unified interface to the
  689. * bridge. In those implementations this event is sent on every MLO peer
  690. * connection. User applications on an AP MLD will use this event to get
  691. * info for all the links from non-AP MLD that were negotiated to be used
  692. * for the ML association.
  693. *
  694. * The attributes used with this event are defined in
  695. * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event.
  696. *
  697. * @QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT: This vendor command is used by the
  698. * driver to notify different AFC events to userspace. The attributes used
  699. * with this command are defined in enum qca_wlan_vendor_attr_afc_event.
  700. *
  701. * @QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE: This vendor command is used by
  702. * userspace to deliver AFC response data to driver. The attributes used
  703. * with this command are defined in enum qca_wlan_vendor_attr_afc_response.
  704. *
  705. * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP: Subcommand to configure AP interface to
  706. * operate in doze mode.
  707. *
  708. * Userspace uses this command to configure the AP interface to enter or
  709. * exit from doze mode. The driver sends this event after it enters or
  710. * exits the doze mode with the updated AP doze mode settings.
  711. *
  712. * The attributes used with this subcommand are defined in
  713. * enum qca_wlan_vendor_attr_dozed_ap.
  714. *
  715. * @QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE: This vendor subcommand is used
  716. * to get the status of local packet capture of monitor mode. The monitor
  717. * mode can be started using QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE
  718. * subcommand.
  719. *
  720. * The attributes used with this command are defined in enum
  721. * qca_wlan_vendor_attr_get_monitor_mode.
  722. *
  723. * @QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS: This vendor command is used to
  724. * get roam information from the driver to user space. It provides the
  725. * latest several instances of roam information cached in the driver.
  726. * The command is only used for STA mode. The attributes used with this
  727. * command are defined in enum qca_wlan_vendor_attr_roam_cached_stats.
  728. *
  729. * @QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE: This vendor subcommand is used to
  730. * configure and fetch the state information of the MLO links affiliated
  731. * with the STA interface. The attributes used with this command are
  732. * defined in enum qca_wlan_vendor_attr_mlo_link_state.
  733. *
  734. * @QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS: Userspace can use this
  735. * vendor subcommand to trigger channel utilization measurement on entire
  736. * channel width of the connected channel(s). For MLO connection, connected
  737. * channel utilization measurement shall be done on all the MLO links.
  738. * The driver may use regular scan or wideband energy detection feature
  739. * based on the hardware capability for connected channel(s) utilization
  740. * measurement. The driver indicates the connected channel(s) utilization
  741. * measurement completion as an asynchronous event with this command ID to
  742. * userspace. Upon receiving this event, userspace can use
  743. * %NL80211_CMD_GET_INTERFACE to determine the channel width of the current
  744. * connected channel(s) and can derive the channel utilization percentage
  745. * (CU) of each 20 MHz sub-channel of the entire connected channel using
  746. * %NL80211_CMD_GET_SURVEY response.
  747. * CU = %NL80211_SURVEY_INFO_TIME_BUSY * 100 / %NL80211_SURVEY_INFO_TIME.
  748. * This command is only used for STA mode.
  749. *
  750. * @QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP: This vendor subcommand is
  751. * used as an event to notify the userspace of TID-to-link map changes
  752. * negotiated by the driver or updated by associated AP MLD with Beacon,
  753. * Probe Response, or Action frames. The attributes used with this command
  754. * are defined in enum qca_wlan_vendor_attr_tid_to_link_map.
  755. *
  756. * Note that the attribute
  757. * %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR may not correspond to
  758. * the current connected AP MLD address.
  759. *
  760. * @QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG: Notify userspace about the removal
  761. * of STA MLD setup links due to AP MLD removing the corresponding
  762. * affiliated APs with Multi-Link reconfiguration. If all the STA MLD setup
  763. * links are removed during Multi-Link reconfiguration, the driver shall
  764. * use %NL80211_CMD_DISCONNECT instead of this command since it is a
  765. * connection drop. The attributes used with this command are defined in
  766. * enum qca_wlan_vendor_attr_link_reconfig.
  767. * Note that the attribute
  768. * %QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR may not correspond to
  769. * the current connected AP MLD address.
  770. *
  771. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT: Vendor command to configure
  772. * the driver with MLO link id information on which to transmit the TDLS
  773. * discovery response frame on the configured MLO BSS link when the
  774. * local station is connected in MLO mode. This command is sent to the
  775. * driver prior to the TDLS discovery response management transmit
  776. * operation and is followed immediately by the TDLS discovery response
  777. * management frame transmit command.
  778. *
  779. * The driver saves the configured MLO link id information and uses it for
  780. * the following TDLS discovery response frame transmission on the
  781. * configured MLO BSS link and the link id information is cleared in the
  782. * driver after the TDLS discovery response frame is successfully
  783. * transmitted. This behavior is independent of the TDLS peer STA connection
  784. * mode (MLO or non-MLO).
  785. *
  786. * Uses the attributes defined in
  787. * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext.
  788. *
  789. * @QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH: This vendor subcommand is
  790. * used to configure and indicate the audio transport switch in both
  791. * command and event paths. This is used when two or more audio transports
  792. * (ex: WLAN and bluetooth) are available between peers.
  793. *
  794. * If the driver needs to perform operations like scan, connection,
  795. * roaming, RoC etc. and AP concurrency policy is set to either
  796. * QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO or
  797. * QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING, the driver sends
  798. * audio transport switch event to userspace. Userspace application upon
  799. * receiving the event, can try to switch to requested audio transport.
  800. * The userspace uses this command to send the status of transport
  801. * switching (either confirm or reject) to the driver using this
  802. * subcommand. The driver continues with the pending operation either upon
  803. * receiving the command from userspace or after waiting for timeout since
  804. * sending the event to userspace. The driver can request userspace to
  805. * switch to WLAN upon availability of WLAN audio transport once after the
  806. * concurrent operations are completed.
  807. *
  808. * Userspace can also request audio transport switch from non-WLAN to WLAN
  809. * using this subcommand to the driver. The driver can accept or reject
  810. * depending on other concurrent operations in progress. The driver returns
  811. * success if it can allow audio transport when it receives the command or
  812. * appropriate kernel error code otherwise. Userspace indicates the audio
  813. * transport switch from WLAN to non-WLAN using this subcommand and the
  814. * driver can do other concurrent operations without needing to send any
  815. * event to userspace. This subcommand is used by userspace only when the
  816. * driver advertises support for
  817. * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN.
  818. *
  819. * The attributes used with this command are defined in enum
  820. * qca_wlan_vendor_attr_audio_transport_switch.
  821. *
  822. * @QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY: This vendor subcommand is used to
  823. * configure, retrieve, and report per-link transmit latency statistics.
  824. *
  825. * The attributes used with this subcommand are defined in
  826. * enum qca_wlan_vendor_attr_tx_latency.
  827. *
  828. * @QCA_NL80211_VENDOR_SUBCMD_RECONFIG_REMOVE_COMPLETE_EVENT: This vendor
  829. * subcommand is used to send event to the user space once the MLD remove
  830. * link process is completed in the API mlme_ext_vap_down and the event
  831. * is sent through wlan_cfg80211_reconfig_remove_complete_event.
  832. *
  833. * @QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO: Vendor command is used to
  834. * query transmit power information on STA interface from the driver for a
  835. * connected AP. The attributes included in response are defined in
  836. * enum qca_wlan_vendor_attr_tpc_links. In case of MLO STA, multiple links
  837. * TPC info may be returned. The information includes regulatory maximum
  838. * transmit power limit, AP local power constraint advertised from AP's
  839. * Beacon and Probe Response frames. For PSD power mode, the information
  840. * includes PSD power levels for each subchannel of operating bandwidth.
  841. * The information is driver calculated power limits based on the current
  842. * regulatory domain, AP local power constraint, and other IEs. The
  843. * information will be set to target. Target will decide the final TX power
  844. * based on this and chip specific power conformance test limits (CTL), and
  845. * SAR limits.
  846. *
  847. * @QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT: Event indication from the
  848. * driver to user space which is carrying firmware page fault related
  849. * summary report. The attributes for this command are defined in
  850. * enum qca_wlan_vendor_attr_fw_page_fault_report.
  851. */
  852. enum qca_nl80211_vendor_subcmds {
  853. QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
  854. QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
  855. QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
  856. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
  857. QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
  858. QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
  859. QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
  860. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
  861. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
  862. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
  863. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
  864. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
  865. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
  866. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20,
  867. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21,
  868. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22,
  869. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23,
  870. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24,
  871. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25,
  872. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26,
  873. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27,
  874. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28,
  875. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29,
  876. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30,
  877. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31,
  878. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32,
  879. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33,
  880. QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
  881. QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
  882. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
  883. QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
  884. QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
  885. QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
  886. QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
  887. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41,
  888. /* Get Concurrency Matrix */
  889. QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
  890. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
  891. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
  892. QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
  893. /* Deprecated */
  894. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53,
  895. QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
  896. QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
  897. /* Off loaded DFS events */
  898. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
  899. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
  900. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
  901. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
  902. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
  903. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
  904. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
  905. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
  906. QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
  907. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65,
  908. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66,
  909. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67,
  910. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68,
  911. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69,
  912. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70,
  913. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71,
  914. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72,
  915. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73,
  916. /* Wi-Fi Configuration subcommands */
  917. QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
  918. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
  919. QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
  920. QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
  921. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
  922. QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
  923. QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
  924. QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
  925. /* NS Offload enable/disable cmd */
  926. QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
  927. QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
  928. QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
  929. QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
  930. QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
  931. /* OCB commands */
  932. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
  933. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
  934. QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
  935. QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
  936. QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
  937. QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
  938. QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
  939. QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
  940. QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
  941. /* subcommand to get link properties */
  942. QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
  943. /* LFR Subnet Detection */
  944. QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
  945. /* DBS subcommands */
  946. QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
  947. QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
  948. /* Vendor setband command */
  949. QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
  950. /* Vendor scan commands */
  951. QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
  952. QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
  953. /* OTA test subcommand */
  954. QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
  955. /* Tx power scaling subcommands */
  956. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
  957. /* Tx power scaling in db subcommands */
  958. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115,
  959. QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
  960. QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117,
  961. QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
  962. QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
  963. QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
  964. QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121,
  965. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
  966. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
  967. QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
  968. QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
  969. QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
  970. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
  971. /* FTM/indoor location subcommands */
  972. QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
  973. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
  974. QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
  975. QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
  976. QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
  977. QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
  978. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
  979. QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
  980. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
  981. /* Encrypt/Decrypt command */
  982. QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
  983. QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
  984. /* DMG low level RF sector operations */
  985. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
  986. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
  987. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
  988. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
  989. /* Configure the TDLS mode from user space */
  990. QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
  991. QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
  992. /* Vendor abort scan command */
  993. QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
  994. /* Set Specific Absorption Rate(SAR) Power Limits */
  995. QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
  996. /* External Auto channel configuration setting */
  997. QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
  998. QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
  999. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
  1000. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
  1001. QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
  1002. /* Set the trace level for QDF */
  1003. QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
  1004. QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
  1005. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
  1006. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
  1007. QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
  1008. QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
  1009. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
  1010. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
  1011. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
  1012. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
  1013. QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
  1014. QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
  1015. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
  1016. QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
  1017. QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
  1018. QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
  1019. QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
  1020. /* Wi-Fi test configuration subcommand */
  1021. QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
  1022. QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
  1023. QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
  1024. QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
  1025. QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
  1026. QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
  1027. QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
  1028. QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
  1029. QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
  1030. QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
  1031. QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
  1032. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
  1033. QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
  1034. QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
  1035. QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
  1036. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
  1037. QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
  1038. QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
  1039. QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
  1040. QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
  1041. QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
  1042. QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
  1043. QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
  1044. QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
  1045. QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
  1046. QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197,
  1047. QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
  1048. QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
  1049. QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
  1050. QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA = 201,
  1051. QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
  1052. QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
  1053. QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
  1054. QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
  1055. /* 206..212 - reserved for QCA */
  1056. QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
  1057. QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
  1058. QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
  1059. QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
  1060. QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217,
  1061. QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218,
  1062. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219,
  1063. QCA_NL80211_VENDOR_SUBCMD_SR = 220,
  1064. QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221,
  1065. QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222,
  1066. QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223,
  1067. QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224,
  1068. QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE = 225,
  1069. QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS = 226,
  1070. QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE = 227,
  1071. QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS = 228,
  1072. QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP = 229,
  1073. QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG = 230,
  1074. QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT = 231,
  1075. QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH = 232,
  1076. QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY = 233,
  1077. QCA_NL80211_VENDOR_SUBCMD_RECONFIG_REMOVE_COMPLETE_EVENT = 234,
  1078. QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO = 237,
  1079. QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT = 238,
  1080. };
  1081. enum qca_wlan_vendor_tos {
  1082. QCA_WLAN_VENDOR_TOS_BK = 0,
  1083. QCA_WLAN_VENDOR_TOS_BE = 1,
  1084. QCA_WLAN_VENDOR_TOS_VI = 2,
  1085. QCA_WLAN_VENDOR_TOS_VO = 3,
  1086. };
  1087. /**
  1088. * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
  1089. * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
  1090. */
  1091. enum qca_wlan_vendor_attr_active_tos {
  1092. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
  1093. /* Type Of Service - Represented by qca_wlan_vendor_tos */
  1094. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
  1095. /* Flag attribute representing the start (attribute included) or stop
  1096. * (attribute not included) of the respective TOS.
  1097. */
  1098. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
  1099. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3,
  1100. };
  1101. enum qca_wlan_vendor_hang_reason {
  1102. /* Unspecified reason */
  1103. QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
  1104. /* No Map for the MAC entry for the received frame */
  1105. QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
  1106. /* peer deletion timeout happened */
  1107. QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
  1108. /* peer unmap timeout */
  1109. QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
  1110. /* Scan request timed out */
  1111. QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
  1112. /* Consecutive Scan attempt failures */
  1113. QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
  1114. /* Unable to get the message buffer */
  1115. QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
  1116. /* Current command processing is timedout */
  1117. QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
  1118. /* Timeout for an ACK from FW for suspend request */
  1119. QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
  1120. /* Timeout for an ACK from FW for resume request */
  1121. QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
  1122. /* Transmission timeout for consecutive data frames */
  1123. QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
  1124. /* Timeout for the TX completion status of data frame */
  1125. QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
  1126. /* DXE failure for tx/Rx, DXE resource unavailability */
  1127. QCA_WLAN_HANG_DXE_FAILURE = 12,
  1128. /* WMI pending commands exceed the maximum count */
  1129. QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
  1130. /* Timeout for peer STA connection accept command's response from the
  1131. * FW in AP mode. This command is triggered when a STA (peer) connects
  1132. * to AP (DUT).
  1133. */
  1134. QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
  1135. /* Timeout for the AP connection accept command's response from the FW
  1136. * in STA mode. This command is triggered when the STA (DUT) connects
  1137. * to an AP (peer).
  1138. */
  1139. QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
  1140. /* Timeout waiting for the response to the MAC HW mode change command
  1141. * sent to FW as a part of MAC mode switch among DBS (Dual Band
  1142. * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
  1143. * Channel Concurrency) mode.
  1144. */
  1145. QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
  1146. /* Timeout waiting for the response from FW to configure the MAC HW's
  1147. * mode. This operation is to configure the single/two MACs in either
  1148. * SCC/MCC/DBS mode.
  1149. */
  1150. QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
  1151. /* Timeout waiting for response of VDEV start command from the FW */
  1152. QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
  1153. /* Timeout waiting for response of VDEV restart command from the FW */
  1154. QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
  1155. /* Timeout waiting for response of VDEV stop command from the FW */
  1156. QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
  1157. /* Timeout waiting for response of VDEV delete command from the FW */
  1158. QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
  1159. /* Timeout waiting for response of peer all delete request command to
  1160. * the FW on a specific VDEV.
  1161. */
  1162. QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
  1163. /* WMI sequence mismatch between WMI command and Tx completion */
  1164. QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
  1165. /* Write to Device HAL register failed */
  1166. QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
  1167. /* No credit left to send the wow_wakeup_from_sleep to firmware */
  1168. QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
  1169. /* Bus failure */
  1170. QCA_WLAN_HANG_BUS_FAILURE = 26,
  1171. /* tasklet/credit latency found */
  1172. QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
  1173. /* MSDU buffers received in REO error ring, exceeding certain
  1174. * threshold
  1175. */
  1176. QCA_WLAN_HANG_RX_MSDU_BUF_RCVD_IN_ERR_RING = 28,
  1177. /* Vdev SM is out of sync and connect req received
  1178. * when already connected
  1179. */
  1180. QCA_WLAN_HANG_VDEV_SM_OUT_OF_SYNC = 29,
  1181. /* Stats request timeout */
  1182. QCA_WLAN_HANG_STATS_REQ_TIMEOUT = 30,
  1183. /* Leak in TX descriptor for a packet */
  1184. QCA_WLAN_HANG_TX_DESC_LEAK = 31,
  1185. /* Scheduler watchdog timeout */
  1186. QCA_WLAN_HANG_SCHED_TIMEOUT = 32,
  1187. /* Failed to send self peer deletion cmd to firmware */
  1188. QCA_WLAN_HANG_SELF_PEER_DEL_FAIL = 33,
  1189. /* Received del self sta without del bss */
  1190. QCA_WLAN_HANG_DEL_SELF_STA_FAIL = 34,
  1191. /* Recovery needed when sending flush completion to userspace */
  1192. QCA_WLAN_HANG_FLUSH_LOGS = 35,
  1193. /* Host wakeup because of page fault */
  1194. QCA_WLAN_HANG_HOST_WAKEUP_REASON_PAGE_FAULT = 36,
  1195. };
  1196. /**
  1197. * enum qca_wlan_vendor_attr_fw_page_fault_report - Used by the vendor
  1198. * command %QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT.
  1199. *
  1200. * @QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_DATA: The binary blob data
  1201. * associated with the firmware page fault that is expected to contain the
  1202. * required dump to analyze frequent page faults.
  1203. * NLA_BINARY attribute, the maximum size is QDF_HANG_EVENT_DATA_SIZE
  1204. */
  1205. enum qca_wlan_vendor_attr_fw_page_fault_report {
  1206. QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_INVALID = 0,
  1207. QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_DATA = 1,
  1208. /* keep last */
  1209. QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_LAST,
  1210. QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_MAX =
  1211. QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_LAST - 1,
  1212. };
  1213. /**
  1214. * enum qca_wlan_vendor_attr_hang - Used by the vendor command
  1215. * QCA_NL80211_VENDOR_SUBCMD_HANG.
  1216. */
  1217. enum qca_wlan_vendor_attr_hang {
  1218. QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
  1219. /*
  1220. * Reason for the Hang - Represented by enum
  1221. * qca_wlan_vendor_hang_reason.
  1222. */
  1223. QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
  1224. /* The binary blob data associated with the hang reason specified by
  1225. * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
  1226. * contain the required dump to analyze the reason for the hang.
  1227. * NLA_BINARY attribute, the max size is 1024 bytes.
  1228. */
  1229. QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
  1230. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
  1231. QCA_WLAN_VENDOR_ATTR_HANG_MAX =
  1232. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
  1233. };
  1234. /**
  1235. * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level
  1236. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level
  1237. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters
  1238. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace
  1239. level needs to be updated.
  1240. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need
  1241. * to be set.
  1242. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last.
  1243. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute.
  1244. */
  1245. enum qca_vendor_attr_set_trace_level {
  1246. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0,
  1247. /*
  1248. * Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM
  1249. * attributes.
  1250. */
  1251. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1,
  1252. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2,
  1253. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3,
  1254. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST,
  1255. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX =
  1256. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1,
  1257. };
  1258. /**
  1259. * enum qca_wlan_vendor_attr_get_station - Sub commands used by
  1260. * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding
  1261. * station information. The information obtained through these
  1262. * commands signify the current info in connected state and
  1263. * latest cached information during the connected state , if queried
  1264. * when in disconnected state.
  1265. *
  1266. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute
  1267. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info
  1268. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason
  1269. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info
  1270. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last
  1271. */
  1272. enum qca_wlan_vendor_attr_get_station {
  1273. QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0,
  1274. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO,
  1275. QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON,
  1276. QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE,
  1277. /* keep last */
  1278. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST,
  1279. QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX =
  1280. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1,
  1281. };
  1282. /**
  1283. * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
  1284. * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
  1285. *
  1286. * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
  1287. * Used in STA mode. This attribute represents the list of channel center
  1288. * frequencies in MHz (u32) the station has learnt during the last connection
  1289. * or roaming attempt. This information shall not signify the channels for
  1290. * an explicit scan request from the user space. Host drivers can update this
  1291. * information to the user space in both connected and disconnected state.
  1292. * In the disconnected state this information shall signify the channels
  1293. * scanned in the last connection/roam attempt that lead to the disconnection.
  1294. */
  1295. enum qca_wlan_vendor_attr_update_sta_info {
  1296. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
  1297. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
  1298. /* keep last */
  1299. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
  1300. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
  1301. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
  1302. };
  1303. /**
  1304. * enum qca_wlan_802_11_mode - dot11 mode
  1305. * @QCA_WLAN_802_11_MODE_11B: mode B
  1306. * @QCA_WLAN_802_11_MODE_11G: mode G
  1307. * @QCA_WLAN_802_11_MODE_11N: mode N
  1308. * @QCA_WLAN_802_11_MODE_11A: mode A
  1309. * @QCA_WLAN_802_11_MODE_11AC: mode AC
  1310. * @QCA_WLAN_802_11_MODE_11AX: mode AX
  1311. * @QCA_WLAN_802_11_MODE_11BE: mode BE
  1312. * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode
  1313. */
  1314. enum qca_wlan_802_11_mode {
  1315. QCA_WLAN_802_11_MODE_11B,
  1316. QCA_WLAN_802_11_MODE_11G,
  1317. QCA_WLAN_802_11_MODE_11N,
  1318. QCA_WLAN_802_11_MODE_11A,
  1319. QCA_WLAN_802_11_MODE_11AC,
  1320. QCA_WLAN_802_11_MODE_11AX,
  1321. QCA_WLAN_802_11_MODE_11BE,
  1322. QCA_WLAN_802_11_MODE_INVALID,
  1323. };
  1324. /**
  1325. * enum qca_wlan_auth_type - Authentication key management type
  1326. * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type
  1327. * @QCA_WLAN_AUTH_TYPE_OPEN: Open key
  1328. * @QCA_WLAN_AUTH_TYPE_SHARED: shared key
  1329. * @QCA_WLAN_AUTH_TYPE_WPA: wpa key
  1330. * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key
  1331. * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key
  1332. * @QCA_WLAN_AUTH_TYPE_RSN: rsn key
  1333. * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key
  1334. * @QCA_WLAN_AUTH_TYPE_FT: ft key
  1335. * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key
  1336. * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key
  1337. * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk
  1338. * @QCA_WLAN_AUTH_TYPE_WAI: wai key
  1339. * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key
  1340. * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key
  1341. * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key
  1342. * @QCA_WLAN_AUTH_TYPE_AUTOSWITCH: Autoswitch key
  1343. * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm
  1344. * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384
  1345. * @QCA_WLAN_AUTH_TYPE_SAE: SAE key
  1346. * @QCA_WLAN_AUTH_TYPE_FILS_SHA256: FILS SHA 256 key
  1347. * @QCA_WLAN_AUTH_TYPE_FILS_SHA384: FILS SAH 384 key
  1348. * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256: FT FILS SHA 256 key
  1349. * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384: FT FILS SHA 384 key
  1350. * @QCA_WLAN_AUTH_TYPE_DPP_RSN: DPP RSN key
  1351. * @QCA_WLAN_AUTH_TYPE_OWE: owe key
  1352. * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256 : EAP SHA 256 key
  1353. * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384 : EAP SHA 384 key
  1354. */
  1355. enum qca_wlan_auth_type {
  1356. QCA_WLAN_AUTH_TYPE_INVALID,
  1357. QCA_WLAN_AUTH_TYPE_OPEN,
  1358. QCA_WLAN_AUTH_TYPE_SHARED,
  1359. QCA_WLAN_AUTH_TYPE_WPA,
  1360. QCA_WLAN_AUTH_TYPE_WPA_PSK,
  1361. QCA_WLAN_AUTH_TYPE_WPA_NONE,
  1362. QCA_WLAN_AUTH_TYPE_RSN,
  1363. QCA_WLAN_AUTH_TYPE_RSN_PSK,
  1364. QCA_WLAN_AUTH_TYPE_FT,
  1365. QCA_WLAN_AUTH_TYPE_FT_PSK,
  1366. QCA_WLAN_AUTH_TYPE_SHA256,
  1367. QCA_WLAN_AUTH_TYPE_SHA256_PSK,
  1368. QCA_WLAN_AUTH_TYPE_WAI,
  1369. QCA_WLAN_AUTH_TYPE_WAI_PSK,
  1370. QCA_WLAN_AUTH_TYPE_CCKM_WPA,
  1371. QCA_WLAN_AUTH_TYPE_CCKM_RSN,
  1372. QCA_WLAN_AUTH_TYPE_AUTOSWITCH,
  1373. QCA_WLAN_AUTH_TYPE_FT_SAE,
  1374. QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384,
  1375. QCA_WLAN_AUTH_TYPE_SAE,
  1376. QCA_WLAN_AUTH_TYPE_FILS_SHA256,
  1377. QCA_WLAN_AUTH_TYPE_FILS_SHA384,
  1378. QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256,
  1379. QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384,
  1380. QCA_WLAN_AUTH_TYPE_DPP_RSN,
  1381. QCA_WLAN_AUTH_TYPE_OWE,
  1382. QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256,
  1383. QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384,
  1384. };
  1385. /**
  1386. * enum qca_wlan_vendor_attr_get_station_info - Station Info queried
  1387. * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION.
  1388. *
  1389. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute
  1390. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR:
  1391. * Get the standard NL attributes Nested with this attribute.
  1392. * Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link -
  1393. * NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) /
  1394. * NL80211_ATTR_STA_INFO
  1395. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR:
  1396. * Get the standard NL attributes Nested with this attribute.
  1397. * Ex : Query HT/VHT Capability advertised by the AP.
  1398. * NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY
  1399. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT:
  1400. * Number of successful Roam attempts before a
  1401. * disconnect, Unsigned 32 bit value
  1402. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM:
  1403. * Authentication Key Management Type used for the connected session.
  1404. * Signified by enum qca_wlan_auth_type
  1405. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the
  1406. * connected Session, signified by enum qca_wlan_802_11_mode
  1407. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION:
  1408. * HS20 Indication Element
  1409. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON:
  1410. * Status Code Corresponding to the Association Failure.
  1411. * Unsigned 32 bit value.
  1412. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE:
  1413. * Max phy rate of remote station
  1414. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS:
  1415. * TX packets to remote station
  1416. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES:
  1417. * TX bytes to remote station
  1418. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS:
  1419. * RX packets from remote station
  1420. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES:
  1421. * RX bytes from remote station
  1422. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE:
  1423. * Last TX rate with remote station
  1424. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE:
  1425. * Last RX rate with remote station
  1426. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM:
  1427. * Remote station enable/disable WMM
  1428. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE:
  1429. * Remote station connection mode
  1430. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU:
  1431. * Remote station AMPDU enable/disable
  1432. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC:
  1433. * Remote station TX Space-time block coding enable/disable
  1434. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC:
  1435. * Remote station RX Space-time block coding enable/disable
  1436. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH:
  1437. * Remote station channel width
  1438. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE:
  1439. * Remote station short GI enable/disable
  1440. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding
  1441. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES: Binary attribute
  1442. * containing the raw information elements from Beacon frames. Represents
  1443. * the Beacon frames of the current BSS in the connected state. When queried
  1444. * in the disconnected state, these IEs correspond to the last connected BSSID.
  1445. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON: u32, Driver
  1446. * disconnect reason for the last disconnection if the disconnection is
  1447. * triggered from the host driver. The values are referred from
  1448. * enum qca_disconnect_reason_codes. If the disconnect is from
  1449. * peer/userspace this value is QCA_DISCONNECT_REASON_UNSPECIFIED.
  1450. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES: Binary attribute
  1451. * Applicable in AP mode only. It contains the raw information elements
  1452. * from assoc request frame of the given peer station. User queries with the
  1453. * mac address of peer station when it disconnects. Host driver sends
  1454. * assoc request frame of the given station. Host driver doesn't provide
  1455. * the IEs when the peer station is still in connected state.
  1456. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION: Attribute type for
  1457. * sending HE operation info.
  1458. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH_V2: Attribute
  1459. * type for remote channel width greater than 160 MHz.
  1460. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_EHT_OPERATION: Attribute type for
  1461. * sending EHT operation info.
  1462. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last
  1463. *
  1464. */
  1465. enum qca_wlan_vendor_attr_get_station_info {
  1466. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0,
  1467. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR,
  1468. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR,
  1469. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT,
  1470. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM,
  1471. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE,
  1472. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION,
  1473. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION,
  1474. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION,
  1475. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON,
  1476. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE,
  1477. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS,
  1478. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES,
  1479. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS,
  1480. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES,
  1481. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE,
  1482. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE,
  1483. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM,
  1484. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE,
  1485. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU,
  1486. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC,
  1487. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC,
  1488. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH,
  1489. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE,
  1490. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD,
  1491. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT,
  1492. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT,
  1493. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_FAILURE,
  1494. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AVG_RSSI_PER_CHAIN,
  1495. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_SUCCEED,
  1496. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_LAST_PKT_RSSI,
  1497. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY,
  1498. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST,
  1499. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_TOTAL_FW,
  1500. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_FW,
  1501. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST_FW,
  1502. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES,
  1503. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON,
  1504. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES,
  1505. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION,
  1506. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH_V2,
  1507. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_EHT_OPERATION,
  1508. /* keep last */
  1509. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST,
  1510. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX =
  1511. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1,
  1512. };
  1513. /**
  1514. * qca_chip_power_save_failure_reason: Power save failure reason
  1515. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure
  1516. * due to protocol/module.
  1517. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure
  1518. * due to hardware
  1519. */
  1520. enum qca_chip_power_save_failure_reason {
  1521. QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
  1522. QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
  1523. };
  1524. /**
  1525. * qca_attr_chip_power_save_failure: attributes to vendor subcmd
  1526. * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite
  1527. * information leading to the power save failure.
  1528. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid
  1529. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason
  1530. * represented by enum qca_chip_power_save_failure_reason
  1531. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last
  1532. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value
  1533. */
  1534. enum qca_attr_chip_power_save_failure {
  1535. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
  1536. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
  1537. /* keep last */
  1538. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
  1539. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
  1540. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
  1541. };
  1542. /* enum's to provide TDLS capabilities */
  1543. enum qca_wlan_vendor_attr_get_tdls_capabilities {
  1544. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
  1545. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1,
  1546. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2,
  1547. /* keep last */
  1548. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
  1549. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
  1550. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
  1551. };
  1552. /* Compatibility defines for previously used subcmd names.
  1553. * These values should not be used in any new implementation.
  1554. */
  1555. #define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \
  1556. QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY
  1557. enum qca_wlan_vendor_attr {
  1558. QCA_WLAN_VENDOR_ATTR_INVALID = 0,
  1559. /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
  1560. QCA_WLAN_VENDOR_ATTR_DFS = 1,
  1561. /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
  1562. QCA_WLAN_VENDOR_ATTR_NAN = 2,
  1563. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  1564. QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
  1565. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  1566. QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
  1567. /*
  1568. * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
  1569. * by enum qca_roaming_policy.
  1570. */
  1571. QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
  1572. QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
  1573. /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
  1574. QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
  1575. QCA_WLAN_VENDOR_ATTR_TEST = 8,
  1576. /*
  1577. * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES
  1578. * Unsigned 32-bit value.
  1579. */
  1580. QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
  1581. /* Unsigned 32-bit value */
  1582. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
  1583. /* Unsigned 32-bit value */
  1584. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
  1585. /* Unsigned 32-bit value from enum qca_set_band. Also, the acceptable
  1586. * value for this attribute are only till QCA_SETBAND_2G. This attribute
  1587. * is deprecated. Recommendation is to use
  1588. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. If the band is configured
  1589. * using both the attributes, the ones configured through
  1590. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK take the precedence.
  1591. */
  1592. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
  1593. /* Dummy (NOP) attribute for 64 bit padding */
  1594. QCA_WLAN_VENDOR_ATTR_PAD = 13,
  1595. /*
  1596. * Unique FTM session cookie (Unsigned 64 bit). Specified in
  1597. * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
  1598. * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
  1599. * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
  1600. */
  1601. QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
  1602. /*
  1603. * Indoor location capabilities, returned by
  1604. * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
  1605. * see enum qca_wlan_vendor_attr_loc_capa.
  1606. */
  1607. QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
  1608. /*
  1609. * Array of nested attributes containing information about each peer
  1610. * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
  1611. * for supported attributes for each peer.
  1612. */
  1613. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
  1614. /*
  1615. * Array of nested attributes containing measurement results for
  1616. * one or more peers, reported by the
  1617. * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
  1618. * See enum qca_wlan_vendor_attr_peer_result for list of supported
  1619. * attributes.
  1620. */
  1621. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
  1622. /* Flag attribute for enabling or disabling responder functionality. */
  1623. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
  1624. /*
  1625. * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  1626. * command to specify the LCI report that will be sent by
  1627. * the responder during a measurement exchange. The format is
  1628. * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
  1629. */
  1630. QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
  1631. /*
  1632. * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  1633. * command to specify the location civic report that will
  1634. * be sent by the responder during a measurement exchange.
  1635. * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
  1636. */
  1637. QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
  1638. /*
  1639. * Session/measurement completion status code,
  1640. * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
  1641. * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
  1642. * see enum qca_vendor_attr_loc_session_status.
  1643. */
  1644. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
  1645. /*
  1646. * Initial dialog token used by responder (0 if not specified),
  1647. * unsigned 8 bit value.
  1648. */
  1649. QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
  1650. /*
  1651. * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
  1652. * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
  1653. * AOA measurements are needed as part of an FTM session.
  1654. * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
  1655. * enum qca_wlan_vendor_attr_aoa_type.
  1656. */
  1657. QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
  1658. /*
  1659. * A bit mask (unsigned 32 bit value) of antenna arrays used
  1660. * by indoor location measurements. Refers to the antenna
  1661. * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
  1662. */
  1663. QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
  1664. /*
  1665. * AOA measurement data. Its contents depends on the AOA measurement
  1666. * type and antenna array mask:
  1667. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
  1668. * phase of the strongest CIR path for each antenna in the measured
  1669. * array(s).
  1670. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
  1671. * values, phase and amplitude of the strongest CIR path for each
  1672. * antenna in the measured array(s).
  1673. */
  1674. QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
  1675. /*
  1676. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1677. * to specify the chain number (unsigned 32 bit value) to inquire
  1678. * the corresponding antenna RSSI value */
  1679. QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
  1680. /*
  1681. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1682. * to report the specific antenna RSSI value (unsigned 32 bit value) */
  1683. QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
  1684. /* Frequency in MHz, various uses. Unsigned 32 bit value */
  1685. QCA_WLAN_VENDOR_ATTR_FREQ = 28,
  1686. /*
  1687. * TSF timer value, unsigned 64 bit value.
  1688. * May be returned by various commands.
  1689. */
  1690. QCA_WLAN_VENDOR_ATTR_TSF = 29,
  1691. /*
  1692. * DMG RF sector index, unsigned 16 bit number. Valid values are
  1693. * 0..127 for sector indices or 65535 as special value used to
  1694. * unlock sector selection in
  1695. * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
  1696. */
  1697. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
  1698. /*
  1699. * DMG RF sector type, unsigned 8 bit value. One of the values
  1700. * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
  1701. */
  1702. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
  1703. /*
  1704. * Bitmask of DMG RF modules for which information is requested. Each
  1705. * bit corresponds to an RF module with the same index as the bit
  1706. * number. Unsigned 32 bit number but only low 8 bits can be set since
  1707. * all DMG chips currently have up to 8 RF modules.
  1708. */
  1709. QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
  1710. /*
  1711. * Array of nested attributes where each entry is DMG RF sector
  1712. * configuration for a single RF module.
  1713. * Attributes for each entry are taken from enum
  1714. * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
  1715. * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
  1716. * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
  1717. */
  1718. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
  1719. /*
  1720. * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
  1721. * to report frame aggregation statistics to userspace.
  1722. */
  1723. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
  1724. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
  1725. /*
  1726. * Unsigned 8-bit value representing MBO transition reason code as
  1727. * provided by the AP used by subcommand
  1728. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
  1729. * specified by the userspace in the request to the driver.
  1730. */
  1731. QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
  1732. /*
  1733. * Array of nested attributes, BSSID and status code, used by subcommand
  1734. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
  1735. * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
  1736. * The userspace space specifies the list/array of candidate BSSIDs in
  1737. * the order of preference in the request. The driver specifies the
  1738. * status code, for each BSSID in the list, in the response. The
  1739. * acceptable candidates are listed in the order preferred by the
  1740. * driver.
  1741. */
  1742. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
  1743. /*
  1744. * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
  1745. * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
  1746. */
  1747. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
  1748. /*
  1749. * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
  1750. * to define the number of antennas to use for BRP.
  1751. * different purpose in each ANT_LIMIT_MODE:
  1752. * DISABLE - ignored
  1753. * EFFECTIVE - upper limit to number of antennas to be used
  1754. * FORCE - exact number of antennas to be used
  1755. * unsigned 8 bit value
  1756. */
  1757. QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
  1758. /*
  1759. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1760. * to report the corresponding antenna index to the chain RSSI value
  1761. */
  1762. QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
  1763. /*
  1764. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1765. * to report the specific antenna EVM value (unsigned 32 bit value).
  1766. * With a determinate group of antennas, the driver specifies the
  1767. * EVM value for each antenna ID, and application extract them
  1768. * in user space.
  1769. */
  1770. QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
  1771. /*
  1772. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
  1773. * wlan firmware current state. FW state is an unsigned 8 bit value,
  1774. * one of the values in enum qca_wlan_vendor_attr_fw_state.
  1775. */
  1776. QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
  1777. /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
  1778. * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only the
  1779. * integer values of enum qca_set_band till QCA_SETBAND_2G are valid.
  1780. * This attribute shall consider the bitmask combinations to define
  1781. * the respective Band combinations and always takes precedence over
  1782. * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE.
  1783. */
  1784. QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
  1785. /* Unsigned 8-bit used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES.
  1786. * This field describes the maximum number of links supported by the
  1787. * chip for MLO association.
  1788. * This is an optional attribute.
  1789. */
  1790. QCA_WLAN_VENDOR_ATTR_MLO_CAPABILITY_MAX_ASSOCIATION_COUNT = 44,
  1791. /* Unsigned 8-bit used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES.
  1792. * This field describes the maximum number of Simultaneous Transmit
  1793. * and Receive (STR) links used in Multi-Link Operation.
  1794. * The maximum number of STR links used can be different
  1795. * from the maximum number of radios supported by the chip.
  1796. * This is a static configuration of the chip.
  1797. * This is an optional attribute.
  1798. */
  1799. QCA_WLAN_VENDOR_ATTR_MLO_CAPABILITY_MAX_STR_LINK_COUNT = 45,
  1800. /* keep last */
  1801. QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
  1802. QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1
  1803. };
  1804. enum qca_wlan_vendor_attr_extscan_config_params {
  1805. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
  1806. /* Unsigned 32-bit value */
  1807. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
  1808. /*
  1809. * Attributes for data used by
  1810. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command.
  1811. */
  1812. /* Unsigned 32-bit value */
  1813. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
  1814. = 2,
  1815. /* Unsigned 32-bit value */
  1816. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
  1817. = 3,
  1818. /*
  1819. * Attributes for input params used by
  1820. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command.
  1821. */
  1822. /* Unsigned 32-bit value; channel frequency */
  1823. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4,
  1824. /* Unsigned 32-bit value; dwell time in ms. */
  1825. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
  1826. /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
  1827. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6,
  1828. /* Unsigned 8-bit value; channel class */
  1829. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7,
  1830. /* Unsigned 8-bit value; bucket index, 0 based */
  1831. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8,
  1832. /* Unsigned 8-bit value; band. */
  1833. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9,
  1834. /* Unsigned 32-bit value; desired period, in ms. */
  1835. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10,
  1836. /* Unsigned 8-bit value; report events semantics. */
  1837. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
  1838. /*
  1839. * Unsigned 32-bit value. Followed by a nested array of
  1840. * EXTSCAN_CHANNEL_SPEC_* attributes.
  1841. */
  1842. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
  1843. /*
  1844. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes.
  1845. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  1846. */
  1847. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13,
  1848. /* Unsigned 32-bit value; base timer period in ms. */
  1849. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
  1850. /*
  1851. * Unsigned 32-bit value; number of APs to store in each scan in the
  1852. * BSSID/RSSI history buffer (keep the highest RSSI APs).
  1853. */
  1854. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
  1855. /*
  1856. * Unsigned 8-bit value; in %, when scan buffer is this much full, wake
  1857. * up AP.
  1858. */
  1859. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
  1860. = 16,
  1861. /*
  1862. * Unsigned 8-bit value; number of scan bucket specs; followed by a
  1863. * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size
  1864. * of the array is determined by NUM_BUCKETS.
  1865. */
  1866. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
  1867. /*
  1868. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes.
  1869. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
  1870. */
  1871. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18,
  1872. /* Unsigned 8-bit value */
  1873. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
  1874. = 19,
  1875. /* Unsigned 32-bit value; maximum number of results to be returned. */
  1876. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
  1877. = 20,
  1878. /* An array of 6 x unsigned 8-bit value */
  1879. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
  1880. /* Signed 32-bit value */
  1881. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
  1882. /* Signed 32-bit value */
  1883. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
  1884. /* Unsigned 32-bit value */
  1885. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
  1886. /*
  1887. * Number of hotlist APs as unsigned 32-bit value, followed by a nested
  1888. * array of AP_THRESHOLD_PARAM attributes and values. The size of the
  1889. * array is determined by NUM_AP.
  1890. */
  1891. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
  1892. /*
  1893. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes.
  1894. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  1895. */
  1896. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26,
  1897. /* Unsigned 32-bit value; number of samples for averaging RSSI. */
  1898. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
  1899. = 27,
  1900. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  1901. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
  1902. = 28,
  1903. /* Unsigned 32-bit value; number of APs breaching threshold. */
  1904. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
  1905. /*
  1906. * Unsigned 32-bit value; number of APs. Followed by an array of
  1907. * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
  1908. */
  1909. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
  1910. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  1911. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
  1912. = 31,
  1913. /*
  1914. * Unsigned 32-bit value. If max_period is non zero or different than
  1915. * period, then this bucket is an exponential backoff bucket.
  1916. */
  1917. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
  1918. /* Unsigned 32-bit value. */
  1919. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33,
  1920. /*
  1921. * Unsigned 32-bit value. For exponential back off bucket, number of
  1922. * scans to perform for a given period.
  1923. */
  1924. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34,
  1925. /*
  1926. * Unsigned 8-bit value; in number of scans, wake up AP after these
  1927. * many scans.
  1928. */
  1929. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
  1930. = 35,
  1931. /*
  1932. * Attributes for data used by
  1933. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command.
  1934. */
  1935. /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
  1936. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
  1937. = 36,
  1938. /*
  1939. * Number of hotlist SSIDs as unsigned 32-bit value, followed by a
  1940. * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
  1941. * size of the array is determined by NUM_SSID.
  1942. */
  1943. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
  1944. /*
  1945. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_*
  1946. * attributes.
  1947. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
  1948. */
  1949. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38,
  1950. /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
  1951. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
  1952. /* Unsigned 8-bit value */
  1953. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
  1954. /* Signed 32-bit value */
  1955. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
  1956. /* Signed 32-bit value */
  1957. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
  1958. /* Unsigned 32-bit value; a bitmask with additional extscan config flag.
  1959. */
  1960. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43,
  1961. /* keep last */
  1962. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
  1963. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX =
  1964. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
  1965. };
  1966. enum qca_wlan_vendor_attr_extscan_results {
  1967. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0,
  1968. /*
  1969. * Unsigned 32-bit value; must match the request Id supplied by
  1970. * Wi-Fi HAL in the corresponding subcmd NL msg.
  1971. */
  1972. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1,
  1973. /*
  1974. * Unsigned 32-bit value; used to indicate the status response from
  1975. * firmware/driver for the vendor sub-command.
  1976. */
  1977. QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2,
  1978. /*
  1979. * EXTSCAN Valid Channels attributes */
  1980. /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
  1981. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3,
  1982. /*
  1983. * An array of NUM_CHANNELS x unsigned 32-bit value integers
  1984. * representing channel numbers.
  1985. */
  1986. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4,
  1987. /* EXTSCAN Capabilities attributes */
  1988. /* Unsigned 32-bit value */
  1989. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
  1990. /* Unsigned 32-bit value */
  1991. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
  1992. /* Unsigned 32-bit value */
  1993. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
  1994. = 7,
  1995. /* Unsigned 32-bit value */
  1996. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
  1997. = 8,
  1998. /* Signed 32-bit value */
  1999. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
  2000. = 9,
  2001. /* Unsigned 32-bit value */
  2002. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
  2003. /* Unsigned 32-bit value */
  2004. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
  2005. = 11,
  2006. /* Unsigned 32-bit value */
  2007. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
  2008. = 12,
  2009. /*
  2010. * EXTSCAN Attributes used with
  2011. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command.
  2012. */
  2013. /* Unsigned 32-bit value */
  2014. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
  2015. /*
  2016. * EXTSCAN attributes used with
  2017. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command.
  2018. */
  2019. /*
  2020. * An array of NUM_RESULTS_AVAILABLE x
  2021. * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_*
  2022. */
  2023. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14,
  2024. /* Unsigned 64-bit value; age of sample at the time of retrieval */
  2025. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
  2026. /* 33 x unsigned 8-bit value; NULL terminated SSID */
  2027. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16,
  2028. /* An array of 6 x unsigned 8-bit value */
  2029. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
  2030. /* Unsigned 32-bit value; channel frequency in MHz */
  2031. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
  2032. /* Signed 32-bit value */
  2033. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
  2034. /* Unsigned 32-bit value */
  2035. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20,
  2036. /* Unsigned 32-bit value */
  2037. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
  2038. /* Unsigned 16-bit value */
  2039. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
  2040. /* Unsigned 16-bit value */
  2041. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
  2042. /* Unsigned 32-bit value; size of the IE DATA blob */
  2043. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
  2044. /*
  2045. * An array of IE_LENGTH x unsigned 8-bit value; blob of all the
  2046. * information elements found in the beacon; this data should be a
  2047. * packed list of wifi_information_element objects, one after the
  2048. * other.
  2049. */
  2050. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
  2051. /*
  2052. * Unsigned 8-bit value; set by driver to indicate more scan results are
  2053. * available.
  2054. */
  2055. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
  2056. /*
  2057. * EXTSCAN attributes for
  2058. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command.
  2059. */
  2060. /* Unsigned 8-bit value */
  2061. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
  2062. /* Unsigned 32-bit value */
  2063. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
  2064. /*
  2065. * EXTSCAN attributes for
  2066. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command.
  2067. */
  2068. /*
  2069. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  2070. * to indicate number of results.
  2071. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
  2072. * list of results.
  2073. */
  2074. /*
  2075. * EXTSCAN attributes for
  2076. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command.
  2077. */
  2078. /* An array of 6 x unsigned 8-bit value */
  2079. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
  2080. /* Unsigned 32-bit value */
  2081. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
  2082. = 30,
  2083. /* Unsigned 32-bit value. */
  2084. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
  2085. = 31,
  2086. /*
  2087. * A nested array of signed 32-bit RSSI values. Size of the array is
  2088. * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
  2089. */
  2090. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
  2091. = 32,
  2092. /*
  2093. * EXTSCAN attributes used with
  2094. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command.
  2095. */
  2096. /*
  2097. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  2098. * to indicate number of extscan cached results returned.
  2099. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate
  2100. * the list of extscan cached results.
  2101. */
  2102. /*
  2103. * An array of NUM_RESULTS_AVAILABLE x
  2104. * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_*
  2105. */
  2106. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33,
  2107. /* Unsigned 32-bit value; a unique identifier for the scan unit. */
  2108. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34,
  2109. /*
  2110. * Unsigned 32-bit value; a bitmask w/additional information about scan.
  2111. */
  2112. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35,
  2113. /*
  2114. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  2115. * to indicate number of wifi scan results/bssids retrieved by the scan.
  2116. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
  2117. * list of wifi scan results returned for each cached result block.
  2118. */
  2119. /*
  2120. * EXTSCAN attributes for
  2121. * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
  2122. */
  2123. /*
  2124. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
  2125. * number of results.
  2126. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
  2127. * list of wifi scan results returned for each
  2128. * wifi_passpoint_match_result block.
  2129. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
  2130. */
  2131. /*
  2132. * EXTSCAN attributes for
  2133. * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
  2134. */
  2135. /* Unsigned 32-bit value */
  2136. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
  2137. = 36,
  2138. /*
  2139. * A nested array of
  2140. * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
  2141. * attributes. Array size =
  2142. * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
  2143. */
  2144. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
  2145. /* Unsigned 32-bit value; network block id for the matched network */
  2146. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
  2147. /*
  2148. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
  2149. * list of wifi scan results returned for each
  2150. * wifi_passpoint_match_result block.
  2151. */
  2152. /* Unsigned 32-bit value */
  2153. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
  2154. /*
  2155. * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
  2156. * ANQP data in the information_element format.
  2157. */
  2158. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
  2159. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2160. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
  2161. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2162. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
  2163. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2164. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
  2165. = 43,
  2166. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2167. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
  2168. = 44,
  2169. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45,
  2170. QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
  2171. /* keep last */
  2172. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST,
  2173. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX =
  2174. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1,
  2175. };
  2176. /**
  2177. * enum qca_vendor_interop_issues_ap_type - interop issues type
  2178. * This enum defines the valid set of values of interop issues type. These
  2179. * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
  2180. *
  2181. * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue
  2182. * when the STA's Qpower feature is enabled.
  2183. */
  2184. enum qca_vendor_interop_issues_ap_type {
  2185. QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
  2186. QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
  2187. };
  2188. /**
  2189. * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues
  2190. * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
  2191. *
  2192. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value
  2193. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type
  2194. * 32-bit unsigned value, The type defined in enum
  2195. * qca_vendor_interop_issues_ap_type are used.
  2196. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container
  2197. * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes,
  2198. * it is present and mandatory for the command but is not used for
  2199. * the event since only a single BSSID is reported in an event.
  2200. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid
  2201. * 6-byte MAC address. It is used within the nested
  2202. * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case
  2203. * and without such encapsulation in the event case.
  2204. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
  2205. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
  2206. */
  2207. enum qca_vendor_attr_interop_issues_ap {
  2208. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
  2209. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
  2210. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
  2211. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
  2212. /* keep last */
  2213. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
  2214. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
  2215. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
  2216. };
  2217. #ifdef WLAN_FEATURE_LINK_LAYER_STATS
  2218. enum qca_wlan_vendor_attr_ll_stats_set {
  2219. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
  2220. /* Unsigned 32-bit value */
  2221. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
  2222. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
  2223. /* keep last */
  2224. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
  2225. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
  2226. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
  2227. };
  2228. /**
  2229. * qca_wlan_ll_stats_clr_req_bitmap - Represents the bitmap to clear LL STATS
  2230. * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK.
  2231. *
  2232. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO: Clear all radio statistics.
  2233. *
  2234. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA: Clear cca_busy_time within
  2235. * radio statistics.
  2236. *
  2237. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNEL: Clear all channel
  2238. * statistics within radio statistics.
  2239. *
  2240. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_SCAN: Clear all scan statistics within
  2241. * radio statistics.
  2242. *
  2243. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE: Clear all interface statistics.
  2244. *
  2245. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE: Clear all TX rate statistics
  2246. * within interface statistics.
  2247. *
  2248. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC: Clear all AC statistics within
  2249. * interface statistics.
  2250. *
  2251. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION: Clear all contention
  2252. * (min, max, avg) statistics within AC statistics.
  2253. *
  2254. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER: Clear all peer statistics
  2255. * on this interface.
  2256. *
  2257. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER: Clear particular peer
  2258. * statistics depending on the peer_mac.
  2259. */
  2260. enum qca_wlan_ll_stats_clr_req_bitmap {
  2261. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO = BIT(0),
  2262. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA = BIT(1),
  2263. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNELS = BIT(2),
  2264. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_SCAN = BIT(3),
  2265. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE = BIT(4),
  2266. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE = BIT(5),
  2267. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC = BIT(6),
  2268. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION = BIT(7),
  2269. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER = BIT(8),
  2270. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER = BIT(9),
  2271. };
  2272. enum qca_wlan_vendor_attr_ll_stats_clr {
  2273. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
  2274. /* Unsigned 32bit bitmap for clearing statistics, specified
  2275. * in the enum qca_wlan_ll_stats_clr_req_bitmap.
  2276. */
  2277. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
  2278. /* Unsigned 8 bit value: Request to stop statistics collection */
  2279. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
  2280. /* Unsigned 32 bit bitmap: Response from the driver
  2281. * for the cleared statistics
  2282. */
  2283. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
  2284. /* Unsigned 8 bit value: Response from driver/firmware
  2285. * for the stop request
  2286. */
  2287. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
  2288. /* keep last */
  2289. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
  2290. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
  2291. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
  2292. };
  2293. /**
  2294. * qca_wlan_ll_stats_get_req_bitmap - Represents the bitmap to request LL STATS
  2295. * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK.
  2296. *
  2297. * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO: Request all radio statistics.
  2298. *
  2299. * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE: Request interface statistics.
  2300. *
  2301. * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER: Request all peer statistics.
  2302. *
  2303. * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER: Request per peer statistics.
  2304. */
  2305. enum qca_wlan_ll_stats_get_req_bitmap {
  2306. QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO = BIT(0),
  2307. QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE = BIT(1),
  2308. QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER = BIT(2),
  2309. QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER = BIT(3),
  2310. };
  2311. enum qca_wlan_vendor_attr_ll_stats_get {
  2312. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
  2313. /* Unsigned 32 bit value provided by the caller issuing the GET stats
  2314. * command. When reporting the stats results, the driver uses the same
  2315. * value to indicate which GET request the results correspond to.
  2316. */
  2317. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
  2318. /* Unsigned 32 bit value - bit mask to identify what statistics are
  2319. * requested for retrieval specified in the enum
  2320. * qca_wlan_ll_stats_get_req_bitmap
  2321. */
  2322. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
  2323. /* keep last */
  2324. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
  2325. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
  2326. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
  2327. };
  2328. enum qca_wlan_vendor_attr_ll_stats_results {
  2329. QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
  2330. /*
  2331. * For Multi Link Operation (MLO) connection, per-link statistics will
  2332. * be sent inside of %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and
  2333. * cumulative statistics will be sent outside of
  2334. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to maintain backward
  2335. * compatibility with legacy user space. Attributes which don't have
  2336. * explicit documentation for MLO will be sent only outside of
  2337. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK, such attributes values
  2338. * don't depend on whether the connection is MLO capable or not, e.g.,
  2339. * radio and channel specific attributes.
  2340. */
  2341. /* Unsigned 32bit value. Used by the driver; must match the request id
  2342. * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
  2343. */
  2344. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
  2345. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2346. * the link with the best RSSI outside
  2347. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2348. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2349. */
  2350. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
  2351. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2352. * the link with the best RSSI outside
  2353. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2354. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2355. */
  2356. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
  2357. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2358. * the link with the best RSSI outside
  2359. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2360. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2361. */
  2362. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
  2363. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2364. * the link with the best RSSI outside
  2365. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2366. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2367. */
  2368. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
  2369. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2370. * the link with the best RSSI outside
  2371. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2372. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2373. */
  2374. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
  2375. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2376. * the link with the best RSSI outside
  2377. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2378. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2379. */
  2380. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
  2381. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2382. * the link with the best RSSI outside
  2383. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2384. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2385. */
  2386. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
  2387. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
  2388. * nested within the interface stats.
  2389. */
  2390. /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
  2391. * Type = enum wifi_interface_mode.
  2392. */
  2393. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
  2394. /* Interface MAC address. An array of 6 Unsigned int8 */
  2395. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
  2396. /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
  2397. * AUTHENTICATING, etc. valid for STA, CLI only.
  2398. */
  2399. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
  2400. /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
  2401. */
  2402. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
  2403. /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
  2404. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
  2405. /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
  2406. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
  2407. /* For non-MLO connection, BSSID of the AP. For MLO connection, MLD
  2408. * address of the AP. An array of 6 unsigned 8 bit values
  2409. */
  2410. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
  2411. /* Country string advertised by AP. An array of 3 unsigned 8 bit
  2412. * values.
  2413. */
  2414. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
  2415. /* Country string for this association. An array of 3 unsigned 8 bit
  2416. * values.
  2417. */
  2418. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
  2419. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
  2420. * be nested within the interface stats.
  2421. * For an MLO connection, all %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
  2422. * attributes except %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_*
  2423. * indicate the aggregate of all links outside
  2424. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2425. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_* attributes
  2426. * indicate value of the MLO link with the best RSSI outside
  2427. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2428. * These attributes indicate the link specific value inside
  2429. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2430. */
  2431. /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
  2432. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
  2433. /* Unsigned int 32 value corresponding to respective AC */
  2434. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
  2435. /* Unsigned int 32 value corresponding to respective AC */
  2436. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
  2437. /* Unsigned int 32 value corresponding to respective AC */
  2438. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
  2439. /* Unsigned int 32 value corresponding to respective AC */
  2440. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
  2441. /* Unsigned int 32 value corresponding to respective AC */
  2442. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
  2443. /* Unsigned int 32 value corresponding to respective AC */
  2444. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
  2445. /* Unsigned int 32 value corresponding to respective AC */
  2446. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
  2447. /* Unsigned int 32 value corresponding to respective AC */
  2448. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
  2449. /* Unsigned int 32 value corresponding to respective AC */
  2450. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
  2451. /* Unsigned int 32 values corresponding to respective AC */
  2452. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
  2453. /* Unsigned int 32 values corresponding to respective AC */
  2454. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
  2455. /* Unsigned int 32 values corresponding to respective AC */
  2456. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
  2457. /* Unsigned int 32 values corresponding to respective AC */
  2458. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
  2459. /* Unsigned int 32 values corresponding to respective AC */
  2460. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
  2461. /* Unsigned 32 bit value. Number of peers */
  2462. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
  2463. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
  2464. * nested within the interface stats.
  2465. */
  2466. /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
  2467. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
  2468. /* MAC addr corresponding to respective peer. An array of 6 unsigned
  2469. * 8 bit values.
  2470. */
  2471. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
  2472. /* Unsigned int 32 bit value representing capabilities corresponding
  2473. * to respective peer.
  2474. */
  2475. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
  2476. /* Unsigned 32 bit value. Number of rates */
  2477. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
  2478. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
  2479. * are nested within the rate stat.
  2480. */
  2481. /* Wi-Fi Rate - separate attributes defined for individual fields */
  2482. /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
  2483. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
  2484. /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
  2485. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
  2486. /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
  2487. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
  2488. /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
  2489. * in the units of 0.5 Mbps HT/VHT it would be MCS index
  2490. */
  2491. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
  2492. /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
  2493. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
  2494. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
  2495. * nested within the peer info stats.
  2496. */
  2497. /* Unsigned int 32 bit value. Number of successfully transmitted data
  2498. * packets, i.e., with ACK received corresponding to the respective
  2499. * rate.
  2500. */
  2501. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
  2502. /* Unsigned int 32 bit value. Number of received data packets
  2503. * corresponding to the respective rate.
  2504. */
  2505. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
  2506. /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
  2507. * received corresponding to the respective rate.
  2508. */
  2509. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
  2510. /* Unsigned int 32 bit value. Total number of data packet retries for
  2511. * the respective rate.
  2512. */
  2513. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
  2514. /* Unsigned int 32 bit value. Total number of short data packet retries
  2515. * for the respective rate.
  2516. */
  2517. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
  2518. /* Unsigned int 32 bit value. Total number of long data packet retries
  2519. * for the respective rate.
  2520. */
  2521. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
  2522. /* Unsigned 32 bit value. This is used to indicate radio ID of the radio
  2523. * statistics when %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
  2524. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used
  2525. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate radio ID
  2526. * of the MLO link.
  2527. */
  2528. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
  2529. /* Unsigned 32 bit value. Total number of msecs the radio is awake
  2530. * accruing over time.
  2531. */
  2532. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
  2533. /* Unsigned 32 bit value. Total number of msecs the radio is
  2534. * transmitting accruing over time.
  2535. */
  2536. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
  2537. /* Unsigned 32 bit value. Total number of msecs the radio is in active
  2538. * receive accruing over time.
  2539. */
  2540. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
  2541. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2542. * to all scan accruing over time.
  2543. */
  2544. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
  2545. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2546. * to NAN accruing over time.
  2547. */
  2548. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
  2549. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2550. * to GSCAN accruing over time.
  2551. */
  2552. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
  2553. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2554. * to roam scan accruing over time.
  2555. */
  2556. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
  2557. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2558. * to PNO scan accruing over time.
  2559. */
  2560. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
  2561. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2562. * to Hotspot 2.0 scans and GAS exchange accruing over time.
  2563. */
  2564. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
  2565. /* Unsigned 32 bit value. Number of channels. */
  2566. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
  2567. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
  2568. * be nested within the channel stats.
  2569. */
  2570. /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
  2571. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
  2572. /* Unsigned 32 bit value. Primary 20 MHz channel. This is used to
  2573. * indicate the primary frequency of the channel when
  2574. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
  2575. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used inside
  2576. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate the frequency
  2577. * on which the MLO link is operating.
  2578. */
  2579. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
  2580. /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
  2581. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
  2582. /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
  2583. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
  2584. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
  2585. * nested within the radio stats.
  2586. */
  2587. /* Unsigned int 32 bit value representing total number of msecs the
  2588. * radio is awake on that channel accruing over time, corresponding to
  2589. * the respective channel.
  2590. */
  2591. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
  2592. /* Unsigned int 32 bit value representing total number of msecs the CCA
  2593. * register is busy accruing over time corresponding to the respective
  2594. * channel.
  2595. */
  2596. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
  2597. QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
  2598. /* Signifies the nested list of channel attributes
  2599. * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
  2600. */
  2601. QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
  2602. /* Signifies the nested list of peer info attributes
  2603. * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*. For MLO connection,
  2604. * this also contains %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID to
  2605. * indicate on which link the peer is connected.
  2606. */
  2607. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
  2608. /* Signifies the nested list of rate info attributes
  2609. * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
  2610. */
  2611. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
  2612. /* Signifies the nested list of wmm info attributes
  2613. * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
  2614. */
  2615. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
  2616. /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
  2617. * that more stats, e.g., peers or radio, are to follow in the next
  2618. * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
  2619. * Otherwise, it is set to 0.
  2620. */
  2621. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
  2622. /* Unsigned 64 bit value. For an MLO connection, indicates the value of
  2623. * the link with the best RSSI outside
  2624. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2625. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2626. */
  2627. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
  2628. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2629. * the link with the best RSSI outside
  2630. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2631. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2632. */
  2633. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
  2634. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2635. * the link with the best RSSI outside
  2636. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2637. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2638. */
  2639. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
  2640. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2641. * the link with the best RSSI outside
  2642. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2643. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2644. */
  2645. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
  2646. /* Unsigned 32 bit value */
  2647. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
  2648. /* Unsigned 32 bit value */
  2649. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
  2650. /* Number of msecs the radio spent in transmitting for each power level
  2651. */
  2652. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
  2653. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2654. * the link with the best RSSI outside
  2655. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2656. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2657. */
  2658. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
  2659. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2660. * 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_RTS_FAIL_CNT = 80,
  2665. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2666. * the link with the best RSSI outside
  2667. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2668. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2669. */
  2670. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
  2671. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2672. * the link with the best RSSI outside
  2673. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2674. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2675. */
  2676. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
  2677. /* Unsigned int 32 value.
  2678. * Pending MSDUs corresponding to respective AC.
  2679. */
  2680. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
  2681. /* u32 value representing total time in milliseconds for which the radio
  2682. * is transmitting on this channel. This attribute will be nested
  2683. * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
  2684. */
  2685. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
  2686. /* u32 value representing total time in milliseconds for which the radio
  2687. * is receiving all 802.11 frames intended for this device on this
  2688. * channel. This attribute will be nested within
  2689. * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
  2690. */
  2691. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
  2692. /* u8 value representing the channel load percentage. Possible values
  2693. * are 0-100.
  2694. */
  2695. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
  2696. /* u8 value representing the time slicing duty cycle percentage.
  2697. * Possible values are 0-100. For an MLO connection, indicates the value
  2698. * of the link with the best RSSI outside
  2699. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2700. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2701. */
  2702. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
  2703. /* Unsigned 32 bit value. The number of Beacon frames which are received
  2704. * from the associated AP and indicate buffered unicast frame(s) for us
  2705. * in the TIM element. For an MLO connection, indicates the value of the
  2706. * link with the best RSSI outside
  2707. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2708. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2709. */
  2710. QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88,
  2711. /* Unsigned 32 bit value. The total number of Beacon frames received
  2712. * from the associated AP that have wrongly indicated buffered unicast
  2713. * traffic in the TIM element for us.
  2714. * Below scenarios will be considered as wrong TIM element beacon:
  2715. * 1) The related TIM element is set in the beacon for STA but STA
  2716. * doesn’t receive any unicast data after this beacon.
  2717. * 2) The related TIM element is still set in the beacon for STA
  2718. * after STA has indicated power save exit by QoS Null Data frame.
  2719. * For an MLO connection, indicates the value of the link with the best
  2720. * RSSI outside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link
  2721. * specific value inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2722. */
  2723. QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89,
  2724. /* Signed 32 bit value. It represents the noise floor calibration value.
  2725. * Possible values are -120~-50 dBm. For an MLO connection, indicates
  2726. * the value of the link with the best RSSI outside
  2727. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2728. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2729. */
  2730. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NF_CAL_VAL = 90,
  2731. /* Attribute used for padding for 64-bit alignment */
  2732. QCA_WLAN_VENDOR_ATTR_LL_STATS_PAD = 91,
  2733. /* Unsigned u8 value, link ID of an MLO link. Used inside nested
  2734. * attribute %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to represent the
  2735. * link ID of the MLO link for which the statistics are embedded in the
  2736. * nested attribute. Used inside nested attribute
  2737. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO to represent the connected
  2738. * link ID of the peer.
  2739. */
  2740. QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID = 92,
  2741. /* A nested array of attributes for each MLO link, each containing
  2742. * per-link statistics of a multi link connection. The attributes used
  2743. * inside this nested attribute are defined in enum
  2744. * qca_wlan_vendor_attr_ll_stats_results.
  2745. *
  2746. * For non-MLO connection, this attribute is not present and the
  2747. * statistics will be sent outside this attribute (without nesting).
  2748. *
  2749. * For MLO connection, this attribute is present and also cumulative
  2750. * statistics of all the links will be sent outside of this attribute
  2751. * to be compatible with legacy user space.
  2752. */
  2753. QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK = 93,
  2754. /* keep last */
  2755. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
  2756. QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
  2757. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
  2758. };
  2759. enum qca_wlan_vendor_attr_ll_stats_type {
  2760. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
  2761. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
  2762. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
  2763. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
  2764. /* keep last */
  2765. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
  2766. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
  2767. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
  2768. };
  2769. #endif /* WLAN_FEATURE_LINK_LAYER_STATS */
  2770. /**
  2771. * enum qca_wlan_vendor_attr_get_supported_features - get supported feature
  2772. *
  2773. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value
  2774. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value
  2775. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last
  2776. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
  2777. */
  2778. enum qca_wlan_vendor_attr_get_supported_features {
  2779. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0,
  2780. QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1,
  2781. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST,
  2782. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX =
  2783. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1,
  2784. };
  2785. /**
  2786. * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui
  2787. *
  2788. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value
  2789. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit
  2790. * value
  2791. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last
  2792. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value
  2793. */
  2794. enum qca_wlan_vendor_attr_set_scanning_mac_oui {
  2795. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0,
  2796. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1,
  2797. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST,
  2798. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX =
  2799. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1,
  2800. };
  2801. /**
  2802. * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
  2803. * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
  2804. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
  2805. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
  2806. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
  2807. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
  2808. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
  2809. */
  2810. enum qca_wlan_vendor_scan_priority {
  2811. QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
  2812. QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
  2813. QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
  2814. QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
  2815. QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
  2816. };
  2817. /**
  2818. * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
  2819. *
  2820. * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
  2821. * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
  2822. * with frequencies to be scanned (in MHz)
  2823. * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
  2824. * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
  2825. * rates to be included
  2826. * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
  2827. * at non CCK rate in 2GHz band
  2828. * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
  2829. * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
  2830. * driver for the specific scan request
  2831. * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
  2832. * request decoded as in enum scan_status
  2833. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
  2834. * scan flag is set
  2835. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
  2836. * randomisation
  2837. * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
  2838. * specific BSSID to scan for.
  2839. * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
  2840. * microseconds. This is a common value which applies across all
  2841. * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
  2842. * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
  2843. * other scan requests. It is a u32 attribute and takes values from enum
  2844. * qca_wlan_vendor_scan_priority. This is an optional attribute.
  2845. * If this attribute is not configured, the driver shall use
  2846. * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
  2847. */
  2848. enum qca_wlan_vendor_attr_scan {
  2849. QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
  2850. QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
  2851. QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
  2852. QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
  2853. QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
  2854. QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
  2855. QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
  2856. QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
  2857. QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
  2858. QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
  2859. QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
  2860. QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
  2861. QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
  2862. QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
  2863. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
  2864. QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
  2865. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
  2866. };
  2867. /**
  2868. * enum scan_status - Specifies the valid values the vendor scan attribute
  2869. * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
  2870. * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
  2871. * new scan results
  2872. * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
  2873. */
  2874. enum scan_status {
  2875. VENDOR_SCAN_STATUS_NEW_RESULTS,
  2876. VENDOR_SCAN_STATUS_ABORTED,
  2877. VENDOR_SCAN_STATUS_MAX,
  2878. };
  2879. /**
  2880. * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix
  2881. *
  2882. * NL attributes for data used by
  2883. * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command.
  2884. *
  2885. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value
  2886. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX:
  2887. * Unsigned 32-bit value
  2888. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE:
  2889. * Unsigned 32-bit value
  2890. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An
  2891. * array of SET_SIZE x Unsigned 32bit values representing concurrency
  2892. * combinations
  2893. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last
  2894. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value
  2895. */
  2896. enum qca_wlan_vendor_attr_get_concurrency_matrix {
  2897. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0,
  2898. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX
  2899. = 1,
  2900. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2,
  2901. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3,
  2902. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST,
  2903. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX =
  2904. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1,
  2905. };
  2906. /**
  2907. * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag
  2908. *
  2909. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value
  2910. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value
  2911. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last
  2912. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value
  2913. */
  2914. enum qca_wlan_vendor_attr_set_no_dfs_flag {
  2915. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0,
  2916. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1,
  2917. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST,
  2918. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX =
  2919. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1,
  2920. };
  2921. /**
  2922. * enum qca_vendor_attr_wisa_cmd
  2923. * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr
  2924. * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32)
  2925. * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last
  2926. * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value
  2927. * WISA setup vendor commands
  2928. */
  2929. enum qca_vendor_attr_wisa_cmd {
  2930. QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
  2931. QCA_WLAN_VENDOR_ATTR_WISA_MODE,
  2932. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
  2933. QCA_WLAN_VENDOR_ATTR_WISA_MAX =
  2934. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
  2935. };
  2936. enum qca_roaming_policy {
  2937. QCA_ROAMING_NOT_ALLOWED,
  2938. QCA_ROAMING_ALLOWED_WITHIN_ESS,
  2939. };
  2940. /**
  2941. * enum qca_roam_reason - Represents the reason codes for roaming. Used by
  2942. * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
  2943. *
  2944. * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
  2945. * reasons.
  2946. *
  2947. * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached
  2948. * the configured threshold.
  2949. *
  2950. * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
  2951. * beacon misses from the then connected AP.
  2952. *
  2953. * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
  2954. * by the connected AP.
  2955. *
  2956. * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a
  2957. * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is
  2958. * not poor.
  2959. *
  2960. * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
  2961. * or environment being very noisy / congested.
  2962. *
  2963. * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
  2964. * from the user (user space).
  2965. *
  2966. * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from
  2967. * connected AP.
  2968. *
  2969. * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
  2970. * breaching out the configured threshold.
  2971. *
  2972. * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
  2973. * transition request.
  2974. *
  2975. * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended,
  2976. * there is no data activity with the AP and the current rssi falls below a
  2977. * certain threshold.
  2978. *
  2979. * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to
  2980. * deauthentication or disassociation frames received from the connected AP.
  2981. *
  2982. * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic
  2983. * scan that happens when there is no candidate AP found during the poor
  2984. * RSSI scan trigger.
  2985. *
  2986. * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan
  2987. * results obtained from an external scan (not aimed at roaming).
  2988. *
  2989. * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to bluetooth
  2990. * connection is established when the station is connected in 2.4 Ghz band.
  2991. *
  2992. * @QCA_ROAM_REASON_STA_KICKOUT: Roam triggered due to continuous TX Data frame
  2993. * failures to the connected AP.
  2994. */
  2995. enum qca_roam_reason {
  2996. QCA_ROAM_REASON_UNKNOWN,
  2997. QCA_ROAM_REASON_PER,
  2998. QCA_ROAM_REASON_BEACON_MISS,
  2999. QCA_ROAM_REASON_POOR_RSSI,
  3000. QCA_ROAM_REASON_BETTER_RSSI,
  3001. QCA_ROAM_REASON_CONGESTION,
  3002. QCA_ROAM_REASON_USER_TRIGGER,
  3003. QCA_ROAM_REASON_BTM,
  3004. QCA_ROAM_REASON_BSS_LOAD,
  3005. QCA_ROAM_REASON_WTC,
  3006. QCA_ROAM_REASON_IDLE,
  3007. QCA_ROAM_REASON_DISCONNECTION,
  3008. QCA_ROAM_REASON_PERIODIC_TIMER,
  3009. QCA_ROAM_REASON_BACKGROUND_SCAN,
  3010. QCA_ROAM_REASON_BT_ACTIVITY,
  3011. QCA_ROAM_REASON_STA_KICKOUT,
  3012. };
  3013. /**
  3014. * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming
  3015. *
  3016. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE
  3017. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE
  3018. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status
  3019. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter
  3020. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK
  3021. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK
  3022. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status
  3023. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS:
  3024. * Indicates the status of re-association requested by user space for
  3025. * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
  3026. * Type u16.
  3027. * Represents the status code from AP. Use
  3028. * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
  3029. * real status code for failures.
  3030. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION:
  3031. * This attribute indicates that the old association was maintained when
  3032. * a re-association is requested by user space and that re-association
  3033. * attempt fails (i.e., cannot connect to the requested BSS, but can
  3034. * remain associated with the BSS with which the association was in
  3035. * place when being requested to roam). Used along with
  3036. * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
  3037. * re-association status. Type flag.
  3038. * This attribute is applicable only for re-association failure cases.
  3039. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK
  3040. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID
  3041. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next
  3042. * seq number
  3043. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value
  3044. * representing the reasons for the roaming. Defined by enum
  3045. * qca_roam_reason.
  3046. */
  3047. enum qca_wlan_vendor_attr_roam_auth {
  3048. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
  3049. /* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address
  3050. * of the roamed AP for MLO roaming.
  3051. */
  3052. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
  3053. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
  3054. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
  3055. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
  3056. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
  3057. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
  3058. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
  3059. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
  3060. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
  3061. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
  3062. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK,
  3063. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID,
  3064. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM,
  3065. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON,
  3066. /* A nested attribute containing per-link information of all the links
  3067. * of MLO connection done while roaming. The attributes used inside this
  3068. * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links.
  3069. */
  3070. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15,
  3071. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
  3072. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
  3073. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
  3074. };
  3075. /**
  3076. * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside
  3077. * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS.
  3078. *
  3079. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link.
  3080. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link.
  3081. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link.
  3082. */
  3083. enum qca_wlan_vendor_attr_mlo_links {
  3084. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0,
  3085. QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1,
  3086. QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2,
  3087. QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3,
  3088. /* Keep last */
  3089. QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST,
  3090. QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX =
  3091. QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1,
  3092. };
  3093. /**
  3094. * enum qca_wlan_vendor_attr_wifi_config - wifi config
  3095. *
  3096. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value
  3097. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM
  3098. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor
  3099. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time
  3100. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last
  3101. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value
  3102. */
  3103. enum qca_wlan_vendor_attr_wifi_config {
  3104. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0,
  3105. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1,
  3106. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2,
  3107. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3,
  3108. /* keep last */
  3109. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST,
  3110. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX =
  3111. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1,
  3112. };
  3113. /**
  3114. * enum qca_wlan_epno_type - the type of request to the EPNO command
  3115. * @QCA_WLAN_EPNO: epno type request
  3116. * @QCA_WLAN_PNO: pno type request
  3117. */
  3118. enum qca_wlan_epno_type {
  3119. QCA_WLAN_EPNO,
  3120. QCA_WLAN_PNO
  3121. };
  3122. /**
  3123. * enum qca_wlan_vendor_attr_pno_config_params - pno config params
  3124. *
  3125. * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value
  3126. *
  3127. * NL attributes for data used by
  3128. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
  3129. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM:
  3130. * Unsigned 32-bit value; pno passpoint number of networks
  3131. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY:
  3132. * Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
  3133. * attributes. Array size =
  3134. * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
  3135. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID:
  3136. * Unsigned 32-bit value; network id
  3137. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM:
  3138. * An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded
  3139. * realm, 0 if unspecified.
  3140. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID:
  3141. * An array of 16 x Unsigned 32-bit value; roaming consortium ids
  3142. * to match, 0 if unspecified.
  3143. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN:
  3144. * An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if
  3145. * unspecified.
  3146. *
  3147. * NL attributes for data used by
  3148. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
  3149. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS:
  3150. * Unsigned 32-bit value; set pno number of networks
  3151. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST:
  3152. * Array of nested
  3153. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
  3154. * attributes. Array size =
  3155. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS
  3156. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID:
  3157. * An array of 33 x Unsigned 8-bit value; NULL terminated SSID
  3158. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD:
  3159. * Signed 8-bit value; threshold for considering this SSID as found,
  3160. * required granularity for this threshold is 4dBm to 8dBm
  3161. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS:
  3162. * Unsigned 8-bit value; WIFI_PNO_FLAG_XXX
  3163. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT:
  3164. * Unsigned 8-bit value; auth bit field for matching WPA IE
  3165. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE
  3166. * Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type
  3167. *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST
  3168. * Nested attribute to send the channel list
  3169. *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL
  3170. * Unsigned 32-bit value; indicates the Interval between PNO scan
  3171. * cycles in msec
  3172. *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI
  3173. * Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered
  3174. *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI
  3175. * Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered
  3176. * This attribute is obsolete now.
  3177. *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX
  3178. * Signed 32-bit value; the maximum score that a network
  3179. * can have before bonuses
  3180. *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS
  3181. * Signed 32-bit value; only report when there is a network's
  3182. * score this much higher han the current connection
  3183. *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS
  3184. * Signed 32-bit value; score bonus for all networks with
  3185. * the same network flag
  3186. *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS
  3187. * Signed 32-bit value; score bonus for networks that are not open
  3188. *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS
  3189. * Signed 32-bit value; 5GHz RSSI score bonus applied to all
  3190. * 5GHz networks
  3191. *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID
  3192. * Unsigned 32-bit value, representing the PNO Request ID
  3193. * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last
  3194. * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max
  3195. */
  3196. enum qca_wlan_vendor_attr_pno_config_params {
  3197. QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
  3198. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
  3199. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
  3200. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
  3201. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
  3202. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
  3203. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
  3204. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
  3205. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
  3206. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
  3207. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10,
  3208. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
  3209. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
  3210. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
  3211. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
  3212. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
  3213. QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
  3214. QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
  3215. QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
  3216. QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
  3217. QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
  3218. QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
  3219. QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
  3220. QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
  3221. /* keep last */
  3222. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
  3223. QCA_WLAN_VENDOR_ATTR_PNO_MAX =
  3224. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
  3225. };
  3226. /**
  3227. * enum qca_scan_freq_list_type: Frequency list types
  3228. *
  3229. * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
  3230. * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
  3231. * a preferred frequency list for roaming.
  3232. *
  3233. * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
  3234. * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
  3235. * a specific frequency list for roaming.
  3236. */
  3237. enum qca_scan_freq_list_type {
  3238. QCA_PREFERRED_SCAN_FREQ_LIST = 1,
  3239. QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
  3240. };
  3241. /**
  3242. * enum qca_roam_scan_scheme: scan scheme
  3243. *
  3244. * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No Frequencies specified to scan.
  3245. * Indicates the driver to not scan on a Roam Trigger scenario, but
  3246. * Disconnect.e.g., On a BTM request from the AP driver/firmware shall
  3247. * disconnect from the current connected AP by notifying a failure
  3248. * code in the BTM response.
  3249. *
  3250. * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
  3251. * trigger partial frequency scans. These frequencies are the ones learnt
  3252. * or maintained by the driver based on the probability of finding the
  3253. * BSSID's in the ESS for which the roaming is triggered.
  3254. *
  3255. * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
  3256. * trigger the scan on all the valid frequencies to find the better
  3257. * candidates to roam.
  3258. */
  3259. enum qca_roam_scan_scheme {
  3260. QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
  3261. QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
  3262. QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
  3263. };
  3264. /**
  3265. * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
  3266. *
  3267. * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values.
  3268. * List of frequencies in MHz to be considered for a roam scan.
  3269. *
  3270. * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
  3271. * Type of frequency list scheme being configured/gotten as defined by the
  3272. * enum qca_scan_freq_list_type.
  3273. */
  3274. enum qca_vendor_attr_scan_freq_list_scheme {
  3275. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
  3276. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
  3277. /* keep last */
  3278. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
  3279. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
  3280. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
  3281. };
  3282. /*
  3283. * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
  3284. *
  3285. * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
  3286. * a bad packet error rates (PER).
  3287. * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
  3288. * based on beacon misses from the connected AP.
  3289. * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
  3290. * due to poor RSSI of the connected AP.
  3291. * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
  3292. * upon finding a BSSID with a better RSSI than the connected BSSID.
  3293. * Also, set if the roam has to be triggered due to the high RSSI of the
  3294. * current connected AP (better than
  3295. * QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET). Here the RSSI of
  3296. * the current BSSID need not be poor.
  3297. * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
  3298. * by triggering a periodic scan to find a better AP to roam.
  3299. * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
  3300. * when the connected channel environment is too noisy/congested.
  3301. * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
  3302. * when BTM Request frame is received from the connected AP.
  3303. * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
  3304. * when the channel utilization is goes above the configured threshold.
  3305. * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
  3306. * based on the request from the user (space).
  3307. * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
  3308. * device receives Deauthentication/Disassociation frame from connected
  3309. * AP.
  3310. * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
  3311. * DUT is in idle state (no tx/rx) and suspend mode, if the current RSSI
  3312. * is determined to be a poor one.
  3313. * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
  3314. * based on continuous TX Data Frame failures to the connected AP.
  3315. * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
  3316. * based on the scan results obtained from an external scan (not
  3317. * triggered to aim roaming)
  3318. *
  3319. * Set the corresponding roam trigger reason bit to consider it for roam
  3320. * trigger.
  3321. * Userspace can set multiple bits and send to the driver. The driver shall
  3322. * consider all of them to trigger/initiate a roam scan.
  3323. */
  3324. enum qca_vendor_roam_triggers {
  3325. QCA_ROAM_TRIGGER_REASON_PER = 1 << 0,
  3326. QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1,
  3327. QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2,
  3328. QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3,
  3329. QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4,
  3330. QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5,
  3331. QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6,
  3332. QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7,
  3333. QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8,
  3334. QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9,
  3335. QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10,
  3336. QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11,
  3337. QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12,
  3338. };
  3339. /*
  3340. * enum qca_vendor_roam_fail_reasons: Defines the various roam
  3341. * fail reasons. This enum value is used in
  3342. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
  3343. *
  3344. * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
  3345. * able to trigger the scan.
  3346. * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
  3347. * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
  3348. * scan.
  3349. * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
  3350. * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
  3351. * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
  3352. * status code.
  3353. * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
  3354. * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
  3355. * frame.
  3356. * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
  3357. * with error status code.
  3358. * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
  3359. * received.
  3360. * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
  3361. * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
  3362. * frame.
  3363. * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
  3364. * internally before transmission.
  3365. * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
  3366. * Request frame.
  3367. * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
  3368. * dropped internally.
  3369. * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
  3370. * times out.
  3371. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
  3372. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
  3373. * internally.
  3374. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
  3375. * M2 frame.
  3376. * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
  3377. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
  3378. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
  3379. * internally.
  3380. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
  3381. * frame.
  3382. * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
  3383. * started for final beacon miss case.
  3384. * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
  3385. * received from the AP during roaming handoff.
  3386. * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
  3387. * or host is suspended and gives the indication of the last roamed AP only
  3388. * when the Apps is resumed. If the Apps is resumed while the roaming is in
  3389. * progress, this ongoing roaming is aborted and the last roamed AP is
  3390. * indicated to host.
  3391. * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
  3392. * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
  3393. * out.
  3394. * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
  3395. * @QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK: Roam scan did not happen since the
  3396. * current network conditions are fine.
  3397. */
  3398. enum qca_vendor_roam_fail_reasons {
  3399. QCA_ROAM_FAIL_REASON_NONE = 0,
  3400. QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
  3401. QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
  3402. QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
  3403. QCA_ROAM_FAIL_REASON_HOST = 4,
  3404. QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
  3405. QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
  3406. QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
  3407. QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
  3408. QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
  3409. QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
  3410. QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
  3411. QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
  3412. QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
  3413. QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
  3414. QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
  3415. QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
  3416. QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
  3417. QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
  3418. QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
  3419. QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
  3420. QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
  3421. QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
  3422. QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
  3423. QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
  3424. QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
  3425. QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
  3426. QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
  3427. QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
  3428. QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
  3429. QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK = 30,
  3430. };
  3431. /*
  3432. * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
  3433. * invoke fail reasons. This enum value is used in
  3434. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
  3435. *
  3436. * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
  3437. * in roam invoke command.
  3438. * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
  3439. * enabled.
  3440. * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
  3441. * length is invalid.
  3442. * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
  3443. * in progress.
  3444. * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
  3445. * of the AP in the roam invoke command to firmware. This reason is sent by the
  3446. * firmware when the given AP is configured to be ignored or SSID/security
  3447. * does not match.
  3448. * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
  3449. * firmware internal reasons.
  3450. * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
  3451. * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
  3452. * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
  3453. * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
  3454. * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
  3455. * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
  3456. */
  3457. enum qca_vendor_roam_invoke_fail_reasons {
  3458. QCA_ROAM_INVOKE_STATUS_NONE = 0,
  3459. QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
  3460. QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
  3461. QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
  3462. QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
  3463. QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
  3464. QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
  3465. QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
  3466. QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
  3467. QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
  3468. QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
  3469. QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
  3470. QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
  3471. };
  3472. /**
  3473. * enum qca_vendor_attr_roam_candidate_selection_criteria:
  3474. *
  3475. * Each attribute carries a weightage in percentage (%).
  3476. *
  3477. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
  3478. * Represents the weightage to be given for the RSSI selection
  3479. * criteria among other parameters.
  3480. *
  3481. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
  3482. * Represents the weightage to be given for the rate selection
  3483. * criteria among other parameters.
  3484. *
  3485. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
  3486. * Represents the weightage to be given for the band width selection
  3487. * criteria among other parameters.
  3488. *
  3489. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
  3490. * Represents the weightage to be given for the band selection
  3491. * criteria among other parameters.
  3492. *
  3493. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
  3494. * Represents the weightage to be given for the NSS selection
  3495. * criteria among other parameters.
  3496. *
  3497. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
  3498. * Represents the weightage to be given for the channel congestion
  3499. * selection criteria among other parameters.
  3500. *
  3501. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
  3502. * Represents the weightage to be given for the beamforming selection
  3503. * criteria among other parameters.
  3504. *
  3505. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
  3506. * Represents the weightage to be given for the OCE selection
  3507. * criteria among other parameters.
  3508. */
  3509. enum qca_vendor_attr_roam_candidate_selection_criteria {
  3510. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
  3511. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
  3512. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
  3513. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
  3514. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
  3515. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
  3516. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
  3517. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
  3518. /* keep last */
  3519. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
  3520. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
  3521. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
  3522. };
  3523. /**
  3524. * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
  3525. * The following attributes are used to set/get/clear the respective
  3526. * configurations to/from the driver.
  3527. * For the get, the attribute for the configuration to be queried shall
  3528. * carry any of its acceptable values to the driver. In return, the driver
  3529. * shall send the configured values within the same attribute to the user
  3530. * space.
  3531. *
  3532. * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
  3533. * Signifies to enable/disable roam control in driver.
  3534. * 1-enable, 0-disable
  3535. * Enable: Mandates the driver to do the further roams using the
  3536. * configuration parameters set through
  3537. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
  3538. * Disable: Disables the driver/firmware roaming triggered through
  3539. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
  3540. * expected to continue with the default configurations.
  3541. *
  3542. * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
  3543. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
  3544. * Roam control status is obtained through this attribute.
  3545. *
  3546. * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
  3547. * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
  3548. * is to be cleared in the driver.
  3549. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
  3550. * and shall be ignored if used with other sub commands.
  3551. * If this attribute is specified along with subcmd
  3552. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
  3553. * all other attributes, if there are any.
  3554. * If this attribute is not specified when the subcmd
  3555. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
  3556. * clear the data corresponding to the attributes specified.
  3557. *
  3558. * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
  3559. * list of frequencies and its type, represented by
  3560. * enum qca_vendor_attr_scan_freq_list_scheme.
  3561. * Frequency list and its type are mandatory for this attribute to set
  3562. * the frequencies.
  3563. * Frequency type is mandatory for this attribute to get the frequencies
  3564. * and the frequency list is obtained through
  3565. * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
  3566. * Frequency list type is mandatory for this attribute to clear the
  3567. * frequencies.
  3568. *
  3569. * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
  3570. * Carries the value of scan period in seconds to set.
  3571. * The value of scan period is obtained with the same attribute for get.
  3572. * Clears the scan period in the driver when specified with clear command.
  3573. * Scan period is the idle time in seconds between each subsequent
  3574. * channel scans.
  3575. *
  3576. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
  3577. * Carries the value of full scan period in seconds to set.
  3578. * The value of full scan period is obtained with the same attribute for
  3579. * get.
  3580. * Clears the full scan period in the driver when specified with clear
  3581. * command. Full scan period is the idle period in seconds between two
  3582. * successive full channel roam scans.
  3583. *
  3584. * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
  3585. * Carries a bitmap of the roam triggers specified in
  3586. * enum qca_vendor_roam_triggers.
  3587. * The driver shall enable roaming by enabling corresponding roam triggers
  3588. * based on the trigger bits sent with this attribute.
  3589. * If this attribute is not configured, the driver shall proceed with
  3590. * default behavior.
  3591. * The bitmap configured is obtained with the same attribute for get.
  3592. * Clears the bitmap configured in driver when specified with clear
  3593. * command.
  3594. *
  3595. * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
  3596. * weightage in percentage (%) to be given for each selection criteria.
  3597. * Different roam candidate selection criteria are represented by
  3598. * enum qca_vendor_attr_roam_candidate_selection_criteria.
  3599. * The driver shall select the roam candidate based on corresponding
  3600. * candidate selection scores sent.
  3601. *
  3602. * An empty nested attribute is used to indicate that no specific
  3603. * preference score/criteria is configured (i.e., to disable this mechanism
  3604. * in the set case and to show that the mechanism is disabled in the get
  3605. * case).
  3606. *
  3607. * Userspace can send multiple attributes out of this enum to the driver.
  3608. * Since this attribute represents the weight/percentage of preference for
  3609. * the respective selection criteria, it is preferred to configure 100%
  3610. * total weightage. The value in each attribute or cumulative weight of the
  3611. * values in all the nested attributes should not exceed 100%. The driver
  3612. * shall reject such configuration.
  3613. *
  3614. * If the weights configured through this attribute are less than 100%,
  3615. * the driver shall honor the weights (x%) passed for the corresponding
  3616. * selection criteria and choose/distribute rest of the weight (100-x)%
  3617. * for the other selection criteria, based on its internal logic.
  3618. *
  3619. * The selection criteria configured is obtained with the same
  3620. * attribute for get.
  3621. *
  3622. * Clears the selection criteria configured in the driver when specified
  3623. * with clear command.
  3624. *
  3625. * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
  3626. * Represents value of scan frequency scheme from
  3627. * enum qca_roam_scan_scheme.
  3628. *
  3629. * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
  3630. * signifying the RSSI threshold of the current connected AP, indicating
  3631. * the driver to trigger roam only when the current connected AP's RSSI
  3632. * is lesser than this threshold.
  3633. *
  3634. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
  3635. * signifying the RSSI threshold of the candidate AP, indicating
  3636. * the driver to trigger roam only to the candidate AP with RSSI
  3637. * better than this threshold. If RSSI thresholds for candidate APs found
  3638. * in the 2.4GHz, 5GHz and 6Ghz bands are configured separately using
  3639. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
  3640. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
  3641. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, then those values
  3642. * will take precedence over the value configured using
  3643. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
  3644. *
  3645. * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
  3646. * user triggered reason code to be sent to the AP in response to AP's
  3647. * request to trigger the roam if the roaming cannot be triggered.
  3648. * Applies to all the scenarios of AP assisted roaming (e.g., BTM).
  3649. *
  3650. * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
  3651. * Carries a bitmap of the roam triggers specified in
  3652. * enum qca_vendor_roam_triggers.
  3653. * Represents the roam triggers for which the specific scan scheme from
  3654. * enum qca_roam_scan_scheme has to be applied.
  3655. * It's an optional attribute. If this attribute is not configured, but
  3656. * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, then the scan scheme
  3657. * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
  3658. * all the roams.
  3659. * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
  3660. * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
  3661. * driver shall proceed with the default behavior.
  3662. *
  3663. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
  3664. * in dBm, signifying the RSSI threshold of the candidate AP found in
  3665. * 2.4GHz band. The driver/firmware shall trigger roaming to the candidate
  3666. * AP found in 2.4GHz band only if it's RSSI value is better than this
  3667. * threshold. Optional attribute. If this attribute is not included, then
  3668. * threshold value specified by the
  3669. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3670. *
  3671. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
  3672. * dBm, signifying the RSSI threshold of the candidate AP found in 5GHz
  3673. * band. The driver/firmware shall trigger roaming to the candidate AP
  3674. * found in 5GHz band only if it's RSSI value is better than this
  3675. * threshold. Optional attribute. If this attribute is not included, then
  3676. * threshold value specified by the
  3677. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3678. *
  3679. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
  3680. * dBm, signifying the RSSI threshold of the candidate AP found in 6GHz
  3681. * band. The driver/firmware shall trigger roaming to the candidate AP
  3682. * found in 6GHz band only if it's RSSI value is better than this
  3683. * threshold. Optional attribute. If this attribute is not included, then
  3684. * threshold value specified by the
  3685. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3686. *
  3687. * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
  3688. * Carries bitmask value of bits from &enum qca_set_band and represents
  3689. * all the bands in which roaming is allowed. The configuration is valid
  3690. * until next disconnection. If this attribute is not present, the
  3691. * existing configuration shall be used. By default, roaming is allowed
  3692. * on all bands supported by local device. When the value is set to
  3693. * %QCA_SETBAND_AUTO, all supported bands shall be enabled.
  3694. *
  3695. * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps.
  3696. * Optional parameter. RX link speed threshold to disable roaming.
  3697. * If the current RX link speed is above the threshold, roaming is not
  3698. * needed. If this attribute is not configured, or if it is set to 0, the
  3699. * driver will not consider the RX link speed in the roaming decision.
  3700. *
  3701. * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds.
  3702. * Optional parameter. This configuration delays hand-off (in msec) by the
  3703. * specified duration to receive pending rx frames from current BSS.
  3704. *
  3705. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit
  3706. * value.
  3707. * During the roam scan, if there are no desired APs found in the partial
  3708. * frequency list, an immediate full scan on all the supported frequencies
  3709. * is initiated as a fallback. This flag controls the frequency list
  3710. * creation for the full scan on the following lines.
  3711. * 1 - Full scan to exclude the frequencies that were already scanned by
  3712. * the previous partial scan.
  3713. * 0 - Full scan to include all the supported frequencies irrespective of
  3714. * the ones part of the earlier partial scan.
  3715. * If this flag is not specified, a full scan shall include all the
  3716. * supported frequencies irrespective of the ones part of an earlier
  3717. * partial scan.
  3718. *
  3719. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit
  3720. * value.
  3721. * During the roam scan, if there are no desired APs found in the partial
  3722. * frequency list, an immediate full scan on all the supported frequencies
  3723. * is initiated as a fallback. This full scan would add the 2.4/5/6 GHz
  3724. * frequencies, including all PSC frequencies by default. This attribute
  3725. * controls the inclusion of the 6 GHz PSC frequencies for the full scan
  3726. * as following.
  3727. * 1 - Full scan to include the supported 6 GHz PSC frequencies only on the
  3728. * prior discovery of any 6 GHz frequency support in the environment.
  3729. * This discovery can happen through a prior RNR, 11k neighbor
  3730. * request, 11v BTM request, host scan, etc.
  3731. * 0 - Default behavior. Full scan to include all the supported 6 GHz
  3732. * PSC frequencies regardless of whether 6 GHz BSSs have been
  3733. * discovered.
  3734. * The default behavior if this flag is not specified is to include all
  3735. * the supported 6 GHz PSC frequencies in the roam full scan.
  3736. *
  3737. * @QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET: Unsigned 8-bit value.
  3738. * This attribute signifies the RSSI offset that is added to low RSSI
  3739. * threshold (QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD) to imply
  3740. * high RSSI threshold. STA is expected to trigger roam if the current
  3741. * connected AP's RSSI gets above this high RSSI threshold. STA's roam
  3742. * attempt on high RSSI threshold aims to find candidates from other
  3743. * better Wi-Fi bands. E.g., STA would initially connect to a 2.4 GHz BSSID
  3744. * and would migrate to 5/6 GHz when it comes closer to the AP (high RSSI
  3745. * for 2.4 GHz BSS).
  3746. */
  3747. enum qca_vendor_attr_roam_control {
  3748. QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
  3749. QCA_ATTR_ROAM_CONTROL_STATUS = 2,
  3750. QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
  3751. QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
  3752. QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
  3753. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
  3754. QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
  3755. QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
  3756. QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
  3757. QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
  3758. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
  3759. QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
  3760. QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
  3761. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
  3762. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
  3763. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
  3764. QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
  3765. QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD = 24,
  3766. QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25,
  3767. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26,
  3768. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27,
  3769. QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET = 31,
  3770. /* keep last */
  3771. QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
  3772. QCA_ATTR_ROAM_CONTROL_MAX =
  3773. QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
  3774. };
  3775. /**
  3776. * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
  3777. * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
  3778. *
  3779. * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
  3780. * Represents the different roam sub commands referred by
  3781. * enum qca_wlan_vendor_roaming_subcmd.
  3782. *
  3783. * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
  3784. * Represents the Request ID for the specific set of commands.
  3785. * This also helps to map specific set of commands to the respective
  3786. * ID / client. e.g., helps to identify the user entity configuring the
  3787. * Blacklist BSSID and accordingly clear the respective ones with the
  3788. * matching ID.
  3789. *
  3790. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
  3791. * 32-bit value.Represents the number of whitelist SSIDs configured.
  3792. *
  3793. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
  3794. * to carry the list of Whitelist SSIDs.
  3795. *
  3796. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
  3797. * 0..32 octets). Represents the white list SSID. Whitelist SSIDs
  3798. * represent the list of SSIDs to which the firmware/driver can consider
  3799. * to roam to.
  3800. *
  3801. * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
  3802. * comparing with a 2.4GHz BSSID. They are not applied when comparing two
  3803. * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
  3804. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS.
  3805. *
  3806. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
  3807. * value, RSSI threshold above which 5GHz RSSI is favored.
  3808. *
  3809. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
  3810. * value, RSSI threshold below which 5GHz RSSI is penalized.
  3811. *
  3812. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
  3813. * value, factor by which 5GHz RSSI is boosted.
  3814. * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
  3815. *
  3816. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
  3817. * value, factor by which 5GHz RSSI is penalized.
  3818. * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
  3819. *
  3820. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
  3821. * value, maximum boost that can be applied to a 5GHz RSSI.
  3822. *
  3823. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
  3824. * value, boost applied to current BSSID to ensure the currently
  3825. * associated BSSID is favored so as to prevent ping-pong situations.
  3826. *
  3827. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
  3828. * value, RSSI below which "Alert" roam is enabled.
  3829. * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID
  3830. * because the RSSI is low, or because many successive beacons have been
  3831. * lost or other bad link conditions.
  3832. *
  3833. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
  3834. * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
  3835. * firmware is hunting for a better BSSID or white listed SSID even though
  3836. * the RSSI of the link is good. The parameters enabling the roaming are
  3837. * configured through the PARAM_A_BAND_XX attrbutes.
  3838. *
  3839. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
  3840. * represents the BSSIDs preferred over others while evaluating them
  3841. * for the roaming.
  3842. *
  3843. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
  3844. * 32-bit value. Represents the number of preferred BSSIDs set.
  3845. *
  3846. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
  3847. * address representing the BSSID to be preferred.
  3848. *
  3849. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
  3850. * 32-bit value, representing the modifier to be applied to the RSSI of
  3851. * the BSSID for the purpose of comparing it with other roam candidate.
  3852. *
  3853. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
  3854. * represents the BSSIDs to get blacklisted for roaming.
  3855. *
  3856. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
  3857. * 32-bit value, represents the number of blacklisted BSSIDs.
  3858. *
  3859. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
  3860. * address representing the Blacklisted BSSID.
  3861. *
  3862. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
  3863. * indicates this BSSID blacklist as a hint to the driver. The driver can
  3864. * select this BSSID in the worst case (when no other BSSIDs are better).
  3865. *
  3866. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
  3867. * set/get/clear the roam control config as
  3868. * defined @enum qca_vendor_attr_roam_control.
  3869. *
  3870. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last
  3871. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max
  3872. */
  3873. enum qca_wlan_vendor_attr_roaming_config_params {
  3874. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
  3875. QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
  3876. QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
  3877. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
  3878. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
  3879. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
  3880. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
  3881. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
  3882. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
  3883. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
  3884. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
  3885. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
  3886. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
  3887. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
  3888. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
  3889. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
  3890. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
  3891. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
  3892. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
  3893. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
  3894. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
  3895. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
  3896. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
  3897. /* keep last */
  3898. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
  3899. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
  3900. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
  3901. };
  3902. /**
  3903. * enum qca_wlan_vendor_roaming_subcmd: Referred by
  3904. * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
  3905. *
  3906. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
  3907. * configure the white list SSIDs. These are configured through
  3908. * the following attributes.
  3909. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
  3910. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
  3911. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
  3912. *
  3913. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to
  3914. * configure the Roam params. These parameters are evaluated on the extscan
  3915. * results. Refers the attributes PARAM_A_BAND_XX above to configure the
  3916. * params.
  3917. *
  3918. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
  3919. * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
  3920. * to enable/disable Lazy roam.
  3921. *
  3922. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
  3923. * preference. Contains the attribute
  3924. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
  3925. * preference.
  3926. *
  3927. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params
  3928. *
  3929. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist
  3930. * BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to
  3931. * set the same.
  3932. *
  3933. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
  3934. * roam control config to the driver with the attribute
  3935. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3936. *
  3937. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
  3938. * roam control config from driver with the attribute
  3939. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3940. * For the get, the attribute for the configuration to be queried shall
  3941. * carry any of its acceptable value to the driver. In return, the driver
  3942. * shall send the configured values within the same attribute to the user
  3943. * space.
  3944. *
  3945. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
  3946. * roam control config in the driver with the attribute
  3947. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3948. * The driver shall continue with its default roaming behavior when data
  3949. * corresponding to an attribute is cleared.
  3950. */
  3951. enum qca_wlan_vendor_roaming_subcmd {
  3952. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
  3953. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2,
  3954. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
  3955. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
  3956. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
  3957. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
  3958. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
  3959. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
  3960. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
  3961. };
  3962. /**
  3963. * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information
  3964. *
  3965. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value
  3966. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version
  3967. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version
  3968. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index
  3969. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last
  3970. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max
  3971. */
  3972. enum qca_wlan_vendor_attr_get_wifi_info {
  3973. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
  3974. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
  3975. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
  3976. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
  3977. /* KEEP LAST */
  3978. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
  3979. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
  3980. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
  3981. };
  3982. enum qca_wlan_vendor_attr_logger_results {
  3983. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
  3984. /*
  3985. * Unsigned 32-bit value; must match the request Id supplied by
  3986. * Wi-Fi HAL in the corresponding subcmd NL msg.
  3987. */
  3988. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
  3989. /*
  3990. * Unsigned 32-bit value; used to indicate the size of memory
  3991. * dump to be allocated.
  3992. */
  3993. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
  3994. /* keep last */
  3995. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
  3996. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
  3997. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
  3998. };
  3999. /**
  4000. * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
  4001. * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
  4002. */
  4003. enum qca_wlan_vendor_channel_prop_flags {
  4004. /* Bits 0, 1, 2, and 3 are reserved */
  4005. /* Turbo channel */
  4006. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
  4007. /* CCK channel */
  4008. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
  4009. /* OFDM channel */
  4010. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
  4011. /* 2.4 GHz spectrum channel. */
  4012. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
  4013. /* 5 GHz spectrum channel */
  4014. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
  4015. /* Only passive scan allowed */
  4016. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
  4017. /* Dynamic CCK-OFDM channel */
  4018. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
  4019. /* GFSK channel (FHSS PHY) */
  4020. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
  4021. /* Radar found on channel */
  4022. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
  4023. /* 11a static turbo channel only */
  4024. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
  4025. /* Half rate channel */
  4026. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
  4027. /* Quarter rate channel */
  4028. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
  4029. /* HT 20 channel */
  4030. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
  4031. /* HT 40 with extension channel above */
  4032. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
  4033. /* HT 40 with extension channel below */
  4034. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
  4035. /* HT 40 intolerant */
  4036. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
  4037. /* VHT 20 channel */
  4038. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
  4039. /* VHT 40 with extension channel above */
  4040. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
  4041. /* VHT 40 with extension channel below */
  4042. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
  4043. /* VHT 80 channel */
  4044. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
  4045. /* HT 40 intolerant mark bit for ACS use */
  4046. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
  4047. /* Channel temporarily blocked due to noise */
  4048. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
  4049. /* VHT 160 channel */
  4050. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
  4051. /* VHT 80+80 channel */
  4052. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
  4053. /* HE 20 channel */
  4054. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
  4055. /* HE 40 with extension channel above */
  4056. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
  4057. /* HE 40 with extension channel below */
  4058. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
  4059. /* HE 40 intolerant */
  4060. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1U << 31,
  4061. };
  4062. /**
  4063. * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
  4064. * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
  4065. * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
  4066. */
  4067. enum qca_wlan_vendor_channel_prop_flags_2 {
  4068. /* HE 40 intolerant mark bit for ACS use */
  4069. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
  4070. /* HE 80 channel */
  4071. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
  4072. /* HE 160 channel */
  4073. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
  4074. /* HE 80+80 channel */
  4075. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
  4076. };
  4077. /**
  4078. * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
  4079. * each channel. This is used by
  4080. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
  4081. */
  4082. enum qca_wlan_vendor_channel_prop_flags_ext {
  4083. /* Radar found on channel */
  4084. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
  4085. /* DFS required on channel */
  4086. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
  4087. /* DFS required on channel for 2nd band of 80+80 */
  4088. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
  4089. /* If channel has been checked for DFS */
  4090. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
  4091. /* Excluded in 802.11d */
  4092. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
  4093. /* Channel Switch Announcement received on this channel */
  4094. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
  4095. /* Ad-hoc is not allowed */
  4096. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
  4097. /* Station only channel */
  4098. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
  4099. /* DFS radar history for slave device (STA mode) */
  4100. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
  4101. /* DFS CAC valid for slave device (STA mode) */
  4102. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
  4103. };
  4104. /**
  4105. * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
  4106. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
  4107. * information to start/stop the NUD statistics collection.
  4108. */
  4109. enum qca_attr_nud_stats_set {
  4110. QCA_ATTR_NUD_STATS_SET_INVALID = 0,
  4111. /*
  4112. * Flag to start/stop the NUD statistics collection.
  4113. * Start - If included, Stop - If not included
  4114. */
  4115. QCA_ATTR_NUD_STATS_SET_START = 1,
  4116. /* IPv4 address of the default gateway (in network byte order) */
  4117. QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
  4118. /*
  4119. * Represents the data packet type to be monitored.
  4120. * Host driver tracks the stats corresponding to each data frame
  4121. * represented by these flags.
  4122. * These data packets are represented by
  4123. * enum qca_wlan_vendor_nud_stats_set_data_pkt_info.
  4124. */
  4125. QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
  4126. /* keep last */
  4127. QCA_ATTR_NUD_STATS_SET_LAST,
  4128. QCA_ATTR_NUD_STATS_SET_MAX =
  4129. QCA_ATTR_NUD_STATS_SET_LAST - 1,
  4130. };
  4131. /**
  4132. * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd
  4133. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  4134. * information to start / stop the NUD stats collection.
  4135. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats
  4136. * Bitmap to Flag to Start / Stop the NUD stats collection
  4137. * Start - If included , Stop - If not included
  4138. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gateway ipv4 address
  4139. * IPv4 address of Default Gateway (in network byte order)
  4140. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  4141. * information to start / stop the NUD stats collection.
  4142. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats
  4143. * Flag to Start / Stop the NUD stats collection
  4144. * Start - If included , Stop - If not included
  4145. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gateway ipv4 address
  4146. * IPv4 address of Default Gateway (in network byte order)
  4147. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  4148. * information to start / stop the NUD stats collection.
  4149. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats
  4150. * Flag to Start / Stop the NUD stats collection
  4151. * Start - If included , Stop - If not included
  4152. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gateway ipv4 address
  4153. * IPv4 address of Default Gateway (in network byte order)
  4154. */
  4155. enum qca_attr_connectivity_check_stats_set {
  4156. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0,
  4157. QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1,
  4158. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2,
  4159. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3,
  4160. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4,
  4161. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5,
  4162. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6,
  4163. /* keep last */
  4164. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST,
  4165. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX =
  4166. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1,
  4167. };
  4168. /**
  4169. * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
  4170. * data types for which the stats have to get collected.
  4171. */
  4172. enum qca_wlan_vendor_connectivity_check_pkt_flags {
  4173. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0,
  4174. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1,
  4175. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2,
  4176. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3,
  4177. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4,
  4178. /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
  4179. * to represent the stats of respective data type.
  4180. */
  4181. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5,
  4182. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6,
  4183. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7,
  4184. };
  4185. enum qca_attr_connectivity_check_stats {
  4186. QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0,
  4187. /* Data packet type for which the stats are collected.
  4188. * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
  4189. */
  4190. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1,
  4191. /* ID corresponding to the DNS frame for which the respective DNS stats
  4192. * are monitored (u32).
  4193. */
  4194. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2,
  4195. /* source / destination port on which the respective proto stats are
  4196. * collected (u32).
  4197. */
  4198. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3,
  4199. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4,
  4200. /* IPv4/IPv6 address for which the destined data packets are
  4201. * monitored. (in network byte order)
  4202. */
  4203. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5,
  4204. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6,
  4205. /* Data packet Request count received from netdev */
  4206. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
  4207. /* Data packet Request count sent to lower MAC from upper MAC */
  4208. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
  4209. /* Data packet Request count received by lower MAC from upper MAC */
  4210. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
  4211. /* Data packet Request count successfully transmitted by the device */
  4212. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
  4213. /* Data packet Response count received by lower MAC */
  4214. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
  4215. /* Data packet Response count received by upper MAC */
  4216. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
  4217. /* Data packet Response count delivered to netdev */
  4218. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
  4219. /* Data Packet Response count that are dropped out of order */
  4220. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
  4221. /* keep last */
  4222. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST,
  4223. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX =
  4224. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1,
  4225. };
  4226. /**
  4227. * qca_attr_nud_stats_get: Attributes to vendor subcmd
  4228. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
  4229. * NUD statistics collected when queried.
  4230. */
  4231. enum qca_attr_nud_stats_get {
  4232. QCA_ATTR_NUD_STATS_GET_INVALID = 0,
  4233. /* ARP Request count from netdev */
  4234. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
  4235. /* ARP Request count sent to lower MAC from upper MAC */
  4236. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
  4237. /* ARP Request count received by lower MAC from upper MAC */
  4238. QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
  4239. /* ARP Request count successfully transmitted by the device */
  4240. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
  4241. /* ARP Response count received by lower MAC */
  4242. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
  4243. /* ARP Response count received by upper MAC */
  4244. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
  4245. /* ARP Response count delivered to netdev */
  4246. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
  4247. /* ARP Response count delivered to netdev */
  4248. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
  4249. /*
  4250. * Flag indicating if the station's link to the AP is active.
  4251. * Active Link - If included, Inactive link - If not included
  4252. */
  4253. QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
  4254. /*
  4255. * Flag indicating if there is any duplicate address detected (DAD).
  4256. * Yes - If detected, No - If not detected.
  4257. */
  4258. QCA_ATTR_NUD_STATS_IS_DAD = 10,
  4259. /*
  4260. * List of Data types for which the stats are requested.
  4261. * This list does not carry ARP stats as they are done by the
  4262. * above attributes. Represented by enum qca_attr_nud_data_stats.
  4263. */
  4264. QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
  4265. /* keep last */
  4266. QCA_ATTR_NUD_STATS_GET_LAST,
  4267. QCA_ATTR_NUD_STATS_GET_MAX =
  4268. QCA_ATTR_NUD_STATS_GET_LAST - 1,
  4269. };
  4270. enum qca_wlan_btm_candidate_status {
  4271. QCA_STATUS_ACCEPT = 0,
  4272. QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
  4273. QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
  4274. QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
  4275. QCA_STATUS_REJECT_LOW_RSSI = 4,
  4276. QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
  4277. QCA_STATUS_REJECT_UNKNOWN = 6,
  4278. };
  4279. enum qca_wlan_vendor_attr_btm_candidate_info {
  4280. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
  4281. /* 6-byte MAC address representing the BSSID of transition candidate */
  4282. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
  4283. /*
  4284. * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
  4285. * returned by the driver. It says whether the BSSID provided in
  4286. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
  4287. * the driver, if not it specifies the reason for rejection.
  4288. * Note that the user-space can overwrite the transition reject reason
  4289. * codes provided by driver based on more information.
  4290. */
  4291. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
  4292. /* keep last */
  4293. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
  4294. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
  4295. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
  4296. };
  4297. enum qca_attr_trace_level {
  4298. QCA_ATTR_TRACE_LEVEL_INVALID = 0,
  4299. /*
  4300. * Nested array of the following attributes:
  4301. * QCA_ATTR_TRACE_LEVEL_MODULE,
  4302. * QCA_ATTR_TRACE_LEVEL_MASK.
  4303. */
  4304. QCA_ATTR_TRACE_LEVEL_PARAM = 1,
  4305. /*
  4306. * Specific QCA host driver module. Please refer to the QCA host
  4307. * driver implementation to get the specific module ID.
  4308. */
  4309. QCA_ATTR_TRACE_LEVEL_MODULE = 2,
  4310. /* Different trace level masks represented in the QCA host driver. */
  4311. QCA_ATTR_TRACE_LEVEL_MASK = 3,
  4312. /* keep last */
  4313. QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
  4314. QCA_ATTR_TRACE_LEVEL_MAX =
  4315. QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
  4316. };
  4317. /**
  4318. * enum qca_wlan_vendor_attr_get_logger_features - value for logger
  4319. * supported features
  4320. * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid
  4321. * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features
  4322. * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum
  4323. * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type
  4324. *
  4325. * enum values are used for NL attributes for data used by
  4326. * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command.
  4327. */
  4328. enum qca_wlan_vendor_attr_get_logger_features {
  4329. QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
  4330. QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
  4331. /* keep last */
  4332. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
  4333. QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
  4334. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
  4335. };
  4336. /**
  4337. * enum qca_wlan_vendor_attr_link_properties - link properties
  4338. *
  4339. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value
  4340. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to
  4341. * specify the number of spatial streams negotiated
  4342. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value
  4343. * to specify negotiated rate flags i.e. ht, vht and channel width
  4344. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to
  4345. * specify the operating frequency
  4346. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer
  4347. * (STA / AP ) for the connected link.
  4348. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
  4349. * &struct nl80211_sta_flag_update for the respective connected link. MAC
  4350. * address of the peer represented by
  4351. * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
  4352. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last
  4353. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value
  4354. */
  4355. enum qca_wlan_vendor_attr_link_properties {
  4356. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
  4357. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1,
  4358. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2,
  4359. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3,
  4360. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
  4361. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
  4362. /* KEEP LAST */
  4363. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
  4364. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX =
  4365. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
  4366. };
  4367. /**
  4368. * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support
  4369. *
  4370. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid
  4371. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload
  4372. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum
  4373. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type
  4374. *
  4375. * enum values are used for NL attributes for data used by
  4376. * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command.
  4377. */
  4378. enum qca_wlan_vendor_attr_nd_offload {
  4379. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
  4380. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
  4381. /* Keep last */
  4382. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
  4383. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
  4384. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
  4385. };
  4386. /**
  4387. * enum qca_wlan_vendor_features - Vendor device/driver feature flags
  4388. *
  4389. * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
  4390. * management offload, a mechanism where the station's firmware
  4391. * does the exchange with the AP to establish the temporal keys
  4392. * after roaming, rather than having the user space wpa_supplicant do it.
  4393. * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
  4394. * band selection based on channel selection results.
  4395. * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
  4396. * simultaneous off-channel operations.
  4397. * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
  4398. * Listen offload; a mechanism where the station's firmware takes care of
  4399. * responding to incoming Probe Request frames received from other P2P
  4400. * Devices whilst in Listen state, rather than having the user space
  4401. * wpa_supplicant do it. Information from received P2P requests are
  4402. * forwarded from firmware to host whenever the host processor wakes up.
  4403. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
  4404. * specific features.
  4405. * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
  4406. * features.
  4407. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
  4408. * specific features only. If a Device sets this bit but not the
  4409. * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
  4410. * this Device may not support all OCE AP functionalities but can support
  4411. * only OCE STA-CFON functionalities.
  4412. * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
  4413. * managed regulatory.
  4414. * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
  4415. * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
  4416. * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
  4417. * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
  4418. * and applying thermal configuration through
  4419. * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
  4420. * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
  4421. * userspace.
  4422. * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
  4423. * With Adaptive 11r feature, access points advertise the vendor
  4424. * specific IEs and MDE but do not include FT AKM in the RSNE.
  4425. * The Adaptive 11r supported stations are expected to identify
  4426. * such vendor specific IEs and connect to the AP in FT mode though
  4427. * the profile is configured in non-FT mode.
  4428. * The driver-based SME cases also need to have this support for
  4429. * Adaptive 11r to handle the connection and roaming scenarios.
  4430. * This flag indicates the support for the same to the user space.
  4431. * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
  4432. * concurrent network sessions on different Wi-Fi Bands. This feature
  4433. * capability is attributed to the hardware's capability to support
  4434. * the same (e.g., DBS).
  4435. * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
  4436. * responses for the respective TWT operations are asynchronous (separate)
  4437. * event message) from the driver. If not specified, the responses are
  4438. * synchronous (in vendor command reply) to the request. Each TWT
  4439. * operation is specifically mentioned (against its respective)
  4440. * documentation) to support either of these or both modes.
  4441. * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
  4442. * that the driver requires add/del virtual interface path using the
  4443. * generic nl80211 commands for NDP interface create/delete and to
  4444. * register/unregister the netdev instead of creating/deleting the NDP
  4445. * interface using the vendor commands
  4446. * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
  4447. * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
  4448. * (5.12 version onward), interface creation/deletion is not allowed using
  4449. * vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
  4450. * during the register/unregister of netdev. Create and delete NDP
  4451. * interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
  4452. * commands respectively if the driver advertises this capability set.
  4453. * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in
  4454. * station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is
  4455. * set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored.
  4456. * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP
  4457. * mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then
  4458. * QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored.
  4459. * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in
  4460. * station mode supports secure RTT measurement exchange. If
  4461. * NL80211_EXT_FEATURE_SECURE_RTT is set,
  4462. * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored.
  4463. * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP
  4464. * mode supports secure RTT measurement exchange. If
  4465. * NL80211_EXT_FEATURE_SECURE_RTT is set,
  4466. * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored.
  4467. * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that
  4468. * the device in station mode supports protection of range negotiation and
  4469. * measurement management frames. If
  4470. * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
  4471. * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored.
  4472. * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that
  4473. * the device in AP mode supports protection of range negotiation and
  4474. * measurement management frames. If
  4475. * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
  4476. * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored.
  4477. * @QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST: Flag indicates that the device
  4478. * in AP mode supports configuring allowed frequency list for AP operation
  4479. * with %QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST.
  4480. * @QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN: Flag indicates
  4481. * that the device supports enhanced audio experience over WLAN feature.
  4482. * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
  4483. */
  4484. enum qca_wlan_vendor_features {
  4485. QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
  4486. QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
  4487. QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
  4488. QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
  4489. QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
  4490. QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
  4491. QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
  4492. QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
  4493. QCA_WLAN_VENDOR_FEATURE_TWT = 8,
  4494. QCA_WLAN_VENDOR_FEATURE_11AX = 9,
  4495. QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
  4496. QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
  4497. QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
  4498. QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
  4499. QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
  4500. QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
  4501. QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA = 16,
  4502. QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP = 17,
  4503. QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA = 18,
  4504. QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP = 19,
  4505. QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20,
  4506. QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21,
  4507. QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST = 22,
  4508. QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN = 23,
  4509. NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
  4510. };
  4511. /**
  4512. * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP
  4513. * conditional channel switch
  4514. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial
  4515. * value
  4516. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based
  4517. * frequency list (an array of u32 values in host byte order)
  4518. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the
  4519. * conditional switch (u32)- 0: Success, Non-zero: Failure
  4520. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last
  4521. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max
  4522. */
  4523. enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
  4524. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
  4525. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
  4526. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
  4527. /* Keep Last */
  4528. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
  4529. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
  4530. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
  4531. };
  4532. /**
  4533. * enum wifi_logger_supported_features - values for supported logger features
  4534. * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW
  4535. * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics
  4536. * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events
  4537. * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver
  4538. * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver
  4539. * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health
  4540. * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump
  4541. * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate
  4542. */
  4543. enum wifi_logger_supported_features {
  4544. WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)),
  4545. WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)),
  4546. WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)),
  4547. WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)),
  4548. WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)),
  4549. WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)),
  4550. WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)),
  4551. WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)),
  4552. WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8))
  4553. };
  4554. /**
  4555. * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get
  4556. * capabilities features
  4557. */
  4558. enum qca_wlan_tdls_caps_features_supported {
  4559. WIFI_TDLS_SUPPORT = (1 << (0)),
  4560. WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)),
  4561. WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2)),
  4562. /* Indicates if the TDLS session can be formed with the peer using
  4563. * higher bandwidth than the bandwidth of the AP path.
  4564. */
  4565. WIFI_TDLS_WIDER_BW_SUPPORT = (1 << (3)),
  4566. };
  4567. /**
  4568. * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
  4569. * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
  4570. *
  4571. * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
  4572. * Used with event to notify the primary channel number selected in ACS
  4573. * operation.
  4574. * Note: If both the driver and user-space application supports the 6 GHz band,
  4575. * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
  4576. * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
  4577. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
  4578. * is still used if either of the driver or user space application doesn't
  4579. * support the 6 GHz band.
  4580. *
  4581. * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
  4582. * Used with event to notify the secondary channel number selected in ACS
  4583. * operation.
  4584. * Note: If both the driver and user-space application supports the 6 GHz band,
  4585. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
  4586. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
  4587. * To maintain backward compatibility,
  4588. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
  4589. * the driver or user space application doesn't support 6 GHz band.
  4590. *
  4591. * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
  4592. * (a) Used with command to configure hw_mode from
  4593. * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
  4594. * (b) Also used with event to notify the hw_mode of selected primary channel
  4595. * in ACS operation.
  4596. *
  4597. * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
  4598. * Used with command to configure ACS operation for HT mode.
  4599. * Disable (flag attribute not present) - HT disabled and
  4600. * Enable (flag attribute present) - HT enabled.
  4601. *
  4602. * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
  4603. * Used with command to configure ACS operation for HT40 mode.
  4604. * Disable (flag attribute not present) - HT40 disabled and
  4605. * Enable (flag attribute present) - HT40 enabled.
  4606. *
  4607. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
  4608. * Used with command to configure ACS operation for VHT mode.
  4609. * Disable (flag attribute not present) - VHT disabled and
  4610. * Enable (flag attribute present) - VHT enabled.
  4611. *
  4612. * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
  4613. * mandatory with event.
  4614. * If specified in command path, ACS operation is configured with the given
  4615. * channel width (in MHz).
  4616. * In event path, specifies the channel width of the primary channel selected.
  4617. *
  4618. * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
  4619. * Used with command to configure channel list using an array of
  4620. * channel numbers (u8).
  4621. * Note: If both the driver and user-space application supports the 6 GHz band,
  4622. * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
  4623. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
  4624. *
  4625. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
  4626. * Used with event to notify the VHT segment 0 center channel number selected in
  4627. * ACS operation.
  4628. * Note: If both the driver and user-space application supports the 6 GHz band,
  4629. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
  4630. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
  4631. * To maintain backward compatibility,
  4632. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
  4633. * the driver or user space application doesn't support the 6 GHz band.
  4634. *
  4635. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
  4636. * Used with event to notify the VHT segment 1 center channel number selected in
  4637. * ACS operation.
  4638. * Note: If both the driver and user-space application supports the 6 GHz band,
  4639. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
  4640. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
  4641. * To maintain backward compatibility,
  4642. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
  4643. * the driver or user space application doesn't support the 6 GHz band.
  4644. *
  4645. * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
  4646. * Used with command to configure the channel list using an array of channel
  4647. * center frequencies in MHz (u32).
  4648. * Note: If both the driver and user-space application supports the 6 GHz band,
  4649. * the driver first parses the frequency list and if it fails to get a frequency
  4650. * list, parses the channel list specified using
  4651. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
  4652. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
  4653. *
  4654. * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
  4655. * Used with event to notify the primary channel center frequency (MHz) selected
  4656. * in ACS operation.
  4657. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4658. * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
  4659. *
  4660. * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
  4661. * Used with event to notify the secondary channel center frequency (MHz)
  4662. * selected in ACS operation.
  4663. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4664. * includes this attribute along with
  4665. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
  4666. *
  4667. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
  4668. * Used with event to notify the VHT segment 0 center channel frequency (MHz)
  4669. * selected in ACS operation.
  4670. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4671. * includes this attribute along with
  4672. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
  4673. *
  4674. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
  4675. * Used with event to notify the VHT segment 1 center channel frequency (MHz)
  4676. * selected in ACS operation.
  4677. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4678. * includes this attribute along with
  4679. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
  4680. *
  4681. * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
  4682. * Used with command to notify the driver of EDMG request for ACS
  4683. * operation.
  4684. *
  4685. * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
  4686. * Used with event to notify the EDMG channel number selected in ACS
  4687. * operation.
  4688. * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
  4689. *
  4690. * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
  4691. * Used with event to notify the puncture pattern selected in ACS operation.
  4692. * Encoding for this attribute will follow the convention used in the Disabled
  4693. * Subchannel Bitmap field of the EHT Operation IE.
  4694. *
  4695. * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
  4696. * Used with command to configure ACS operation for EHT mode.
  4697. * Disable (flag attribute not present) - EHT disabled and
  4698. * Enable (flag attribute present) - EHT enabled.
  4699. *
  4700. * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
  4701. * Used with command to configure how older scan can be considered for ACS
  4702. * scoring. In case scan was performed on partial set of channels configured
  4703. * with this command, within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
  4704. * (in ms), then scan only remaining channels.
  4705. */
  4706. enum qca_wlan_vendor_attr_acs_offload {
  4707. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
  4708. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
  4709. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
  4710. QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
  4711. QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
  4712. QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
  4713. QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
  4714. QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
  4715. QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
  4716. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
  4717. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
  4718. QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
  4719. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
  4720. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
  4721. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
  4722. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
  4723. QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
  4724. QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
  4725. QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
  4726. QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
  4727. QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
  4728. /* keep last */
  4729. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
  4730. QCA_WLAN_VENDOR_ATTR_ACS_MAX =
  4731. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
  4732. };
  4733. /**
  4734. * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
  4735. * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
  4736. *
  4737. * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
  4738. * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
  4739. * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
  4740. * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
  4741. * @QCA_ACS_MODE_IEEE80211ANY: all modes
  4742. * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
  4743. */
  4744. enum qca_wlan_vendor_acs_hw_mode {
  4745. QCA_ACS_MODE_IEEE80211B,
  4746. QCA_ACS_MODE_IEEE80211G,
  4747. QCA_ACS_MODE_IEEE80211A,
  4748. QCA_ACS_MODE_IEEE80211AD,
  4749. QCA_ACS_MODE_IEEE80211ANY,
  4750. QCA_ACS_MODE_IEEE80211AX,
  4751. };
  4752. /**
  4753. * enum qca_access_policy - access control policy
  4754. *
  4755. * Access control policy is applied on the configured IE
  4756. * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
  4757. * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
  4758. *
  4759. * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match
  4760. *» with the specific configuration (IE) set, i.e. allow all the
  4761. *» connections which do not match the configuration.
  4762. * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match
  4763. *» with the specific configuration (IE) set, i.e. deny all the
  4764. *» connections which do not match the configuration.
  4765. */
  4766. enum qca_access_policy {
  4767. QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
  4768. QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
  4769. };
  4770. /**
  4771. * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values
  4772. *
  4773. * The valid values for the ignore assoc disallowed
  4774. *
  4775. * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed
  4776. * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed
  4777. *
  4778. */
  4779. enum qca_ignore_assoc_disallowed {
  4780. QCA_IGNORE_ASSOC_DISALLOWED_DISABLE,
  4781. QCA_IGNORE_ASSOC_DISALLOWED_ENABLE
  4782. };
  4783. /* Attributes for data used by
  4784. * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
  4785. * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
  4786. */
  4787. #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES\
  4788. QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
  4789. #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL\
  4790. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
  4791. #define QCA_WLAN_VENDOR_ATTR_ROAM_REASON\
  4792. QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON
  4793. enum qca_wlan_vendor_attr_config {
  4794. QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
  4795. /*
  4796. * Unsigned 32-bit value to set the DTIM period.
  4797. * Whether the wifi chipset wakes at every dtim beacon or a multiple of
  4798. * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
  4799. * DTIM beacons.
  4800. */
  4801. QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1,
  4802. /*
  4803. * Unsigned 32-bit value to set the wifi_iface stats averaging factor
  4804. * used to calculate statistics like average the TSF offset or average
  4805. * number of frame leaked.
  4806. * For instance, upon Beacon frame reception:
  4807. * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
  4808. * For instance, when evaluating leaky APs:
  4809. * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
  4810. */
  4811. QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
  4812. /*
  4813. * Unsigned 32-bit value to configure guard time, i.e., when
  4814. * implementing IEEE power management based on frame control PM bit, how
  4815. * long the driver waits before shutting down the radio and after
  4816. * receiving an ACK frame for a Data frame with PM bit set.
  4817. */
  4818. QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
  4819. /* Unsigned 32-bit value to change the FTM capability dynamically */
  4820. QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
  4821. /* Unsigned 16-bit value to configure maximum TX rate dynamically */
  4822. QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
  4823. /*
  4824. * Unsigned 32-bit value to configure the number of continuous
  4825. * Beacon Miss which shall be used by the firmware to penalize
  4826. * the RSSI.
  4827. */
  4828. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
  4829. /*
  4830. * Unsigned 8-bit value to configure the channel avoidance indication
  4831. * behavior. Firmware to send only one indication and ignore duplicate
  4832. * indications when set to avoid multiple Apps wakeups.
  4833. */
  4834. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
  4835. /*
  4836. * 8-bit unsigned value to configure the maximum TX MPDU for
  4837. * aggregation.
  4838. */
  4839. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
  4840. /*
  4841. * 8-bit unsigned value to configure the maximum RX MPDU for
  4842. * aggregation.
  4843. */
  4844. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
  4845. /*
  4846. * 8-bit unsigned value to configure the Non aggregate/11g sw
  4847. * retry threshold (0 disable, 31 max).
  4848. */
  4849. QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
  4850. /*
  4851. * 8-bit unsigned value to configure the aggregate sw
  4852. * retry threshold (0 disable, 31 max).
  4853. */
  4854. QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
  4855. /*
  4856. * 8-bit unsigned value to configure the MGMT frame
  4857. * retry threshold (0 disable, 31 max).
  4858. */
  4859. QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
  4860. /*
  4861. * 8-bit unsigned value to configure the CTRL frame
  4862. * retry threshold (0 disable, 31 max).
  4863. */
  4864. QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
  4865. /*
  4866. * 8-bit unsigned value to configure the propagation delay for
  4867. * 2G/5G band (0~63, units in us)
  4868. */
  4869. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
  4870. /*
  4871. * Unsigned 32-bit value to configure the number of unicast TX fail
  4872. * packet count. The peer is disconnected once this threshold is
  4873. * reached.
  4874. */
  4875. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
  4876. /*
  4877. * Attribute used to set scan default IEs to the driver.
  4878. *
  4879. * These IEs can be used by scan operations that will be initiated by
  4880. * the driver/firmware.
  4881. *
  4882. * For further scan requests coming to the driver, these IEs should be
  4883. * merged with the IEs received along with scan request coming to the
  4884. * driver. If a particular IE is present in the scan default IEs but not
  4885. * present in the scan request, then that IE should be added to the IEs
  4886. * sent in the Probe Request frames for that scan request.
  4887. */
  4888. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
  4889. /* Unsigned 32-bit attribute for generic commands */
  4890. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
  4891. /* Unsigned 32-bit value attribute for generic commands */
  4892. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
  4893. /* Unsigned 32-bit data attribute for generic command response */
  4894. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
  4895. /*
  4896. * Unsigned 32-bit length attribute for
  4897. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  4898. */
  4899. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
  4900. /*
  4901. * Unsigned 32-bit flags attribute for
  4902. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  4903. */
  4904. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
  4905. /*
  4906. * Unsigned 32-bit, defining the access policy.
  4907. * See enum qca_access_policy. Used with
  4908. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
  4909. */
  4910. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
  4911. /*
  4912. * Sets the list of full set of IEs for which a specific access policy
  4913. * has to be applied. Used along with
  4914. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
  4915. * Zero length payload can be used to clear this access constraint.
  4916. */
  4917. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
  4918. /*
  4919. * Unsigned 32-bit, specifies the interface index (netdev) for which the
  4920. * corresponding configurations are applied. If the interface index is
  4921. * not specified, the configurations are attributed to the respective
  4922. * wiphy.
  4923. */
  4924. QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
  4925. /*
  4926. * 8-bit unsigned value to trigger QPower:
  4927. * 1-Enable, 0-Disable
  4928. */
  4929. QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
  4930. /*
  4931. * 8-bit unsigned value to configure the driver and below layers to
  4932. * ignore the assoc disallowed set by APs while connecting
  4933. * 1-Ignore, 0-Don't ignore
  4934. */
  4935. QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
  4936. /*
  4937. * 32-bit unsigned value to trigger antenna diversity features:
  4938. * 1-Enable, 0-Disable
  4939. */
  4940. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
  4941. /* 32-bit unsigned value to configure specific chain antenna */
  4942. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
  4943. /*
  4944. * 32-bit unsigned value to trigger cycle selftest
  4945. * 1-Enable, 0-Disable
  4946. */
  4947. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
  4948. /*
  4949. * 32-bit unsigned to configure the cycle time of selftest
  4950. * the unit is micro-second
  4951. */
  4952. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
  4953. /* 32-bit unsigned value to set reorder timeout for AC_VO */
  4954. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
  4955. /* 32-bit unsigned value to set reorder timeout for AC_VI */
  4956. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
  4957. /* 32-bit unsigned value to set reorder timeout for AC_BE */
  4958. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
  4959. /* 32-bit unsigned value to set reorder timeout for AC_BK */
  4960. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
  4961. /* 6-byte MAC address to point out the specific peer */
  4962. QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC = 35,
  4963. /* Backward compatibility with the original name */
  4964. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC =
  4965. QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC,
  4966. /* 32-bit unsigned value to set window size for specific peer */
  4967. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
  4968. /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
  4969. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
  4970. /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
  4971. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
  4972. /*
  4973. * 32-bit unsigned value to configure 5 or 10 MHz channel width for
  4974. * station device while in disconnect state. The attribute use the
  4975. * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
  4976. * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
  4977. * 10 MHz channel width, the station will not connect to a BSS using 20
  4978. * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
  4979. * clear this constraint.
  4980. */
  4981. QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
  4982. /*
  4983. * 32-bit unsigned value to configure the propagation absolute delay
  4984. * for 2G/5G band (units in us)
  4985. */
  4986. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
  4987. /* 32-bit unsigned value to set probe period */
  4988. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
  4989. /* 32-bit unsigned value to set stay period */
  4990. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
  4991. /* 32-bit unsigned value to set snr diff */
  4992. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
  4993. /* 32-bit unsigned value to set probe dwell time */
  4994. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
  4995. /* 32-bit unsigned value to set mgmt snr weight */
  4996. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
  4997. /* 32-bit unsigned value to set data snr weight */
  4998. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
  4999. /* 32-bit unsigned value to set ack snr weight */
  5000. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
  5001. /*
  5002. * 32-bit unsigned value to configure the listen interval.
  5003. * This is in units of beacon intervals. This configuration alters
  5004. * the negotiated listen interval with the AP during the connection.
  5005. * It is highly recommended to configure a value less than or equal to
  5006. * the one negotiated during the association. Configuring any greater
  5007. * value can have adverse effects (frame loss, AP disassociating STA,
  5008. * etc.).
  5009. */
  5010. QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
  5011. /*
  5012. * 8 bit unsigned value that is set on an AP/GO virtual interface to
  5013. * disable operations that would cause the AP/GO to leave its operating
  5014. * channel.
  5015. *
  5016. * This will restrict the scans to the AP/GO operating channel and the
  5017. * channels of the other band, if DBS is supported.A STA/CLI interface
  5018. * brought up after this setting is enabled, will be restricted to
  5019. * connecting to devices only on the AP/GO interface's operating channel
  5020. * or on the other band in DBS case. P2P supported channel list is
  5021. * modified, to only include AP interface's operating-channel and the
  5022. * channels of the other band if DBS is supported.
  5023. *
  5024. * These restrictions are only applicable as long as the AP/GO interface
  5025. * is alive. If the AP/GO interface is brought down then this
  5026. * setting/restriction is forgotten.
  5027. *
  5028. * If this variable is set on an AP/GO interface while a multi-channel
  5029. * concurrent session is active, it has no effect on the operation of
  5030. * the current interfaces, other than restricting the scan to the AP/GO
  5031. * operating channel and the other band channels if DBS is supported.
  5032. * However, if the STA is brought down and restarted then the new STA
  5033. * connection will either be formed on the AP/GO channel or on the
  5034. * other band in a DBS case. This is because of the scan being
  5035. * restricted on these channels as mentioned above.
  5036. *
  5037. * 1-Disable offchannel operations, 0-Enable offchannel operations.
  5038. */
  5039. QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
  5040. /*
  5041. * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
  5042. * on an interface.
  5043. * 1 - Enable , 0 - Disable.
  5044. */
  5045. QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
  5046. /*
  5047. * 8 bit unsigned value to globally enable/disable scan
  5048. * 1 - Enable, 0 - Disable.
  5049. */
  5050. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
  5051. /* 8-bit unsigned value to set the total beacon miss count */
  5052. QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
  5053. /*
  5054. * Unsigned 32-bit value to configure the number of continuous
  5055. * Beacon Miss which shall be used by the firmware to penalize
  5056. * the RSSI for BTC.
  5057. */
  5058. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
  5059. /*
  5060. * 8-bit unsigned value to configure the driver and below layers to
  5061. * enable/disable all fils features.
  5062. * 0-enable, 1-disable
  5063. */
  5064. QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
  5065. /* 16-bit unsigned value to configure the level of WLAN latency
  5066. * module. See enum qca_wlan_vendor_attr_config_latency_level.
  5067. */
  5068. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
  5069. /*
  5070. * 8-bit unsigned value indicating the driver to use the RSNE as-is from
  5071. * the connect interface. Exclusively used for the scenarios where the
  5072. * device is used as a test bed device with special functionality and
  5073. * not recommended for production. This helps driver to not validate the
  5074. * RSNE passed from user space and thus allow arbitrary IE data to be
  5075. * used for testing purposes.
  5076. * 1-enable, 0-disable.
  5077. * Applications set/reset this configuration. If not reset, this
  5078. * parameter remains in use until the driver is unloaded.
  5079. */
  5080. QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
  5081. /*
  5082. * 8-bit unsigned value to trigger green Tx power saving.
  5083. * 1-Enable, 0-Disable
  5084. */
  5085. QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
  5086. /*
  5087. * Attribute to configure disconnect IEs to the driver.
  5088. * This carries an array of unsigned 8-bit characters.
  5089. *
  5090. * If this is configured, driver shall fill the IEs in disassoc/deauth
  5091. * frame.
  5092. * These IEs are expected to be considered only for the next
  5093. * immediate disconnection (disassoc/deauth frame) originated by
  5094. * the DUT, irrespective of the entity (user space/driver/firmware)
  5095. * triggering the disconnection.
  5096. * The host drivers are not expected to use the IEs set through
  5097. * this interface for further disconnections after the first immediate
  5098. * disconnection initiated post the configuration.
  5099. * If the IEs are also updated through cfg80211 interface (after the
  5100. * enhancement to cfg80211_disconnect), host driver is expected to
  5101. * take the union of IEs from both of these interfaces and send in
  5102. * further disassoc/deauth frames.
  5103. */
  5104. QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
  5105. /* 8-bit unsigned value for ELNA bypass.
  5106. * 0 - Disable eLNA bypass.
  5107. * 1 - Enable eLNA bypass.
  5108. * 2 - Reset eLNA bypass configuration, the driver should
  5109. * revert to the default configuration of eLNA bypass.
  5110. */
  5111. QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
  5112. /* 8-bit unsigned value. This attribute enables/disables the host driver
  5113. * to send the Beacon Report response with failure reason for the
  5114. * scenarios where STA cannot honor the Beacon report request from AP.
  5115. * 1-Enable, 0-Disable.
  5116. */
  5117. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
  5118. /* 8-bit unsigned value. This attribute enables/disables the host driver
  5119. * to send roam reason information in the reassociation request to the
  5120. * AP. 1-Enable, 0-Disable.
  5121. */
  5122. QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
  5123. /* 32-bit unsigned value to configure different PHY modes to the
  5124. * driver/firmware. The possible values are defined in
  5125. * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
  5126. * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
  5127. * the driver.
  5128. */
  5129. QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
  5130. /* 8-bit unsigned value to configure the maximum supported channel width
  5131. * for STA mode. If this value is configured when STA is in connected
  5132. * state, it should not exceed the negotiated channel width. If it is
  5133. * configured when STA is in disconnected state, the configured value
  5134. * will take effect for the next immediate connection.
  5135. * This configuration can be sent inside
  5136. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum
  5137. * supported channel width per-MLO link.
  5138. *
  5139. * This uses values defined in enum nl80211_chan_width.
  5140. */
  5141. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
  5142. /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
  5143. * This attribute is only applicable for STA mode. When dynamic
  5144. * bandwidth adjustment is disabled, STA will use static channel width
  5145. * the value of which is negotiated during connection.
  5146. * 1-enable (default), 0-disable
  5147. */
  5148. QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
  5149. /* 8-bit unsigned value to configure the maximum number of subframes of
  5150. * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
  5151. * it is decided by hardware.
  5152. */
  5153. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
  5154. /* 8-bit unsigned value to configure the maximum number of subframes of
  5155. * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
  5156. * it is decided by hardware.
  5157. */
  5158. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
  5159. /* 8-bit unsigned value. This attribute is used to dynamically
  5160. * enable/disable the LDPC capability of the device. When configured in
  5161. * the disconnected state, the updated configuration will be considered
  5162. * for the immediately following connection attempt. If this
  5163. * configuration is modified while the device is in the connected state,
  5164. * the LDPC TX will be updated with this configuration immediately,
  5165. * while the LDPC RX configuration update will take place starting from
  5166. * the subsequent association attempt.
  5167. * 1-Enable, 0-Disable.
  5168. */
  5169. QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
  5170. /* 8-bit unsigned value. This attribute is used to dynamically
  5171. * enable/disable the TX STBC capability of the device. When configured
  5172. * in the disconnected state, the updated configuration will be
  5173. * considered for the immediately following connection attempt. If the
  5174. * connection is formed with TX STBC enabled and if this configuration
  5175. * is disabled during that association, the TX will be impacted
  5176. * immediately. Further connection attempts will disable TX STBC.
  5177. * However, enabling the TX STBC for a connected session with disabled
  5178. * capability is not allowed and will fail.
  5179. * 1-Enable, 0-Disable.
  5180. */
  5181. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
  5182. /* 8-bit unsigned value. This attribute is used to dynamically
  5183. * enable/disable the RX STBC capability of the device. When configured
  5184. * in the disconnected state, the updated configuration will be
  5185. * considered for the immediately following connection attempt. If the
  5186. * configuration is modified in the connected state, there will be no
  5187. * impact for the current association, but further connection attempts
  5188. * will use the updated configuration.
  5189. * 1-Enable, 0-Disable.
  5190. */
  5191. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
  5192. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5193. * the number of spatial streams. When configured in the disconnected
  5194. * state, the updated configuration will be considered for the
  5195. * immediately following connection attempt. If the NSS is updated after
  5196. * the connection, the updated NSS value is notified to the peer using
  5197. * the Operating Mode Notification/Spatial Multiplexing Power Save
  5198. * frame. The updated NSS value after the connection shall not be
  5199. * greater than the one negotiated during the connection. Any such
  5200. * higher value configuration shall be returned with a failure.
  5201. * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
  5202. * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
  5203. * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
  5204. * configure the asymmetric NSS configuration (such as 1X2).
  5205. */
  5206. QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
  5207. /* 8-bit unsigned value to configure Optimized Power Management mode:
  5208. * Modes are defined by enum qca_wlan_vendor_opm_mode.
  5209. *
  5210. * This attribute shall be configured along with
  5211. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
  5212. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes
  5213. * when its value is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED.
  5214. */
  5215. QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
  5216. /* 8-bit unsigned value. This attribute takes the QOS/access category
  5217. * value represented by the enum qca_wlan_ac_type and expects the driver
  5218. * to upgrade the UDP frames to this QOS. The value of QCA_WLAN_AC_ALL
  5219. * is invalid for this attribute. This will override the DSCP value
  5220. * configured in the frame with the intention to only upgrade the QOS.
  5221. * That said, it is not intended to downgrade the QOS for the frames.
  5222. * Set the value to 0 ( corresponding to BE ) if the QOS upgrade needs
  5223. * to disable.
  5224. *
  5225. * If only UDP frames of BE or BK access category needs to be upgraded
  5226. * without changing the access category of VO or VI UDP frames, refer to
  5227. * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK.
  5228. *
  5229. * This attribute is not recommended to be used as it blindly forces all
  5230. * UDP packets to a higher access category which could impact the
  5231. * traffic pattern of all apps using UDP and can cause unknown behavior.
  5232. */
  5233. QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
  5234. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5235. * the number of chains to be used for transmitting data. This
  5236. * configuration is allowed only when in connected state and will be
  5237. * effective until disconnected. The driver rejects this configuration
  5238. * if the number of spatial streams being used in the current connection
  5239. * cannot be supported by this configuration.
  5240. */
  5241. QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
  5242. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5243. * the number of chains to be used for receiving data. This
  5244. * configuration is allowed only when in connected state and will be
  5245. * effective until disconnected. The driver rejects this configuration
  5246. * if the number of spatial streams being used in the current connection
  5247. * cannot be supported by this configuration.
  5248. */
  5249. QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
  5250. /* 8-bit unsigned value to configure ANI setting type.
  5251. * See &enum qca_wlan_ani_setting for possible values.
  5252. */
  5253. QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
  5254. /* 32-bit signed value to configure ANI level. This is used when
  5255. * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
  5256. * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
  5257. * is invalid, the driver will return a failure.
  5258. */
  5259. QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
  5260. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5261. * the number of spatial streams used for transmitting the data. When
  5262. * configured in the disconnected state, the configured value will
  5263. * be considered for the following connection attempt.
  5264. * If the NSS is updated after the connection, the updated NSS value
  5265. * is notified to the peer using the Operating Mode Notification/Spatial
  5266. * Multiplexing Power Save frame.
  5267. * The TX NSS value configured after the connection shall not be greater
  5268. * than the value negotiated during the connection. Any such higher
  5269. * value configuration shall be treated as invalid configuration by
  5270. * the driver. This attribute shall be configured along with
  5271. * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
  5272. * configuration (such as 2X2 or 1X1) or the asymmetric
  5273. * configuration (such as 1X2).
  5274. * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
  5275. * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
  5276. * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
  5277. */
  5278. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
  5279. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5280. * the number of spatial streams used for receiving the data. When
  5281. * configured in the disconnected state, the configured value will
  5282. * be considered for the following connection attempt.
  5283. * If the NSS is updated after the connection, the updated NSS value
  5284. * is notified to the peer using the Operating Mode Notification/Spatial
  5285. * Multiplexing Power Save frame.
  5286. * The RX NSS value configured after the connection shall not be greater
  5287. * than the value negotiated during the connection. Any such higher
  5288. * value configuration shall be treated as invalid configuration by
  5289. * the driver. This attribute shall be configured along with
  5290. * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
  5291. * configuration (such as 2X2 or 1X1) or the asymmetric
  5292. * configuration (such as 1X2).
  5293. * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
  5294. * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
  5295. * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
  5296. */
  5297. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
  5298. /*
  5299. * 8-bit unsigned value. This attribute, when set, indicates whether the
  5300. * specified interface is the primary STA interface when there are more
  5301. * than one STA interfaces concurrently active.
  5302. *
  5303. * This configuration helps the firmware/hardware to support certain
  5304. * features (e.g., roaming) on this primary interface, if the same
  5305. * cannot be supported on the concurrent STA interfaces simultaneously.
  5306. *
  5307. * This configuration is only applicable for a single STA interface on
  5308. * a device and gives the priority for it only over other concurrent STA
  5309. * interfaces.
  5310. *
  5311. * If the device is a multi wiphy/soc, this configuration applies to a
  5312. * single STA interface across the wiphys.
  5313. *
  5314. * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
  5315. */
  5316. QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
  5317. /*
  5318. * 8-bit unsigned value. This attribute can be used to configure the
  5319. * driver to enable/disable FT-over-DS feature. Possible values for
  5320. * this attribute are 1-Enable and 0-Disable.
  5321. */
  5322. QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
  5323. /*
  5324. * 8-bit unsigned value. This attribute can be used to configure the
  5325. * firmware to enable/disable ARP/NS offload feature. Possible values
  5326. * for this attribute are 0-Disable and 1-Enable.
  5327. *
  5328. * This attribute is only applicable for STA/P2P-Client interface,
  5329. * and is optional, default behavior is APR/NS offload Enable.
  5330. *
  5331. * This attribute can be set in disconncted and connected state, and
  5332. * will restore to default behavior if interface is closed.
  5333. */
  5334. QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
  5335. /*
  5336. * 8-bit unsigned value. This attribute can be used to configure the
  5337. * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values
  5338. * for this attribute are defined in the enum qca_dbam_config.
  5339. */
  5340. QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
  5341. /* 8-bit unsigned value. This attribute takes the QoS/access category
  5342. * value represented by the enum qca_wlan_ac_type and expects the driver
  5343. * to upgrade the UDP frames of BE or BK access category to this access
  5344. * category. This attribute will not modify UDP frames of VO or VI
  5345. * access category. The value of QCA_WLAN_AC_ALL is invalid for this
  5346. * attribute.
  5347. *
  5348. * This will override the DSCP value configured in the frame with the
  5349. * intention to only upgrade the access category. That said, it is not
  5350. * intended to downgrade the access category for the frames.
  5351. * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
  5352. * disabled, as BK is of the lowest priority and an upgrade to it does
  5353. * not result in any changes for the frames.
  5354. *
  5355. * This attribute behavior is similar to
  5356. * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that
  5357. * only UDP frames of BE or BK access category are upgraded and not
  5358. * UDP frames of VI or VO access category.
  5359. *
  5360. * This attribute is not recommended to be used as it blindly forces all
  5361. * UDP packets of BE or BK access category to a higher access category
  5362. * which could impact the traffic pattern of all apps using UDP and can
  5363. * cause unknown behavior.
  5364. */
  5365. QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84,
  5366. /* 8-bit unsigned value to configure the driver to enable/disable the
  5367. * periodic sounding for Tx beamformer functionality. The default
  5368. * behavior uses algorithm to do sounding based on packet stats.
  5369. *
  5370. * 0 - Default behavior.
  5371. * 1 - Enable the periodic sounding for Tx beamformer.
  5372. * This attribute is used for testing purposes.
  5373. */
  5374. QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85,
  5375. /* 8-bit unsigned value, whenever wifi calling (wfc) begin or end,
  5376. * Userspace sends this information to driver/firmware to configure
  5377. * wfc state. Driver/Firmware uses this information to
  5378. * optimize power savings, rate adaption, roaming, etc.
  5379. *
  5380. * 1 - wfc is on.
  5381. * 0 - wfc is off.
  5382. */
  5383. QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86,
  5384. /* 8-bit unsigned value to configure the driver to enable/disable the
  5385. * EHT EML capability in management frame EHT capabilities.
  5386. * 1 - Enable, 0 - Disable.
  5387. */
  5388. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_EML_CAPABILITY = 87,
  5389. /* 8-bit unsigned value to configure the driver with EHT MLO max
  5390. * simultaneous links to be used for MLO connection.
  5391. * The range of the value is 0 to 14.
  5392. */
  5393. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_SIMULTANEOUS_LINKS = 88,
  5394. /* 8-bit unsigned value to configure the driver with EHT MLO maximum
  5395. * number of links to be used for MLO connection.
  5396. * The range of the value is 1 to 16.
  5397. */
  5398. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_NUM_LINKS = 89,
  5399. /* 8-bit unsigned value to configure the driver with EHT MLO mode.
  5400. * Uses enum qca_wlan_eht_mlo_mode values.
  5401. */
  5402. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MODE = 90,
  5403. /* Nested attribute with frequencies in u32 attributes to configure a
  5404. * list of allowed 20 MHz channel center frequencies in MHz for AP
  5405. * operation. Whenever performing a channel selection operation, the
  5406. * driver shall generate a new list based on this provided list by
  5407. * filtering out channels that cannot be used at that time due to
  5408. * regulatory or other constraints. The resulting list is used as the
  5409. * list of all allowed channels, i.e., operation on any channel that is
  5410. * not included is not allowed, whenever performing operations like ACS
  5411. * and DFS.
  5412. *
  5413. * Userspace shall configure this before starting the AP and the
  5414. * configuration is valid only from the next BSS start and until the
  5415. * BSS is stopped. The driver shall clear this configuration when the
  5416. * AP is stopped and fall back to the default behavior for subsequent
  5417. * AP operation.
  5418. *
  5419. * The default behavior when this configuration is not applicable is the
  5420. * driver can choose any of the channels supported by the hardware
  5421. * except the channels that cannot be used due to regulatory or other
  5422. * constraints.
  5423. *
  5424. * The driver shall reject this configuration if done after the AP is
  5425. * started. This attribute can be used to specify user's choice of
  5426. * frequencies and static puncture channel list, etc.
  5427. */
  5428. QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST = 91,
  5429. /* Nested attribute to indicate EHT MLO links to be forced active.
  5430. * It contains link MAC address attributes. These nested attributes are
  5431. * of the type NL80211_ATTR_MAC and are used to force enabling of the
  5432. * MLO links corresponding to the indicated link MAC addresses.
  5433. * Subsequently, the links corresponding to the link MAC addresses that
  5434. * are not indicated are forced inactive.
  5435. */
  5436. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_ACTIVE_LINKS = 92,
  5437. /* 8-bit unsigned value to configure EMLSR mode entry or exit.
  5438. * Uses enum qca_wlan_emlsr_mode values.
  5439. */
  5440. QCA_WLAN_VENDOR_ATTR_CONFIG_EMLSR_MODE_SWITCH = 93,
  5441. /* 8-bit unsigned value. This attribute is used to dynamically
  5442. * enable/suspend trigger based UL MU transmission.
  5443. * This is supported in STA mode and the device sends Operating
  5444. * Mode Indication to inform the change as described in
  5445. * IEEE Std 802.11ax-2021, 26.9.
  5446. *
  5447. * This attribute can be configured when the STA is associated
  5448. * to an AP and the configuration is maintained until the current
  5449. * association terminates.
  5450. *
  5451. * By default all UL MU transmissions are enabled.
  5452. *
  5453. * Uses enum qca_ul_mu_config values.
  5454. */
  5455. QCA_WLAN_VENDOR_ATTR_CONFIG_UL_MU_CONFIG = 95,
  5456. /* 8-bit unsigned value. Optionally specified along with
  5457. * %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH when STA is in connected
  5458. * state. This configuration is applicable only for the current
  5459. * connection. This configuration not allowed in disconnected state.
  5460. * This configuration can be sent inside
  5461. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum
  5462. * supported channel width update type per-MLO link.
  5463. *
  5464. * valid values:
  5465. * 0 - The maximum allowed bandwidth change is applicable for both Tx
  5466. * and Rx paths. The driver shall conduct OMI operation as defined
  5467. * in 26.9 (Operating mode indication) or OMN operation as
  5468. * defined in 11.40 (Notification of operating mode
  5469. * changes) in IEEE P802.11-REVme/D2.0 with AP to indicate the
  5470. * change in the maximum allowed operating bandwidth.
  5471. * 1 - Limit the change in maximum allowed bandwidth only to Tx path.
  5472. * In this case the driver doesn't need to conduct OMI/OMN
  5473. * operation since %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH is
  5474. * expected to be less than the current connection maximum
  5475. * negotiated bandwidth.
  5476. * For example: Negotiated maximum bandwidth is 160 MHz and the new
  5477. * maximum bandwidth configured is 80 MHz, now the driver limits
  5478. * the maximum bandwidth to 80 MHz only in the Tx path.
  5479. */
  5480. QCA_WLAN_VENDOR_ATTR_CONFIG_CHAN_WIDTH_UPDATE_TYPE = 96,
  5481. /* 8-bit unsigned value to set EPCS (Emergency Preparedness
  5482. * Communications Service) feature capability
  5483. * 1 - Enable, 0 - Disable.
  5484. *
  5485. * This configuration is used for testing purposes.
  5486. */
  5487. QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY = 97,
  5488. /* 8-bit unsigned value to enable/disable EPCS priority access
  5489. * 1 - Enable, 0 - Disable.
  5490. * The EPCS priority access shall be enabled only when EPCS feature
  5491. * capability is also enabled (see
  5492. * QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY).
  5493. *
  5494. * This configuration is used for testing purposes.
  5495. */
  5496. QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_FUNCTION = 98,
  5497. /* 8-bit unsigned value. Used to specify the MLO link ID of a link
  5498. * that is being configured. This attribute must be included in each
  5499. * record nested inside %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS, and
  5500. * may be included without nesting to indicate the link that is the
  5501. * target of other configuration attributes.
  5502. */
  5503. QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID = 99,
  5504. /* Array of nested links each identified by
  5505. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID. This uses values defined in
  5506. * enum qca_wlan_vendor_attr_config, explicit documentation shall be
  5507. * added for the attributes in enum qca_wlan_vendor_attr_config to
  5508. * support per-MLO link configuration through
  5509. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS.
  5510. *
  5511. * Userspace can configure a single link or multiple links with this
  5512. * attribute by nesting the corresponding configuration attributes and
  5513. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link.
  5514. *
  5515. * Userspace can fetch the configuration attribute values for a single
  5516. * link or multiple links with this attribute by nesting the
  5517. * corresponding configuration attributes and
  5518. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link.
  5519. *
  5520. * For STA interface, this attribute is applicable only in connected
  5521. * state when the current connection is MLO capable. The valid values of
  5522. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link IDs of the
  5523. * connected AP MLD links.
  5524. *
  5525. * For AP interface, this configuration applicable only after adding
  5526. * MLO links to the AP interface with %NL80211_CMD_ADD_LINK and the
  5527. * valid values of %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link
  5528. * IDs specified in %NL80211_CMD_ADD_LINK while adding the MLO links to
  5529. * the AP interface.
  5530. */
  5531. QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS = 100,
  5532. /* 16-bit unsigned value to configure power save inactivity timeout in
  5533. * milliseconds.
  5534. *
  5535. * STA enters into power save mode (PM=1) after TX/RX inactivity of time
  5536. * duration specified by %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO.
  5537. *
  5538. * This attribute shall be configured along with
  5539. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL when
  5540. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT
  5541. * is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode.
  5542. */
  5543. QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO = 101,
  5544. /* 16-bit unsigned value to configure speculative wake interval in
  5545. * milliseconds.
  5546. *
  5547. * STA speculatively wakes up to look for buffered data by AP at
  5548. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL interval after
  5549. * entering into power save. If configured zero, STA wakes up at
  5550. * upcoming DTIM beacon.
  5551. *
  5552. * This attribute shall be configured along with
  5553. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
  5554. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT
  5555. * to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode.
  5556. */
  5557. QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL = 102,
  5558. /*
  5559. * 16-bit unsigned value to configure TX max A-MPDU count.
  5560. *
  5561. * For STA interface, this attribute is applicable only in connected
  5562. * state, peer MAC address is not required to be provided.
  5563. *
  5564. * For AP interface, this attribute is applicable only in started
  5565. * state and one of the associated peer STAs must be specified with
  5566. * QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC. If this is for an ML
  5567. * association, the peer MAC address provided is the link address of
  5568. * the non-AP MLD.
  5569. *
  5570. * This attribute runtime configures the TX maximum aggregation size.
  5571. * The value must be in range of 1 to BA window size for the specific
  5572. * peer.
  5573. */
  5574. QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_AMPDU_CNT = 103,
  5575. /*
  5576. * 8-bit unsigned value to configure TID-to-link mapping negotiation
  5577. * type.
  5578. * Uses enum qca_wlan_ttlm_negotiation_support values.
  5579. *
  5580. * This value applies to the complete AP/non-AP MLD interface, and the
  5581. * MLD advertises it within the Basic Multi-Link element in the
  5582. * association frames. If a new value is configured during an active
  5583. * connection, it will take effect in the subsequent associations and
  5584. * is not reset during disconnection.
  5585. *
  5586. * This attribute is used for testing purposes.
  5587. */
  5588. QCA_WLAN_VENDOR_ATTR_CONFIG_TTLM_NEGOTIATION_SUPPORT = 104,
  5589. /* 8-bit unsigned value
  5590. *
  5591. * This attribute configures a traffic shaping mode
  5592. * applied during coex scenarios.
  5593. * By default all coex traffic shaping modes are enabled,
  5594. * i.e., shape WLAN traffic based on coex traffic pattern and priority.
  5595. * To shape traffic, STA may enter in power save mode
  5596. * and AP may send CTS-to-self frame.
  5597. *
  5598. * Uses enum qca_coex_traffic_shaping_mode values.
  5599. */
  5600. QCA_WLAN_VENDOR_ATTR_CONFIG_COEX_TRAFFIC_SHAPING_MODE = 105,
  5601. /* 8-bit unsigned value to configure BTM support.
  5602. *
  5603. * The attribute is applicable only for STA interface. Uses enum
  5604. * qca_wlan_btm_support values. This configuration is not allowed in
  5605. * connected state.
  5606. */
  5607. QCA_WLAN_VENDOR_ATTR_CONFIG_BTM_SUPPORT = 107,
  5608. /* 16-bit unsigned value to configure client's keep-alive interval in
  5609. * seconds. The driver will reduce the keep-alive interval to this
  5610. * configured value if the AP advertises BSS maximum idle period and if
  5611. * that BSS max idle period is larger than this configured value. If the
  5612. * AP does not advertise a maximum value, the configured value will be
  5613. * used as a keep-alive period for unprotected frames.
  5614. *
  5615. * This configuration is applicable only during the STA's current
  5616. * association.
  5617. */
  5618. QCA_WLAN_VENDOR_ATTR_CONFIG_KEEP_ALIVE_INTERVAL = 108,
  5619. /* keep last */
  5620. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
  5621. QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
  5622. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
  5623. };
  5624. /**
  5625. * enum qca_ul_mu_config - UL MU configuration
  5626. * @QCA_UL_MU_SUSPEND - All trigger based UL MU transmission is suspended
  5627. * @QCA_UL_MU_ENABLE - All trigger based UL MU transmission is enabled
  5628. */
  5629. enum qca_ul_mu_config {
  5630. QCA_UL_MU_SUSPEND = 0,
  5631. QCA_UL_MU_ENABLE = 1,
  5632. };
  5633. /**
  5634. * enum qca_dbam_config - Specifies DBAM config mode
  5635. * @QCA_DBAM_DISABLE: Firmware disables DBAM
  5636. * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when
  5637. * internal criteria are met.
  5638. * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully.
  5639. */
  5640. enum qca_dbam_config {
  5641. QCA_DBAM_DISABLE = 0,
  5642. QCA_DBAM_ENABLE = 1,
  5643. QCA_DBAM_FORCE_ENABLE = 2,
  5644. };
  5645. /**
  5646. * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting
  5647. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute
  5648. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID
  5649. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level
  5650. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag
  5651. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value
  5652. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value
  5653. */
  5654. enum qca_wlan_vendor_attr_wifi_logger_start {
  5655. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
  5656. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
  5657. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
  5658. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
  5659. /* keep last */
  5660. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
  5661. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX =
  5662. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
  5663. };
  5664. /*
  5665. * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data
  5666. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute
  5667. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID
  5668. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value
  5669. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value
  5670. */
  5671. enum qca_wlan_vendor_attr_wifi_logger_get_ring_data {
  5672. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0,
  5673. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1,
  5674. /* keep last */
  5675. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST,
  5676. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX =
  5677. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1,
  5678. };
  5679. #ifdef WLAN_FEATURE_OFFLOAD_PACKETS
  5680. /**
  5681. * enum wlan_offloaded_packets_control - control commands
  5682. * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets
  5683. * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets
  5684. *
  5685. */
  5686. enum wlan_offloaded_packets_control {
  5687. WLAN_START_OFFLOADED_PACKETS = 1,
  5688. WLAN_STOP_OFFLOADED_PACKETS = 2
  5689. };
  5690. /**
  5691. * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
  5692. *
  5693. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
  5694. * the offloaded data.
  5695. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
  5696. * data.
  5697. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
  5698. * indication.
  5699. */
  5700. enum qca_wlan_vendor_attr_data_offload_ind {
  5701. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
  5702. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
  5703. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
  5704. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
  5705. /* keep last */
  5706. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
  5707. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
  5708. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
  5709. };
  5710. /**
  5711. * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
  5712. * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
  5713. */
  5714. enum qca_wlan_vendor_attr_offloaded_packets {
  5715. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
  5716. /* Takes valid value from the enum
  5717. * qca_wlan_offloaded_packets_sending_control
  5718. * Unsigned 32-bit value
  5719. */
  5720. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
  5721. /* Unsigned 32-bit value */
  5722. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
  5723. /* array of u8 len: Max packet size */
  5724. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
  5725. /* 6-byte MAC address used to represent source MAC address */
  5726. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
  5727. /* 6-byte MAC address used to represent destination MAC address */
  5728. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
  5729. /* Unsigned 32-bit value, in milli seconds */
  5730. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
  5731. /* This optional unsigned 16-bit attribute is used for specifying
  5732. * ethernet protocol type. If not specified ethertype defaults to IPv4.
  5733. */
  5734. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
  5735. /* keep last */
  5736. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
  5737. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
  5738. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
  5739. };
  5740. #endif /* WLAN_FEATURE_OFFLOAD_PACKETS */
  5741. /**
  5742. * enum qca_wlan_rssi_monitoring_control - rssi control commands
  5743. * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid
  5744. * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start
  5745. * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop
  5746. */
  5747. enum qca_wlan_rssi_monitoring_control {
  5748. QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
  5749. QCA_WLAN_RSSI_MONITORING_START,
  5750. QCA_WLAN_RSSI_MONITORING_STOP,
  5751. };
  5752. /**
  5753. * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring
  5754. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid
  5755. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control
  5756. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi
  5757. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi
  5758. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid
  5759. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi
  5760. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last
  5761. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max
  5762. */
  5763. enum qca_wlan_vendor_attr_rssi_monitoring {
  5764. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
  5765. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
  5766. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
  5767. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
  5768. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
  5769. /* attributes to be used/received in callback */
  5770. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
  5771. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
  5772. /* keep last */
  5773. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
  5774. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
  5775. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
  5776. };
  5777. /**
  5778. * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
  5779. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  5780. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID
  5781. * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd
  5782. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID:
  5783. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicates a service info
  5784. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz
  5785. * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC
  5786. * address
  5787. * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being
  5788. * created
  5789. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use
  5790. * NCS_SK_TYPE/PMK/SCID instead
  5791. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS
  5792. * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info
  5793. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id
  5794. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids
  5795. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response
  5796. * code: accept/reject
  5797. * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address
  5798. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by
  5799. * driver
  5800. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by
  5801. * driver
  5802. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration
  5803. * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type
  5804. * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO
  5805. * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the
  5806. * PMKID
  5807. * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase
  5808. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name
  5809. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule
  5810. * update:
  5811. * BIT_0: NSS Update
  5812. * BIT_1: Channel list update
  5813. * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss
  5814. * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL
  5815. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH:
  5816. * 0:20 MHz,
  5817. * 1:40 MHz,
  5818. * 2:80 MHz,
  5819. * 3:160 MHz
  5820. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width
  5821. * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array
  5822. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating
  5823. * transport port used by NDP.
  5824. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating
  5825. * protocol used by NDP and assigned by the Internet Assigned Numbers Authority
  5826. * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
  5827. * @QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT: Unsigned 8-bit value indicating if
  5828. * NDP remote peer supports NAN NDPE. 1:support 0:not support
  5829. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID: As per Wi-Fi Aware Specification v3.2
  5830. * Service Id is the first 48 bits of the SHA-256 hash of the Service Name.
  5831. * A lower-case representation of the Service Name shall be used to
  5832. * calculate the Service ID.
  5833. * Array of u8: length is 6 bytes
  5834. * This attribute is used and optional for ndp indication.
  5835. * @QCA_WLAN_VENDOR_ATTR_NDP_CSIA_CAPABILITIES: Unsigned 8-bit value for Cipher
  5836. * Suite
  5837. * This attribute is used and optional in ndp request, ndp response, ndp
  5838. * indication, and ndp confirm.
  5839. * This attribute is used to indicate the Capabilities field of Cipher Suite
  5840. * Information attribute (CSIA) of NDP frames as defined in Wi-Fi Aware
  5841. * Specification v4.0, 9.5.21.2, Table 122.
  5842. * Firmware can accept or ignore any of the capability bits.
  5843. * @QCA_WLAN_VENDOR_ATTR_NDP_GTK_REQUIRED: Indicate if the GTK protection is
  5844. * required for NDP. NLA_FLAG attribute.
  5845. * This attribute can be used in ndp request, ndp response, ndp indication, and
  5846. * ndp confirm.
  5847. * GTK protection required is indicated in the NDPE attribute of NAN action
  5848. * frame (NAF) during NDP negotiation as defined in Wi-Fi Aware Specification
  5849. * v4.0, 9.5.16.2.
  5850. * If the device and peer supports GTKSA and if GTK protection required bit is
  5851. * set in NDPE IE, devices will share GTK to each other in SKDA of Data Path
  5852. * Security Confirm and Data Path Security Install frames of NDP negotiation to
  5853. * send and receive protected group addressed data frames from each other.
  5854. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute
  5855. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type
  5856. */
  5857. enum qca_wlan_vendor_attr_ndp_params {
  5858. QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
  5859. QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1,
  5860. QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2,
  5861. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3,
  5862. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4,
  5863. QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5,
  5864. QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6,
  5865. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7,
  5866. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8,
  5867. QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9,
  5868. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10,
  5869. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11,
  5870. QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12,
  5871. QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13,
  5872. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14,
  5873. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15,
  5874. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16,
  5875. QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17,
  5876. QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18,
  5877. QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19,
  5878. QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20,
  5879. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21,
  5880. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22,
  5881. QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23,
  5882. QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24,
  5883. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25,
  5884. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26,
  5885. QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
  5886. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
  5887. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
  5888. QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
  5889. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
  5890. QCA_WLAN_VENDOR_ATTR_NDP_CSIA_CAPABILITIES = 32,
  5891. QCA_WLAN_VENDOR_ATTR_NDP_GTK_REQUIRED = 33,
  5892. /* keep last */
  5893. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
  5894. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
  5895. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
  5896. };
  5897. /**
  5898. * enum qca_wlan_ndp_sub_cmd - NDP sub commands types for
  5899. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  5900. * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value
  5901. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: Command to create a NAN
  5902. * data path interface.
  5903. * This command was initially designed to both create and start a NAN
  5904. * data path interface. However, changes to Linux 5.12 no longer allow
  5905. * interface creation via vendor commands. When the driver advertises
  5906. * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
  5907. * userspace must explicitly first create the interface using
  5908. * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
  5909. * to start the interface.
  5910. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: command to delete a NAN
  5911. * data path interface.
  5912. * This command was initially designed to both stop and delete a NAN
  5913. * data path interface. However, changes to Linux 5.12 no longer allow
  5914. * interface deletion via vendor commands. When the driver advertises
  5915. * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
  5916. * userspace must explicitly delete the interface using
  5917. * NL80211_CMD_DEL_INTERFACE after calling this command.
  5918. * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above
  5919. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session
  5920. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above
  5921. * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end
  5922. * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above
  5923. * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request
  5924. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete
  5925. * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request
  5926. * being received
  5927. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule
  5928. * update
  5929. */
  5930. enum qca_wlan_ndp_sub_cmd {
  5931. QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
  5932. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
  5933. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
  5934. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
  5935. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
  5936. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
  5937. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
  5938. QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
  5939. QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
  5940. QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
  5941. QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
  5942. QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
  5943. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
  5944. };
  5945. /**
  5946. * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
  5947. * information. These attributes are sent as part of
  5948. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
  5949. * attributes correspond to a single channel.
  5950. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16)
  5951. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  5952. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16)
  5953. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  5954. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency
  5955. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum
  5956. * regulatory transmission power
  5957. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum
  5958. * transmission power
  5959. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum
  5960. * transmission power
  5961. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory
  5962. * class id
  5963. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum
  5964. * antenna gain in dbm
  5965. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0
  5966. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1
  5967. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0: Segment 0
  5968. * center frequency in MHz.
  5969. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht
  5970. * segment 0 in center freq in MHz. (this is the legacy alias)
  5971. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1: Segment 1
  5972. * center frequency in MHz.
  5973. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht
  5974. * segment 1 in center freq in MHz. (this is the legacy alias)
  5975. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES: 3-bits
  5976. * flag indicating the AP power modes supported by the channel, as given by
  5977. * enum qca_wlan_vendor_external_acs_chan_power_level.
  5978. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR: Array of nested
  5979. * attributes for each power mode. It takes attr as defined in enum
  5980. * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
  5981. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1:
  5982. * This indicates the overlapping 320 MHz center frequency in MHz, if the
  5983. * given primary channel supports more than one 320 MHz channel bonding.
  5984. *
  5985. */
  5986. enum qca_wlan_vendor_external_acs_event_chan_info_attr {
  5987. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
  5988. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
  5989. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
  5990. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
  5991. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
  5992. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
  5993. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
  5994. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
  5995. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
  5996. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
  5997. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
  5998. /*
  5999. * A bitmask (u32) with flags specified in
  6000. * enum qca_wlan_vendor_channel_prop_flags_2.
  6001. */
  6002. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
  6003. /*
  6004. * Segment 0 in MHz (u32).
  6005. *
  6006. * For 20/40/80 MHz bandwidth, this indicates the channel center
  6007. * frequency index for the 20/40/80 MHz operating channel.
  6008. * For 160 MHz bandwidth, this indicates the channel center
  6009. * frequency of the primary 80 MHz channel.
  6010. * For 320 MHz bandwidth, indicates the channel center frequency
  6011. * of the primary 160 MHz channel.
  6012. *
  6013. * To maintain backward compatibility,
  6014. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  6015. * is also maintained.
  6016. */
  6017. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12,
  6018. /* Legacy alias for the Segment 0 attribute.
  6019. *
  6020. * VHT segment 0 in MHz (u32) and the attribute is mandatory.
  6021. * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
  6022. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  6023. * along with
  6024. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
  6025. *
  6026. * If both the driver and user-space application supports the 6 GHz
  6027. * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
  6028. * is deprecated and
  6029. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  6030. * should be used.
  6031. *
  6032. * To maintain backward compatibility,
  6033. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  6034. * is still used if either of the driver or user space application
  6035. * doesn't support the 6 GHz band.
  6036. */
  6037. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 =
  6038. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0,
  6039. /*
  6040. * Segment 1 in MHz (u32).
  6041. *
  6042. * For 20/40/80 MHz bandwidth, this is set to 0.
  6043. * For 160 MHz bandwidth, indicates the channel center frequency of the
  6044. * 160 MHz channel.
  6045. * For 320 MHz bandwidth, indicates the channel center frequency of the
  6046. * 320 MHz channel.
  6047. *
  6048. * To maintain backward compatibility,
  6049. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  6050. * is also maintained.
  6051. */
  6052. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13,
  6053. /* Legacy alias for the Segment 1 attribute.
  6054. *
  6055. * VHT segment 1 in MHz (u32) and the attribute is mandatory.
  6056. * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
  6057. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  6058. * along with
  6059. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
  6060. *
  6061. * If both the driver and user-space application supports the 6 GHz
  6062. * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
  6063. * is deprecated and
  6064. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  6065. * should be considered.
  6066. *
  6067. * To maintain backward compatibility,
  6068. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  6069. * is still used if either of the driver or user space application
  6070. * doesn't support the 6 GHz band.
  6071. */
  6072. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 =
  6073. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1,
  6074. /*
  6075. * 16-bit attribute of bits indicating the AP power modes supported by
  6076. * the channel (u16).
  6077. * Note: Currently, only 3 bits are used in the attribute and each bit
  6078. * corresponds to the power mode mentioned in enum
  6079. * qca_wlan_vendor_external_acs_chan_power_level and a given bit is
  6080. * set if the associated mode is supported.
  6081. */
  6082. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
  6083. = 14,
  6084. /* Array of nested attributes for each power mode. It takes attr as
  6085. * defined in enum
  6086. * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
  6087. */
  6088. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR = 15,
  6089. /*
  6090. * This indicates the overlapping 320 MHz center frequency in MHz
  6091. * (u32), if the given primary channel supports more than one
  6092. * 320 MHz channel bonding.
  6093. *
  6094. * Example:
  6095. * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0
  6096. * center frequency (primary 160 MHz) is 6185 MHz and there can be two
  6097. * possible segment 2 frequencies for this (320 MHz center
  6098. * frequencies):
  6099. *
  6100. * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding
  6101. * from frequency 5945 MHz - 6265 MHz
  6102. * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding
  6103. * from frequency 6105 MHz - 6425 MHz
  6104. *
  6105. * In this case,
  6106. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will
  6107. * return 6185 MHz.
  6108. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will
  6109. * return 6105 MHz.
  6110. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
  6111. * will return 6265 MHz.
  6112. */
  6113. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
  6114. = 16,
  6115. /* keep last */
  6116. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
  6117. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
  6118. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
  6119. };
  6120. /**
  6121. * qca_wlan_vendor_external_acs_chan_power_level - Specifies the valid
  6122. * values that the vendor external ACS channel power attribute
  6123. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
  6124. * take.
  6125. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
  6126. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
  6127. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
  6128. */
  6129. enum qca_wlan_vendor_external_acs_chan_power_level {
  6130. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
  6131. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
  6132. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
  6133. };
  6134. /**
  6135. * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
  6136. * attributes for power mode type and power values corresponding to that.
  6137. * These attributes are sent as part of
  6138. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
  6139. */
  6140. enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
  6141. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
  6142. /*
  6143. * Power mode (u8) takes the values defined in enum
  6144. * qca_wlan_vendor_external_acs_chan_power_mode
  6145. */
  6146. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
  6147. = 1,
  6148. /*
  6149. * Indicates if power value is a PSD/EIRP value (flag). If flag is
  6150. * present, it indicates a PSD value.
  6151. */
  6152. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
  6153. /*
  6154. * Power value (u32) PSD/EIRP as indicated by
  6155. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
  6156. * for power mode corresponding to the
  6157. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
  6158. * Units for PSD - dBm/MHz
  6159. * Units for EIRP - dBm
  6160. */
  6161. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
  6162. = 3,
  6163. /* keep last */
  6164. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
  6165. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
  6166. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
  6167. };
  6168. /**
  6169. * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command
  6170. * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host
  6171. * driver.
  6172. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to
  6173. * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why
  6174. * ACS need to be started
  6175. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does
  6176. * driver supports spectral scanning or not
  6177. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is
  6178. * offloaded to firmware.
  6179. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver
  6180. * provides additional channel capability as part of scan operation.
  6181. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate
  6182. * interface status is UP
  6183. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of
  6184. * interface. It takes one of nl80211_iftype values.
  6185. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound
  6186. * of chan width. ACS logic should try to get a channel with specified width
  6187. * if not found then look for lower values.
  6188. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands
  6189. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as
  6190. * a/b/g/n/ac.
  6191. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list
  6192. * among which ACS should choose best frequency.
  6193. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the
  6194. * driver which will have <channel(u8), weight(u8)> format as array of
  6195. * nested values.
  6196. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute
  6197. * for each channel. It takes attr as defined in
  6198. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as
  6199. * PCL mandatory, PCL preferred, etc.It uses values defined in enum
  6200. * qca_wlan_vendor_attr_external_acs_policy.
  6201. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF
  6202. * Operating Parameter (RROP) availability information (u16). It uses values
  6203. * defined in enum qca_wlan_vendor_attr_rropavail_info.
  6204. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY: Flag attribute to
  6205. * indicate if driver supports 6 GHz AFC trigger for External ACS.
  6206. */
  6207. enum qca_wlan_vendor_attr_external_acs_event {
  6208. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
  6209. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
  6210. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
  6211. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
  6212. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
  6213. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
  6214. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
  6215. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
  6216. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
  6217. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
  6218. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
  6219. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
  6220. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
  6221. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
  6222. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
  6223. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
  6224. /* keep last */
  6225. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
  6226. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
  6227. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
  6228. };
  6229. enum qca_iface_type {
  6230. QCA_IFACE_TYPE_STA,
  6231. QCA_IFACE_TYPE_AP,
  6232. QCA_IFACE_TYPE_P2P_CLIENT,
  6233. QCA_IFACE_TYPE_P2P_GO,
  6234. QCA_IFACE_TYPE_IBSS,
  6235. QCA_IFACE_TYPE_TDLS,
  6236. };
  6237. /**
  6238. * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command
  6239. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
  6240. * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
  6241. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value
  6242. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number
  6243. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight
  6244. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency
  6245. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask
  6246. */
  6247. enum qca_wlan_vendor_attr_pcl_config {
  6248. QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
  6249. QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
  6250. QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
  6251. QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
  6252. QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
  6253. };
  6254. enum qca_set_band {
  6255. QCA_SETBAND_AUTO = 0,
  6256. QCA_SETBAND_5G = BIT(0),
  6257. QCA_SETBAND_2G = BIT(1),
  6258. QCA_SETBAND_6G = BIT(2),
  6259. };
  6260. /**
  6261. * enum set_reset_packet_filter - set packet filter control commands
  6262. * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter
  6263. * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter
  6264. * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data
  6265. * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data
  6266. * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter
  6267. * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter
  6268. */
  6269. enum set_reset_packet_filter {
  6270. QCA_WLAN_SET_PACKET_FILTER = 1,
  6271. QCA_WLAN_GET_PACKET_FILTER = 2,
  6272. QCA_WLAN_WRITE_PACKET_FILTER = 3,
  6273. QCA_WLAN_READ_PACKET_FILTER = 4,
  6274. QCA_WLAN_ENABLE_PACKET_FILTER = 5,
  6275. QCA_WLAN_DISABLE_PACKET_FILTER = 6,
  6276. };
  6277. /**
  6278. * enum qca_wlan_vendor_attr_packet_filter - APF control commands
  6279. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid
  6280. * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID
  6281. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version
  6282. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length
  6283. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset
  6284. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions
  6285. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program
  6286. * section in packet filter buffer
  6287. */
  6288. enum qca_wlan_vendor_attr_packet_filter {
  6289. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
  6290. QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER,
  6291. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
  6292. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
  6293. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
  6294. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
  6295. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
  6296. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH,
  6297. /* keep last */
  6298. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
  6299. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
  6300. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
  6301. };
  6302. /**
  6303. * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
  6304. * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
  6305. */
  6306. enum qca_wlan_vendor_attr_wake_stats {
  6307. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
  6308. /* Unsigned 32-bit value indicating the total count of wake event */
  6309. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
  6310. /* Array of individual wake count, each index representing wake reason
  6311. */
  6312. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
  6313. /* Unsigned 32-bit value representing wake count array */
  6314. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
  6315. /* Unsigned 32-bit total wake count value of driver/fw */
  6316. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
  6317. /* Array of wake stats of driver/fw */
  6318. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
  6319. /* Unsigned 32-bit total wake count value of driver/fw */
  6320. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
  6321. /* Unsigned 32-bit total wake count value of packets received */
  6322. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
  6323. /* Unsigned 32-bit wake count value unicast packets received */
  6324. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
  6325. /* Unsigned 32-bit wake count value multicast packets received */
  6326. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
  6327. /* Unsigned 32-bit wake count value broadcast packets received */
  6328. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
  6329. /* Unsigned 32-bit wake count value of ICMP packets */
  6330. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
  6331. /* Unsigned 32-bit wake count value of ICMP6 packets */
  6332. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
  6333. /* Unsigned 32-bit value ICMP6 router advertisement */
  6334. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
  6335. /* Unsigned 32-bit value ICMP6 neighbor advertisement */
  6336. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
  6337. /* Unsigned 32-bit value ICMP6 neighbor solicitation */
  6338. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
  6339. /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
  6340. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
  6341. /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
  6342. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
  6343. /* Unsigned 32-bit wake count value of receive side multicast */
  6344. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
  6345. /* Unsigned 32-bit wake count value of a given RSSI breach */
  6346. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
  6347. /* Unsigned 32-bit wake count value of low RSSI */
  6348. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
  6349. /* Unsigned 32-bit value GSCAN count */
  6350. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
  6351. /* Unsigned 32-bit value PNO complete count */
  6352. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
  6353. /* Unsigned 32-bit value PNO match count */
  6354. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
  6355. /* keep last */
  6356. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
  6357. QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
  6358. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
  6359. };
  6360. /**
  6361. * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
  6362. * configured by userspace to the driver/firmware. The values will be
  6363. * encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL attribute.
  6364. * The driver/firmware takes necessary actions requested by userspace
  6365. * such as throttling wifi tx etc. in order to mitigate high temperature.
  6366. *
  6367. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
  6368. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle tx lightly.
  6369. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle tx moderately.
  6370. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle tx severely.
  6371. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
  6372. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
  6373. */
  6374. enum qca_wlan_vendor_thermal_level {
  6375. QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
  6376. QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
  6377. QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
  6378. QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
  6379. QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
  6380. QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
  6381. };
  6382. /**
  6383. * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
  6384. * cmd value. Used for NL attributes for data used by
  6385. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
  6386. */
  6387. enum qca_wlan_vendor_attr_thermal_cmd {
  6388. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
  6389. /* The value of command, driver will implement different operations
  6390. * according to this value. It uses values defined in
  6391. * enum qca_wlan_vendor_attr_thermal_cmd_type.
  6392. * u32 attribute.
  6393. */
  6394. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
  6395. /* Userspace uses this attribute to configure thermal level to the
  6396. * driver/firmware, or get thermal level from the driver/firmware.
  6397. * Used in request or response, u32 attribute,
  6398. * possible values are defined in enum qca_wlan_vendor_thermal_level.
  6399. */
  6400. QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
  6401. /* Userspace uses this attribute to configure the time in which the
  6402. * driver/firmware should complete applying settings it received from
  6403. * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
  6404. * command type. Used in request, u32 attribute, value is in
  6405. * milliseconds. A value of zero indicates to apply the settings
  6406. * immediately. The driver/firmware can delay applying the configured
  6407. * thermal settings within the time specified in this attribute if
  6408. * there is any critical ongoing operation.
  6409. */
  6410. QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
  6411. /* Nested attribute, driver/firmware uses this attribute to report
  6412. * thermal stats of different thermal levels to userspace when requested
  6413. * using QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
  6414. * type. This attribute contains nested array of records of thermal
  6415. * statistics of multiple levels. The attributes used inside this nested
  6416. * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
  6417. */
  6418. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
  6419. /* keep last */
  6420. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
  6421. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
  6422. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
  6423. };
  6424. /**
  6425. * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
  6426. * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
  6427. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
  6428. * thermal command types sent to driver.
  6429. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
  6430. * get thermal shutdown configuration parameters for display. Parameters
  6431. * responded from driver are defined in
  6432. * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
  6433. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
  6434. * get temperature. Host should respond with a temperature data. It is defined
  6435. * in enum qca_wlan_vendor_attr_thermal_get_temperature.
  6436. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
  6437. * suspend action.
  6438. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
  6439. * resume action.
  6440. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
  6441. * the driver/firmware.
  6442. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
  6443. * thermal level from the driver/firmware. The driver should respond with a
  6444. * thermal level defined in enum qca_wlan_vendor_thermal_level.
  6445. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
  6446. * current thermal stats from the driver/firmware. The driver should respond
  6447. * with stats of all thermal levels encapsulated in attribute
  6448. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
  6449. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
  6450. * the current thermal stats all thermal levels maintained in the
  6451. * driver/firmware and start counting from zero again.
  6452. */
  6453. enum qca_wlan_vendor_attr_thermal_cmd_type {
  6454. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
  6455. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
  6456. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
  6457. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
  6458. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
  6459. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
  6460. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
  6461. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
  6462. };
  6463. /**
  6464. * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
  6465. * to get chip temperature by user.
  6466. * enum values are used for NL attributes for data used by
  6467. * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
  6468. * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
  6469. */
  6470. enum qca_wlan_vendor_attr_thermal_get_temperature {
  6471. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
  6472. /* Temperature value (degree Celsius) from driver.
  6473. * u32 attribute.
  6474. */
  6475. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
  6476. /* keep last */
  6477. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
  6478. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
  6479. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
  6480. };
  6481. /**
  6482. * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
  6483. * report thermal events from driver to user space.
  6484. * enum values are used for NL attributes for data used by
  6485. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
  6486. */
  6487. enum qca_wlan_vendor_attr_thermal_event {
  6488. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
  6489. /* Temperature value (degree Celsius) from driver.
  6490. * u32 attribute.
  6491. */
  6492. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
  6493. /* Indication of resume completion from power save mode.
  6494. * NLA_FLAG attribute.
  6495. */
  6496. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
  6497. /* Thermal level from the driver.
  6498. * u32 attribute. Possible values are defined in
  6499. * enum qca_wlan_vendor_thermal_level.
  6500. */
  6501. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
  6502. /* keep last */
  6503. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
  6504. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
  6505. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
  6506. };
  6507. /**
  6508. * enum qca_vendor_element_id - QCA Vendor Specific element types
  6509. *
  6510. * These values are used to identify QCA Vendor Specific elements. The
  6511. * payload of the element starts with the three octet OUI (OUI_QCA) and
  6512. * is followed by a single octet type which is defined by this enum.
  6513. *
  6514. * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
  6515. * This element can be used to specify preference order for supported
  6516. * channels. The channels in this list are in preference order (the first
  6517. * one has the highest preference) and are described as a pair of
  6518. * (global) Operating Class and Channel Number (each one octet) fields.
  6519. *
  6520. * This extends the standard P2P functionality by providing option to have
  6521. * more than one preferred operating channel. When this element is present,
  6522. * it replaces the preference indicated in the Operating Channel attribute.
  6523. * For supporting other implementations, the Operating Channel attribute is
  6524. * expected to be used with the highest preference channel. Similarly, all
  6525. * the channels included in this Preferred channel list element are
  6526. * expected to be included in the Channel List attribute.
  6527. *
  6528. * This vendor element may be included in GO Negotiation Request, P2P
  6529. * Invitation Request, and Provision Discovery Request frames.
  6530. *
  6531. * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
  6532. * This element can be used for pre-standard publication testing of HE
  6533. * before P802.11ax draft assigns the element ID. The payload of this
  6534. * vendor specific element is defined by the latest P802.11ax draft.
  6535. * Please note that the draft is still work in progress and this element
  6536. * payload is subject to change.
  6537. *
  6538. * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
  6539. * This element can be used for pre-standard publication testing of HE
  6540. * before P802.11ax draft assigns the element ID. The payload of this
  6541. * vendor specific element is defined by the latest P802.11ax draft.
  6542. * Please note that the draft is still work in progress and this element
  6543. * payload is subject to change.
  6544. *
  6545. * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
  6546. * element).
  6547. * This element can be used for pre-standard publication testing of HE
  6548. * before P802.11ax draft assigns the element ID extension. The payload of
  6549. * this vendor specific element is defined by the latest P802.11ax draft
  6550. * (not including the Element ID Extension field). Please note that the
  6551. * draft is still work in progress and this element payload is subject to
  6552. * change.
  6553. *
  6554. * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
  6555. * This element can be used for pre-standard publication testing of HE
  6556. * before P802.11ax draft assigns the element ID extension. The payload of
  6557. * this vendor specific element is defined by the latest P802.11ax draft
  6558. * (not including the Element ID Extension field). Please note that the
  6559. * draft is still work in progress and this element payload is subject to
  6560. * change.
  6561. *
  6562. * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
  6563. * This element can be used for pre-standard publication testing of HE
  6564. * before P802.11ax draft assigns the element ID extension. The payload of
  6565. * this vendor specific element is defined by the latest P802.11ax draft
  6566. * (not including the Element ID Extension field). Please note that the
  6567. * draft is still work in progress and this element payload is subject to
  6568. * change.
  6569. */
  6570. enum qca_vendor_element_id {
  6571. QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
  6572. QCA_VENDOR_ELEM_HE_CAPAB = 1,
  6573. QCA_VENDOR_ELEM_HE_OPER = 2,
  6574. QCA_VENDOR_ELEM_RAPS = 3,
  6575. QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
  6576. QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
  6577. };
  6578. /**
  6579. * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
  6580. * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
  6581. * Specify the TSF command. Possible values are defined in
  6582. * &enum qca_tsf_cmd.
  6583. * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
  6584. * This attribute contains TSF timer value. This attribute is only available
  6585. * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
  6586. * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
  6587. * This attribute contains SOC timer value at TSF capture. This attribute is
  6588. * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
  6589. * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
  6590. * This attribute is used to provide TSF sync interval and only applicable when
  6591. * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
  6592. * driver will use the default value. Time unit is in milliseconds.
  6593. */
  6594. enum qca_vendor_attr_tsf_cmd {
  6595. QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
  6596. QCA_WLAN_VENDOR_ATTR_TSF_CMD,
  6597. QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
  6598. QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
  6599. QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
  6600. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
  6601. QCA_WLAN_VENDOR_ATTR_TSF_MAX =
  6602. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
  6603. };
  6604. /**
  6605. * enum qca_tsf_cmd: TSF driver commands
  6606. * @QCA_TSF_CAPTURE: Initiate TSF Capture
  6607. * @QCA_TSF_GET: Get TSF capture value
  6608. * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
  6609. * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
  6610. * will automatically send TSF report to the host. To query
  6611. * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
  6612. * initiated first.
  6613. * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
  6614. * will not automatically send TSF report to the host. If
  6615. * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
  6616. * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
  6617. * operation needs to be initiated.
  6618. * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
  6619. * fetches TSF and host time mapping from the firmware with interval configured
  6620. * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
  6621. * interval value is not provided the driver will use the default value. The
  6622. * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
  6623. * command.
  6624. * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
  6625. */
  6626. enum qca_tsf_cmd {
  6627. QCA_TSF_CAPTURE,
  6628. QCA_TSF_GET,
  6629. QCA_TSF_SYNC_GET,
  6630. QCA_TSF_AUTO_REPORT_ENABLE,
  6631. QCA_TSF_AUTO_REPORT_DISABLE,
  6632. QCA_TSF_SYNC_START,
  6633. QCA_TSF_SYNC_STOP,
  6634. };
  6635. /**
  6636. * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list
  6637. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value
  6638. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type
  6639. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list
  6640. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight
  6641. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last
  6642. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max
  6643. */
  6644. enum qca_vendor_attr_get_preferred_freq_list {
  6645. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
  6646. /* A 32-unsigned value; the interface type/mode for which the preferred
  6647. * frequency list is requested (see enum qca_iface_type for possible
  6648. * values); used in both south- and north-bound.
  6649. */
  6650. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
  6651. /* An array of 32-unsigned values; values are frequency (MHz); used
  6652. * in north-bound only.
  6653. */
  6654. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
  6655. /* An array of nested values as per enum
  6656. * qca_wlan_vendor_attr_pcl_config attribute.
  6657. * Each element contains frequency (MHz), weight, and flag
  6658. * bit mask indicating how the frequency should be used in P2P
  6659. * negotiation.
  6660. */
  6661. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
  6662. /* keep last */
  6663. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
  6664. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
  6665. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
  6666. };
  6667. /**
  6668. * enum qca_vendor_attr_probable_oper_channel - channel hint
  6669. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value
  6670. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type
  6671. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value
  6672. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last
  6673. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max
  6674. */
  6675. enum qca_vendor_attr_probable_oper_channel {
  6676. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
  6677. /* 32-bit unsigned value; indicates the connection/iface type likely to
  6678. * come on this channel (see enum qca_iface_type).
  6679. */
  6680. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
  6681. /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
  6682. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
  6683. /* keep last */
  6684. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
  6685. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
  6686. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
  6687. };
  6688. /**
  6689. * enum qca_wlan_vendor_attr_gw_param_config - gateway param config
  6690. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid
  6691. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr
  6692. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr
  6693. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr
  6694. */
  6695. enum qca_wlan_vendor_attr_gw_param_config {
  6696. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0,
  6697. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR,
  6698. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR,
  6699. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR,
  6700. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST,
  6701. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX =
  6702. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1,
  6703. };
  6704. /**
  6705. * enum drv_dbs_capability - DBS capability
  6706. * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled
  6707. * @DRV_DBS_CAPABILITY_1X1: 1x1
  6708. * @DRV_DBS_CAPABILITY_2X2: 2x2
  6709. */
  6710. enum drv_dbs_capability {
  6711. DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */
  6712. DRV_DBS_CAPABILITY_1X1,
  6713. DRV_DBS_CAPABILITY_2X2,
  6714. };
  6715. /**
  6716. * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
  6717. *
  6718. * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
  6719. */
  6720. enum qca_vendor_attr_txpower_decr_db {
  6721. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
  6722. /*
  6723. * 8-bit unsigned value to indicate the reduction of TX power in dB for
  6724. * a virtual interface.
  6725. */
  6726. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
  6727. /* keep last */
  6728. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
  6729. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
  6730. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
  6731. };
  6732. /**
  6733. * enum qca_vendor_attr_ota_test - Enable OTA test
  6734. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value
  6735. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test
  6736. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last
  6737. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max
  6738. */
  6739. enum qca_vendor_attr_ota_test {
  6740. QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
  6741. /* 8-bit unsigned value to indicate if OTA test is enabled */
  6742. QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
  6743. /* keep last */
  6744. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
  6745. QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
  6746. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
  6747. };
  6748. /** enum qca_vendor_attr_txpower_scale - vendor sub commands index
  6749. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value
  6750. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
  6751. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value
  6752. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value
  6753. */
  6754. enum qca_vendor_attr_txpower_scale {
  6755. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
  6756. /* 8-bit unsigned value to indicate the scaling of tx power */
  6757. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
  6758. /* keep last */
  6759. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
  6760. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
  6761. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
  6762. };
  6763. /**
  6764. * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index
  6765. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value
  6766. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value
  6767. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value
  6768. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value
  6769. */
  6770. enum qca_vendor_attr_txpower_scale_decr_db {
  6771. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID,
  6772. /* 8-bit unsigned value to indicate the scaling of tx power */
  6773. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB,
  6774. /* keep last */
  6775. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST,
  6776. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX =
  6777. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1
  6778. };
  6779. /**
  6780. * enum dfs_mode - state of DFS mode
  6781. * @DFS_MODE_NONE: DFS mode attribute is none
  6782. * @DFS_MODE_ENABLE: DFS mode is enabled
  6783. * @DFS_MODE_DISABLE: DFS mode is disabled
  6784. * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning
  6785. */
  6786. enum dfs_mode {
  6787. DFS_MODE_NONE,
  6788. DFS_MODE_ENABLE,
  6789. DFS_MODE_DISABLE,
  6790. DFS_MODE_DEPRIORITIZE
  6791. };
  6792. /**
  6793. * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
  6794. * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
  6795. *
  6796. * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
  6797. * DFS mode for ACS operation from enum qca_acs_dfs_mode.
  6798. *
  6799. * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
  6800. * channel number hint for ACS operation, if valid channel is specified then
  6801. * ACS operation gives priority to this channel.
  6802. * Note: If both the driver and user space application supports the 6 GHz band,
  6803. * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
  6804. * should be used.
  6805. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
  6806. * is still used if either of the driver or user space application doesn't
  6807. * support the 6 GHz band.
  6808. *
  6809. * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
  6810. * Channel center frequency (MHz) hint for ACS operation, if a valid center
  6811. * frequency is specified, ACS operation gives priority to this channel.
  6812. */
  6813. enum qca_wlan_vendor_attr_acs_config {
  6814. QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
  6815. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
  6816. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
  6817. QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
  6818. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
  6819. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
  6820. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
  6821. };
  6822. /**
  6823. * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
  6824. */
  6825. enum qca_wlan_vendor_attr_get_hw_capability {
  6826. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
  6827. /*
  6828. * Antenna isolation
  6829. * An attribute used in the response.
  6830. * The content of this attribute is encoded in a byte array. Each byte
  6831. * value is an antenna isolation value. The array length is the number
  6832. * of antennas.
  6833. */
  6834. QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
  6835. /*
  6836. * Request HW capability
  6837. * An attribute used in the request.
  6838. * The content of this attribute is a u32 array for one or more of
  6839. * hardware capabilities (attribute IDs) that are being requested. Each
  6840. * u32 value has a value from this
  6841. * enum qca_wlan_vendor_attr_get_hw_capability
  6842. * identifying which capabilities are requested.
  6843. */
  6844. QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
  6845. /* keep last */
  6846. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
  6847. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
  6848. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
  6849. };
  6850. /**
  6851. * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config -
  6852. * config params for sta roam policy
  6853. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid
  6854. * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels
  6855. * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL:
  6856. * If sta should skip unsafe channels or not in scanning
  6857. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST:
  6858. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute
  6859. */
  6860. enum qca_wlan_vendor_attr_sta_connect_roam_policy_config {
  6861. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0,
  6862. QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE,
  6863. QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL,
  6864. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST,
  6865. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX =
  6866. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1,
  6867. };
  6868. /* Attributes for FTM commands and events */
  6869. /**
  6870. * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
  6871. *
  6872. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
  6873. * enum qca_wlan_vendor_attr_loc_capa_flags.
  6874. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
  6875. * of measurement sessions that can run concurrently.
  6876. * Default is one session (no session concurrency).
  6877. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
  6878. * peers that are supported in running sessions. For example,
  6879. * if the value is 8 and maximum number of sessions is 2, you can
  6880. * have one session with 8 unique peers, or 2 sessions with 4 unique
  6881. * peers each, and so on.
  6882. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
  6883. * of bursts per peer, as an exponent (2^value). Default is 0,
  6884. * meaning no multi-burst support.
  6885. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
  6886. * of measurement exchanges allowed in a single burst.
  6887. * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
  6888. * types. A bit mask (unsigned 32 bit value), each bit corresponds
  6889. * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
  6890. */
  6891. enum qca_wlan_vendor_attr_loc_capa {
  6892. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
  6893. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
  6894. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
  6895. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
  6896. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
  6897. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
  6898. QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
  6899. /* keep last */
  6900. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
  6901. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
  6902. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
  6903. };
  6904. /**
  6905. * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
  6906. *
  6907. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
  6908. * can be configured as an FTM responder (for example, an AP that
  6909. * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  6910. * will be supported if set.
  6911. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
  6912. * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
  6913. * will be supported if set.
  6914. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
  6915. * supports immediate (ASAP) response.
  6916. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
  6917. * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
  6918. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
  6919. * requesting AOA measurements as part of an FTM session.
  6920. */
  6921. enum qca_wlan_vendor_attr_loc_capa_flags {
  6922. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
  6923. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
  6924. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
  6925. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
  6926. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
  6927. };
  6928. /**
  6929. * enum qca_wlan_ani_setting - ANI setting type
  6930. * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
  6931. * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
  6932. */
  6933. enum qca_wlan_ani_setting {
  6934. QCA_WLAN_ANI_SETTING_AUTO = 0,
  6935. QCA_WLAN_ANI_SETTING_FIXED = 1,
  6936. };
  6937. /**
  6938. * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
  6939. *
  6940. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
  6941. * Channel number on which Access Point should restart.
  6942. * Note: If both the driver and user space application supports the 6 GHz band,
  6943. * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
  6944. * should be used.
  6945. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
  6946. * is still used if either of the driver or user space application doesn't
  6947. * support the 6 GHz band.
  6948. *
  6949. * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required
  6950. * Nested attribute to hold list of center frequencies on which AP is
  6951. * expected to operate. This is irrespective of ACS configuration.
  6952. * This list is a priority based one and is looked for before the AP is
  6953. * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC)
  6954. * co-exist in the system.
  6955. *
  6956. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
  6957. * Channel center frequency (MHz) on which the access point should restart.
  6958. */
  6959. enum qca_wlan_vendor_attr_sap_config {
  6960. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
  6961. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
  6962. QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
  6963. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
  6964. /* Keep last */
  6965. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
  6966. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
  6967. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
  6968. };
  6969. /**
  6970. * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
  6971. * a single peer in a measurement session.
  6972. *
  6973. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
  6974. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
  6975. * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
  6976. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
  6977. * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
  6978. * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
  6979. * list of supported attributes.
  6980. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
  6981. * secure measurement.
  6982. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
  6983. * measurement every <value> bursts. If 0 or not specified,
  6984. * AOA measurements will be disabled for this peer.
  6985. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
  6986. * the measurement frames are exchanged. Optional; if not
  6987. * specified, try to locate the peer in the kernel scan
  6988. * results cache and use frequency from there.
  6989. */
  6990. enum qca_wlan_vendor_attr_ftm_peer_info {
  6991. QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
  6992. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
  6993. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
  6994. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
  6995. QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
  6996. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
  6997. QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
  6998. /* keep last */
  6999. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
  7000. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
  7001. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
  7002. };
  7003. /**
  7004. * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
  7005. * per-peer
  7006. *
  7007. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
  7008. * immediate (ASAP) response from peer.
  7009. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
  7010. * LCI report from peer. The LCI report includes the absolute
  7011. * location of the peer in "official" coordinates (similar to GPS).
  7012. * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
  7013. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
  7014. * Location civic report from peer. The LCR includes the location
  7015. * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
  7016. * 11.24.6.7 for more information.
  7017. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
  7018. * request a secure measurement.
  7019. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
  7020. */
  7021. enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
  7022. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
  7023. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
  7024. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
  7025. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
  7026. };
  7027. /**
  7028. * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
  7029. *
  7030. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
  7031. * to perform in a single burst.
  7032. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
  7033. * perform, specified as an exponent (2^value).
  7034. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
  7035. * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
  7036. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
  7037. * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
  7038. * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
  7039. */
  7040. enum qca_wlan_vendor_attr_ftm_meas_param {
  7041. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
  7042. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
  7043. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
  7044. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
  7045. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
  7046. /* keep last */
  7047. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
  7048. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
  7049. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
  7050. };
  7051. /**
  7052. * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
  7053. *
  7054. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
  7055. * peer.
  7056. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
  7057. * request for this peer.
  7058. * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
  7059. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
  7060. * to measurement results for this peer.
  7061. * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
  7062. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
  7063. * request failed and peer requested not to send an additional request
  7064. * for this number of seconds.
  7065. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
  7066. * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  7067. * 9.4.2.22.10.
  7068. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
  7069. * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  7070. * 9.4.2.22.13.
  7071. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
  7072. * overridden some measurement request parameters. See
  7073. * enum qca_wlan_vendor_attr_ftm_meas_param.
  7074. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
  7075. * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
  7076. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
  7077. * results. Each entry is a nested attribute defined
  7078. * by enum qca_wlan_vendor_attr_ftm_meas.
  7079. */
  7080. enum qca_wlan_vendor_attr_ftm_peer_result {
  7081. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
  7082. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
  7083. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
  7084. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
  7085. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
  7086. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
  7087. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
  7088. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
  7089. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
  7090. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
  7091. /* keep last */
  7092. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
  7093. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
  7094. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
  7095. };
  7096. /**
  7097. * enum qca_wlan_vendor_attr_ftm_peer_result_status
  7098. *
  7099. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
  7100. * will be provided. Peer may have overridden some measurement parameters,
  7101. * in which case overridden parameters will be report by
  7102. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
  7103. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
  7104. * of performing the measurement request. No more results will be sent
  7105. * for this peer in this session.
  7106. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
  7107. * failed, and requested not to send an additional request for number
  7108. * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
  7109. * attribute.
  7110. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
  7111. * failed. Request was not sent over the air.
  7112. */
  7113. enum qca_wlan_vendor_attr_ftm_peer_result_status {
  7114. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
  7115. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
  7116. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
  7117. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
  7118. };
  7119. /**
  7120. * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
  7121. * for measurement result, per-peer
  7122. *
  7123. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
  7124. * measurement completed for this peer. No more results will be reported
  7125. * for this peer in this session.
  7126. */
  7127. enum qca_wlan_vendor_attr_ftm_peer_result_flags {
  7128. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
  7129. };
  7130. /**
  7131. * enum qca_vendor_attr_loc_session_status: Session completion status code
  7132. *
  7133. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
  7134. * successfully.
  7135. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
  7136. * by request.
  7137. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
  7138. * was invalid and was not started.
  7139. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
  7140. * and did not complete normally (for example out of resources).
  7141. */
  7142. enum qca_vendor_attr_loc_session_status {
  7143. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
  7144. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
  7145. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
  7146. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
  7147. };
  7148. /**
  7149. * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
  7150. *
  7151. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
  7152. * recorded by responder, in picoseconds.
  7153. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  7154. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
  7155. * initiator, in picoseconds.
  7156. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  7157. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
  7158. * initiator, in picoseconds.
  7159. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  7160. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
  7161. * responder, in picoseconds.
  7162. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  7163. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
  7164. * during this measurement exchange. Optional and will be provided if
  7165. * the hardware can measure it.
  7166. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
  7167. * responder. Not always provided.
  7168. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  7169. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
  7170. * responder. Not always provided.
  7171. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  7172. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
  7173. * initiator. Not always provided.
  7174. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  7175. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
  7176. * initiator. Not always provided.
  7177. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  7178. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
  7179. */
  7180. enum qca_wlan_vendor_attr_ftm_meas {
  7181. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
  7182. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
  7183. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
  7184. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
  7185. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
  7186. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
  7187. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
  7188. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
  7189. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
  7190. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
  7191. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
  7192. /* keep last */
  7193. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
  7194. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
  7195. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
  7196. };
  7197. /**
  7198. * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index
  7199. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value
  7200. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL:
  7201. * A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
  7202. * of the social channels.
  7203. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period
  7204. * A 32-bit unsigned value; the P2P listen offload period (ms).
  7205. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL:
  7206. * A 32-bit unsigned value; the P2P listen interval duration (ms).
  7207. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT:
  7208. * A 32-bit unsigned value; number of interval times the Firmware needs
  7209. * to run the offloaded P2P listen operation before it stops.
  7210. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types
  7211. * An array of unsigned 8-bit characters; vendor information elements.
  7212. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs
  7213. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW
  7214. * A 32-bit unsigned value; a control flag to indicate whether listen
  7215. * results need to be flushed to wpa_supplicant.
  7216. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason
  7217. * A 8-bit unsigned value; reason code for P2P listen offload stop
  7218. * event.
  7219. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value
  7220. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value
  7221. */
  7222. enum qca_wlan_vendor_attr_p2p_listen_offload {
  7223. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
  7224. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
  7225. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
  7226. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
  7227. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
  7228. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
  7229. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
  7230. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
  7231. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
  7232. /* keep last */
  7233. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
  7234. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
  7235. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
  7236. };
  7237. /**
  7238. * enum qca_wlan_vendor_drv_info - WLAN driver info
  7239. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid
  7240. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info
  7241. * between Firmware & Host.
  7242. */
  7243. enum qca_wlan_vendor_drv_info {
  7244. QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
  7245. QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
  7246. /* keep last */
  7247. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
  7248. QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
  7249. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
  7250. };
  7251. /**
  7252. * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
  7253. *
  7254. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
  7255. * CIR (channel impulse response) path for each antenna.
  7256. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
  7257. * of the strongest CIR path for each antenna.
  7258. */
  7259. enum qca_wlan_vendor_attr_aoa_type {
  7260. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
  7261. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
  7262. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
  7263. };
  7264. /**
  7265. * enum qca_wlan_vendor_attr_encryption_test - Attributes to
  7266. * validate encryption engine
  7267. *
  7268. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
  7269. * This will be included if the request is for decryption; if not included,
  7270. * the request is treated as a request for encryption by default.
  7271. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
  7272. * indicating the key cipher suite. Takes same values as
  7273. * NL80211_ATTR_KEY_CIPHER.
  7274. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
  7275. * Key Id to be used for encryption
  7276. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
  7277. * Key (TK) to be used for encryption/decryption
  7278. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
  7279. * Packet number to be specified for encryption/decryption
  7280. * 6 bytes for TKIP/CCMP/GCMP.
  7281. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
  7282. * representing the 802.11 packet (header + payload + FCS) that
  7283. * needs to be encrypted/decrypted.
  7284. * Encrypted/decrypted response from the driver will also be sent
  7285. * to userspace with the same attribute.
  7286. */
  7287. enum qca_wlan_vendor_attr_encryption_test {
  7288. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
  7289. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
  7290. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
  7291. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
  7292. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
  7293. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
  7294. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
  7295. /* keep last */
  7296. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
  7297. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
  7298. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
  7299. };
  7300. /**
  7301. * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
  7302. * sector for DMG RF sector operations.
  7303. *
  7304. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
  7305. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
  7306. */
  7307. enum qca_wlan_vendor_attr_dmg_rf_sector_type {
  7308. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
  7309. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
  7310. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
  7311. };
  7312. /**
  7313. * enum qca_wlan_vendor_attr_fw_state - State of firmware
  7314. *
  7315. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
  7316. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
  7317. */
  7318. enum qca_wlan_vendor_attr_fw_state {
  7319. QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
  7320. QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
  7321. QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
  7322. };
  7323. /**
  7324. * BRP antenna limit mode
  7325. *
  7326. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
  7327. * antenna limit, BRP will be performed as usual.
  7328. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
  7329. * antennas limit. the hardware may use less antennas than the
  7330. * maximum limit.
  7331. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
  7332. * use exactly the specified number of antennas for BRP.
  7333. */
  7334. enum qca_wlan_vendor_attr_brp_ant_limit_mode {
  7335. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
  7336. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
  7337. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
  7338. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
  7339. };
  7340. /**
  7341. * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
  7342. * DMG RF sector configuration for a single RF module.
  7343. * The values are defined in a compact way which closely matches
  7344. * the way it is stored in HW registers.
  7345. * The configuration provides values for 32 antennas and 8 distribution
  7346. * amplifiers, and together describes the characteristics of the RF
  7347. * sector - such as a beam in some direction with some gain.
  7348. *
  7349. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
  7350. * of RF module for this configuration.
  7351. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
  7352. * amplifier gain index. Unsigned 32 bit number containing
  7353. * bits for all 32 antennas.
  7354. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
  7355. * amplifier gain index. Unsigned 32 bit number containing
  7356. * bits for all 32 antennas.
  7357. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
  7358. * amplifier gain index. Unsigned 32 bit number containing
  7359. * bits for all 32 antennas.
  7360. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
  7361. * for first 16 antennas, 2 bits per antenna.
  7362. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
  7363. * for last 16 antennas, 2 bits per antenna.
  7364. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
  7365. * DTYPE values (3 bits) for each distribution amplifier, followed
  7366. * by X16 switch bits for each distribution amplifier. There are
  7367. * total of 8 distribution amplifiers.
  7368. */
  7369. enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
  7370. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
  7371. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
  7372. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
  7373. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
  7374. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
  7375. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
  7376. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
  7377. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
  7378. /* keep last */
  7379. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
  7380. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
  7381. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
  7382. };
  7383. /**
  7384. * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
  7385. * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver.
  7386. *
  7387. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
  7388. * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
  7389. * represents the different TDLS trigger modes.
  7390. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
  7391. * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
  7392. * of packets shall meet the criteria for implicit TDLS setup.
  7393. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx
  7394. * packets within a duration.
  7395. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate
  7396. * a TDLS setup.
  7397. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
  7398. * a TDLS Discovery to the Peer.
  7399. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
  7400. * discovery attempts to know the TDLS capability of the peer. A peer is
  7401. * marked as TDLS not capable if there is no response for all the attempts.
  7402. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
  7403. * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
  7404. * number of TX / RX frames meet the criteria for TDLS teardown.
  7405. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number
  7406. * (u32) of Tx/Rx packets within a duration
  7407. * CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link
  7408. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
  7409. * corresponding to the RSSI of the peer below which a TDLS
  7410. * setup is triggered.
  7411. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
  7412. * corresponding to the RSSI of the peer above which
  7413. * a TDLS teardown is triggered.
  7414. */
  7415. enum qca_wlan_vendor_attr_tdls_configuration {
  7416. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
  7417. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
  7418. /* Attributes configuring the TDLS Implicit Trigger */
  7419. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
  7420. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
  7421. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
  7422. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
  7423. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
  7424. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
  7425. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
  7426. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
  7427. /* keep last */
  7428. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
  7429. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
  7430. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
  7431. };
  7432. /**
  7433. * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
  7434. * the driver.
  7435. *
  7436. * The following are the different values for
  7437. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
  7438. *
  7439. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to
  7440. * initiate/teardown the TDLS connection to a respective peer comes
  7441. * from the user space. wpa_supplicant provides the commands
  7442. * TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this.
  7443. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
  7444. * setup/teardown to the eligible peer once the configured criteria
  7445. * (such as TX/RX threshold, RSSI) is met. The attributes
  7446. * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
  7447. * the different configuration criteria for the TDLS trigger from the
  7448. * host driver.
  7449. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
  7450. * the TDLS setup / teardown through the implicit mode, only to the
  7451. * configured MAC addresses(wpa_supplicant, with tdls_external_control = 1,
  7452. * configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands).
  7453. * External mode works on top of the implicit mode, thus the host Driver
  7454. * is expected to be configured in TDLS Implicit mode too to operate in
  7455. * External mode. Configuring External mode alone without Implicit
  7456. * mode is invalid.
  7457. *
  7458. * All the above implementations work as expected only when the host driver
  7459. * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP -
  7460. * representing that the TDLS message exchange is not internal to the host
  7461. * driver, but depends on wpa_supplicant to do the message exchange.
  7462. */
  7463. enum qca_wlan_vendor_tdls_trigger_mode {
  7464. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
  7465. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
  7466. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
  7467. };
  7468. /**
  7469. * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
  7470. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
  7471. * that is hard-coded in the Board Data File (BDF).
  7472. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
  7473. * that is hard-coded in the Board Data File (BDF).
  7474. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
  7475. * that is hard-coded in the Board Data File (BDF).
  7476. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
  7477. * that is hard-coded in the Board Data File (BDF).
  7478. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
  7479. * that is hard-coded in the Board Data File (BDF).
  7480. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
  7481. * source of SAR power limits, thereby disabling the SAR power
  7482. * limit feature.
  7483. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
  7484. * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  7485. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
  7486. * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  7487. *
  7488. * This enumerates the valid set of values that may be supplied for
  7489. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
  7490. * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
  7491. * the response to an instance of the
  7492. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  7493. */
  7494. enum qca_vendor_attr_sar_limits_selections {
  7495. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
  7496. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
  7497. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
  7498. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
  7499. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
  7500. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
  7501. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
  7502. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
  7503. };
  7504. /**
  7505. * enum qca_vendor_attr_sar_limits_spec_modulations -
  7506. * SAR limits specification modulation
  7507. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
  7508. * CCK modulation
  7509. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
  7510. * OFDM modulation
  7511. *
  7512. * This enumerates the valid set of values that may be supplied for
  7513. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
  7514. * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
  7515. * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
  7516. * command or in the response to an instance of the
  7517. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  7518. */
  7519. enum qca_vendor_attr_sar_limits_spec_modulations {
  7520. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
  7521. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
  7522. };
  7523. /**
  7524. * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
  7525. *
  7526. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
  7527. * select which SAR power limit table should be used. Valid
  7528. * values are enumerated in enum
  7529. * %qca_vendor_attr_sar_limits_selections. The existing SAR
  7530. * power limit selection is unchanged if this attribute is not
  7531. * present.
  7532. *
  7533. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
  7534. * which specifies the number of SAR power limit specifications
  7535. * which will follow.
  7536. *
  7537. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
  7538. * limit specifications. The number of specifications is
  7539. * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
  7540. * specification contains a set of
  7541. * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
  7542. * specification is uniquely identified by the attributes
  7543. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
  7544. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
  7545. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
  7546. * contains as a payload the attribute
  7547. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
  7548. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
  7549. * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
  7550. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
  7551. * needed based upon the value of
  7552. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
  7553. *
  7554. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
  7555. * indicate for which band this specification applies. Valid
  7556. * values are enumerated in enum %nl80211_band (although not all
  7557. * bands may be supported by a given device). If the attribute is
  7558. * not supplied then the specification will be applied to all
  7559. * supported bands.
  7560. *
  7561. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
  7562. * to indicate for which antenna chain this specification
  7563. * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
  7564. * attribute is not supplied then the specification will be
  7565. * applied to all chains.
  7566. *
  7567. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
  7568. * value to indicate for which modulation scheme this
  7569. * specification applies. Valid values are enumerated in enum
  7570. * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
  7571. * is not supplied then the specification will be applied to all
  7572. * modulation schemes.
  7573. *
  7574. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
  7575. * value to specify the actual power limit value in units of 0.5
  7576. * dBm (i.e., a value of 11 represents 5.5 dBm).
  7577. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  7578. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
  7579. *
  7580. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
  7581. * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
  7582. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  7583. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
  7584. *
  7585. * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
  7586. * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
  7587. */
  7588. enum qca_vendor_attr_sar_limits {
  7589. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
  7590. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
  7591. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
  7592. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
  7593. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
  7594. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
  7595. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
  7596. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
  7597. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
  7598. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
  7599. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
  7600. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
  7601. };
  7602. /**
  7603. * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
  7604. * offload which is an extension for LL_STATS.
  7605. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
  7606. * If MAC counters do not exceed the threshold, FW will report monitored
  7607. * link layer counters periodically as this setting. The first report is
  7608. * always triggered by this timer.
  7609. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
  7610. * For each MAC layer counter, FW holds two copies. One is the current value.
  7611. * The other is the last report. Once a current counter's increment is larger
  7612. * than the threshold, FW will indicate that counter to host even if the
  7613. * monitoring timer does not expire.
  7614. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
  7615. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
  7616. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
  7617. * failure code.
  7618. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
  7619. * 1: TX packet discarded
  7620. * 2: No ACK
  7621. * 3: Postpone
  7622. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
  7623. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
  7624. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
  7625. * Threshold for all monitored parameters. If per counter dedicated threshold
  7626. * is not enabled, this threshold will take effect.
  7627. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
  7628. * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
  7629. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
  7630. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
  7631. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
  7632. * Bit0: TX counter unit in MSDU
  7633. * Bit1: TX counter unit in MPDU
  7634. * Bit2: TX counter unit in PPDU
  7635. * Bit3: TX counter unit in byte
  7636. * Bit4: Dropped MSDUs
  7637. * Bit5: Dropped Bytes
  7638. * Bit6: MPDU retry counter
  7639. * Bit7: MPDU failure counter
  7640. * Bit8: PPDU failure counter
  7641. * Bit9: MPDU aggregation counter
  7642. * Bit10: MCS counter for ACKed MPDUs
  7643. * Bit11: MCS counter for Failed MPDUs
  7644. * Bit12: TX Delay counter
  7645. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
  7646. * Bit0: MAC RX counter unit in MPDU
  7647. * Bit1: MAC RX counter unit in byte
  7648. * Bit2: PHY RX counter unit in PPDU
  7649. * Bit3: PHY RX counter unit in byte
  7650. * Bit4: Disorder counter
  7651. * Bit5: Retry counter
  7652. * Bit6: Duplication counter
  7653. * Bit7: Discard counter
  7654. * Bit8: MPDU aggregation size counter
  7655. * Bit9: MCS counter
  7656. * Bit10: Peer STA power state change (wake to sleep) counter
  7657. * Bit11: Peer STA power save counter, total time in PS mode
  7658. * Bit12: Probe request counter
  7659. * Bit13: Other management frames counter
  7660. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
  7661. * Bit0: Idle time
  7662. * Bit1: TX time
  7663. * Bit2: time RX in current bss
  7664. * Bit3: Out of current bss time
  7665. * Bit4: Wireless medium busy time
  7666. * Bit5: RX in bad condition time
  7667. * Bit6: TX in bad condition time
  7668. * Bit7: time wlan card not available
  7669. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
  7670. * Bit0: Per channel SNR counter
  7671. * Bit1: Per channel noise floor counter
  7672. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
  7673. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
  7674. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
  7675. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
  7676. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
  7677. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
  7678. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
  7679. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
  7680. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
  7681. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
  7682. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
  7683. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
  7684. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
  7685. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
  7686. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
  7687. * aggregation stats buffer length
  7688. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
  7689. * buffer for ACKed MPDUs.
  7690. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
  7691. * buffer for failed MPDUs.
  7692. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
  7693. * length of delay stats array.
  7694. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
  7695. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
  7696. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
  7697. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
  7698. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
  7699. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
  7700. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
  7701. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
  7702. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
  7703. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
  7704. * flagged as retransmissions
  7705. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
  7706. * flagged as duplicated
  7707. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
  7708. * packets discarded
  7709. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
  7710. * stats buffer.
  7711. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
  7712. * stats buffer.
  7713. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
  7714. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
  7715. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
  7716. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
  7717. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
  7718. * requests received
  7719. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
  7720. * frames received
  7721. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
  7722. * there is no TX, nor RX, nor interference.
  7723. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
  7724. * transmitting packets.
  7725. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
  7726. * for receiving.
  7727. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
  7728. * interference detected.
  7729. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
  7730. * receiving packets with errors.
  7731. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
  7732. * TX no-ACK.
  7733. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
  7734. * the chip is unable to work in normal conditions.
  7735. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
  7736. * receiving packets in current BSS.
  7737. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
  7738. * receiving packets not in current BSS.
  7739. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
  7740. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
  7741. * This is a container for per antenna signal stats.
  7742. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
  7743. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
  7744. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
  7745. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
  7746. */
  7747. enum qca_wlan_vendor_attr_ll_stats_ext {
  7748. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
  7749. /* Attributes for configurations */
  7750. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
  7751. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
  7752. /* Peer STA power state change */
  7753. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
  7754. /* TX failure event */
  7755. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
  7756. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
  7757. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
  7758. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
  7759. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
  7760. /* MAC counters */
  7761. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
  7762. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
  7763. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
  7764. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
  7765. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
  7766. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
  7767. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
  7768. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
  7769. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
  7770. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
  7771. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
  7772. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
  7773. /* Sub-attributes for PEER_AC_TX */
  7774. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
  7775. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
  7776. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
  7777. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
  7778. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
  7779. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
  7780. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
  7781. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
  7782. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
  7783. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
  7784. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
  7785. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
  7786. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
  7787. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
  7788. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
  7789. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
  7790. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
  7791. /* Sub-attributes for PEER_AC_RX */
  7792. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
  7793. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
  7794. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
  7795. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
  7796. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
  7797. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
  7798. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
  7799. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
  7800. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
  7801. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
  7802. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
  7803. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
  7804. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
  7805. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
  7806. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
  7807. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
  7808. /* Sub-attributes for CCA_BSS */
  7809. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
  7810. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
  7811. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
  7812. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
  7813. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
  7814. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
  7815. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
  7816. /* sub-attribute for BSS_RX_TIME */
  7817. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
  7818. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
  7819. /* Sub-attributes for PEER_SIGNAL */
  7820. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
  7821. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
  7822. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
  7823. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
  7824. /* Sub-attributes for IFACE_BSS */
  7825. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
  7826. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
  7827. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
  7828. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
  7829. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
  7830. };
  7831. /**
  7832. * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
  7833. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
  7834. * in priority order as decided after ACS operation in userspace.
  7835. *
  7836. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
  7837. * One of reason code from enum qca_wlan_vendor_acs_select_reason.
  7838. *
  7839. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
  7840. * Array of nested values for each channel with following attributes:
  7841. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  7842. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  7843. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  7844. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  7845. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7846. * Note: If both the driver and user-space application supports the 6 GHz band,
  7847. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
  7848. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
  7849. * To maintain backward compatibility,
  7850. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
  7851. * is still used if either of the driver or user space application doesn't
  7852. * support the 6 GHz band.
  7853. *
  7854. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
  7855. * Primary channel number
  7856. * Note: If both the driver and user-space application supports the 6 GHz band,
  7857. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
  7858. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
  7859. * To maintain backward compatibility,
  7860. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
  7861. * is still used if either of the driver or user space application doesn't
  7862. * support the 6 GHz band.
  7863. *
  7864. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
  7865. * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
  7866. * Note: If both the driver and user-space application supports the 6 GHz band,
  7867. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
  7868. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
  7869. * To maintain backward compatibility,
  7870. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
  7871. * is still used if either of the driver or user space application
  7872. * doesn't support the 6 GHz band.
  7873. *
  7874. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
  7875. * VHT seg0 channel number
  7876. * Note: If both the driver and user-space application supports the 6 GHz band,
  7877. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
  7878. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
  7879. * To maintain backward compatibility,
  7880. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
  7881. * is still used if either of the driver or user space application
  7882. * doesn't support the 6 GHz band.
  7883. *
  7884. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
  7885. * VHT seg1 channel number
  7886. * Note: If both the driver and user-space application supports the 6 GHz band,
  7887. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
  7888. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
  7889. * To maintain backward compatibility,
  7890. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
  7891. * is still used if either of the driver or user space application
  7892. * doesn't support the 6 GHz band.
  7893. *
  7894. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
  7895. * Takes one of enum nl80211_chan_width values.
  7896. *
  7897. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
  7898. * Array of nested values for each channel with following attributes:
  7899. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
  7900. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
  7901. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
  7902. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
  7903. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7904. * Note: If user-space application has no support of the 6 GHz band, this
  7905. * attribute is optional.
  7906. *
  7907. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
  7908. * Primary channel frequency in MHz
  7909. * Note: If user-space application has no support of the 6 GHz band, this
  7910. * attribute is optional.
  7911. *
  7912. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
  7913. * Secondary channel frequency in MHz used for HT 40 MHz channels.
  7914. * Note: If user-space application has no support of the 6 GHz band, this
  7915. * attribute is optional.
  7916. *
  7917. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
  7918. * VHT seg0 channel frequency in MHz
  7919. * Note: If user-space application has no support of the 6GHz band, this
  7920. * attribute is optional.
  7921. *
  7922. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
  7923. * VHT seg1 channel frequency in MHz
  7924. * Note: If user-space application has no support of the 6 GHz band, this
  7925. * attribute is optional.
  7926. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16)
  7927. * Puncture Bitmap for selected primary channel. Optional if no support
  7928. * for EHT (IEEE 802.11be). Encoding for this attribute follows the
  7929. * convention used in the Disabled Subchannel Bitmap field of the EHT Operation
  7930. * element.
  7931. */
  7932. enum qca_wlan_vendor_attr_external_acs_channels {
  7933. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
  7934. /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
  7935. */
  7936. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
  7937. /* Array of nested values for each channel with following attributes:
  7938. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
  7939. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  7940. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  7941. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  7942. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  7943. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7944. */
  7945. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
  7946. /* This (u8) will hold values of one of enum nl80211_bands */
  7947. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
  7948. /* Primary channel (u8) */
  7949. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
  7950. /* Secondary channel (u8) used for HT 40 MHz channels */
  7951. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
  7952. /* VHT seg0 channel (u8) */
  7953. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
  7954. /* VHT seg1 channel (u8) */
  7955. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
  7956. /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
  7957. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
  7958. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
  7959. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
  7960. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
  7961. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
  7962. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
  7963. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14,
  7964. /* keep last */
  7965. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
  7966. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
  7967. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
  7968. };
  7969. /**
  7970. * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
  7971. * the ACS has to be triggered. These values are used by
  7972. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
  7973. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
  7974. */
  7975. enum qca_wlan_vendor_acs_select_reason {
  7976. /* Represents the reason that the ACS triggered during the AP start */
  7977. QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
  7978. /* Represents the reason that DFS found with the current channel */
  7979. QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
  7980. /* Represents the reason that LTE co-exist in the current band. */
  7981. QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
  7982. /* Represents the reason that generic, uncategorized interference has
  7983. * been found in the current channel.
  7984. */
  7985. QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
  7986. /* Represents the reason that excessive 802.11 interference has been
  7987. * found in the current channel.
  7988. */
  7989. QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
  7990. /* Represents the reason that generic Continuous Wave (CW) interference
  7991. * has been found in the current channel.
  7992. */
  7993. QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
  7994. /* Represents the reason that Microwave Oven (MWO) interference has been
  7995. * found in the current channel.
  7996. */
  7997. QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
  7998. /* Represents the reason that generic Frequency-Hopping Spread Spectrum
  7999. * (FHSS) interference has been found in the current channel. This may
  8000. * include 802.11 waveforms.
  8001. */
  8002. QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
  8003. /* Represents the reason that non-802.11 generic Frequency-Hopping
  8004. * Spread Spectrum (FHSS) interference has been found in the current
  8005. * channel.
  8006. */
  8007. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
  8008. /* Represents the reason that generic Wideband (WB) interference has
  8009. * been found in the current channel. This may include 802.11 waveforms.
  8010. */
  8011. QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
  8012. /* Represents the reason that non-802.11 generic Wideband (WB)
  8013. * interference has been found in the current channel.
  8014. */
  8015. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
  8016. /* Represents the reason that Jammer interference has been found in the
  8017. * current channel.
  8018. */
  8019. QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
  8020. /* Represents the reason that ACS triggered by AFC */
  8021. QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
  8022. };
  8023. /**
  8024. * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
  8025. *
  8026. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
  8027. * value to specify the gpio command, please refer to enum qca_gpio_cmd_type
  8028. * to get the available value that this item can use.
  8029. *
  8030. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
  8031. * value to specify the gpio number.
  8032. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  8033. * %QCA_WLAN_VENDOR_GPIO_CONFIG or %.QCA_WLAN_VENDOR_GPIO_OUTPUT.
  8034. *
  8035. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
  8036. * value to specify the gpio output level, please refer to enum qca_gpio_value
  8037. * to get the available value that this item can use.
  8038. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  8039. * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
  8040. *
  8041. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
  8042. * value to specify the gpio pull type, please refer to enum qca_gpio_pull_type
  8043. * to get the available value that this item can use.
  8044. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  8045. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  8046. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  8047. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  8048. * attribute is present.
  8049. *
  8050. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
  8051. * value to specify the gpio interrupt mode, please refer to enum
  8052. * qca_gpio_interrupt_mode to get the available value that this item can use.
  8053. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  8054. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  8055. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  8056. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  8057. * attribute is present.
  8058. *
  8059. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
  8060. * value to specify the gpio direction, please refer to enum qca_gpio_direction
  8061. * to get the available value that this item can use.
  8062. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  8063. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  8064. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  8065. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  8066. * attribute is present.
  8067. *
  8068. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
  8069. * Value to specify the mux config. Meaning of a given value is dependent
  8070. * on the target chipset and gpio pin. Must be of the range 0-15.
  8071. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  8072. * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
  8073. *
  8074. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
  8075. * Value to specify the drive, Refer to enum qca_gpio_drive.
  8076. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  8077. * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
  8078. *
  8079. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
  8080. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  8081. * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
  8082. * other parameters for the given GPIO will be obtained from internal
  8083. * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
  8084. * specified to indicate the GPIO pin being configured.
  8085. */
  8086. enum qca_wlan_gpio_attr {
  8087. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
  8088. /* Unsigned 32-bit attribute for GPIO command */
  8089. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
  8090. /* Unsigned 32-bit attribute for GPIO PIN number to configure */
  8091. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
  8092. /* Unsigned 32-bit attribute for GPIO value to configure */
  8093. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
  8094. /* Unsigned 32-bit attribute for GPIO pull type */
  8095. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
  8096. /* Unsigned 32-bit attribute for GPIO interrupt mode */
  8097. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
  8098. /* Unsigned 32-bit attribute for GPIO direction to configure */
  8099. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
  8100. /* Unsigned 32-bit attribute for GPIO mux config */
  8101. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
  8102. /* Unsigned 32-bit attribute for GPIO drive */
  8103. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
  8104. /* Flag attribute for using internal gpio configuration */
  8105. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
  8106. /* keep last */
  8107. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
  8108. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
  8109. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1,
  8110. };
  8111. /**
  8112. * enum gpio_cmd_type - GPIO configuration command type
  8113. * @QCA_WLAN_VENDOR_GPIO_CONFIG: set gpio configuration info
  8114. * @QCA_WLAN_VENDOR_GPIO_OUTPUT: set gpio output level
  8115. */
  8116. enum qca_gpio_cmd_type {
  8117. QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
  8118. QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
  8119. };
  8120. /**
  8121. * enum qca_gpio_pull_type - GPIO pull type
  8122. * @QCA_WLAN_GPIO_PULL_NONE: set gpio pull type to none
  8123. * @QCA_WLAN_GPIO_PULL_UP: set gpio pull up
  8124. * @QCA_WLAN_GPIO_PULL_DOWN: set gpio pull down
  8125. */
  8126. enum qca_gpio_pull_type {
  8127. QCA_WLAN_GPIO_PULL_NONE = 0,
  8128. QCA_WLAN_GPIO_PULL_UP = 1,
  8129. QCA_WLAN_GPIO_PULL_DOWN = 2,
  8130. QCA_WLAN_GPIO_PULL_MAX,
  8131. };
  8132. /**
  8133. * enum qca_gpio_direction - GPIO direction
  8134. * @QCA_WLAN_GPIO_INPUT: set gpio as input mode
  8135. * @QCA_WLAN_GPIO_OUTPUT: set gpio as output mode
  8136. * @QCA_WLAN_GPIO_VALUE_MAX: invalid value
  8137. */
  8138. enum qca_gpio_direction {
  8139. QCA_WLAN_GPIO_INPUT = 0,
  8140. QCA_WLAN_GPIO_OUTPUT = 1,
  8141. QCA_WLAN_GPIO_DIR_MAX,
  8142. };
  8143. /**
  8144. * enum qca_gpio_value - GPIO Value
  8145. * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
  8146. * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
  8147. * @QCA_WLAN_GPIO_LEVEL_MAX: invalid value
  8148. */
  8149. enum qca_gpio_value {
  8150. QCA_WLAN_GPIO_LEVEL_LOW = 0,
  8151. QCA_WLAN_GPIO_LEVEL_HIGH = 1,
  8152. QCA_WLAN_GPIO_LEVEL_MAX,
  8153. };
  8154. /**
  8155. * enum gpio_interrupt_mode - GPIO interrupt mode
  8156. * @QCA_WLAN_GPIO_INTMODE_DISABLE: disable interrupt trigger
  8157. * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: interrupt with gpio rising edge trigger
  8158. * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: interrupt with gpio falling edge trigger
  8159. * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: interrupt with gpio both edge trigger
  8160. * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: interrupt with gpio level low trigger
  8161. * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: interrupt with gpio level high trigger
  8162. * @QCA_WLAN_GPIO_INTMODE_MAX: invalid value
  8163. */
  8164. enum qca_gpio_interrupt_mode {
  8165. QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
  8166. QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
  8167. QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
  8168. QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
  8169. QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
  8170. QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
  8171. QCA_WLAN_GPIO_INTMODE_MAX,
  8172. };
  8173. /**
  8174. * enum gpio_drive - GPIO drive
  8175. * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
  8176. * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
  8177. * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
  8178. * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
  8179. * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
  8180. * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
  8181. * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
  8182. * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
  8183. * @QCA_WLAN_GPIO_DRIVE_MAX: invalid gpio drive
  8184. */
  8185. enum qca_gpio_drive {
  8186. QCA_WLAN_GPIO_DRIVE_2MA = 0,
  8187. QCA_WLAN_GPIO_DRIVE_4MA = 1,
  8188. QCA_WLAN_GPIO_DRIVE_6MA = 2,
  8189. QCA_WLAN_GPIO_DRIVE_8MA = 3,
  8190. QCA_WLAN_GPIO_DRIVE_10MA = 4,
  8191. QCA_WLAN_GPIO_DRIVE_12MA = 5,
  8192. QCA_WLAN_GPIO_DRIVE_14MA = 6,
  8193. QCA_WLAN_GPIO_DRIVE_16MA = 7,
  8194. QCA_WLAN_GPIO_DRIVE_MAX,
  8195. };
  8196. /**
  8197. * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
  8198. * MSDUQ depth threshold per peer per tid in the target
  8199. *
  8200. * Associated Vendor Command:
  8201. * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
  8202. */
  8203. enum qca_wlan_set_qdepth_thresh_attr {
  8204. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
  8205. /* 6-byte MAC address */
  8206. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
  8207. /* Unsigned 32-bit attribute for holding the TID */
  8208. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
  8209. /* Unsigned 32-bit attribute for holding the update mask
  8210. * bit 0 - Update high priority msdu qdepth threshold
  8211. * bit 1 - Update low priority msdu qdepth threshold
  8212. * bit 2 - Update UDP msdu qdepth threshold
  8213. * bit 3 - Update Non UDP msdu qdepth threshold
  8214. * rest of bits are reserved
  8215. */
  8216. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
  8217. /* Unsigned 32-bit attribute for holding the threshold value */
  8218. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
  8219. /* keep last */
  8220. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
  8221. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
  8222. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
  8223. };
  8224. /**
  8225. * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
  8226. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
  8227. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
  8228. * external ACS policies to select the channels w.r.t. the PCL weights.
  8229. * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
  8230. * their PCL weights.)
  8231. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
  8232. * select a channel with non-zero PCL weight.
  8233. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
  8234. * channel with non-zero PCL weight.
  8235. *
  8236. */
  8237. enum qca_wlan_vendor_attr_external_acs_policy {
  8238. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
  8239. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
  8240. };
  8241. /**
  8242. * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
  8243. */
  8244. enum qca_wlan_vendor_attr_spectral_scan {
  8245. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
  8246. /*
  8247. * Number of times the chip enters spectral scan mode before
  8248. * deactivating spectral scans. When set to 0, chip will enter spectral
  8249. * scan mode continuously. u32 attribute.
  8250. */
  8251. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
  8252. /*
  8253. * Spectral scan period. Period increment resolution is 256*Tclk,
  8254. * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
  8255. */
  8256. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
  8257. /* Spectral scan priority. u32 attribute. */
  8258. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
  8259. /* Number of FFT data points to compute. u32 attribute. */
  8260. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
  8261. /*
  8262. * Enable targeted gain change before starting the spectral scan FFT.
  8263. * u32 attribute.
  8264. */
  8265. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
  8266. /* Restart a queued spectral scan. u32 attribute. */
  8267. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
  8268. /*
  8269. * Noise floor reference number for the calculation of bin power.
  8270. * u32 attribute.
  8271. */
  8272. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
  8273. /*
  8274. * Disallow spectral scan triggers after TX/RX packets by setting
  8275. * this delay value to roughly SIFS time period or greater.
  8276. * u32 attribute.
  8277. */
  8278. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
  8279. /*
  8280. * Number of strong bins (inclusive) per sub-channel, below
  8281. * which a signal is declared a narrow band tone. u32 attribute.
  8282. */
  8283. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
  8284. /*
  8285. * Specify the threshold over which a bin is declared strong (for
  8286. * scan bandwidth analysis). u32 attribute.
  8287. */
  8288. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
  8289. /* Spectral scan report mode. u32 attribute. */
  8290. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
  8291. /*
  8292. * RSSI report mode, if the ADC RSSI is below
  8293. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
  8294. * then FFTs will not trigger, but timestamps and summaries get
  8295. * reported. u32 attribute.
  8296. */
  8297. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
  8298. /*
  8299. * ADC RSSI must be greater than or equal to this threshold (signed dB)
  8300. * to ensure spectral scan reporting with normal error code.
  8301. * u32 attribute.
  8302. */
  8303. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
  8304. /*
  8305. * Format of frequency bin magnitude for spectral scan triggered FFTs:
  8306. * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
  8307. * u32 attribute.
  8308. */
  8309. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
  8310. /*
  8311. * Format of FFT report to software for spectral scan triggered FFTs.
  8312. * 0: No FFT report (only spectral scan summary report)
  8313. * 1: 2-dword summary of metrics for each completed FFT + spectral scan
  8314. * report
  8315. * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
  8316. * bins (in-band) per FFT + spectral scan summary report
  8317. * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
  8318. * bins (all) per FFT + spectral scan summary report
  8319. * u32 attribute.
  8320. */
  8321. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
  8322. /*
  8323. * Number of LSBs to shift out in order to scale the FFT bins.
  8324. * u32 attribute.
  8325. */
  8326. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
  8327. /*
  8328. * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
  8329. * in dBm power. u32 attribute.
  8330. */
  8331. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
  8332. /*
  8333. * Per chain enable mask to select input ADC for search FFT.
  8334. * u32 attribute.
  8335. */
  8336. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
  8337. /*
  8338. * An unsigned 64-bit integer provided by host driver to identify the
  8339. * spectral scan request. This attribute is included in the scan
  8340. * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
  8341. * and used as an attribute in
  8342. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
  8343. * specific scan to be stopped.
  8344. */
  8345. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
  8346. /* Skip interval for FFT reports. u32 attribute */
  8347. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
  8348. /* Set to report only one set of FFT results.
  8349. * u32 attribute.
  8350. */
  8351. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
  8352. /* Debug level for spectral module in driver.
  8353. * 0 : Verbosity level 0
  8354. * 1 : Verbosity level 1
  8355. * 2 : Verbosity level 2
  8356. * 3 : Matched filterID display
  8357. * 4 : One time dump of FFT report
  8358. * u32 attribute.
  8359. */
  8360. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
  8361. /* Type of spectral scan request. u32 attribute.
  8362. * It uses values defined in enum
  8363. * qca_wlan_vendor_attr_spectral_scan_request_type.
  8364. */
  8365. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
  8366. /* This specifies the frequency span over which spectral
  8367. * scan would be carried out. Its value depends on the
  8368. * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
  8369. * the relation is as follows.
  8370. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
  8371. * Not applicable. Spectral scan would happen in the
  8372. * operating span.
  8373. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
  8374. * Center frequency (in MHz) of the span of interest or
  8375. * for convenience, center frequency (in MHz) of any channel
  8376. * in the span of interest. For 80+80 MHz agile spectral scan
  8377. * request it represents center frequency (in MHz) of the primary
  8378. * 80 MHz span or for convenience, center frequency (in MHz) of any
  8379. * channel in the primary 80 MHz span. If agile spectral scan is
  8380. * initiated without setting a valid frequency it returns the
  8381. * error code
  8382. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
  8383. * u32 attribute.
  8384. */
  8385. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
  8386. /* Spectral scan mode. u32 attribute.
  8387. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  8388. * If this attribute is not present, it is assumed to be
  8389. * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
  8390. */
  8391. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
  8392. /* Spectral scan error code. u32 attribute.
  8393. * It uses values defined in enum
  8394. * qca_wlan_vendor_spectral_scan_error_code.
  8395. * This attribute is included only in failure scenarios.
  8396. */
  8397. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
  8398. /* 8-bit unsigned value to enable/disable debug of the
  8399. * Spectral DMA ring.
  8400. * 1-enable, 0-disable
  8401. */
  8402. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
  8403. /* 8-bit unsigned value to enable/disable debug of the
  8404. * Spectral DMA buffers.
  8405. * 1-enable, 0-disable
  8406. */
  8407. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
  8408. /* This specifies the frequency span over which spectral scan would be
  8409. * carried out. Its value depends on the value of
  8410. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
  8411. * follows.
  8412. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
  8413. * Not applicable. Spectral scan would happen in the operating span.
  8414. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
  8415. * This attribute is applicable only for agile spectral scan
  8416. * requests in 80+80 MHz mode. It represents center frequency (in
  8417. * MHz) of the secondary 80 MHz span or for convenience, center
  8418. * frequency (in MHz) of any channel in the secondary 80 MHz span.
  8419. * u32 attribute.
  8420. */
  8421. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
  8422. /* This attribute specifies the bandwidth to be used for Spectral scan
  8423. * operation. This is an u8 attribute and uses the values in enum
  8424. * nl80211_chan_width. This is an optional attribute.
  8425. * If this attribute is not populated, the driver should configure the
  8426. * Spectral scan bandwidth to the maximum value supported by the target
  8427. * for the current operating bandwidth.
  8428. */
  8429. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
  8430. /* Spectral FFT recapture flag attribute, to enable/disable FFT
  8431. * recapture. Recapture can only be enabled for Scan period greater
  8432. * than 52us.
  8433. * If this attribute is enabled, re-triggers will be enabled in uCode
  8434. * when AGC gain changes.
  8435. */
  8436. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
  8437. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
  8438. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
  8439. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
  8440. };
  8441. /**
  8442. * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
  8443. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
  8444. */
  8445. enum qca_wlan_vendor_attr_spectral_diag_stats {
  8446. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
  8447. /* Number of spectral TLV signature mismatches.
  8448. * u64 attribute.
  8449. */
  8450. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
  8451. /* Number of spectral phyerror events with insufficient length when
  8452. * parsing for secondary 80 search FFT report. u64 attribute.
  8453. */
  8454. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
  8455. /* Number of spectral phyerror events without secondary 80
  8456. * search FFT report. u64 attribute.
  8457. */
  8458. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
  8459. /* Number of spectral phyerror events with vht operation segment 1 id
  8460. * mismatches in search fft report. u64 attribute.
  8461. */
  8462. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
  8463. /* Number of spectral phyerror events with vht operation segment 2 id
  8464. * mismatches in search fft report. u64 attribute.
  8465. */
  8466. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
  8467. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
  8468. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
  8469. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
  8470. };
  8471. /**
  8472. * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
  8473. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
  8474. */
  8475. enum qca_wlan_vendor_attr_spectral_cap {
  8476. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
  8477. /* Flag attribute to indicate phydiag capability */
  8478. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
  8479. /* Flag attribute to indicate radar detection capability */
  8480. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
  8481. /* Flag attribute to indicate spectral capability */
  8482. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
  8483. /* Flag attribute to indicate advanced spectral capability */
  8484. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
  8485. /* Spectral hardware generation. u32 attribute.
  8486. * It uses values defined in enum
  8487. * qca_wlan_vendor_spectral_scan_cap_hw_gen.
  8488. */
  8489. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
  8490. /* Spectral bin scaling formula ID. u16 attribute.
  8491. * It uses values defined in enum
  8492. * qca_wlan_vendor_spectral_scan_cap_formula_id.
  8493. */
  8494. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
  8495. /* Spectral bin scaling param - low level offset.
  8496. * s16 attribute.
  8497. */
  8498. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
  8499. /* Spectral bin scaling param - high level offset.
  8500. * s16 attribute.
  8501. */
  8502. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
  8503. /* Spectral bin scaling param - RSSI threshold.
  8504. * s16 attribute.
  8505. */
  8506. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
  8507. /* Spectral bin scaling param - default AGC max gain.
  8508. * u8 attribute.
  8509. */
  8510. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
  8511. /* Flag attribute to indicate agile spectral scan capability
  8512. * for 20/40/80 MHz modes.
  8513. */
  8514. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
  8515. /* Flag attribute to indicate agile spectral scan capability
  8516. * for 160 MHz mode.
  8517. */
  8518. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
  8519. /* Flag attribute to indicate agile spectral scan capability
  8520. * for 80+80 MHz mode.
  8521. */
  8522. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
  8523. /* Number of spectral detectors used for scan in 20 MHz.
  8524. * u32 attribute.
  8525. */
  8526. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
  8527. /* Number of spectral detectors used for scan in 40 MHz.
  8528. * u32 attribute.
  8529. */
  8530. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
  8531. /* Number of spectral detectors used for scan in 80 MHz.
  8532. * u32 attribute.
  8533. */
  8534. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
  8535. /* Number of spectral detectors used for scan in 160 MHz.
  8536. * u32 attribute.
  8537. */
  8538. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
  8539. /* Number of spectral detectors used for scan in 80+80 MHz.
  8540. * u32 attribute.
  8541. */
  8542. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
  8543. /* Flag attribute to indicate agile spectral scan capability
  8544. * for 320 MHz mode.
  8545. */
  8546. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
  8547. /* Number of spectral detectors used for scan in 320 MHz.
  8548. * u32 attribute.
  8549. */
  8550. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
  8551. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
  8552. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
  8553. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
  8554. };
  8555. /**
  8556. * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
  8557. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
  8558. */
  8559. enum qca_wlan_vendor_attr_spectral_scan_status {
  8560. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
  8561. /* Flag attribute to indicate whether spectral scan is enabled */
  8562. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
  8563. /* Flag attribute to indicate whether spectral scan is in progress*/
  8564. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
  8565. /* Spectral scan mode. u32 attribute.
  8566. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  8567. * If this attribute is not present, normal mode
  8568. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
  8569. * requested.
  8570. */
  8571. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
  8572. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
  8573. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
  8574. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
  8575. };
  8576. /**
  8577. * enum qca_wlan_vendor_attr_config_latency_level - Level for
  8578. * wlan latency module.
  8579. *
  8580. * There will be various of Wi-Fi functionality like scan/roaming/adaptive
  8581. * power saving which would causing data exchange out of service, this
  8582. * would be a big impact on latency. For latency sensitive applications over
  8583. * Wi-Fi are intolerant to such operations and thus would configure them
  8584. * to meet their respective needs. It is well understood by such applications
  8585. * that altering the default behavior would degrade the Wi-Fi functionality
  8586. * w.r.t the above pointed WLAN operations.
  8587. *
  8588. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
  8589. * Default WLAN operation level which throughput orientated.
  8590. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
  8591. * Use XR level to benefit XR (extended reality) application to achieve
  8592. * latency and power by via constraint scan/roaming/adaptive PS.
  8593. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
  8594. * Use low latency level to benefit application like concurrent
  8595. * downloading or video streaming via constraint scan/adaptive PS.
  8596. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
  8597. * Use ultra low latency level to benefit for gaming/voice
  8598. * application via constraint scan/roaming/adaptive PS.
  8599. */
  8600. enum qca_wlan_vendor_attr_config_latency_level {
  8601. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
  8602. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
  8603. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
  8604. /* legacy name */
  8605. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
  8606. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
  8607. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
  8608. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
  8609. /* keep last */
  8610. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
  8611. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
  8612. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
  8613. };
  8614. /**
  8615. * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
  8616. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
  8617. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
  8618. * spectral scan request types.
  8619. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
  8620. * set the spectral parameters and start scan.
  8621. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
  8622. * only set the spectral parameters.
  8623. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
  8624. * only start the spectral scan.
  8625. */
  8626. enum qca_wlan_vendor_attr_spectral_scan_request_type {
  8627. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
  8628. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
  8629. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
  8630. };
  8631. /**
  8632. * qca_wlan_vendor_spectral_scan_mode: Attribute values for
  8633. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
  8634. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
  8635. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
  8636. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
  8637. * spectral scan modes.
  8638. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
  8639. * spectral scan in the current operating span.
  8640. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
  8641. * spectral scan in the configured agile span.
  8642. */
  8643. enum qca_wlan_vendor_spectral_scan_mode {
  8644. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
  8645. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
  8646. };
  8647. /**
  8648. * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
  8649. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
  8650. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
  8651. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
  8652. * of a parameter is not supported.
  8653. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
  8654. * mode is not supported.
  8655. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
  8656. * has invalid value.
  8657. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
  8658. * is not initialized.
  8659. */
  8660. enum qca_wlan_vendor_spectral_scan_error_code {
  8661. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
  8662. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
  8663. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
  8664. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
  8665. };
  8666. /**
  8667. * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
  8668. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
  8669. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  8670. * spectral hardware generation.
  8671. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
  8672. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
  8673. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
  8674. */
  8675. enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
  8676. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
  8677. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
  8678. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
  8679. };
  8680. /**
  8681. * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
  8682. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
  8683. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  8684. * Spectral bin scaling formula ID.
  8685. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
  8686. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
  8687. * and RSSI threshold based formula.
  8688. */
  8689. enum qca_wlan_vendor_spectral_scan_cap_formula_id {
  8690. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
  8691. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
  8692. };
  8693. /**
  8694. * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
  8695. * RF Operating Parameter (RROP) information is available, and if so, at which
  8696. * point in the application-driver interaction sequence it can be retrieved by
  8697. * the application from the driver. This point may vary by architecture and
  8698. * other factors. This is a u16 value.
  8699. */
  8700. enum qca_wlan_vendor_attr_rropavail_info {
  8701. /* RROP information is unavailable. */
  8702. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
  8703. /* RROP information is available and the application can retrieve the
  8704. * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
  8705. * event from the driver.
  8706. */
  8707. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
  8708. /* RROP information is available only after a vendor specific scan
  8709. * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
  8710. * successfully completed. The application can retrieve the information
  8711. * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
  8712. * the driver.
  8713. */
  8714. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
  8715. };
  8716. /**
  8717. * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
  8718. * Representative RF Operating Parameter (RROP) information. It is sent for the
  8719. * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
  8720. * intended for use by external Auto Channel Selection applications. It provides
  8721. * guidance values for some RF parameters that are used by the system during
  8722. * operation. These values could vary by channel, band, radio, and so on.
  8723. */
  8724. enum qca_wlan_vendor_attr_rrop_info {
  8725. QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
  8726. /* Representative Tx Power List (RTPL) which has an array of nested
  8727. * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
  8728. */
  8729. QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
  8730. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
  8731. QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
  8732. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
  8733. };
  8734. /**
  8735. * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
  8736. * entry instances in the Representative Tx Power List (RTPL). It provides
  8737. * simplified power values intended for helping external Auto channel Selection
  8738. * applications compare potential Tx power performance between channels, other
  8739. * operating conditions remaining identical. These values are not necessarily
  8740. * the actual Tx power values that will be used by the system. They are also not
  8741. * necessarily the max or average values that will be used. Instead, they are
  8742. * relative, summarized keys for algorithmic use computed by the driver or
  8743. * underlying firmware considering a number of vendor specific factors.
  8744. */
  8745. enum qca_wlan_vendor_attr_rtplinst {
  8746. QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
  8747. /* Primary channel number (u8).
  8748. * Note: If both the driver and user space application support the
  8749. * 6 GHz band, this attribute is deprecated and
  8750. * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
  8751. * maintain backward compatibility,
  8752. * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
  8753. * driver or user space application or both do not support the 6 GHz
  8754. * band.
  8755. */
  8756. QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
  8757. /* Representative Tx power in dBm (s32) with emphasis on throughput. */
  8758. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
  8759. /* Representative Tx power in dBm (s32) with emphasis on range. */
  8760. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
  8761. /* Primary channel center frequency (u32) in MHz */
  8762. QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
  8763. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
  8764. QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
  8765. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
  8766. };
  8767. /**
  8768. * enum qca_wlan_vendor_attr_mac - Used by the vendor command
  8769. * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  8770. *
  8771. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an
  8772. * array of nested values as per attributes in
  8773. * enum qca_wlan_vendor_attr_mac_mode_info.
  8774. */
  8775. enum qca_wlan_vendor_attr_mac {
  8776. QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
  8777. QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
  8778. /* keep last */
  8779. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
  8780. QCA_WLAN_VENDOR_ATTR_MAC_MAX =
  8781. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
  8782. };
  8783. /**
  8784. * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
  8785. * WiFi netdev interface on a respective MAC. Used by the attribute
  8786. * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
  8787. *
  8788. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32).
  8789. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of
  8790. * the connected Wi-Fi interface(u32).
  8791. */
  8792. enum qca_wlan_vendor_attr_mac_iface_info {
  8793. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
  8794. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
  8795. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
  8796. /* keep last */
  8797. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
  8798. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
  8799. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
  8800. };
  8801. /**
  8802. * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
  8803. * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
  8804. * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  8805. *
  8806. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the
  8807. * MAC (u32)
  8808. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC
  8809. * at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described
  8810. * in enum nl80211_band.
  8811. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev
  8812. * interfaces associated with this MAC. Represented by enum
  8813. * qca_wlan_vendor_attr_mac_iface_info.
  8814. */
  8815. enum qca_wlan_vendor_attr_mac_info {
  8816. QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
  8817. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
  8818. QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
  8819. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
  8820. /* keep last */
  8821. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
  8822. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
  8823. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
  8824. };
  8825. /**
  8826. * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
  8827. * to get thermal status from driver/firmware.
  8828. * enum values are used for NL attributes encapsulated inside
  8829. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
  8830. *
  8831. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
  8832. * of a thermal level in Celsius. u32 size.
  8833. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
  8834. * of a thermal level in Celsius. u32 size.
  8835. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
  8836. * thermal level in milliseconds. u32 size.
  8837. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
  8838. * of times the temperature crossed into the temperature range defined by the
  8839. * thermal level from both higher and lower directions. u32 size.
  8840. */
  8841. enum qca_wlan_vendor_attr_thermal_stats {
  8842. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
  8843. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
  8844. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
  8845. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
  8846. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
  8847. /* keep last */
  8848. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
  8849. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
  8850. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
  8851. };
  8852. /**
  8853. * enum he_fragmentation_val - HE fragmentation support values
  8854. * Indicates level of dynamic fragmentation that is supported by
  8855. * a STA as a recipient.
  8856. * HE fragmentation values are defined as per 11ax spec and are used in
  8857. * HE capability IE to advertise the support. These values are validated
  8858. * in the driver to check the device capability and advertised in the HE
  8859. * capability element.
  8860. *
  8861. * @HE_FRAG_DISABLE: no support for dynamic fragmentation
  8862. * @HE_FRAG_LEVEL1: support for dynamic fragments that are
  8863. * contained within an MPDU or S-MPDU, no support for dynamic fragments
  8864. * within an A-MPDU that is not an S-MPDU.
  8865. * @HE_FRAG_LEVEL2: support for dynamic fragments that are
  8866. * contained within an MPDU or S-MPDU and support for up to one dynamic
  8867. * fragment for each MSDU, each A-MSDU if supported by the recipient, and
  8868. * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
  8869. * MPDU or S-MPDU.
  8870. * @HE_FRAG_LEVEL3: support for dynamic fragments that are
  8871. * contained within an MPDU or S-MPDU and support for multiple dynamic
  8872. * fragments for each MSDU and for each A-MSDU if supported by the
  8873. * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
  8874. * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
  8875. */
  8876. enum he_fragmentation_val {
  8877. HE_FRAG_DISABLE,
  8878. HE_FRAG_LEVEL1,
  8879. HE_FRAG_LEVEL2,
  8880. HE_FRAG_LEVEL3,
  8881. };
  8882. /**
  8883. * enum he_mcs_config - HE MCS support configuration
  8884. *
  8885. * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
  8886. * These values are used in driver to configure the HE MCS map to advertise
  8887. * Tx/Rx MCS map in HE capability and these values are applied for all the
  8888. * streams supported by the device. To configure MCS for different bandwidths,
  8889. * vendor command needs to be sent using this attribute with appropriate value.
  8890. * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
  8891. * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS
  8892. * for HE_160_MCS0_11 send this command using HE MCS config attribute with
  8893. * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11;
  8894. *
  8895. * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7
  8896. * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9
  8897. * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11
  8898. * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7
  8899. * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9
  8900. * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11
  8901. * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7
  8902. * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9
  8903. * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11
  8904. */
  8905. enum he_mcs_config {
  8906. HE_80_MCS0_7 = 0,
  8907. HE_80_MCS0_9 = 1,
  8908. HE_80_MCS0_11 = 2,
  8909. HE_160_MCS0_7 = 4,
  8910. HE_160_MCS0_9 = 5,
  8911. HE_160_MCS0_11 = 6,
  8912. HE_80p80_MCS0_7 = 8,
  8913. HE_80p80_MCS0_9 = 9,
  8914. HE_80p80_MCS0_11 = 10,
  8915. };
  8916. /**
  8917. * enum qca_wlan_ba_session_config - BA session configuration
  8918. *
  8919. * Indicates the configuration values for BA session configuration attribute.
  8920. *
  8921. * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
  8922. * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
  8923. */
  8924. enum qca_wlan_ba_session_config {
  8925. QCA_WLAN_ADD_BA = 1,
  8926. QCA_WLAN_DELETE_BA = 2,
  8927. };
  8928. /**
  8929. * enum qca_wlan_ac_type - access category type
  8930. *
  8931. * Indicates the access category type value.
  8932. *
  8933. * @QCA_WLAN_AC_BE: BE access category
  8934. * @QCA_WLAN_AC_BK: BK access category
  8935. * @QCA_WLAN_AC_VI: VI access category
  8936. * @QCA_WLAN_AC_VO: VO access category
  8937. * @QCA_WLAN_AC_ALL: All ACs
  8938. */
  8939. enum qca_wlan_ac_type {
  8940. QCA_WLAN_AC_BE = 0,
  8941. QCA_WLAN_AC_BK = 1,
  8942. QCA_WLAN_AC_VI = 2,
  8943. QCA_WLAN_AC_VO = 3,
  8944. QCA_WLAN_AC_ALL = 4,
  8945. };
  8946. /**
  8947. * enum qca_wlan_he_ltf_cfg - HE LTF configuration
  8948. *
  8949. * Indicates the HE LTF configuration value.
  8950. *
  8951. * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to
  8952. * the mandatory HE-LTF based on the GI setting
  8953. * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
  8954. * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
  8955. * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
  8956. */
  8957. enum qca_wlan_he_ltf_cfg {
  8958. QCA_WLAN_HE_LTF_AUTO = 0,
  8959. QCA_WLAN_HE_LTF_1X = 1,
  8960. QCA_WLAN_HE_LTF_2X = 2,
  8961. QCA_WLAN_HE_LTF_4X = 3,
  8962. };
  8963. /**
  8964. * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
  8965. *
  8966. * Indicates the HE trigger frame MAC padding duration value.
  8967. *
  8968. * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
  8969. * process the trigger frame.
  8970. * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
  8971. * trigger frame.
  8972. * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
  8973. * trigger frame.
  8974. */
  8975. enum qca_wlan_he_mac_padding_dur {
  8976. QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
  8977. QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
  8978. QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
  8979. };
  8980. /**
  8981. * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
  8982. *
  8983. * Indicates the HE Operating mode control channel width setting value.
  8984. *
  8985. * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
  8986. * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
  8987. * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
  8988. * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
  8989. */
  8990. enum qca_wlan_he_om_ctrl_ch_bw {
  8991. QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
  8992. QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
  8993. QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
  8994. QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
  8995. };
  8996. /**
  8997. * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
  8998. *
  8999. * Indicates the frame types to use for keep alive data.
  9000. *
  9001. * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
  9002. * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
  9003. * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
  9004. */
  9005. enum qca_wlan_keep_alive_data_type {
  9006. QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
  9007. QCA_WLAN_KEEP_ALIVE_DATA = 1,
  9008. QCA_WLAN_KEEP_ALIVE_MGMT = 2,
  9009. };
  9010. /**
  9011. * enum eht_mcs_config - EHT MCS support configuration
  9012. *
  9013. * Configures the EHT Tx/Rx MCS map in EHT Capability element.
  9014. * These values are used in the driver to configure the EHT MCS map to advertise
  9015. * Tx/Rx MCS map in EHT capability and these values are applied for all the
  9016. * streams supported by the device.
  9017. * @EHT_MCS0_7: EHT MCS 0 to 7 support
  9018. * @EHT_MCS0_9: EHT MCS 0 to 9 support
  9019. * @EHT_MCS0_11: EHT MCS 0 to 11 support
  9020. * @EHT_MCS0_13: EHT MCS 0 to 13 support
  9021. */
  9022. enum eht_mcs_config {
  9023. EHT_MCS0_7 = 0,
  9024. EHT_MCS0_9 = 1,
  9025. EHT_MCS0_11 = 2,
  9026. EHT_MCS0_13 = 3,
  9027. };
  9028. /**
  9029. * enum qca_wlan_eht_mlo_mode: EHT MLO mode configuration.
  9030. * @QCA_WLAN_EHT_MODE_INVALID: Invalid.
  9031. * @QCA_WLAN_EHT_MLSR: Multi-link single radio mode
  9032. * @QCA_WLAN_EHT_EMLSR: Enhanced multi-link single radio mode.
  9033. * @QCA_WLAN_EHT_NON_STR_MLMR: Non simultaneous transmit and receive
  9034. * multi-link multi radio mode.
  9035. * @QCA_WLAN_EHT_STR_MLMR: Simultaneous transmit and receive
  9036. * multi-link multi radio mode.
  9037. */
  9038. enum qca_wlan_eht_mlo_mode {
  9039. QCA_WLAN_EHT_MODE_INVALID = 0,
  9040. QCA_WLAN_EHT_MLSR = 1,
  9041. QCA_WLAN_EHT_EMLSR = 2,
  9042. QCA_WLAN_EHT_NON_STR_MLMR = 3,
  9043. QCA_WLAN_EHT_STR_MLMR = 4,
  9044. };
  9045. /**
  9046. * enum qca_wlan_emlsr_mode: Enhanced Multi-link Single Radio mode configuration
  9047. * @QCA_WLAN_EMLSR_MODE_ENTER: Enter EMLSR mode
  9048. * @QCA_WLAN_EMLSR_MODE_EXIT: Exit EMLSR mode
  9049. */
  9050. enum qca_wlan_emlsr_mode {
  9051. QCA_WLAN_EMLSR_MODE_ENTER = 0,
  9052. QCA_WLAN_EMLSR_MODE_EXIT = 1,
  9053. };
  9054. /**
  9055. * enum qca_wlan_ttlm_negotiation_support: TID-To-Link Mapping Negotiation
  9056. * support
  9057. * @QCA_WLAN_TTLM_DISABLE: TTLM disabled
  9058. * @QCA_WLAN_TTLM_SAME_LINK_SET: Mapping of all TIDs to the same link set,
  9059. * both DL and UL
  9060. * @QCA_WLAN_TTLM_SAME_DIFF_LINK_SET: Mapping of each TID to the same or
  9061. * different link set
  9062. */
  9063. enum qca_wlan_ttlm_negotiation_support {
  9064. QCA_WLAN_TTLM_DISABLE = 0,
  9065. QCA_WLAN_TTLM_SAME_LINK_SET = 1,
  9066. QCA_WLAN_TTLM_SAME_DIFF_LINK_SET = 2,
  9067. };
  9068. /**
  9069. * enum qca_coex_traffic_shaping_mode: Coex traffic shaping mode
  9070. * @QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE: Coex policies disabled
  9071. * @QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE: All coex policies enabled
  9072. */
  9073. enum qca_coex_traffic_shaping_mode {
  9074. QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE = 0,
  9075. QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE = 1,
  9076. };
  9077. /**
  9078. * enum qca_wlan_vendor_attr_omi_tx: Represents attributes for HE and
  9079. * EHT operating mode control transmit request. These attributes are
  9080. * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX and
  9081. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  9082. *
  9083. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
  9084. * indicates the maximum number of spatial streams, NSS, that the STA
  9085. * supports in reception for PPDU bandwidths less than or equal to 80 MHz
  9086. * and is set to NSS - 1.
  9087. *
  9088. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
  9089. * indicates the operating channel width supported by the STA for both
  9090. * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
  9091. *
  9092. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
  9093. * indicates the all trigger based UL MU operations by the STA.
  9094. * 0 - UL MU operations are enabled by the STA.
  9095. * 1 - All triggered UL MU transmissions are suspended by the STA.
  9096. *
  9097. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
  9098. * indicates the maximum number of space-time streams, NSTS, that
  9099. * the STA supports in transmission and is set to NSTS - 1.
  9100. *
  9101. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
  9102. * combined with the UL MU Disable subfield and the recipient's setting
  9103. * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
  9104. * capabilities to determine which HE TB PPDUs are possible by the
  9105. * STA to transmit.
  9106. * 0 - UL MU data operations are enabled by the STA.
  9107. * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
  9108. * bit is not set, else UL MU Tx is suspended.
  9109. *
  9110. * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN: 8-bit unsigned value in the EHT OM
  9111. * Control subfield combined with the Rx NSS subfield in the OM Control subfield
  9112. * indicates NSS - 1, where NSS is the maximum number of spatial streams that
  9113. * STA supports in reception for PPDU bandwidths less than or equal to 80 MHz.
  9114. *
  9115. * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN: 8-bit unsigned value indicates
  9116. * 320 MHz operating channel width supported by the EHT STA for both reception
  9117. * and transmission.
  9118. *
  9119. * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN: 8-bit unsigned value in the EHT OM
  9120. * Control subfield combined with the Tx NSTS subfield in OM Control subfield
  9121. * indicates NSTS - 1, where NSTS is the maximum number of space-time streams
  9122. * that the STA supports in transmission for PPDU bandwidths less than or equal
  9123. * to 80 MHz.
  9124. */
  9125. enum qca_wlan_vendor_attr_omi_tx {
  9126. QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
  9127. QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
  9128. QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
  9129. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
  9130. QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
  9131. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
  9132. QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN = 6,
  9133. QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN = 7,
  9134. QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN = 8,
  9135. /* keep last */
  9136. QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST,
  9137. QCA_WLAN_VENDOR_ATTR_OMI_MAX =
  9138. QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST - 1,
  9139. };
  9140. /* deprecated legacy names */
  9141. #define QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX \
  9142. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX
  9143. #define qca_wlan_vendor_attr_he_omi_tx \
  9144. qca_wlan_vendor_attr_omi_tx
  9145. #define QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST \
  9146. QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST
  9147. #define QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX \
  9148. QCA_WLAN_VENDOR_ATTR_OMI_MAX
  9149. /**
  9150. * enum qca_wlan_vendor_phy_mode - Different PHY modes
  9151. * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
  9152. *
  9153. * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
  9154. * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
  9155. * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
  9156. * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
  9157. * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
  9158. * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
  9159. * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
  9160. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
  9161. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
  9162. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
  9163. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
  9164. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
  9165. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
  9166. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
  9167. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
  9168. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
  9169. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
  9170. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
  9171. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
  9172. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
  9173. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
  9174. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
  9175. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
  9176. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
  9177. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
  9178. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
  9179. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
  9180. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
  9181. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
  9182. */
  9183. enum qca_wlan_vendor_phy_mode {
  9184. QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
  9185. QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
  9186. QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
  9187. QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
  9188. QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
  9189. QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
  9190. QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
  9191. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
  9192. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
  9193. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
  9194. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
  9195. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
  9196. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
  9197. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
  9198. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
  9199. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
  9200. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
  9201. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
  9202. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
  9203. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
  9204. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
  9205. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
  9206. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
  9207. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
  9208. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
  9209. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
  9210. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
  9211. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
  9212. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
  9213. };
  9214. /* Attributes for data used by
  9215. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
  9216. */
  9217. enum qca_wlan_vendor_attr_wifi_test_config {
  9218. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
  9219. /* 8-bit unsigned value to configure the driver to enable/disable
  9220. * WMM feature. This attribute is used to configure testbed device.
  9221. * 1-enable, 0-disable
  9222. */
  9223. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
  9224. /* 8-bit unsigned value to configure the driver to accept/reject
  9225. * the addba request from peer. This attribute is used to configure
  9226. * the testbed device.
  9227. * 1-accept addba, 0-reject addba
  9228. */
  9229. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
  9230. /* 8-bit unsigned value to configure the driver to send or not to
  9231. * send the addba request to peer.
  9232. * This attribute is used to configure the testbed device.
  9233. * 1-send addba, 0-do not send addba
  9234. */
  9235. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
  9236. /* 8-bit unsigned value to indicate the HE fragmentation support.
  9237. * Uses enum he_fragmentation_val values.
  9238. * This attribute is used to configure the testbed device to
  9239. * allow the advertised hardware capabilities to be downgraded
  9240. * for testing purposes.
  9241. */
  9242. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
  9243. /* 8-bit unsigned value to indicate the HE MCS support.
  9244. * Uses enum he_mcs_config values.
  9245. * This attribute is used to configure the testbed device to
  9246. * allow the advertised hardware capabilities to be downgraded
  9247. * for testing purposes.
  9248. */
  9249. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
  9250. /* 8-bit unsigned value to configure the driver to allow or not to
  9251. * allow the connection with WEP/TKIP in HT/VHT/HE modes.
  9252. * This attribute is used to configure the testbed device.
  9253. * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip
  9254. */
  9255. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
  9256. /* 8-bit unsigned value to configure the driver to add a
  9257. * new BA session or delete the existing BA session for
  9258. * given TID. ADDBA command uses the buffer size and tid
  9259. * configuration if user specifies the values else default
  9260. * value for buffer size is used for all tids if the tid
  9261. * also not specified. For DEL_BA command TID value is
  9262. * required to process the command.
  9263. * Uses enum qca_wlan_ba_session_config values.
  9264. * This attribute is used to configure the testbed device.
  9265. */
  9266. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
  9267. /* 16-bit unsigned value to configure the buffer size in addba
  9268. * request and response frames.
  9269. * This attribute is used to configure the testbed device.
  9270. * The range of the value is 0 to 256.
  9271. */
  9272. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
  9273. /* 8-bit unsigned value to configure the buffer size in addba
  9274. * request and response frames.
  9275. * This attribute is used to configure the testbed device.
  9276. */
  9277. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
  9278. /* 8-bit unsigned value to configure the no ack policy.
  9279. * To configure no ack policy, access category value
  9280. * is required to process the command.
  9281. * This attribute is used to configure the testbed device.
  9282. * 1 - enable no ack, 0 - disable no ack
  9283. */
  9284. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
  9285. /* 8-bit unsigned value to configure the AC for no ack policy
  9286. * This attribute is used to configure the testbed device.
  9287. * uses the enum qca_wlan_ac_type values
  9288. */
  9289. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
  9290. /* 8-bit unsigned value to configure the HE LTF
  9291. * This attribute is used to configure the testbed device.
  9292. * Uses the enum qca_wlan_he_ltf_cfg values.
  9293. */
  9294. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
  9295. /* 8-bit unsigned value to configure the tx beamformee.
  9296. * This attribute is used to configure the testbed device.
  9297. * 1 - enable, 0 - disable.
  9298. */
  9299. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
  9300. /* 8-bit unsigned value to configure the tx beamformee number of
  9301. * space-time streams.
  9302. * This attribute is used to configure the testbed device.
  9303. * The range of the value is 0 to 8
  9304. */
  9305. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
  9306. /* 8-bit unsigned value to configure the MU EDCA params for given AC
  9307. * This attribute is used to configure the testbed device.
  9308. * Uses the enum qca_wlan_ac_type values.
  9309. */
  9310. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
  9311. /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
  9312. * To configure MU EDCA AIFSN value, MU EDCA access category value
  9313. * is required to process the command.
  9314. * This attribute is used to configure the testbed device.
  9315. */
  9316. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
  9317. /* 8-bit unsigned value to configure the MU EDCA ECW min value for
  9318. * given AC.
  9319. * To configure MU EDCA ECW min value, MU EDCA access category value
  9320. * is required to process the command.
  9321. * This attribute is used to configure the testbed device.
  9322. */
  9323. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
  9324. /* 8-bit unsigned value to configure the MU EDCA ECW max value for
  9325. * given AC.
  9326. * To configure MU EDCA ECW max value, MU EDCA access category value
  9327. * is required to process the command.
  9328. * This attribute is used to configure the testbed device.
  9329. */
  9330. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
  9331. /* 8-bit unsigned value to configure the MU EDCA timer for given AC
  9332. * To configure MU EDCA timer value, MU EDCA access category value
  9333. * is required to process the command.
  9334. * This attribute is used to configure the testbed device.
  9335. */
  9336. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
  9337. /* 8-bit unsigned value to configure the HE trigger frame MAC padding
  9338. * duration.
  9339. * This attribute is used to configure the testbed device.
  9340. * Uses the enum qca_wlan_he_mac_padding_dur values.
  9341. */
  9342. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
  9343. /* 8-bit unsigned value to override the MU EDCA params to defaults
  9344. * regardless of the AP beacon MU EDCA params. If it is enabled use
  9345. * the default values else use the MU EDCA params from AP beacon.
  9346. * This attribute is used to configure the testbed device.
  9347. * 1 - enable override, 0 - disable.
  9348. */
  9349. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
  9350. /* 8-bit unsigned value to configure the support for receiving
  9351. * an MPDU that contains an operating mode control subfield.
  9352. * This attribute is used to configure the testbed device.
  9353. * 1-enable, 0-disable.
  9354. */
  9355. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
  9356. /* Nested attribute values required to setup the TWT session.
  9357. * enum qca_wlan_vendor_attr_twt_setup provides the necessary
  9358. * information to set up the session. It contains broadcast flags,
  9359. * set_up flags, trigger value, flow type, flow ID, wake interval
  9360. * exponent, protection, target wake time, wake duration, wake interval
  9361. * mantissa. These nested attributes are used to setup a host triggered
  9362. * TWT session.
  9363. */
  9364. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
  9365. /* This nested attribute is used to terminate the current TWT session.
  9366. * It does not currently carry any attributes.
  9367. */
  9368. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
  9369. /* This nested attribute is used to suspend the current TWT session.
  9370. * It does not currently carry any attributes.
  9371. */
  9372. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
  9373. /* Nested attribute values to indicate the request for resume.
  9374. * This attribute is used to resume the TWT session.
  9375. * enum qca_wlan_vendor_attr_twt_resume provides the necessary
  9376. * parameters required to resume the TWT session.
  9377. */
  9378. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
  9379. /* 8-bit unsigned value to set the HE operating mode control
  9380. * (OM CTRL) Channel Width subfield.
  9381. * The Channel Width subfield indicates the operating channel width
  9382. * supported by the STA for both reception and transmission.
  9383. * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
  9384. * This setting is cleared with the
  9385. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  9386. * flag attribute to reset defaults.
  9387. * This attribute is used to configure the testbed device.
  9388. */
  9389. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
  9390. /* 8-bit unsigned value to configure the number of spatial
  9391. * streams in HE operating mode control field.
  9392. * This setting is cleared with the
  9393. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  9394. * flag attribute to reset defaults.
  9395. * This attribute is used to configure the testbed device.
  9396. */
  9397. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
  9398. /* Flag attribute to configure the UL MU disable bit in
  9399. * HE operating mode control field.
  9400. * This setting is cleared with the
  9401. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  9402. * flag attribute to reset defaults.
  9403. * This attribute is used to configure the testbed device.
  9404. */
  9405. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
  9406. /* Flag attribute to clear the previously set HE operating mode
  9407. * control field configuration.
  9408. * This attribute is used to configure the testbed device to reset
  9409. * defaults to clear any previously set HE operating mode control
  9410. * field configuration.
  9411. */
  9412. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
  9413. /* 8-bit unsigned value to configure HE single user PPDU
  9414. * transmission. By default this setting is disabled and it
  9415. * is disabled in the reset defaults of the device configuration.
  9416. * This attribute is used to configure the testbed device.
  9417. * 1-enable, 0-disable
  9418. */
  9419. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
  9420. /* 8-bit unsigned value to configure action frame transmission
  9421. * in HE trigger based PPDU transmission.
  9422. * By default this setting is disabled and it is disabled in
  9423. * the reset defaults of the device configuration.
  9424. * This attribute is used to configure the testbed device.
  9425. * 1-enable, 0-disable
  9426. */
  9427. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
  9428. /* Nested attribute to indicate HE operating mode control field
  9429. * transmission. It contains operating mode control field Nss,
  9430. * channel bandwidth, Tx Nsts and UL MU disable attributes.
  9431. * These nested attributes are used to send HE operating mode control
  9432. * with configured values.
  9433. * Uses the enum qca_wlan_vendor_attr_omi_tx attributes.
  9434. * This attribute is used to configure the testbed device.
  9435. */
  9436. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX = 33,
  9437. /* 8-bit unsigned value to configure +HTC_HE support to indicate the
  9438. * support for the reception of a frame that carries an HE variant
  9439. * HT Control field.
  9440. * This attribute is used to configure the testbed device.
  9441. * 1-enable, 0-disable
  9442. */
  9443. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
  9444. /* 8-bit unsigned value to configure VHT support in 2.4G band.
  9445. * This attribute is used to configure the testbed device.
  9446. * 1-enable, 0-disable
  9447. */
  9448. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
  9449. /* 8-bit unsigned value to configure HE testbed defaults.
  9450. * This attribute is used to configure the testbed device.
  9451. * 1-set the device HE capabilities to testbed defaults.
  9452. * 0-reset the device HE capabilities to supported config.
  9453. */
  9454. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
  9455. /* 8-bit unsigned value to configure twt request support.
  9456. * This attribute is used to configure the testbed device.
  9457. * 1-enable, 0-disable.
  9458. */
  9459. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
  9460. /* 8-bit unsigned value to configure protection for Management
  9461. * frames when PMF is enabled for the association.
  9462. * This attribute is used to configure the testbed device.
  9463. * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
  9464. */
  9465. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
  9466. /* Flag attribute to inject Disassociation frame to the connected AP.
  9467. * This attribute is used to configure the testbed device.
  9468. */
  9469. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
  9470. /* 8-bit unsigned value to configure an override for the RSNXE Used
  9471. * subfield in the MIC control field of the FTE in FT Reassociation
  9472. * Request frame.
  9473. * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
  9474. * This attribute is used to configure the testbed device.
  9475. * This attribute can be configured when STA is in disconnected or
  9476. * associated state and the configuration is valid until the next
  9477. * disconnection.
  9478. */
  9479. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
  9480. /* 8-bit unsigned value to configure the driver to ignore CSA (Channel
  9481. * Switch Announcement) when STA is in connected state.
  9482. * 0 - Default behavior, 1 - Ignore CSA.
  9483. * This attribute is used to configure the testbed device.
  9484. * This attribute can be configured when STA is in disconnected or
  9485. * associated state and the configuration is valid until the next
  9486. * disconnection.
  9487. */
  9488. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
  9489. /* Nested attribute values required to configure OCI (Operating Channel
  9490. * Information). Attributes defined in enum
  9491. * qca_wlan_vendor_attr_oci_override are nested within this attribute.
  9492. * This attribute is used to configure the testbed device.
  9493. * This attribute can be configured when STA is in disconnected or
  9494. * associated state and the configuration is valid until the next
  9495. * disconnection.
  9496. */
  9497. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
  9498. /* 8-bit unsigned value to configure the driver/firmware to ignore SA
  9499. * Query timeout. If this configuration is enabled STA shall not send
  9500. * Deauthentication frmae when SA Query times out (mainly, after a
  9501. * channel switch when OCV is enabled).
  9502. * 0 - Default behavior, 1 - Ignore SA Query timeout.
  9503. * This attribute is used to configure the testbed device.
  9504. * This attribute can be configured only when STA is in associated state
  9505. * and the configuration is valid until the disconnection.
  9506. */
  9507. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
  9508. /* 8-bit unsigned value to configure the driver/firmware to start or
  9509. * stop transmitting FILS discovery frames.
  9510. * 0 - Stop transmitting FILS discovery frames
  9511. * 1 - Start transmitting FILS discovery frames
  9512. * This attribute is used to configure the testbed device.
  9513. * This attribute can be configured only in AP mode and the
  9514. * configuration is valid until AP restart.
  9515. */
  9516. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
  9517. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9518. * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
  9519. * information field.
  9520. * 0 - Disable full bandwidth UL MU-MIMO subfield
  9521. * 1 - Enable full bandwidth UL MU-MIMO subfield
  9522. * This attribute is used to configure the testbed device.
  9523. */
  9524. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
  9525. /* 16-bit unsigned value to configure the driver with a specific BSS
  9526. * max idle period to advertise in the BSS Max Idle Period element
  9527. * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
  9528. * This attribute is used to configure the testbed device.
  9529. */
  9530. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
  9531. /* 8-bit unsigned value to configure the driver to use only RU 242 tone
  9532. * for data transmission.
  9533. * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
  9534. * This attribute is used to configure the testbed device.
  9535. */
  9536. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
  9537. /* 8-bit unsigned value to configure the driver to disable data and
  9538. * management response frame transmission to test the BSS max idle
  9539. * feature.
  9540. * 0 - Default behavior, 1 - Disable data and management response Tx.
  9541. * This attribute is used to configure the testbed device.
  9542. */
  9543. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
  9544. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9545. * disable Punctured Preamble Rx subfield in the HE PHY capabilities
  9546. * information field.
  9547. * 0 - Disable Punctured Preamble Rx subfield
  9548. * 1 - Enable Punctured Preamble Rx subfield
  9549. * This attribute is used to configure the testbed device.
  9550. */
  9551. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
  9552. /* 8-bit unsigned value to configure the driver to ignore the SAE H2E
  9553. * requirement mismatch for 6 GHz connection.
  9554. * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
  9555. * This attribute is used to configure the testbed device.
  9556. */
  9557. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
  9558. /* 8-bit unsigned value to configure the driver to allow 6 GHz
  9559. * connection with all security modes.
  9560. * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
  9561. * modes.
  9562. * This attribute is used for testing purposes.
  9563. */
  9564. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
  9565. /* 8-bit unsigned value to configure the driver to transmit data with
  9566. * ER SU PPDU type.
  9567. *
  9568. * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
  9569. * This attribute is used for testing purposes.
  9570. */
  9571. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
  9572. /* 8-bit unsigned value to configure the driver to use Data or
  9573. * Management frame type for keep alive data.
  9574. * Uses enum qca_wlan_keep_alive_data_type values.
  9575. *
  9576. * This attribute is used for testing purposes.
  9577. */
  9578. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
  9579. /* 8-bit unsigned value to configure the driver to use scan request
  9580. * BSSID value in Probe Request frame RA(A1) during the scan. The
  9581. * driver saves this configuration and applies this setting to all user
  9582. * space scan requests until the setting is cleared. If this
  9583. * configuration is set, the driver uses the BSSID value from the scan
  9584. * request to set the RA(A1) in the Probe Request frames during the
  9585. * scan.
  9586. *
  9587. * 0 - Default behavior uses the broadcast RA in Probe Request frames.
  9588. * 1 - Uses the scan request BSSID in RA in Probe Request frames.
  9589. * This attribute is used for testing purposes.
  9590. */
  9591. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
  9592. /* 8-bit unsigned value to configure the driver to enable/disable the
  9593. * BSS max idle period support.
  9594. *
  9595. * 0 - Disable the BSS max idle support.
  9596. * 1 - Enable the BSS max idle support.
  9597. * This attribute is used for testing purposes.
  9598. */
  9599. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
  9600. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9601. * disable Rx control frame to MultiBSS subfield in the HE MAC
  9602. * capabilities information field.
  9603. * 0 - Disable Rx control frame to MultiBSS subfield
  9604. * 1 - Enable Rx control frame to MultiBSS subfield
  9605. * This attribute is used to configure the testbed device.
  9606. */
  9607. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
  9608. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9609. * disable Broadcast TWT support subfield in the HE MAC capabilities
  9610. * information field.
  9611. * 0 - Disable Broadcast TWT support subfield
  9612. * 1 - Enable Broadcast TWT support subfield
  9613. * This attribute is used to configure the testbed device.
  9614. */
  9615. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
  9616. /* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
  9617. * mode for 802.11be MLO capable devices. If the attribute is set to 1,
  9618. * and if the FW supports this capability too, then the STA host
  9619. * advertises this capability to AP over assoc request frame. This
  9620. * attribute will not have any effect on legacy devices with no 802.11be
  9621. * support.
  9622. * 0 - Default behavior
  9623. * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
  9624. * This attribute is used to configure the testbed device.
  9625. */
  9626. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
  9627. /* 8-bit unsigned value to configure the driver to enable/disable the
  9628. * periodic sounding for Tx beamformer functionality. The default
  9629. * behavior uses algorithm to do sounding based on packet stats.
  9630. *
  9631. * 0 - Default behavior.
  9632. * 1 - Enable the periodic sounding for Tx beamformer.
  9633. * This attribute is used for testing purposes.
  9634. */
  9635. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59,
  9636. /* 8-bit unsigned value to configure beamformee SS EHT capability
  9637. * to indicate the maximum number of spatial streams that the STA
  9638. * can receive in an EHT sounding NDP for <= 80 MHz bandwidth.
  9639. * The range of the value is 3 to 7.
  9640. * This attribute is used to configure the testbed device.
  9641. */
  9642. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_80MHZ = 60,
  9643. /* 8-bit unsigned value to configure beamformee SS EHT capability
  9644. * to indicate the maximum number of spatial streams that the STA
  9645. * can receive in an EHT sounding NDP for 160 MHz bandwidth.
  9646. * The range of the value is 3 to 7.
  9647. * This attribute is used to configure the testbed device.
  9648. */
  9649. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_160MHZ = 61,
  9650. /* 8-bit unsigned value to configure beamformee SS EHT capability
  9651. * to indicate the maximum number of spatial streams that the STA
  9652. * can receive in an EHT sounding NDP for 320 MHz bandwidth.
  9653. * The range of the value is 3 to 7.
  9654. * This attribute is used to configure the testbed device.
  9655. */
  9656. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_320MHZ = 62,
  9657. /* 8-bit unsigned value to configure the driver to exclude station
  9658. * profile in Probe Request frame Multi-Link element.
  9659. * 0 - Default behavior, sends the Probe Request frame with station
  9660. * profile data included in the Multi-Link element.
  9661. * 1 - Exclude station profile in Probe Request frame Multi-Link
  9662. * element.
  9663. * This attribute is used to configure the testbed device.
  9664. */
  9665. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EXCLUDE_STA_PROF_IN_PROBE_REQ = 63,
  9666. /* 8-bit unsigned value to configure EHT testbed defaults.
  9667. * This attribute is used to configure the testbed device.
  9668. * 1 - Set the device EHT capabilities to testbed defaults.
  9669. * 0 - Reset the device EHT capabilities to supported config.
  9670. */
  9671. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_EHT_TESTBED_DEFAULTS = 64,
  9672. /* 8-bit unsigned value to indicate the EHT MCS support.
  9673. * Uses enum eht_mcs_config values.
  9674. * This attribute is used to configure the testbed device to
  9675. * allow the advertised hardware capabilities to be downgraded
  9676. * for testing purposes.
  9677. */
  9678. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MCS = 65,
  9679. /* 8-bit unsigned value to configure EHT TB Sounding Feedback
  9680. * Rate Limit capability.
  9681. * This attribute is used to configure the testbed device.
  9682. * 0 - Indicates no maximum supported data rate limitation.
  9683. * 1 - Indicates the maximum supported data rate is the lower of
  9684. * the 1500 Mb/s and the maximum supported data rate.
  9685. */
  9686. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_TB_SOUNDING_FB_RL = 66,
  9687. /* 8-bit unsigned value to configure the support for receiving an MPDU
  9688. * that contains an EHT operating mode control subfield.
  9689. * This attribute is used to configure the testbed device.
  9690. * 1-enable, 0-disable.
  9691. */
  9692. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_OM_CTRL_SUPPORT = 67,
  9693. /* 8-bit unsigned value to configure the driver with EMLSR padding delay
  9694. * subfield value.
  9695. *
  9696. * 0 - 0 us
  9697. * 1 - 32 us
  9698. * 2 - 64 us
  9699. * 3 - 128 us
  9700. * 4 - 256 us
  9701. * 5-255 - Reserved
  9702. *
  9703. * This attribute is used for testing purposes.
  9704. */
  9705. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EMLSR_PADDING_DELAY = 68,
  9706. /*
  9707. * 8-bit unsigned value to indicate the firmware to force the active MLO
  9708. * links to power save mode for the configured number of beacon periods.
  9709. * This allows the firmware to suspend STA links for X beacon periods
  9710. * and remain asleep even if the AP advertises TIM as opposed to regular
  9711. * power save mode where STA links wake up if the AP indicates that it
  9712. * has buffered data to send.
  9713. * This attribute is used to configure the testbed device.
  9714. */
  9715. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FORCE_MLO_POWER_SAVE_BCN_PERIOD = 69,
  9716. /*
  9717. * 8-bit unsigned value to indicate the firmware to be in STR MLMR mode
  9718. * to enable simultaneous transmission of PPDUs on all active links.
  9719. * 0 - Default behavior
  9720. * 1 - Enter STR mode for simultaneous data transmission on all links
  9721. */
  9722. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_STR_TX = 70,
  9723. /* Nested attribute to indicate EHT MLO links on which powersave to be
  9724. * enabled. It contains link ID attributes. These nested attributes are
  9725. * of the type u8 and are used to enable the powersave on associated
  9726. * MLO links corresponding to the link IDs provided in the command.
  9727. * This attribute is used to configure the testbed device.
  9728. */
  9729. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_LINK_POWER_SAVE = 71,
  9730. /* 8-bit unsigned value to configure the MLD ID of the BSS whose link
  9731. * info is requested in the ML Probe Request frame. In the MLO-MBSSID
  9732. * testcase, STA can request information of non-Tx BSS through Tx BSS
  9733. * by configuring non-Tx BSS MLD ID within the ML probe request that
  9734. * is transmitted via host initiated scan request.
  9735. *
  9736. * This attribute is used for testing purposes.
  9737. */
  9738. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MLD_ID_ML_PROBE_REQ = 72,
  9739. /* keep last */
  9740. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
  9741. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
  9742. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
  9743. };
  9744. /**
  9745. * enum qca_wlan_twt_operation - Operation of the config TWT request
  9746. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
  9747. * The response for the respective operations can be either synchronous or
  9748. * asynchronous (wherever specified). If synchronous, the response to this
  9749. * operation is obtained in the corresponding vendor command reply to the user
  9750. * space. For the asynchronous case the response is obtained as an event with
  9751. * the same operation type.
  9752. *
  9753. * Drivers shall support either of these modes but not both simultaneously.
  9754. * This support for asynchronous mode is advertised through the flag
  9755. * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
  9756. * the driver shall support synchronous mode.
  9757. *
  9758. * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
  9759. * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9760. * qca_wlan_vendor_attr_twt_setup. Depending upon the
  9761. * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
  9762. * synchronous or asynchronous operation.
  9763. *
  9764. * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
  9765. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9766. * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
  9767. *
  9768. * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
  9769. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9770. * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
  9771. * This terminate can either get triggered by the user space or can as well be
  9772. * a notification from the firmware if it initiates a terminate.
  9773. * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
  9774. * the request from user space can either be a synchronous or asynchronous
  9775. * operation.
  9776. *
  9777. * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
  9778. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9779. * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
  9780. * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
  9781. * this is either a synchronous or asynchronous operation.
  9782. *
  9783. * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
  9784. * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9785. * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
  9786. * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
  9787. * request.
  9788. * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
  9789. * capability, this is either a synchronous or asynchronous operation.
  9790. *
  9791. * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
  9792. * combination of suspend and resume in a single request. Required parameters
  9793. * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
  9794. * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
  9795. * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
  9796. * capability, this is either a synchronous or asynchronous operation.
  9797. *
  9798. * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
  9799. * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
  9800. * session is setup. It's a synchronous operation.
  9801. *
  9802. * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
  9803. * Valid only after the TWT session is setup. It's a synchronous operation.
  9804. *
  9805. * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
  9806. * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
  9807. * operation.
  9808. *
  9809. * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is
  9810. * ready for a new TWT session setup after it issued a twt teardown.
  9811. *
  9812. * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
  9813. * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
  9814. * the enum qca_wlan_vendor_attr_twt_set_param.
  9815. *
  9816. * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
  9817. * related information for example TWT required bit in AP capabilities etc.
  9818. * The reason for the notification is sent using
  9819. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
  9820. */
  9821. enum qca_wlan_twt_operation {
  9822. QCA_WLAN_TWT_SET = 0,
  9823. QCA_WLAN_TWT_GET = 1,
  9824. QCA_WLAN_TWT_TERMINATE = 2,
  9825. QCA_WLAN_TWT_SUSPEND = 3,
  9826. QCA_WLAN_TWT_RESUME = 4,
  9827. QCA_WLAN_TWT_NUDGE = 5,
  9828. QCA_WLAN_TWT_GET_STATS = 6,
  9829. QCA_WLAN_TWT_CLEAR_STATS = 7,
  9830. QCA_WLAN_TWT_GET_CAPABILITIES = 8,
  9831. QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
  9832. QCA_WLAN_TWT_SET_PARAM = 10,
  9833. QCA_WLAN_TWT_NOTIFY = 11,
  9834. };
  9835. /* enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
  9836. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT
  9837. *
  9838. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION:
  9839. * u8 attribute. Specify the TWT operation of this request. Possible values
  9840. * are defined in enum qca_wlan_twt_operation. The parameters for the
  9841. * respective operation is specified through
  9842. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
  9843. *
  9844. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
  9845. * parameters configured for TWT. These parameters are represented by
  9846. * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
  9847. * enum qca_wlan_vendor_attr_twt_set_param or
  9848. * enum qca_wlan_vendor_attr_twt_stats based on the operation.
  9849. *
  9850. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
  9851. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
  9852. * The values used by this attribute are defined in
  9853. * enum qca_wlan_vendor_twt_status.
  9854. */
  9855. enum qca_wlan_vendor_attr_config_twt {
  9856. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
  9857. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
  9858. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
  9859. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
  9860. /* keep last */
  9861. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
  9862. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
  9863. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
  9864. };
  9865. /**
  9866. * qca_wlan_twt_setup_state: Represents the TWT session states.
  9867. *
  9868. * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
  9869. * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
  9870. * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
  9871. */
  9872. enum qca_wlan_twt_setup_state {
  9873. QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
  9874. QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
  9875. QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
  9876. };
  9877. /**
  9878. * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
  9879. * TWT (Target Wake Time) setup request. These attributes are sent as part of
  9880. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
  9881. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
  9882. * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9883. *
  9884. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
  9885. * Disable (flag attribute not present) - Individual TWT
  9886. * Enable (flag attribute present) - Broadcast TWT.
  9887. * Individual means the session is between the STA and the AP.
  9888. * This session is established using a separate negotiation between
  9889. * STA and AP.
  9890. * Broadcast means the session is across multiple STAs and an AP. The
  9891. * configuration parameters are announced in Beacon frames by the AP.
  9892. * This is used in
  9893. * 1. TWT SET Request and Response
  9894. * 2. TWT GET Response
  9895. *
  9896. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
  9897. * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
  9898. * specify the TWT request type. This is used in TWT SET operation.
  9899. *
  9900. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
  9901. * Enable (flag attribute present) - TWT with trigger support.
  9902. * Disable (flag attribute not present) - TWT without trigger support.
  9903. * Trigger means the AP will send the trigger frame to allow STA to send data.
  9904. * Without trigger, the STA will wait for the MU EDCA timer before
  9905. * transmitting the data.
  9906. * This is used in
  9907. * 1. TWT SET Request and Response
  9908. * 2. TWT GET Response
  9909. *
  9910. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
  9911. * 0 - Announced TWT - In this mode, STA may skip few service periods to
  9912. * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
  9913. * NULL frame to AP.
  9914. * 1 - Unannounced TWT - The STA will wakeup during every SP.
  9915. * This is a required parameter for
  9916. * 1. TWT SET Request and Response
  9917. * 2. TWT GET Response
  9918. *
  9919. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
  9920. * Flow ID is the unique identifier for each TWT session.
  9921. * If not provided then dialog ID will be set to zero.
  9922. * This is an optional parameter for
  9923. * 1. TWT SET Request and Response
  9924. * 2. TWT GET Request and Response
  9925. * 3. TWT TERMINATE Request and Response
  9926. * 4. TWT SUSPEND Request and Response
  9927. * Flow Id values from 0 to 254 represent a single TWT session
  9928. * Flow ID value of 255 represents all twt sessions for the following
  9929. * 1. TWT TERMINATE Request and Response
  9930. * 2. TWT SUSPEND Request and Response
  9931. * 4. TWT CLEAR STATISTICS request
  9932. * 5. TWT GET STATISTICS request and response
  9933. * If an invalid dialog id is provided, status
  9934. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  9935. *
  9936. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
  9937. * This attribute (exp) is used along with the mantissa to derive the
  9938. * wake interval using the following formula:
  9939. * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
  9940. * Wake interval is the interval between 2 successive SP.
  9941. * This is a required parameter for
  9942. * 1. TWT SET Request and Response
  9943. * 2. TWT GET Response
  9944. *
  9945. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
  9946. * Enable (flag attribute present) - Protection required.
  9947. * Disable (flag attribute not present) - Protection not required.
  9948. * If protection is enabled, then the AP will use protection
  9949. * mechanism using RTS/CTS to self to reserve the airtime.
  9950. * This is used in
  9951. * 1. TWT SET Request and Response
  9952. * 2. TWT GET Response
  9953. *
  9954. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
  9955. * This attribute is used as the SP offset which is the offset from
  9956. * TSF after which the wake happens. The units are in microseconds. If
  9957. * this attribute is not provided, then the value will be set to zero.
  9958. * This is an optional parameter for
  9959. * 1. TWT SET Request and Response
  9960. * 2. TWT GET Response
  9961. *
  9962. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
  9963. * This is the duration of the service period. This is specified as
  9964. * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
  9965. * This is a required parameter for
  9966. * 1. TWT SET Request and Response
  9967. * 2. TWT GET Response
  9968. *
  9969. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
  9970. * This attribute is used to configure wake interval mantissa.
  9971. * The units are in TU.
  9972. * This is a required parameter for
  9973. * 1. TWT SET Request and Response
  9974. * 2. TWT GET Response
  9975. *
  9976. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
  9977. * This field is applicable for TWT response only.
  9978. * This contains status values in enum qca_wlan_vendor_twt_status
  9979. * and is passed to the userspace. This is used in TWT SET operation.
  9980. * This is a required parameter for
  9981. * 1. TWT SET Response
  9982. * 2. TWT TERMINATE Response
  9983. * 3. TWT SUSPEND Response
  9984. * 4. TWT RESUME Response
  9985. * 5. TWT NUDGE Response
  9986. *
  9987. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
  9988. * This field is applicable for TWT response only.
  9989. * This field contains response type from the TWT responder and is
  9990. * passed to the userspace. The values for this field are defined in
  9991. * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
  9992. * response.
  9993. *
  9994. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
  9995. * In TWT setup command this field contains absolute TSF that will
  9996. * be used by TWT requester during setup.
  9997. * In TWT response this field contains absolute TSF value of the
  9998. * wake time received from the TWT responder and is passed to
  9999. * the userspace.
  10000. * This is an optional parameter for
  10001. * 1. TWT SET Request
  10002. * This is a required parameter for
  10003. * 1. TWT SET Response
  10004. * 2. TWT GET Response
  10005. *
  10006. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
  10007. * Enable (flag attribute present) - Indicates that the TWT responder
  10008. * supports reception of TWT information frame from the TWT requestor.
  10009. * Disable (flag attribute not present) - Indicates that the responder
  10010. * doesn't support reception of TWT information frame from requestor.
  10011. * This is used in
  10012. * 1. TWT SET Response
  10013. * 2. TWT GET Response
  10014. *
  10015. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
  10016. * Represents the MAC address of the peer for which the TWT session
  10017. * is being configured. This is used in AP mode to represent the respective
  10018. * client
  10019. * In AP mode, this is a required parameter in response for
  10020. * 1. TWT SET
  10021. * 2. TWT GET
  10022. * 3. TWT TERMINATE
  10023. * 4. TWT SUSPEND
  10024. * In STA mode, this is an optional parameter in request and response for
  10025. * the above four TWT operations.
  10026. * In AP mode, this is a required parameter in request for
  10027. * 1. TWT GET
  10028. * 2. TWT TERMINATE
  10029. *
  10030. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
  10031. * Minimum tolerance limit of wake interval parameter in microseconds.
  10032. *
  10033. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
  10034. * Maximum tolerance limit of wake interval parameter in microseconds.
  10035. *
  10036. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
  10037. * Minimum tolerance limit of wake duration parameter in microseconds.
  10038. *
  10039. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
  10040. * Maximum tolerance limit of wake duration parameter in microseconds.
  10041. *
  10042. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
  10043. * TWT state for the given dialog id. The values for this are represented
  10044. * by enum qca_wlan_twt_setup_state.
  10045. * This is obtained through TWT GET operation.
  10046. *
  10047. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
  10048. * This attribute is used to configure wake interval mantissa.
  10049. * The unit is microseconds. This attribute, when specified, takes
  10050. * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
  10051. * This parameter is used for
  10052. * 1. TWT SET Request and Response
  10053. * 2. TWT GET Response
  10054. *
  10055. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
  10056. * This attribute is used to configure Broadcast TWT ID.
  10057. * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
  10058. * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
  10059. * This parameter is used for
  10060. * 1. TWT SET Request
  10061. * 2. TWT TERMINATE Request
  10062. *
  10063. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
  10064. * This attribute is used to configure Broadcast TWT recommendation.
  10065. * The Broadcast TWT Recommendation subfield contains a value that indicates
  10066. * recommendations on the types of frames that are transmitted by TWT
  10067. * scheduled STAs and scheduling AP during the broadcast TWT SP.
  10068. * The allowed values are 0 - 3.
  10069. * This parameter is used for
  10070. * 1. TWT SET Request
  10071. *
  10072. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
  10073. * This attribute is used to configure Broadcast TWT Persistence.
  10074. * The Broadcast TWT Persistence subfield indicates the number of
  10075. * TBTTs during which the Broadcast TWT SPs corresponding to this
  10076. * broadcast TWT Parameter set are present. The number of beacon intervals
  10077. * during which the Broadcast TWT SPs are present is equal to the value in the
  10078. * Broadcast TWT Persistence subfield plus 1 except that the value 255
  10079. * indicates that the Broadcast TWT SPs are present until explicitly terminated.
  10080. * This parameter is used for
  10081. * 1. TWT SET Request
  10082. *
  10083. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
  10084. * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
  10085. * from TWT response frame.
  10086. * This parameter is used for
  10087. * 1. TWT SET Response
  10088. * 2. TWT GET Response
  10089. *
  10090. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
  10091. * This attribute is used to configure the announce timeout value (in us) in
  10092. * firmware. This timeout value is only applicable for announced TWT. If
  10093. * timeout value is non-zero then firmware waits upto timeout value to use
  10094. * data frame as announcement frame. If timeout value is 0 then firmware sends
  10095. * explicit QoS NULL frame as announcement frame on SP start. Default value in
  10096. * firmware is 0.
  10097. * This parameter is used for
  10098. * 1. TWT SET Request
  10099. */
  10100. enum qca_wlan_vendor_attr_twt_setup {
  10101. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
  10102. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
  10103. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
  10104. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
  10105. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
  10106. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
  10107. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
  10108. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
  10109. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
  10110. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
  10111. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
  10112. /* TWT Response only attributes */
  10113. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
  10114. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
  10115. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
  10116. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
  10117. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
  10118. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
  10119. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
  10120. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
  10121. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
  10122. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
  10123. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
  10124. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
  10125. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
  10126. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
  10127. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
  10128. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
  10129. /* keep last */
  10130. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
  10131. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
  10132. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
  10133. };
  10134. /**
  10135. * enum qca_wlan_vendor_twt_status - Represents the status of the requested
  10136. * TWT operation
  10137. *
  10138. * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
  10139. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
  10140. * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
  10141. * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
  10142. * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
  10143. * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
  10144. * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
  10145. * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
  10146. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
  10147. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
  10148. * request/response frame
  10149. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
  10150. * frame
  10151. * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
  10152. * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
  10153. * unknown reason
  10154. * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
  10155. * suspend state
  10156. * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
  10157. * invalid IE in the received TWT frame
  10158. * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
  10159. * the responder are not in the specified range
  10160. * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
  10161. * session due to request from the responder. Used on the TWT_TERMINATE
  10162. * notification from the firmware.
  10163. * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
  10164. * session due to roaming. Used on the TWT_TERMINATE notification from the
  10165. * firmware.
  10166. * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
  10167. * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel)
  10168. * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
  10169. * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
  10170. * request due to roaming in progress.
  10171. * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
  10172. * setup request due to channel switch in progress.
  10173. * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
  10174. * request due to scan in progress.
  10175. * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
  10176. * terminate an existing TWT session on power save exit request from userspace.
  10177. * Used on the TWT_TERMINATE notification from the driver/firmware.
  10178. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
  10179. * required bit in its capabilities.
  10180. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
  10181. * the TWT required bit(1->0) in its capabilities.
  10182. */
  10183. enum qca_wlan_vendor_twt_status {
  10184. QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
  10185. QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
  10186. QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
  10187. QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
  10188. QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
  10189. QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
  10190. QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
  10191. QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
  10192. QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
  10193. QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
  10194. QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
  10195. QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
  10196. QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
  10197. QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
  10198. QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
  10199. QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
  10200. QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
  10201. QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
  10202. QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
  10203. QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
  10204. QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
  10205. QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
  10206. QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
  10207. QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
  10208. QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
  10209. };
  10210. /**
  10211. * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
  10212. * TWT (Target Wake Time) resume request. These attributes are sent as part of
  10213. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
  10214. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
  10215. * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  10216. *
  10217. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
  10218. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
  10219. * These attributes are used as the SP offset which is the offset from TSF after
  10220. * which the wake happens. The units are in microseconds. Please note that
  10221. * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
  10222. * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
  10223. * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
  10224. * will be set to zero.
  10225. *
  10226. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
  10227. * This attribute represents the next TWT subfield size.
  10228. * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
  10229. * and 4 for 64 bits.
  10230. *
  10231. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
  10232. * Flow ID is the unique identifier for each TWT session. This attribute
  10233. * represents the respective TWT session to resume.
  10234. * Flow Id values from 0 to 254 represent a single TWT session
  10235. * Flow ID value of 255 represents all TWT sessions.
  10236. * If an invalid dialog id is provided, status
  10237. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  10238. *
  10239. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
  10240. * Represents the MAC address of the peer to which TWT Resume is
  10241. * being sent. This is used in AP mode to represent the respective
  10242. * client and is a required parameter. In STA mode, this is an optional
  10243. * parameter
  10244. *
  10245. */
  10246. enum qca_wlan_vendor_attr_twt_resume {
  10247. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
  10248. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
  10249. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
  10250. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
  10251. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
  10252. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
  10253. /* keep last */
  10254. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
  10255. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
  10256. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
  10257. };
  10258. /**
  10259. * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
  10260. * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
  10261. * and resume in a single request. These attributes are sent as part of
  10262. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  10263. *
  10264. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
  10265. * Flow ID is the unique identifier for each TWT session. This attribute
  10266. * represents the respective TWT session to suspend and resume.
  10267. *
  10268. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
  10269. * Flow ID is the unique identifier for each TWT session. This attribute
  10270. * represents the respective TWT session to suspend and resume.
  10271. * Flow Id values from 0 to 254 represent a single TWT session
  10272. * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
  10273. * and response.
  10274. * If an invalid dialog id is provided, status
  10275. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  10276. *
  10277. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
  10278. * This attribute is used as the SP offset which is the offset from
  10279. * TSF after which the wake happens. The units are in microseconds.
  10280. *
  10281. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
  10282. * This attribute represents the next TWT subfield size.
  10283. * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
  10284. * and 4 for 64 bits.
  10285. *
  10286. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
  10287. * Represents the MAC address of the peer to which TWT Suspend and Resume is
  10288. * being sent. This is used in AP mode to represent the respective
  10289. * client and is a required parameter. In STA mode, this is an optional
  10290. * parameter.
  10291. *
  10292. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
  10293. * This field contains absolute TSF value of the time at which twt
  10294. * sesion will be resumed.
  10295. *
  10296. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32)
  10297. * This field will be used when device supports Flexible TWT.
  10298. * This field contains an offset value by which to shift the starting time
  10299. * of the next service period. The value of offset can be negative or positive.
  10300. * If provided, this attribute will override
  10301. * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds.
  10302. */
  10303. enum qca_wlan_vendor_attr_twt_nudge {
  10304. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
  10305. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
  10306. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
  10307. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
  10308. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
  10309. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
  10310. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6,
  10311. /* keep last */
  10312. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
  10313. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
  10314. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
  10315. };
  10316. /**
  10317. * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
  10318. * TWT (Target Wake Time) get statistics and clear statistics request.
  10319. * These attributes are sent as part of
  10320. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  10321. *
  10322. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
  10323. * Flow ID is the unique identifier for each TWT session. This attribute
  10324. * represents the respective TWT session for get and clear TWT statistics.
  10325. * Flow Id values from 0 to 254 represent a single TWT session
  10326. * Flow ID value of 255 represents all TWT sessions in
  10327. * 1) TWT GET STATISTICS request and response
  10328. * 2) TWT CLEAR STATISTICS request
  10329. *
  10330. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
  10331. * Represents the MAC address of the peer for which TWT Statistics
  10332. * is required.
  10333. * In AP mode this is used to represent the respective
  10334. * client and is a required parameter for
  10335. * 1) TWT GET STATISTICS request and response
  10336. * 2) TWT CLEAR STATISTICS request and response
  10337. * In STA mode, this is an optional parameter.
  10338. *
  10339. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
  10340. * This is the duration of the service period in microseconds.
  10341. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10342. *
  10343. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
  10344. * Average of actual wake duration observed so far. Unit is microseconds.
  10345. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10346. *
  10347. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
  10348. * Number of TWT service period elapsed so far.
  10349. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10350. *
  10351. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
  10352. * This is the minimum value of wake duration observed across
  10353. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
  10354. * microseconds.
  10355. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10356. *
  10357. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
  10358. * This is the maximum value of wake duration observed across
  10359. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
  10360. * microseconds.
  10361. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10362. *
  10363. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
  10364. * Average number of MPDU's transmitted successfully across
  10365. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  10366. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10367. *
  10368. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
  10369. * Average number of MPDU's received successfully across
  10370. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  10371. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10372. *
  10373. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
  10374. * Average number of bytes transmitted successfully across
  10375. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  10376. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10377. *
  10378. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET SIZE: Required (u32)
  10379. * Average number of bytes received successfully across
  10380. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  10381. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10382. *
  10383. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
  10384. * Status of the TWT GET STATISTICS request.
  10385. * This contains status values in enum qca_wlan_vendor_twt_status
  10386. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10387. */
  10388. enum qca_wlan_vendor_attr_twt_stats {
  10389. QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
  10390. QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
  10391. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
  10392. QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
  10393. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
  10394. QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
  10395. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
  10396. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
  10397. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
  10398. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
  10399. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
  10400. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
  10401. QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
  10402. /* keep last */
  10403. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
  10404. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
  10405. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
  10406. };
  10407. /**
  10408. * qca_wlan_twt_get_capa - Represents the Bitmap of TWT capabilities
  10409. * supported by the device and peer.
  10410. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
  10411. *
  10412. * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
  10413. * TWT non-scheduling STA. This capability is advertised in the HE
  10414. * capability/Extended capabilities information element in the
  10415. * Association request frame by the device.
  10416. *
  10417. * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised
  10418. * by the TWT scheduling AP. This capability is advertised in the extended
  10419. * capabilities/HE capabilities information element.
  10420. *
  10421. * @QCA_WLAN_TWT_CAPA_BROADCAST: On requestor side, this indicates support
  10422. * for the broadcast TWT functionality. On responder side, this indicates
  10423. * support for the role of broadcast TWT scheduling functionality. This
  10424. * capability is advertised in the HE capabilities information element.
  10425. *
  10426. * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: Device supports flexible TWT schedule.
  10427. * This capability is advertised in the HE capabilities information element.
  10428. *
  10429. * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
  10430. * that it mandates the associated HE STAs to support TWT. This capability is
  10431. * advertised by AP in the HE Operation Parameters field of the HE operation
  10432. * information element.
  10433. */
  10434. enum qca_wlan_twt_capa {
  10435. QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
  10436. QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
  10437. QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
  10438. QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3),
  10439. QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4),
  10440. };
  10441. /**
  10442. * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT
  10443. * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
  10444. * operation.
  10445. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
  10446. * Represents the MAC address of the peer for which the TWT capabilities
  10447. * are being queried. This is used in AP mode to represent the respective
  10448. * client. In STA mode, this is an optional parameter.
  10449. *
  10450. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
  10451. * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
  10452. * enum qca_wlan_twt_capa.
  10453. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
  10454. * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
  10455. * enum qca_wlan_twt_capa.
  10456. */
  10457. enum qca_wlan_vendor_attr_twt_capability {
  10458. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
  10459. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
  10460. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
  10461. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
  10462. /* keep last */
  10463. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
  10464. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
  10465. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
  10466. };
  10467. /**
  10468. * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
  10469. * TWT (Target Wake Time) related parameters. It is used when
  10470. * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
  10471. * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  10472. *
  10473. * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
  10474. * This attribute configures AC parameters to be used for all TWT
  10475. * sessions in AP mode.
  10476. * Uses the enum qca_wlan_ac_type values.
  10477. */
  10478. enum qca_wlan_vendor_attr_twt_set_param {
  10479. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
  10480. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
  10481. /* keep last */
  10482. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
  10483. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
  10484. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
  10485. };
  10486. /**
  10487. * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
  10488. * the TWT responder
  10489. *
  10490. * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
  10491. * parameters that are different from TWT requesting STA suggested
  10492. * or demanded TWT parameters
  10493. * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
  10494. * parameters that are different from TWT requesting STA TWT suggested
  10495. * or demanded parameters
  10496. * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
  10497. * setup
  10498. * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
  10499. * setup.
  10500. */
  10501. enum qca_wlan_vendor_twt_setup_resp_type {
  10502. QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
  10503. QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
  10504. QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
  10505. QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
  10506. };
  10507. /**
  10508. * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
  10509. * Represents the setup type being requested for TWT.
  10510. * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
  10511. * parameters but relying on AP to fill the parameters during the negotiation.
  10512. * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
  10513. * values which the AP may accept or AP may provide alternative parameters
  10514. * which the STA may accept.
  10515. * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
  10516. * alternate parameters than the requested ones.
  10517. */
  10518. enum qca_wlan_vendor_twt_setup_req_type {
  10519. QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
  10520. QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
  10521. QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
  10522. };
  10523. /**
  10524. * enum qca_wlan_throughput_level - Current throughput level
  10525. *
  10526. * Indicates the current level of throughput calculated by driver. The driver
  10527. * may choose different thresholds to decide whether the throughput level is
  10528. * low or medium or high based on variety of parameters like physical link
  10529. * capacity of current connection, number of pakcets being dispatched per
  10530. * second etc. The throughput level events might not be consistent with the
  10531. * actual current throughput value being observed.
  10532. *
  10533. * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
  10534. * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
  10535. * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
  10536. */
  10537. enum qca_wlan_throughput_level {
  10538. QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
  10539. QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
  10540. QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
  10541. };
  10542. /**
  10543. * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
  10544. * report throughput changes from driver to user space. enum values are used
  10545. * for NL attributes sent with
  10546. * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
  10547. */
  10548. enum qca_wlan_vendor_attr_throughput_change {
  10549. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
  10550. /*
  10551. * Indicates the direction of throughput in which the change is being
  10552. * reported. u8 attribute. Value is 0 for TX and 1 for RX.
  10553. */
  10554. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
  10555. /*
  10556. * Indicates the newly observed throughput level.
  10557. * qca_wlan_throughput_level describes the possible range of values.
  10558. * u8 attribute.
  10559. */
  10560. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
  10561. /*
  10562. * Indicates the driver's guidance on the new value to be set to
  10563. * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver
  10564. * may optionally include this attribute.
  10565. */
  10566. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
  10567. /*
  10568. * Indicates the driver's guidance on the new value to be set to
  10569. * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible
  10570. * values are from -31 to 31. Driver may optionally include this
  10571. * attribute.
  10572. */
  10573. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
  10574. /*
  10575. * Indicates the driver's guidance on the new value to be set to
  10576. * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may
  10577. * optionally include this attribute.
  10578. */
  10579. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
  10580. /* keep last */
  10581. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
  10582. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
  10583. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
  10584. };
  10585. /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
  10586. * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
  10587. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  10588. */
  10589. enum qca_wlan_nan_ext_subcmd_type {
  10590. /* Subcmd of type NAN Enable Request */
  10591. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
  10592. /* Subcmd of type NAN Disable Request */
  10593. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
  10594. };
  10595. /**
  10596. * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
  10597. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  10598. */
  10599. enum qca_wlan_vendor_attr_nan_params {
  10600. QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
  10601. /* Carries NAN command for firmware component. Every vendor command
  10602. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
  10603. * payload containing the NAN command. NLA_BINARY attribute.
  10604. */
  10605. QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
  10606. /* Indicates the type of NAN command sent with
  10607. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
  10608. * describes the possible range of values. This attribute is mandatory
  10609. * if the command being issued is either
  10610. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
  10611. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
  10612. */
  10613. QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
  10614. /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
  10615. * band. This attribute is mandatory when command type is
  10616. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
  10617. */
  10618. QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
  10619. /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
  10620. * band. This attribute is optional and should be included when command
  10621. * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
  10622. * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
  10623. */
  10624. QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
  10625. /* keep last */
  10626. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
  10627. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
  10628. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
  10629. };
  10630. /**
  10631. * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
  10632. * transport modes and is used by attribute
  10633. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as part of vendor command
  10634. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
  10635. * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use RELAY FS to send CFR data.
  10636. * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
  10637. * data. The data shall be encapsulated within
  10638. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with vendor sub command
  10639. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
  10640. */
  10641. enum qca_wlan_vendor_cfr_data_transport_modes {
  10642. QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
  10643. QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
  10644. };
  10645. /**
  10646. * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
  10647. * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
  10648. * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
  10649. * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QOS Null frame.
  10650. * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QOS Null frame
  10651. * with phase
  10652. * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using probe response frame
  10653. */
  10654. enum qca_wlan_vendor_cfr_method {
  10655. QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
  10656. QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
  10657. QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
  10658. };
  10659. /**
  10660. * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
  10661. * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
  10662. * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
  10663. * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
  10664. * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
  10665. * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
  10666. * is provided by one or more of below attributes:
  10667. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
  10668. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
  10669. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
  10670. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
  10671. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
  10672. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
  10673. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
  10674. * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
  10675. * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
  10676. */
  10677. enum qca_wlan_vendor_cfr_capture_type {
  10678. QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
  10679. QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
  10680. QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
  10681. QCA_WLAN_VENDOR_CFR_TA_RA = 3,
  10682. QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
  10683. QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
  10684. };
  10685. /**
  10686. * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
  10687. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
  10688. * Channel Frequency Response capture parameters and enable periodic CFR
  10689. * capture.
  10690. *
  10691. * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
  10692. * MAC address of peer. This is for CFR version 1 only.
  10693. *
  10694. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
  10695. * Enable peer CFR Capture. This attribute is mandatory to
  10696. * enable peer CFR capture. If this attribute is not present,
  10697. * peer CFR capture is disabled.
  10698. *
  10699. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
  10700. * BW of measurement, attribute uses the values in enum nl80211_chan_width
  10701. * Supported values: 20, 40, 80, 80+80, 160.
  10702. * Note that all targets may not support all bandwidths.
  10703. * This attribute is mandatory for version 1 if attribute
  10704. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  10705. *
  10706. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
  10707. * Periodicity of CFR measurement in msec.
  10708. * Periodicity should be a multiple of Base timer.
  10709. * Current Base timer value supported is 10 msecs (default).
  10710. * 0 for one shot capture.
  10711. * This attribute is mandatory for version 1 if attribute
  10712. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  10713. *
  10714. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
  10715. * Method used to capture Channel Frequency Response.
  10716. * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
  10717. * This attribute is mandatory for version 1 if attribute
  10718. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  10719. *
  10720. * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
  10721. * Enable periodic CFR capture.
  10722. * This attribute is mandatory for version 1 to enable Periodic CFR capture.
  10723. * If this attribute is not present, periodic CFR capture is disabled.
  10724. *
  10725. * @QCA_WLAN_VENDOR_ATTR_CFR_VERSION: Optional (u8)
  10726. * Value is 1 or 2 since there are two versions of CFR capture. Two versions
  10727. * can't be enabled at same time. This attribute is mandatory if target
  10728. * support both versions and use one of them.
  10729. *
  10730. * @QCA_WLAN_VENDOR_ATTR_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
  10731. * This attribute is mandatory for version 2 if
  10732. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
  10733. * Bits 15:0 Bit fields indicating which group to be enabled.
  10734. * Bits 31:16 Reserved for future use.
  10735. *
  10736. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
  10737. * CFR capture duration in microsecond. This attribute is mandatory for
  10738. * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
  10739. *
  10740. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
  10741. * CFR capture interval in microsecond. This attribute is mandatory for
  10742. * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
  10743. *
  10744. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
  10745. * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
  10746. * This attribute is mandatory for version 2.
  10747. *
  10748. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
  10749. * Bit fields indicating which user in the current UL MU
  10750. * transmissions are enabled for CFR capture. Bits 36 to 0 indicating
  10751. * user indexes for 37 users in a UL MU transmission. If bit 0 is set,
  10752. * then the CFR capture will happen for user index 0 in the current
  10753. * UL MU transmission. If bits 0,2 are set, then CFR capture for UL MU
  10754. * TX corresponds to user indices 0 and 2. Bits 63:37 Reserved for future use.
  10755. * This is for CFR version 2 only.
  10756. *
  10757. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
  10758. * Indicates the number of consecutive Rx packets to be skipped
  10759. * before CFR capture is enabled again.
  10760. * This is for CFR version 2 only.
  10761. *
  10762. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
  10763. * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
  10764. *
  10765. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
  10766. * the following GROUP attributes:
  10767. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
  10768. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
  10769. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
  10770. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
  10771. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
  10772. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
  10773. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
  10774. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
  10775. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
  10776. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
  10777. *
  10778. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
  10779. * Target support multiple groups for some configurations. Group number could be
  10780. * any value between 0 and 15. This is for CFR version 2 only.
  10781. *
  10782. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
  10783. * Transmitter address which is used to filter packets, this MAC address takes
  10784. * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK.
  10785. * This is for CFR version 2 only.
  10786. *
  10787. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
  10788. * Receiver address which is used to filter packets, this MAC address takes
  10789. * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK.
  10790. * This is for CFR version 2 only.
  10791. *
  10792. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
  10793. * Mask of transmitter address which is used to filter packets.
  10794. * This is for CFR version 2 only.
  10795. *
  10796. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
  10797. * Mask of receiver address which is used to filter packets.
  10798. * This is for CFR version 2 only.
  10799. *
  10800. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
  10801. * Indicates packets with a specific NSS will be filtered for CFR capture.
  10802. * This is for CFR version 2 only. This is a bitmask. Bits 7:0, CFR capture will
  10803. * be done for packets matching the NSS specified within this bitmask.
  10804. * Bits 31:8 Reserved for future use. Bits 7:0 map to NSS:
  10805. * bit 0 : NSS 1
  10806. * bit 1 : NSS 2
  10807. * ...
  10808. * bit 7 : NSS 8
  10809. *
  10810. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
  10811. * Indicates packets with a specific BW will be filtered for CFR capture.
  10812. * This is for CFR version 2 only. This is a bitmask. Bits 4:0, CFR capture
  10813. * will be done for packets matching the bandwidths specified within this
  10814. * bitmask. Bits 31:5 Reserved for future use. Bits 4:0 map to bandwidth
  10815. * numerated in enum nl80211_band (although not all bands may be supported
  10816. * by a given device).
  10817. *
  10818. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
  10819. * Management packets matching the subtype filter categories will be
  10820. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  10821. * represents the corresponding mgmt subtype value as per
  10822. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  10823. * For example, beacon frame control type is 8, its value is 1<<8 = 0x100.
  10824. * This is for CFR version 2 only
  10825. *
  10826. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
  10827. * Control packets matching the subtype filter categories will be
  10828. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  10829. * represents the corresponding control subtype value as per
  10830. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  10831. * This is for CFR version 2 only.
  10832. *
  10833. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
  10834. * Data packets matching the subtype filter categories will be
  10835. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  10836. * represents the corresponding data subtype value as per
  10837. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  10838. * This is for CFR version 2 only.
  10839. *
  10840. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
  10841. * Userspace can use this attribute to specify the driver about which transport
  10842. * mode shall be used by the driver to send CFR data to userspace. Uses values
  10843. * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
  10844. * not present, driver shall choose the default transport mechanism which is
  10845. * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
  10846. *
  10847. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
  10848. * Userspace can use this attribute to specify the nl port id of the application
  10849. * which receives the CFR data and processes it further so that the drivers can
  10850. * unicast the NL events to a specific application. Optionally included when
  10851. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
  10852. * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
  10853. * shall multicast the netlink events when this attribute is not included.
  10854. *
  10855. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
  10856. * This attribute will be used by the driver to encapsulate and send CFR data
  10857. * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
  10858. * asynchronous event when the driver is configured to send CFR data using NL
  10859. * events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS
  10860. *
  10861. */
  10862. enum qca_wlan_vendor_peer_cfr_capture_attr {
  10863. QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
  10864. QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
  10865. QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
  10866. QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
  10867. QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
  10868. QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
  10869. QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
  10870. QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
  10871. QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
  10872. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
  10873. QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
  10874. QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
  10875. QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
  10876. QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
  10877. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
  10878. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
  10879. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
  10880. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
  10881. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
  10882. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
  10883. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
  10884. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
  10885. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
  10886. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
  10887. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
  10888. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
  10889. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
  10890. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
  10891. QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
  10892. /* Keep last */
  10893. QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
  10894. QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
  10895. QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
  10896. };
  10897. /**
  10898. * enum qca_coex_config_profiles - This enum defines different types of
  10899. * traffic streams that can be prioritized one over the other during coex
  10900. * scenarios.
  10901. * The types defined in this enum are categorized in the below manner.
  10902. * 0 - 31 values corresponds to WLAN
  10903. * 32 - 63 values corresponds to BT
  10904. * 64 - 95 values corresponds to Zigbee
  10905. * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
  10906. * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
  10907. * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
  10908. * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
  10909. * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
  10910. * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
  10911. * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
  10912. * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
  10913. * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
  10914. * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
  10915. * @QCA_BT_A2DP: Prioritize BT A2DP
  10916. * @QCA_BT_BLE: Prioritize BT BLE
  10917. * @QCA_BT_SCO: Prioritize BT SCO
  10918. * @QCA_ZB_LOW: Prioritize Zigbee Low
  10919. * @QCA_ZB_HIGH: Prioritize Zigbee High
  10920. */
  10921. enum qca_coex_config_profiles {
  10922. /* 0 - 31 corresponds to WLAN */
  10923. QCA_WIFI_STA_DISCOVERY = 0,
  10924. QCA_WIFI_STA_CONNECTION = 1,
  10925. QCA_WIFI_STA_CLASS_3_MGMT = 2,
  10926. QCA_WIFI_STA_DATA = 3,
  10927. QCA_WIFI_STA_ALL = 4,
  10928. QCA_WIFI_SAP_DISCOVERY = 5,
  10929. QCA_WIFI_SAP_CONNECTION = 6,
  10930. QCA_WIFI_SAP_CLASS_3_MGMT = 7,
  10931. QCA_WIFI_SAP_DATA = 8,
  10932. QCA_WIFI_SAP_ALL = 9,
  10933. QCA_WIFI_CASE_MAX = 31,
  10934. /* 32 - 63 corresponds to BT */
  10935. QCA_BT_A2DP = 32,
  10936. QCA_BT_BLE = 33,
  10937. QCA_BT_SCO = 34,
  10938. QCA_BT_CASE_MAX = 63,
  10939. /* 64 - 95 corresponds to Zigbee */
  10940. QCA_ZB_LOW = 64,
  10941. QCA_ZB_HIGH = 65,
  10942. QCA_ZB_CASE_MAX = 95,
  10943. /* 0xff is default value if the u8 profile value is not set. */
  10944. QCA_PROFILE_DEFAULT_VALUE = 255
  10945. };
  10946. /**
  10947. * enum qca_vendor_attr_coex_config_types - Coex configurations types.
  10948. * This enum defines the valid set of values of coex configuration types. These
  10949. * values may used by attribute
  10950. * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
  10951. *
  10952. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
  10953. * weights to default values.
  10954. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
  10955. * weights with configurability value.
  10956. */
  10957. enum qca_vendor_attr_coex_config_types {
  10958. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
  10959. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
  10960. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
  10961. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX
  10962. };
  10963. /**
  10964. * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
  10965. * attributes
  10966. * Attributes for data used by
  10967. * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
  10968. *
  10969. * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
  10970. * Indicate config type.
  10971. * the config types are 32-bit values from qca_vendor_attr_coex_config_types
  10972. *
  10973. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
  10974. * Indicate the Priority 1 profiles.
  10975. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10976. * In same priority level, maximum to 4 profiles can be set here.
  10977. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
  10978. * Indicate the Priority 2 profiles.
  10979. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10980. * In same priority level, maximum to 4 profiles can be set here.
  10981. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
  10982. * Indicate the Priority 3 profiles.
  10983. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10984. * In same priority level, maximum to 4 profiles can be set here.
  10985. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
  10986. * Indicate the Priority 4 profiles.
  10987. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10988. * In same priority level, maximum to 4 profiles can be set here.
  10989. * NOTE:
  10990. * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
  10991. * arrangement:
  10992. * 1: In the same u32 attribute(priority x), the profiles enum values own
  10993. * same priority level.
  10994. * 2: 0xff is default value if the u8 profile value is not set.
  10995. * 3: max to 4 rules/profiles in same priority level.
  10996. * 4: max to 4 priority level (priority 1 - priority 4)
  10997. * 5: one priority level only supports one scenario from WLAN/BT/ZB,
  10998. * hybrid rules not support.
  10999. * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
  11000. * remain blank to reset all parameters.
  11001. * For example:
  11002. *
  11003. * If the attributes as follow:
  11004. * priority 1:
  11005. * ------------------------------------
  11006. * | 0xff | 0 | 1 | 2 |
  11007. * ------------------------------------
  11008. * priority 2:
  11009. * -------------------------------------
  11010. * | 0xff | 0xff | 0xff | 32 |
  11011. * -------------------------------------
  11012. * priority 3:
  11013. * -------------------------------------
  11014. * | 0xff | 0xff | 0xff | 65 |
  11015. * -------------------------------------
  11016. * then it means:
  11017. * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  11018. * owns same priority level.
  11019. * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  11020. * has priority over BT_A2DP and ZB_HIGH.
  11021. * 3: BT_A2DP has priority over ZB_HIGH.
  11022. */
  11023. enum qca_vendor_attr_coex_config_three_way {
  11024. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
  11025. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
  11026. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
  11027. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
  11028. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
  11029. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
  11030. /* Keep last */
  11031. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
  11032. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
  11033. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
  11034. };
  11035. /**
  11036. * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
  11037. * This enum defines the valid set of values of peer stats cache types. These
  11038. * values are used by attribute
  11039. * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID.
  11040. *
  11041. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics.
  11042. * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics.
  11043. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn
  11044. * statistics
  11045. */
  11046. enum qca_vendor_attr_peer_stats_cache_type {
  11047. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
  11048. QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
  11049. QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
  11050. QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
  11051. };
  11052. /**
  11053. * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
  11054. * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
  11055. * Attributes are required to flush peer rate statistics from driver to
  11056. * user application.
  11057. *
  11058. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
  11059. * Indicate peer stats cache type.
  11060. * The statistics types are 32-bit values from
  11061. * qca_vendor_attr_peer_stats_cache_type
  11062. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
  11063. * of size 6, representing peer mac address.
  11064. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
  11065. * containing buffer of statistics to send event to application layer entity.
  11066. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
  11067. * representing cookie for peer unique session.
  11068. */
  11069. enum qca_wlan_vendor_attr_peer_stats_cache_params {
  11070. QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
  11071. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
  11072. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
  11073. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
  11074. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
  11075. /* Keep last */
  11076. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
  11077. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
  11078. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
  11079. };
  11080. /**
  11081. * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee.
  11082. * this enum defines all the possible state of zigbee, which can be
  11083. * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE.
  11084. *
  11085. * @ZIGBEE_IDLE: zigbee in idle state
  11086. * @ZIGBEE_FORM_NETWORK: zibee forming network
  11087. * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network
  11088. * @ZIGBEE_JOIN: zigbee joining network
  11089. * @ZIGBEE_NETWORK_UP: zigbee network is up
  11090. * @ZIGBEE_HMI: zigbee in HMI mode
  11091. */
  11092. enum qca_mpta_helper_attr_zigbee_state {
  11093. ZIGBEE_IDLE = 0,
  11094. ZIGBEE_FORM_NETWORK = 1,
  11095. ZIGBEE_WAIT_JOIN = 2,
  11096. ZIGBEE_JOIN = 3,
  11097. ZIGBEE_NETWORK_UP = 4,
  11098. ZIGBEE_HMI = 5,
  11099. };
  11100. /**
  11101. * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by
  11102. * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
  11103. */
  11104. enum qca_mpta_helper_vendor_attr {
  11105. QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
  11106. /* Optional attribute used to update zigbee state.
  11107. * enum qca_mpta_helper_attr_zigbee_state.
  11108. * NLA_U32 attribute.
  11109. */
  11110. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
  11111. /* Optional attribute used to configure wlan duration for Shape-OCS
  11112. * during interrupt.
  11113. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
  11114. * Value range 0 ~ 300 (ms).
  11115. * NLA_U32 attribute.
  11116. */
  11117. QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
  11118. /* Optional attribute used to configure non wlan duration for Shape-OCS
  11119. * during interrupt.
  11120. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
  11121. * Value range 0 ~ 300 (ms).
  11122. * NLA_U32 attribute.
  11123. */
  11124. QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
  11125. /* Optional attribute used to configure wlan duration for Shape-OCS
  11126. * monitor period.
  11127. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
  11128. * Value range 0 ~ 300 (ms)
  11129. * NLA_U32 attribute
  11130. */
  11131. QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
  11132. /* Optional attribute used to configure non wlan duration for Shape-OCS
  11133. * monitor period.
  11134. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
  11135. * Value range 0 ~ 300 (ms)
  11136. * NLA_U32 attribute
  11137. */
  11138. QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
  11139. /* Optional attribute used to configure ocs interrupt duration.
  11140. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
  11141. * Value range 1000 ~ 20000 (ms)
  11142. * NLA_U32 attribute
  11143. */
  11144. QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
  11145. /* Optional attribute used to configure ocs monitor duration.
  11146. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
  11147. * Value range 1000 ~ 20000 (ms)
  11148. * NLA_U32 attribute
  11149. */
  11150. QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
  11151. /* Optional attribute used to notify wlan FW current zigbee channel.
  11152. * Value range 11 ~ 26
  11153. * NLA_U32 attribute
  11154. */
  11155. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
  11156. /* Optional attribute used to configure wlan mute duration.
  11157. * Value range 0 ~ 400 (ms)
  11158. * NLA_U32 attribute
  11159. */
  11160. QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
  11161. /* keep last */
  11162. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
  11163. QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
  11164. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
  11165. };
  11166. /**
  11167. * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
  11168. * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be
  11169. * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
  11170. *
  11171. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
  11172. * to request the driver to start reporting Beacon frames.
  11173. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver
  11174. * to request the driver to stop reporting Beacon frames.
  11175. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
  11176. * userspace to report received Beacon frames.
  11177. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
  11178. * to indicate that the driver is going to pause reporting Beacon frames.
  11179. */
  11180. enum qca_wlan_vendor_beacon_reporting_op_types {
  11181. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
  11182. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
  11183. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
  11184. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
  11185. };
  11186. /**
  11187. * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different
  11188. * types of reasons for which the driver is pausing reporting Beacon frames.
  11189. * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
  11190. *
  11191. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
  11192. * reasons.
  11193. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
  11194. * driver/firmware is starting a scan.
  11195. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
  11196. * driver/firmware disconnects from the ESS and indicates the disconnection to
  11197. * userspace (non-seamless roaming case). This reason code will be used by the
  11198. * driver/firmware to indicate stopping of beacon report events. Userspace
  11199. * will need to start beacon reporting again (if desired) by sending vendor
  11200. * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
  11201. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
  11202. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
  11203. * completed.
  11204. */
  11205. enum qca_wlan_vendor_beacon_reporting_pause_reasons {
  11206. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
  11207. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
  11208. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
  11209. };
  11210. /*
  11211. * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
  11212. * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
  11213. */
  11214. enum qca_wlan_vendor_attr_beacon_reporting_params {
  11215. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
  11216. /* Specifies the type of operation that the vendor command/event is
  11217. * intended for. Possible values for this attribute are defined in
  11218. * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
  11219. */
  11220. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
  11221. /* Optionally set by userspace to request the driver to report Beacon
  11222. * frames using asynchronous vendor events when the
  11223. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11224. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  11225. * If this flag is not set, the driver will only update Beacon frames
  11226. * in cfg80211 scan cache but not send any vendor events.
  11227. */
  11228. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
  11229. /* Optionally used by userspace to request the driver/firmware to
  11230. * report Beacon frames periodically when the
  11231. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11232. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
  11233. * u32 attribute, indicates the period of Beacon frames to be reported
  11234. * and in the units of beacon interval.
  11235. * If this attribute is missing in the command, then the default value
  11236. * of 1 will be assumed by driver, i.e., to report every Beacon frame.
  11237. * Zero is an invalid value.
  11238. * If a valid value is received for this attribute, the driver will
  11239. * update the cfg80211 scan cache periodically as per the value
  11240. * received in this attribute in addition to updating the cfg80211 scan
  11241. * cache when there is significant change in Beacon frame IEs.
  11242. */
  11243. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
  11244. /* Used by the driver to encapsulate the SSID when the
  11245. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11246. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  11247. * u8 array with a maximum size of 32.
  11248. *
  11249. * When generating beacon report from non-MBSSID Beacon frame, the SSID
  11250. * will be taken from the SSID element of the received Beacon frame.
  11251. *
  11252. * When generating beacon report from Multiple BSSID Beacon frame and
  11253. * if the BSSID of the current connected BSS matches the BSSID of the
  11254. * transmitting BSS, the SSID will be taken from the SSID element of
  11255. * the received Beacon frame.
  11256. *
  11257. * When generating beacon report from Multiple BSSID Beacon frame and
  11258. * if the BSSID of the current connected BSS matches the BSSID of one
  11259. * of the* nontransmitting BSSs, the SSID will be taken from the SSID
  11260. * field included in the nontransmitted BSS profile whose derived BSSI
  11261. * is same as the BSSID of the current connected BSS. When there is no
  11262. * nontransmitted BSS profile whose derived BSSID is same as the BSSID
  11263. * of current connected* BSS, this attribute will not be present.
  11264. */
  11265. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
  11266. /* Used by the driver to encapsulate the BSSID of the AP to which STA
  11267. * is currently connected to when the
  11268. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11269. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
  11270. * fixed size of 6 bytes.
  11271. *
  11272. * When generating beacon report from a Multiple BSSID beacon and the
  11273. * current connected BSSID matches one of the nontransmitted BSSIDs in
  11274. * a Multiple BSSID set, this BSSID will be that particular
  11275. * nontransmitted BSSID and not the transmitted BSSID (i.e., the
  11276. * transmitting address of the Beacon frame).
  11277. */
  11278. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
  11279. /* Used by the driver to encapsulate the frequency in MHz on which
  11280. * the Beacon frame was received when the
  11281. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
  11282. * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  11283. * u32 attribute.
  11284. */
  11285. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
  11286. /* Used by the driver to encapsulate the Beacon interval
  11287. * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11288. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  11289. * u16 attribute. The value will be copied from the Beacon frame and
  11290. * the units are TUs.
  11291. */
  11292. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
  11293. /* Used by the driver to encapsulate the Timestamp field from the
  11294. * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE
  11295. * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  11296. * u64 attribute.
  11297. */
  11298. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
  11299. /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
  11300. * Beacon frame is received in the driver when the
  11301. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11302. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
  11303. * the units of nanoseconds. This value is expected to have accuracy of
  11304. * about 10 ms.
  11305. */
  11306. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
  11307. /* Used by the driver to encapsulate the IEs of the Beacon frame from
  11308. * which this event is generated when the
  11309. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11310. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
  11311. */
  11312. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
  11313. /* Used by the driver to specify the reason for the driver/firmware to
  11314. * pause sending beacons to userspace when the
  11315. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11316. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
  11317. * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
  11318. * attribute.
  11319. */
  11320. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
  11321. /* Used by the driver to specify whether the driver will automatically
  11322. * resume reporting beacon events to userspace later (for example after
  11323. * the ongoing off-channel activity is completed etc.) when the
  11324. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11325. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
  11326. */
  11327. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
  11328. /* Optionally set by userspace to request the driver not to resume
  11329. * beacon reporting after a pause is completed, when the
  11330. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11331. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  11332. * If this flag is set, the driver will not resume beacon reporting
  11333. * after any pause in beacon reporting is completed. Userspace has to
  11334. * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
  11335. * to initiate beacon reporting again. If this flag is set in the recent
  11336. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
  11337. * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
  11338. * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
  11339. * set by the driver. Setting this flag until and unless there is a
  11340. * specific need is not recommended as there is a chance of some beacons
  11341. * received after pause command and next start command being not
  11342. * reported.
  11343. */
  11344. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
  11345. /* Keep last */
  11346. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
  11347. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
  11348. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
  11349. };
  11350. /**
  11351. * enum qca_vendor_oem_device_type - Represents the target device in firmware.
  11352. * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
  11353. *
  11354. * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
  11355. * a virtual device.
  11356. *
  11357. * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
  11358. * a physical device.
  11359. */
  11360. enum qca_vendor_oem_device_type {
  11361. QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
  11362. QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
  11363. };
  11364. /*
  11365. * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command
  11366. * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
  11367. *
  11368. * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
  11369. * used to set/query the data to/from the firmware. On query, the same
  11370. * attribute is used to carry the respective data in the reply sent by the
  11371. * driver to userspace. The request to set/query the data and the format of the
  11372. * respective data from the firmware are embedded in the attribute. The
  11373. * maximum size of the attribute payload is 1024 bytes.
  11374. *
  11375. * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
  11376. * based on this field. This optional attribute is included to specify whether
  11377. * the device type is a virtual device or a physical device for the command.
  11378. * This attribute can be omitted for a virtual device (default) command.
  11379. * This u8 attribute is used to carry information for the device type using
  11380. * values defined by enum qca_vendor_oem_device_type.
  11381. *
  11382. * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
  11383. * attribute when the data is queried from the firmware.
  11384. *
  11385. * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
  11386. * is set when the userspace queries data from the firmware. This attribute
  11387. * should not be set when userspace sets the OEM data to the firmware.
  11388. */
  11389. enum qca_wlan_vendor_attr_oem_data_params {
  11390. QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
  11391. QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
  11392. QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
  11393. QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
  11394. /* keep last */
  11395. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
  11396. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
  11397. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
  11398. };
  11399. /**
  11400. * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
  11401. * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
  11402. *
  11403. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
  11404. * Nested attribute containing multiple ranges with following attributes:
  11405. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
  11406. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
  11407. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
  11408. *
  11409. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
  11410. * Starting center frequency in MHz.
  11411. *
  11412. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
  11413. * Ending center frequency in MHz.
  11414. *
  11415. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
  11416. * s32 attribute, optional. It is a per frequency range attribute.
  11417. * The maximum TX power limit from user space is to be applied on an
  11418. * unrestricted interface for corresponding frequency range. It is also
  11419. * possible that the actual TX power may be even lower than this cap due to
  11420. * other considerations such as regulatory compliance, SAR, etc. In absence of
  11421. * this attribute the driver shall follow current behavior which means
  11422. * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
  11423. * power derived by the driver based on regulatory/SAR during interface up.
  11424. *
  11425. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
  11426. * u32 attribute, optional. Indicates all the interface types which are
  11427. * restricted for all frequency ranges provided in
  11428. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
  11429. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
  11430. * This attribute encapsulates bitmasks of interface types defined in
  11431. * enum nl80211_iftype. If an interface is marked as restricted the driver must
  11432. * move to a safe channel and if no safe channel is available the driver shall
  11433. * terminate that interface functionality. In absence of this attribute,
  11434. * interface (SAP/P2P) can still continue operating on an unsafe channel with
  11435. * TX power limit derived from either
  11436. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
  11437. * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
  11438. * is not provided.
  11439. */
  11440. enum qca_wlan_vendor_attr_avoid_frequency_ext {
  11441. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
  11442. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
  11443. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
  11444. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
  11445. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
  11446. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
  11447. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
  11448. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
  11449. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
  11450. };
  11451. /*
  11452. * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
  11453. * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
  11454. */
  11455. enum qca_wlan_vendor_attr_add_sta_node_params {
  11456. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
  11457. /* 6 byte MAC address of STA */
  11458. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
  11459. /* Authentication algorithm used by the station of size u16;
  11460. * defined in enum nl80211_auth_type.
  11461. */
  11462. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
  11463. /*
  11464. * This flag attribute is set if the node being added is an
  11465. * MLD STA node.
  11466. */
  11467. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_IS_ML = 3,
  11468. /* keep last */
  11469. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
  11470. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
  11471. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
  11472. };
  11473. /**
  11474. * enum qca_btc_chain_mode - Specifies BT coex chain mode.
  11475. * This enum defines the valid set of values of BT coex chain mode.
  11476. * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
  11477. * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
  11478. *
  11479. * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared.
  11480. * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are
  11481. * separated, hybrid mode.
  11482. * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are
  11483. * separated, fixed FDD mode.
  11484. */
  11485. enum qca_btc_chain_mode {
  11486. QCA_BTC_CHAIN_SHARED = 0,
  11487. QCA_BTC_CHAIN_SEPARATED_HYBRID = 1,
  11488. QCA_BTC_CHAIN_SEPARATED_FDD = 2,
  11489. };
  11490. /* deprecated legacy name */
  11491. #define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID
  11492. /**
  11493. * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
  11494. * chain mode.
  11495. * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
  11496. *
  11497. * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
  11498. * Indicates the BT coex chain mode, are 32-bit values from
  11499. * enum qca_btc_chain_mode. This attribute is mandatory.
  11500. *
  11501. * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
  11502. * If set, vdev should be restarted when BT coex chain mode is updated.
  11503. * This attribute is optional.
  11504. */
  11505. enum qca_vendor_attr_btc_chain_mode {
  11506. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
  11507. QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
  11508. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
  11509. /* Keep last */
  11510. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
  11511. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
  11512. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
  11513. };
  11514. /**
  11515. * enum qca_vendor_wlan_sta_flags - Station feature flags
  11516. * Bits will be set to 1 if the corresponding features are enabled.
  11517. * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
  11518. * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
  11519. for the station
  11520. * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
  11521. for the station
  11522. */
  11523. enum qca_vendor_wlan_sta_flags {
  11524. QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
  11525. QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
  11526. QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
  11527. };
  11528. /**
  11529. * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
  11530. * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
  11531. * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
  11532. * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
  11533. * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
  11534. */
  11535. enum qca_vendor_wlan_sta_guard_interval {
  11536. QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
  11537. QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
  11538. QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
  11539. QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
  11540. };
  11541. /**
  11542. * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
  11543. * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
  11544. *
  11545. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
  11546. * Required attribute in request for AP mode only, 6-byte MAC address,
  11547. * corresponding to the station's MAC address for which information is
  11548. * requested. For STA mode this is not required as the info always correspond
  11549. * to the self STA and the current/last association.
  11550. *
  11551. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
  11552. * Optionally used in response, u32 attribute, contains a bitmap of different
  11553. * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
  11554. *
  11555. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
  11556. * Optionally used in response, u32 attribute, possible values are defined in
  11557. * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
  11558. * Guard interval used by the station.
  11559. *
  11560. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
  11561. * Optionally used in response, u32 attribute, used in AP mode only.
  11562. * Value indicates the number of data frames received from station with retry
  11563. * bit set to 1 in FC.
  11564. *
  11565. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
  11566. * Optionally used in response, u32 attribute, used in AP mode only.
  11567. * Counter for number of data frames with broadcast or multicast address in
  11568. * the destination address received from the station.
  11569. *
  11570. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
  11571. * Optionally used in response, u32 attribute, used in both STA and AP modes.
  11572. * Value indicates the number of data frames successfully transmitted only
  11573. * after retrying the packets and for which the TX status has been updated
  11574. * back to host from target.
  11575. *
  11576. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
  11577. * Optionally used in response, u32 attribute, used in both STA and AP mode.
  11578. * Value indicates the number of data frames not transmitted successfully even
  11579. * after retrying the packets for the number of times equal to the total number
  11580. * of retries allowed for that packet and for which the TX status has been
  11581. * updated back to host from target.
  11582. *
  11583. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
  11584. * Optionally used in response, u32 attribute, used in AP mode only.
  11585. * Counter in the target for the number of data frames successfully transmitted
  11586. * to the station.
  11587. *
  11588. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
  11589. * Optionally used in response, u32 attribute, used in AP mode only.
  11590. * Value indicates the number of data frames successfully transmitted only
  11591. * after retrying the packets.
  11592. *
  11593. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
  11594. * Optionally used in response, u32 attribute, used in both STA & AP mode.
  11595. * Value indicates the number of data frames not transmitted successfully even
  11596. * after retrying the packets for the number of times equal to the total number
  11597. * of retries allowed for that packet.
  11598. *
  11599. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
  11600. * the STA mode only. Represent the number of probe requests sent by the STA
  11601. * while attempting to roam on missing certain number of beacons from the
  11602. * connected AP. If queried in the disconnected state, this represents the
  11603. * count for the last connected state.
  11604. *
  11605. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
  11606. * the STA mode. Represent the number of probe responses received by the station
  11607. * while attempting to roam on missing certain number of beacons from the
  11608. * connected AP. When queried in the disconnected state, this represents the
  11609. * count when in last connected state.
  11610. *
  11611. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
  11612. * STA mode only. Represents the total number of frames sent out by STA
  11613. * including Data, ACK, RTS, CTS, Control Management. This data is maintained
  11614. * only for the connect session. Represents the count of last connected session,
  11615. * when queried in the disconnected state.
  11616. *
  11617. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
  11618. * Total number of RTS sent out by the STA. This data is maintained per connect
  11619. * session. Represents the count of last connected session, when queried in the
  11620. * disconnected state.
  11621. *
  11622. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
  11623. * STA mode.Represent the number of RTS transmission failure that reach retry
  11624. * limit. This data is maintained per connect session. Represents the count of
  11625. * last connected session, when queried in the disconnected state.
  11626. *
  11627. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
  11628. * the STA mode. Represent the total number of non aggregated frames transmitted
  11629. * by the STA. This data is maintained per connect session. Represents the count
  11630. * of last connected session, when queried in the disconnected state.
  11631. *
  11632. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
  11633. * STA mode. Represent the total number of aggregated frames transmitted by the
  11634. * STA. This data is maintained per connect session. Represents the count of
  11635. * last connected session, when queried in the disconnected state.
  11636. *
  11637. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
  11638. * the STA mode. Represents the number of received frames with a good PLCP. This
  11639. * data is maintained per connect session. Represents the count of last
  11640. * connected session, when queried in the disconnected state.
  11641. *
  11642. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
  11643. * used in the STA mode. Represents the number of occasions that no valid
  11644. * delimiter is detected by A-MPDU parser. This data is maintained per connect
  11645. * session. Represents the count of last connected session, when queried in the
  11646. * disconnected state.
  11647. *
  11648. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
  11649. * STA mode. Represents the number of frames for which CRC check failed in the
  11650. * MAC. This data is maintained per connect session. Represents the count of
  11651. * last connected session, when queried in the disconnected state.
  11652. *
  11653. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
  11654. * STA mode. Represents the number of unicast ACKs received with good FCS. This
  11655. * data is maintained per connect session. Represents the count of last
  11656. * connected session, when queried in the disconnected state.
  11657. *
  11658. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
  11659. * mode. Represents the number of received Block Acks. This data is maintained
  11660. * per connect session. Represents the count of last connected session, when
  11661. * queried in the disconnected state.
  11662. *
  11663. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
  11664. * mode. Represents the number of beacons received from the connected BSS. This
  11665. * data is maintained per connect session. Represents the count of last
  11666. * connected session, when queried in the disconnected state.
  11667. *
  11668. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
  11669. * STA mode. Represents the number of beacons received by the other BSS when in
  11670. * connected state (through the probes done by the STA). This data is maintained
  11671. * per connect session. Represents the count of last connected session, when
  11672. * queried in the disconnected state.
  11673. *
  11674. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
  11675. * the STA mode. Represents the number of received DATA frames with good FCS and
  11676. * matching Receiver Address when in connected state. This data is maintained
  11677. * per connect session. Represents the count of last connected session, when
  11678. * queried in the disconnected state.
  11679. *
  11680. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
  11681. * STA mode. Represents the number of RX Data multicast frames dropped by the HW
  11682. * when in the connected state. This data is maintained per connect session.
  11683. * Represents the count of last connected session, when queried in the
  11684. * disconnected state.
  11685. *
  11686. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
  11687. * STA mode. This represents the target power in dBm for the transmissions done
  11688. * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
  11689. * connect session. Represents the count of last connected session, when
  11690. * queried in the disconnected state.
  11691. *
  11692. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
  11693. * STA mode. This represents the Target power in dBm for transmissions done to
  11694. * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
  11695. * session. Represents the count of last connected session, when queried in the
  11696. * disconnected state.
  11697. *
  11698. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
  11699. * STA mode. This represents the Target power in dBm for transmissions done to
  11700. * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
  11701. * Represents the count of last connected session, when queried in the
  11702. * disconnected state.
  11703. *
  11704. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
  11705. * STA mode. This represents the Target power in dBm for transmissions done to
  11706. * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
  11707. * session. Represents the count of last connected session, when queried in
  11708. * the disconnected state.
  11709. *
  11710. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
  11711. * STA mode. This represents the Target power in dBm for for transmissions done
  11712. * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
  11713. * Represents the count of last connected session, when queried in the
  11714. * disconnected state.
  11715. *
  11716. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
  11717. * in the STA mode. This represents the Nested attribute representing the
  11718. * overflow counts of each receive buffer allocated to the hardware during the
  11719. * STA's connection. The number of hw buffers might vary for each WLAN
  11720. * solution and hence this attribute represents the nested array of all such
  11721. * HW buffer count. This data is maintained per connect session. Represents
  11722. * the count of last connected session, when queried in the disconnected state.
  11723. *
  11724. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
  11725. * allowed as per the regulatory requirements for the current or last connected
  11726. * session. Used in the STA mode.
  11727. *
  11728. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
  11729. * (dBm) used by the station in its latest unicast frame while communicating
  11730. * to the AP in the connected state. When queried in the disconnected state,
  11731. * this represents the TX power used by the STA with last AP communication
  11732. * when in connected state.
  11733. *
  11734. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
  11735. * level used to adjust the RX sensitivity. Represents the current ANI level
  11736. * when queried in the connected state. When queried in the disconnected
  11737. * state, this corresponds to the latest ANI level at the instance of
  11738. * disconnection.
  11739. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
  11740. * only. This represents the number of group addressed robust management frames
  11741. * received from this station with an invalid MIC or a missing MME when PMF is
  11742. * enabled.
  11743. *
  11744. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
  11745. * only. This represents the number of group addressed robust management frames
  11746. * received from this station with the packet number less than or equal to the
  11747. * last received packet number when PMF is enabled.
  11748. *
  11749. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
  11750. * mode only. This represents the number of Beacon frames received from this
  11751. * station with an invalid MIC or a missing MME when beacon protection is
  11752. * enabled.
  11753. *
  11754. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
  11755. * only. This represents number of Beacon frames received from this station with
  11756. * the packet number less than or equal to the last received packet number when
  11757. * beacon protection is enabled.
  11758. *
  11759. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
  11760. * STA mode only. Driver uses this attribute to populate the connection failure
  11761. * reason codes and the values are defined in
  11762. * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
  11763. * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
  11764. * connection failure from driver. The driver shall not include this attribute
  11765. * in response to QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no
  11766. * connection failure observed in the last attempted connection.
  11767. *
  11768. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
  11769. * used by the station in its last TX frame while communicating to the AP in the
  11770. * connected state. When queried in the disconnected state, this represents the
  11771. * rate used by the STA in the last TX frame to the AP when it was connected.
  11772. * This attribute is used for STA mode only.
  11773. *
  11774. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
  11775. * This represents the rate index used by the STA for the last TX frame to the
  11776. * AP. When queried in the disconnected state, this gives the last RIX used by
  11777. * the STA in the last TX frame to the AP when it was connected.
  11778. *
  11779. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
  11780. * mode only. This represents the number of times the STA TSF goes out of sync
  11781. * from the AP after the connection. If queried in the disconnected state, this
  11782. * gives the count of TSF out of sync for the last connection.
  11783. *
  11784. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
  11785. * mode only. This represents the roam trigger reason for the last roaming
  11786. * attempted by the firmware. This can be queried either in connected state or
  11787. * disconnected state. Each bit of this attribute represents the different
  11788. * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
  11789. *
  11790. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
  11791. * only. This represents the roam fail reason for the last failed roaming
  11792. * attempt by the firmware. Different roam failure reason codes are specified
  11793. * in enum qca_vendor_roam_fail_reasons. This can be queried either in
  11794. * connected state or disconnected state.
  11795. *
  11796. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
  11797. * STA mode only. This represents the roam invoke fail reason for the last
  11798. * failed roam invoke. Different roam invoke failure reason codes
  11799. * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
  11800. * queried either in connected state or disconnected state.
  11801. *
  11802. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
  11803. * This represents the average congestion duration of uplink frames in MAC
  11804. * queue in unit of ms. This can be queried either in connected state or
  11805. * disconnected state.
  11806. *
  11807. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Mandatory u32 Nested
  11808. * attribute, used in AP mode. This represents the MPDU packet count per MCS
  11809. * rate value of TX packets. Every index of this nested attribute corresponds
  11810. * to MCS index, for example Index 0 represents MCS0 TX rate. This can be
  11811. * queried in connected state.
  11812. *
  11813. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Mandatory u32 Nested
  11814. * attribute, used in AP mode. This represents the MPDU packet count per MCS
  11815. * rate value of RX packets. Every index of this nested attribute corresponds
  11816. * to MCS index, for example Index 0 represents MCS0 RX rate. This can be
  11817. * queried in connected state.
  11818. */
  11819. enum qca_wlan_vendor_attr_get_sta_info {
  11820. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
  11821. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
  11822. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
  11823. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
  11824. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
  11825. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
  11826. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
  11827. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
  11828. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
  11829. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
  11830. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
  11831. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
  11832. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
  11833. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
  11834. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
  11835. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
  11836. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
  11837. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
  11838. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
  11839. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
  11840. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
  11841. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
  11842. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
  11843. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
  11844. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
  11845. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
  11846. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
  11847. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
  11848. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
  11849. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
  11850. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
  11851. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
  11852. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
  11853. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
  11854. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
  11855. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
  11856. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
  11857. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
  11858. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
  11859. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
  11860. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
  11861. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
  11862. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
  11863. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
  11864. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
  11865. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
  11866. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
  11867. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
  11868. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51,
  11869. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52,
  11870. /* keep last */
  11871. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
  11872. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
  11873. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
  11874. };
  11875. /**
  11876. * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
  11877. * Used when the driver triggers the STA to disconnect from the AP.
  11878. *
  11879. * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
  11880. * disconnection with the AP due to unspecified reasons.
  11881. *
  11882. * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
  11883. * disconnection with the AP due to a roaming failure. This roaming is triggered
  11884. * internally (host driver/firmware).
  11885. *
  11886. * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
  11887. * the AP when the user/external triggered roaming fails.
  11888. *
  11889. * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
  11890. * by the host driver whenever gateway reachability failure is detected and the
  11891. * driver disconnects with AP.
  11892. *
  11893. * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
  11894. * the AP on a channel switch announcement from it with an unsupported channel.
  11895. *
  11896. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
  11897. * with indoor channels disabled and if the STA is connected on one of these
  11898. * disabled channels, the host driver disconnected the STA with this reason
  11899. * code.
  11900. *
  11901. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
  11902. * explicit request from the user to disable the current operating channel.
  11903. *
  11904. * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
  11905. * the internal host driver/firmware recovery.
  11906. *
  11907. * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
  11908. * a timeout for the key installations from the user space.
  11909. *
  11910. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
  11911. * STA on a band change request from the user space to a different band from the
  11912. * current operation channel/band.
  11913. *
  11914. * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
  11915. * interface down trigger from the user space.
  11916. *
  11917. * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
  11918. * STA on getting continuous transmission failures for multiple Data frames.
  11919. *
  11920. * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
  11921. * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
  11922. * represents inactivity from AP on such transmissions.
  11923. * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
  11924. * disconnection when SA Query times out (AP does not respond to SA Query).
  11925. *
  11926. * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
  11927. * STA on missing the beacons continuously from the AP.
  11928. *
  11929. * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
  11930. * able to move to the channel mentioned by the AP in CSA.
  11931. *
  11932. * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
  11933. */
  11934. enum qca_disconnect_reason_codes {
  11935. QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
  11936. QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
  11937. QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
  11938. QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
  11939. QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
  11940. QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
  11941. QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
  11942. QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
  11943. QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
  11944. QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
  11945. QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
  11946. QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
  11947. QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
  11948. QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
  11949. QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
  11950. QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
  11951. QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
  11952. };
  11953. /**
  11954. * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
  11955. * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
  11956. *
  11957. * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
  11958. * This attribute represents the driver specific reason codes (local
  11959. * driver/firmware initiated reasons for disconnection) defined
  11960. * in enum qca_disconnect_reason_codes.
  11961. */
  11962. enum qca_wlan_vendor_attr_driver_disconnect_reason {
  11963. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
  11964. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
  11965. /* keep last */
  11966. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
  11967. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
  11968. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
  11969. };
  11970. /**
  11971. * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
  11972. *
  11973. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
  11974. */
  11975. enum qca_wlan_tspec_operation {
  11976. QCA_WLAN_TSPEC_ADD = 0,
  11977. QCA_WLAN_TSPEC_DEL = 1,
  11978. QCA_WLAN_TSPEC_GET = 2,
  11979. };
  11980. /**
  11981. * enum qca_wlan_tspec_direction - Direction in TSPEC
  11982. * As what is defined in IEEE Std 802.11-2016, Table 9-139.
  11983. *
  11984. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
  11985. */
  11986. enum qca_wlan_tspec_direction {
  11987. QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
  11988. QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
  11989. QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
  11990. QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
  11991. };
  11992. /**
  11993. * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC
  11994. * As what is defined in IEEE Std 802.11-2016, Table 9-141.
  11995. *
  11996. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
  11997. */
  11998. enum qca_wlan_tspec_ack_policy {
  11999. QCA_WLAN_TSPEC_NORMAL_ACK = 0,
  12000. QCA_WLAN_TSPEC_NO_ACK = 1,
  12001. /* Reserved */
  12002. QCA_WLAN_TSPEC_BLOCK_ACK = 3,
  12003. };
  12004. /**
  12005. * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
  12006. * used by QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
  12007. *
  12008. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
  12009. * u8 attribute. Specify the TSPEC operation of this request. Possible values
  12010. * are defined in enum qca_wlan_tspec_operation.
  12011. * Mandatory attribute for all kinds of config TSPEC requests.
  12012. *
  12013. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
  12014. * u8 attribute. TS ID. Possible values are 0-7.
  12015. * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
  12016. * QCA_WLAN_TSPEC_GET. A mandatory attribute.
  12017. *
  12018. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
  12019. * u8 attribute. Direction of data carried by the TS. Possible values are
  12020. * defined in enum qca_wlan_tspec_direction.
  12021. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  12022. *
  12023. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
  12024. * Flag attribute. Indicate whether APSD is enabled for the traffic associated
  12025. * with the TS. set - enabled, not set - disabled.
  12026. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  12027. *
  12028. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
  12029. * u8 attribute. User priority to be used for the transport of MSDUs/ -MSDUs
  12030. * belonging to this TS. Possible values are 0-7.
  12031. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  12032. *
  12033. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
  12034. * u8 attribute. Indicate whether MAC acknowledgements are required for
  12035. * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
  12036. * Possible values are defined in enum qca_wlan_tspec_ack_policy.
  12037. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  12038. *
  12039. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
  12040. * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
  12041. * belonging to this TS.
  12042. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  12043. *
  12044. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
  12045. * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
  12046. * belonging to this TS.
  12047. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  12048. *
  12049. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
  12050. * u32 attribute. Specify the minimum interval in microseconds between the
  12051. * start of two successive SPs.
  12052. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  12053. *
  12054. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
  12055. * u32 attribute. Specify the maximum interval in microseconds between the
  12056. * start of two successive SPs.
  12057. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  12058. *
  12059. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
  12060. * u32 attribute. Specify the minimum interval in microseconds that can elapse
  12061. * without arrival or transfer of an MPDU belonging to the TS before this TS
  12062. * is deleted by the MAC entity at the HC.
  12063. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  12064. *
  12065. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
  12066. * u32 attribute. Specify the minimum interval in microseconds that can elapse
  12067. * without arrival or transfer of an MSDU belonging to the TS before the
  12068. * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
  12069. * 0xFFFFFFFF disables the suspension interval. The value of the suspension
  12070. * interval is always less than or equal to the inactivity interval.
  12071. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  12072. *
  12073. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
  12074. * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
  12075. * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
  12076. * bounds of this TSPEC.
  12077. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  12078. *
  12079. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
  12080. * u32 attribute. Indicate the average data rate in bps specified at the MAC
  12081. * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
  12082. * bounds of this TSPEC.
  12083. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  12084. *
  12085. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
  12086. * u32 attribute. Indicate the maximum allowable data rate in bps specified at
  12087. * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
  12088. * the bounds of this TSPEC.
  12089. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  12090. *
  12091. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
  12092. * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
  12093. * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
  12094. * value of 0 indicates that there are no bursts.
  12095. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  12096. *
  12097. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
  12098. * u32 attribute. Indicate the minimum PHY rate in bps for transport of
  12099. * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
  12100. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  12101. *
  12102. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
  12103. * u16 attribute. Specify the excess allocation of time (and bandwidth) over
  12104. * and above the stated application rates required to transport an MSDU/A-MSDU
  12105. * belonging to the TS in this TSPEC.
  12106. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  12107. */
  12108. enum qca_wlan_vendor_attr_config_tspec {
  12109. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
  12110. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
  12111. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
  12112. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
  12113. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
  12114. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
  12115. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
  12116. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
  12117. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
  12118. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
  12119. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
  12120. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
  12121. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
  12122. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
  12123. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
  12124. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
  12125. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
  12126. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
  12127. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
  12128. /* keep last */
  12129. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
  12130. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
  12131. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
  12132. };
  12133. /**
  12134. * enum qca_wlan_medium_assess_type - Type of medium assess request
  12135. *
  12136. * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
  12137. */
  12138. enum qca_wlan_medium_assess_type {
  12139. QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
  12140. QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
  12141. };
  12142. /**
  12143. * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
  12144. * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
  12145. *
  12146. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
  12147. * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
  12148. * Specify the type of medium assess request and indicate its type in response.
  12149. * Possible values are defined in enum qca_wlan_medium_assess_type.
  12150. *
  12151. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
  12152. * u32 attribute. Mandatory in CCA request.
  12153. * Specify the assessment period in terms of seconds. Assessment result will be
  12154. * sent as the response to the CCA request after the assessment period.
  12155. *
  12156. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
  12157. * u32 attribute. Mandatory in response to CCA request.
  12158. * Total timer tick count of the assessment cycle.
  12159. *
  12160. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
  12161. * u32 attribute. Mandatory in response to CCA request.
  12162. * Timer tick count of idle time in the assessment cycle.
  12163. *
  12164. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
  12165. * u32 attribute. Mandatory in response to CCA request.
  12166. * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
  12167. *
  12168. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
  12169. * u32 attribute. Mandatory in response to CCA request.
  12170. * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
  12171. *
  12172. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
  12173. * s32 attribute. Mandatory in response to CCA request.
  12174. * Maximum RSSI of Intra BSS traffic in the assessment cycle.
  12175. *
  12176. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
  12177. * s32 attribute. Mandatory in response to CCA request.
  12178. * Minimum RSSI of Intra BSS traffic in the assessment cycle.
  12179. *
  12180. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
  12181. * u8 attribute. Mandatory in congestion report request.
  12182. * 1-enable 0-disable.
  12183. *
  12184. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
  12185. * u8 attribute. Mandatory in congestion report enable request and will be
  12186. * ignored if present in congestion report disable request. Possible values are
  12187. * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
  12188. * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
  12189. * congestion percentage reaches the configured threshold.
  12190. *
  12191. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
  12192. * u8 attribute. Optional in congestion report enable request and will be
  12193. * ignored if present in congestion report disable request.
  12194. * Specify the interval of congestion report event in terms of seconds. Possible
  12195. * values are 1-255. Default value 1 will be used if this attribute is omitted
  12196. * or using invalid values.
  12197. *
  12198. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
  12199. * u8 attribute. Mandatory in congestion report event.
  12200. * Indicate the actual congestion percentage. Possible values are 0-100.
  12201. */
  12202. enum qca_wlan_vendor_attr_medium_assess {
  12203. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
  12204. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
  12205. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
  12206. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
  12207. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
  12208. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
  12209. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
  12210. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
  12211. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
  12212. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
  12213. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
  12214. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
  12215. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
  12216. /* keep last */
  12217. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
  12218. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
  12219. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
  12220. };
  12221. /**
  12222. * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
  12223. * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
  12224. *
  12225. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
  12226. * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
  12227. * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
  12228. * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
  12229. *
  12230. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
  12231. * u8 attribute, required. 1 means Tx VDEV up event.0 mean Tx VDEV down event.
  12232. *
  12233. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
  12234. * u8 attribute, required. indicates group id of Tx VDEV
  12235. *
  12236. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
  12237. * Nested attribute. This attribute shall be used by the driver to send
  12238. * group information. The attributes defined in enum
  12239. * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
  12240. * are nested in this attribute.
  12241. */
  12242. enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
  12243. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
  12244. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
  12245. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
  12246. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
  12247. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
  12248. /* keep last */
  12249. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
  12250. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
  12251. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
  12252. };
  12253. /**
  12254. * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
  12255. * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
  12256. *
  12257. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
  12258. * u32 attribute, required. contains interface index.
  12259. *
  12260. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
  12261. * u8 attribute, required. 0 - means vdev is in down state.
  12262. * 1- means vdev is in up state.
  12263. */
  12264. enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
  12265. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
  12266. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
  12267. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
  12268. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
  12269. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
  12270. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
  12271. };
  12272. /**
  12273. * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
  12274. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
  12275. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
  12276. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
  12277. * frame
  12278. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
  12279. * Request frame.
  12280. */
  12281. enum qca_wlan_vendor_oci_override_frame_type {
  12282. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
  12283. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
  12284. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
  12285. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
  12286. };
  12287. /**
  12288. * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
  12289. *
  12290. * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
  12291. * STA interface has to be given while selecting the connection policies
  12292. * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
  12293. * An interface is set as primary through the attribute
  12294. * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
  12295. * applicable if the primary interface has not been set earlier.
  12296. *
  12297. * The intention is not to downgrade the primary STA performance, such as:
  12298. * - Do not reduce the number of TX/RX chains of primary connection.
  12299. * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
  12300. * chains.
  12301. * - If using MCC, should set the MCC duty cycle of the primary connection to
  12302. * be higher than the secondary connection.
  12303. *
  12304. * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
  12305. * subsequent STA connection shall be chosen to balance with the existing
  12306. * concurrent STA's performance.
  12307. * Such as
  12308. * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
  12309. * capability.
  12310. * - If using MCC, set the MCC duty cycle of the primary connection to be equal
  12311. * to the secondary.
  12312. * - Prefer BSSID candidates which will help provide the best "overall"
  12313. * performance for all the STA connections.
  12314. */
  12315. enum qca_wlan_concurrent_sta_policy_config {
  12316. QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
  12317. QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
  12318. };
  12319. /**
  12320. * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies
  12321. *
  12322. * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP
  12323. * interface.
  12324. *
  12325. * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies
  12326. * to meet gaming audio latency requirements.
  12327. *
  12328. * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface
  12329. * concurrencies to meet lossless audio streaming requirements.
  12330. *
  12331. * @QCA_WLAN_CONCURRENT_AP_POLICY_XR: Select interface concurrencies to meet
  12332. * XR (eXtended Reality) requirements.
  12333. */
  12334. enum qca_wlan_concurrent_ap_policy_config {
  12335. QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0,
  12336. QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1,
  12337. QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2,
  12338. QCA_WLAN_CONCURRENT_AP_POLICY_XR = 3,
  12339. };
  12340. /**
  12341. * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes
  12342. * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command.
  12343. *
  12344. * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG:
  12345. * u8 attribute. Configures the concurrent STA policy configuration.
  12346. * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
  12347. * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG:
  12348. * u8 attribute. Configures the concurrent AP policy configuration.
  12349. * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config.
  12350. */
  12351. enum qca_wlan_vendor_attr_concurrent_policy {
  12352. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0,
  12353. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1,
  12354. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2,
  12355. /* keep last */
  12356. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST,
  12357. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX =
  12358. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1,
  12359. };
  12360. /* Compatibility defines for previously used enum
  12361. * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used
  12362. * in any new implementation.
  12363. */
  12364. #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \
  12365. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG
  12366. #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \
  12367. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX
  12368. #define qca_wlan_vendor_attr_concurrent_sta_policy \
  12369. qca_wlan_vendor_attr_concurrent_policy
  12370. /**
  12371. * enum qca_sta_connect_fail_reason_codes - Defines values carried
  12372. * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
  12373. * attribute.
  12374. * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No probe response frame received
  12375. * for unicast probe request.
  12376. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
  12377. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
  12378. * ath request.
  12379. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
  12380. * received from AP.
  12381. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send assoc
  12382. * request.
  12383. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
  12384. * assoc request.
  12385. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Assoc response is not
  12386. * received from AP.
  12387. */
  12388. enum qca_sta_connect_fail_reason_codes {
  12389. QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
  12390. QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
  12391. QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
  12392. QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
  12393. QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
  12394. QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
  12395. QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
  12396. };
  12397. /**
  12398. * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
  12399. * OCI override request. These attributes are used inside nested attribute
  12400. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
  12401. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  12402. *
  12403. * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
  12404. * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
  12405. * attribute to specify the frame type in which the OCI is to be overridden.
  12406. *
  12407. * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
  12408. * OCI frequency (in MHz) to override in the specified frame type.
  12409. */
  12410. enum qca_wlan_vendor_attr_oci_override {
  12411. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
  12412. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
  12413. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
  12414. /* keep last */
  12415. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
  12416. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
  12417. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
  12418. };
  12419. /**
  12420. * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
  12421. * filters defined in this enum are used in attribute
  12422. * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
  12423. *
  12424. * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
  12425. * shall filter the channels which are not usable because of coexistence with
  12426. * cellular radio.
  12427. * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
  12428. * shall filter the channels which are not usable because of existing active
  12429. * interfaces in the driver and will result in Multi Channel Concurrency, etc.
  12430. *
  12431. */
  12432. enum qca_wlan_vendor_usable_channels_filter {
  12433. QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
  12434. QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
  12435. };
  12436. /**
  12437. * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
  12438. * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
  12439. *
  12440. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
  12441. * u32 attribute, required. Indicates the center frequency of the primary
  12442. * channel in MHz.
  12443. *
  12444. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
  12445. * u32 attribute. Indicates the center frequency of the primary segment of the
  12446. * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
  12447. * 160 MHz, and 320 MHz channels.
  12448. *
  12449. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
  12450. * u32 attribute. Indicates the center frequency of the secondary segment of
  12451. * 80+80 channel in MHz. This attribute is required only when
  12452. * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
  12453. *
  12454. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
  12455. * u32 attribute, required. Indicates the bandwidth of the channel, possible
  12456. * values are defined in enum nl80211_chan_width.
  12457. *
  12458. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
  12459. * u32 attribute, required. Indicates all the interface types for which this
  12460. * channel is usable. This attribute encapsulates bitmasks of interface types
  12461. * defined in enum nl80211_iftype.
  12462. *
  12463. */
  12464. enum qca_wlan_vendor_attr_chan_info {
  12465. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
  12466. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
  12467. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
  12468. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
  12469. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
  12470. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
  12471. /* keep last */
  12472. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
  12473. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
  12474. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
  12475. };
  12476. /**
  12477. * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
  12478. * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
  12479. *
  12480. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
  12481. * u32 attribute. Indicates the bands from which the channels should be reported
  12482. * in response. This attribute encapsulates bit masks of bands defined in enum
  12483. * nl80211_band. Optional attribute, if not present in the request the driver
  12484. * shall return channels from all supported bands.
  12485. *
  12486. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
  12487. * u32 attribute. Indicates all the interface types for which the usable
  12488. * channels information is requested. This attribute encapsulates bitmasks of
  12489. * interface types defined in enum nl80211_iftype. Optional attribute, if not
  12490. * present in the request the driver shall send information of all supported
  12491. * interface modes.
  12492. *
  12493. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
  12494. * u32 attribute. This attribute carries information of all filters that shall
  12495. * be applied while populating usable channels information by the driver. This
  12496. * attribute carries bit masks of different filters defined in enum
  12497. * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
  12498. * in the request the driver shall send information of channels without applying
  12499. * any of the filters that can be configured through this attribute.
  12500. *
  12501. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
  12502. * Nested attribute. This attribute shall be used by the driver to send
  12503. * usability information of each channel. The attributes defined in enum
  12504. * qca_wlan_vendor_attr_chan_info are used inside this attribute.
  12505. */
  12506. enum qca_wlan_vendor_attr_usable_channels {
  12507. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
  12508. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
  12509. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
  12510. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
  12511. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
  12512. /* keep last */
  12513. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
  12514. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
  12515. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
  12516. };
  12517. /**
  12518. * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
  12519. * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
  12520. *
  12521. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
  12522. * the list of radar history entries.
  12523. * Each entry contains freq, timestamp, and radar signal detect flag.
  12524. * The driver shall add an entry when CAC has finished, or radar signal
  12525. * has been detected post AP beaconing. The driver shall maintain at least
  12526. * 8 entries in order to save CAC result for a 160 MHz channel.
  12527. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
  12528. * Channel frequency in MHz.
  12529. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
  12530. * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
  12531. * or radar detection.
  12532. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
  12533. * This flag indicates radar signal has been detected.
  12534. */
  12535. enum qca_wlan_vendor_attr_radar_history {
  12536. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
  12537. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
  12538. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
  12539. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
  12540. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
  12541. /* keep last */
  12542. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
  12543. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
  12544. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
  12545. };
  12546. /**
  12547. * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
  12548. *
  12549. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
  12550. * target exited MCC state and cleared the quota information. In the
  12551. * command it clears MCC quota setting and restores adaptive scheduling.
  12552. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
  12553. * will not be changed.
  12554. * This quota type is present in command/event.
  12555. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
  12556. * and the target may change the quota based on the data activity.
  12557. * This quota type is only present in event.
  12558. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY: Channel time quota is optimized
  12559. * by the target for low latency.
  12560. * This quota type is only present in command.
  12561. */
  12562. enum qca_wlan_vendor_mcc_quota_type {
  12563. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
  12564. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
  12565. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
  12566. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY = 3,
  12567. };
  12568. /**
  12569. * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
  12570. * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
  12571. * quota information or as a command to set the required MCC quota for an
  12572. * interface.
  12573. *
  12574. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
  12575. * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
  12576. * In a command this specifies the MCC quota type to be set for the interface.
  12577. * In an event this provides the current quota type in force.
  12578. * This is required in a command and an event.
  12579. *
  12580. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
  12581. * the list of channel quota entries.
  12582. * In an event each entry contains the frequency and respective time quota for
  12583. * all the MCC interfaces.
  12584. * In a command it specifies the interface index and respective time quota.
  12585. * In a command only one entry (ifindex, quota pair) may be specified.
  12586. *
  12587. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
  12588. * Channel frequency in MHz. This is present only in an event.
  12589. *
  12590. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
  12591. * Channel time quota expressed as percentage.
  12592. * This is present in an event and a command.
  12593. * In an command, the user shall specify the quota to be allocated for the
  12594. * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
  12595. * In an event this provides the existing quota for the channel.
  12596. *
  12597. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
  12598. * Specifies the interface index (netdev) for which the corresponding
  12599. * configurations are applied. This is required in a command only. Only one
  12600. * interface index may be specified. If not specified, the configuration is
  12601. * rejected.
  12602. *
  12603. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE
  12604. * 8-bit unsigned value to enable/disable Multi-Channel Concurrency
  12605. * low latency mode. The firmware will do optimization for low
  12606. * latency in Multi-Channel concurrency state if enabled. And all existing
  12607. * user quota setting will be overwritten by the target.
  12608. * 0 - disable(default), 1 - enable.
  12609. * It is only present in a command with quota type of
  12610. * QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY.
  12611. */
  12612. enum qca_wlan_vendor_attr_mcc_quota {
  12613. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
  12614. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
  12615. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
  12616. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
  12617. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
  12618. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
  12619. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE = 6,
  12620. /* keep last */
  12621. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
  12622. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
  12623. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
  12624. };
  12625. /**
  12626. * enum qca_wlan_roam_stats_invoke_reason - Roam invoke reason. These values
  12627. * are used by the attribute
  12628. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON.
  12629. *
  12630. * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED: Default value when target
  12631. * invoke roam.
  12632. * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE: Neighbor unreachable
  12633. * detection failed when the roam trigger.
  12634. * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE: Invoke from user space.
  12635. */
  12636. enum qca_wlan_roam_stats_invoke_reason {
  12637. QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED = 0,
  12638. QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE = 1,
  12639. QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE = 2,
  12640. };
  12641. /**
  12642. * enum qca_wlan_roam_stats_tx_failures_reason - Roam TX failures reason. These
  12643. * values are used by the attribute
  12644. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON.
  12645. *
  12646. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED: Default value when
  12647. * roam by kickout.
  12648. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY: Excessive retry when roam
  12649. * trigger by kickout.
  12650. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY: Station inactivity when
  12651. * roam trigger by kickout.
  12652. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT: IBSS disconnect when
  12653. * roam trigger by kickout.
  12654. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT: TDLS peer has
  12655. * disappeared, and all TX is failing when roam trigger by kickout.
  12656. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT: SA query process
  12657. * timeout when roam trigger by kickout.
  12658. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT: Directly connected
  12659. * peer has roamed to a repeater.
  12660. */
  12661. enum qca_wlan_roam_stats_tx_failures_reason {
  12662. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED = 0,
  12663. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY = 1,
  12664. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY = 2,
  12665. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT = 3,
  12666. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT = 4,
  12667. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT = 5,
  12668. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT = 6,
  12669. };
  12670. /**
  12671. * enum qca_wlan_roam_stats_abort_reason - Roam abort reason. These values
  12672. * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON.
  12673. *
  12674. * @QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED: Target did not specify the
  12675. * detailed reason for roam scan being aborted.
  12676. * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH: Roam scan is not
  12677. * started due to high data RSSI during LOW-RSSI roaming.
  12678. * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD: Roam scan is not
  12679. * started due to good link speed during LOW-RSSI roaming.
  12680. * @QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH: Roam scan is not started
  12681. * due to high data RSSI during background roaming.
  12682. * @QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD: Roam scan is not
  12683. * started due to high beacon RSSI during background roaming
  12684. */
  12685. enum qca_wlan_roam_stats_abort_reason {
  12686. QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED = 0,
  12687. QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH = 1,
  12688. QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD = 2,
  12689. QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH = 3,
  12690. QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD = 4,
  12691. };
  12692. /**
  12693. * enum qca_wlan_roam_stats_scan_type - Roam scan type define.
  12694. * These values are used by the attribute
  12695. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE.
  12696. *
  12697. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL: Partial channel scan
  12698. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL: Full channel scan
  12699. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN: No roam scan was triggered.
  12700. * This is generally used in BTM events to indicate BTM frame exchange logs.
  12701. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ: Higher band roam scan
  12702. * from 2.4 GHz to 5 GHz or 6 GHz
  12703. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ: Higher band roam scan from
  12704. * 5 GHz to 6 GHz
  12705. */
  12706. enum qca_wlan_roam_stats_scan_type {
  12707. QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL = 0,
  12708. QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL = 1,
  12709. QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN = 2,
  12710. QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ = 3,
  12711. QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ = 4,
  12712. };
  12713. /**
  12714. * enum qca_wlan_roam_stats_scan_dwell_type - Roam scan dwell type.
  12715. * These values are used by the attribute
  12716. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE.
  12717. *
  12718. * @QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED: Target did not specify the
  12719. * detailed roam scan type.
  12720. * @QCA_WLAN_ROAM_STATS_DWELL_ACTIVE_TYPE: Active scan during roam.
  12721. * @QCA_WLAN_ROAM_STATS_DWELL_PASSIVE_TYPE: Passive scan during roam.
  12722. */
  12723. enum qca_wlan_roam_stats_scan_dwell_type {
  12724. QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED = 0,
  12725. QCA_WLAN_ROAM_STATS_DWELL_TYPE_ACTIVE = 1,
  12726. QCA_WLAN_ROAM_STATS_DWELL_TYPE_PASSIVE = 2,
  12727. };
  12728. /**
  12729. * enum qca_wlan_vendor_attr_roam_stats_scan_chan_info - Attributes used inside
  12730. * the %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO nested attribute.
  12731. */
  12732. enum qca_wlan_vendor_attr_roam_stats_scan_chan_info {
  12733. /* 32-bit unsigned value to indicate center frequency of the primary
  12734. * channel in MHz for each roam scan channel.
  12735. */
  12736. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHANNEL_FREQ = 1,
  12737. /* 8-bit unsigned value to indicate channel scan type for each
  12738. * roam scan channel, values in qca_wlan_roam_stats_scan_dwell_type.
  12739. */
  12740. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE = 2,
  12741. /* 32-bit unsigned value to indicate maximum scan time in milliseconds
  12742. * for each roam scan channel.
  12743. */
  12744. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX_DWELL_TIME = 3,
  12745. /* keep last */
  12746. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST,
  12747. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_FRAME_MAX =
  12748. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST - 1,
  12749. };
  12750. /**
  12751. * enum qca_wlan_roam_stats_frame_subtype - Roam frame subtypes. These values
  12752. * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE.
  12753. *
  12754. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP: Authentication Response frame
  12755. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP: Reassociation Response frame
  12756. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1: EAPOL-Key M1 frame
  12757. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2: EAPOL-Key M2 frame
  12758. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3: EAPOL-Key M3 frame
  12759. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4: EAPOL-Key M4 frame
  12760. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1: EAPOL-Key GTK M1 frame
  12761. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2: EAPOL-Key GTK M2 frame
  12762. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_REQ: Authentication Request frame
  12763. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_REQ: Reassociation Request frame
  12764. */
  12765. enum qca_wlan_roam_stats_frame_subtype {
  12766. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP = 1,
  12767. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP = 2,
  12768. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1 = 3,
  12769. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2 = 4,
  12770. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3 = 5,
  12771. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4 = 6,
  12772. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1 = 7,
  12773. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2 = 8,
  12774. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_REQ = 9,
  12775. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_REQ = 10,
  12776. };
  12777. /* Compatibility defines for previously used names.
  12778. * These values should not be used in any new implementation.
  12779. */
  12780. #define QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH \
  12781. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP
  12782. #define QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC \
  12783. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP
  12784. /**
  12785. * enum roam_frame_status - Specifies the valid values the vendor roam frame
  12786. * attribute QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS can take.
  12787. *
  12788. * @QCA_WLAN_ROAM_FRAME_STATUS_SUCCESS: It indicates the roam frame was
  12789. * sent or received successfully.
  12790. * @QCA_WLAN_ROAM_FRAME_STATUS_FAIL: It indicates the roam frame sending or
  12791. * receiving failed.
  12792. */
  12793. enum qca_wlan_roam_stats_frame_status {
  12794. QCA_WLAN_ROAM_STATS_FRAME_STATUS_SUCCESS = 0,
  12795. QCA_WLAN_ROAM_STATS_FRAME_STATUS_FAIL = 1,
  12796. };
  12797. /**
  12798. * enum qca_wlan_vendor_attr_roam_stats_frame_info - Attributes used within the
  12799. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO nested attribute.
  12800. */
  12801. enum qca_wlan_vendor_attr_roam_stats_frame_info {
  12802. /* 8-bit unsigned value to indicate the frame subtype during
  12803. * roaming, one of the values in qca_wlan_roam_stats_frame_subtype.
  12804. */
  12805. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE = 1,
  12806. /* 8-bit unsigned value to indicate the frame is successful or failed
  12807. * during roaming, one of the values in
  12808. * qca_wlan_roam_stats_frame_status.
  12809. */
  12810. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS = 2,
  12811. /* 64-bit unsigned value to indicate the timestamp for frame of
  12812. * preauthentication/reassociation/EAPOL-M1/EAPOL-M2/EAPOL-M3/EAPOL-M4
  12813. * when sent or received during roaming, timestamp in milliseconds
  12814. * from system boot.
  12815. */
  12816. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3,
  12817. /* This attribute indicates a 6-byte MAC address representing
  12818. * the BSSID of the AP.
  12819. * For non-MLO scenario, it indicates the AP BSSID.
  12820. * For MLO scenario, it indicates the AP BSSID which may be the primary
  12821. * link BSSID or a nonprimary link BSSID.
  12822. */
  12823. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_BSSID = 5,
  12824. /* keep last */
  12825. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST,
  12826. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_MAX =
  12827. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST - 1,
  12828. };
  12829. /**
  12830. * enum qca_wlan_vendor_attr_roam_stats_info - Used by the attribute
  12831. * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO.
  12832. */
  12833. enum qca_wlan_vendor_attr_roam_stats_info {
  12834. /* 64-bit unsigned value to indicate the timestamp when roam was
  12835. * triggered by the firmware, timestamp in milliseconds from system
  12836. * boot.
  12837. */
  12838. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_TRIGGER_TIMESTAMP = 1,
  12839. /* 32-bit unsigned value to indicate the roam trigger reason for the
  12840. * last roaming attempted by the firmware. This can be queried either
  12841. * in a connected state or disconnected state. The values of this
  12842. * attribute represent the roam trigger reason codes, which
  12843. * are defined in enum qca_roam_reason.
  12844. */
  12845. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TRIGGER_REASON = 2,
  12846. /* 8-bit unsigned value to indicate percentage of packets for which
  12847. * the RX rate is lower than the RX rate threshold in total RX packets,
  12848. * used for roaming trigger by per.
  12849. */
  12850. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_RXRATE_THRESHOLD_PERCENT = 3,
  12851. /* 8-bit unsigned value to indicate percentage of packets for which
  12852. * the TX rate is lower than TX rate threshold in total TX packets,
  12853. * used for roaming trigger by per.
  12854. */
  12855. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_TXRATE_THRESHOLD_PERCENT = 4,
  12856. /* 32-bit unsigned value to indicate final beacon miss count for
  12857. * trigger reason of beacon miss.
  12858. */
  12859. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FINAL_BMISS_CNT = 5,
  12860. /* 32-bit unsigned value to indicate consecutive beacon miss count
  12861. * for trigger reason of beacon miss.
  12862. */
  12863. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONSECUTIVE_BMISS_CNT = 6,
  12864. /* 8-bit unsigned value to indicate QOS-NULL TX status for trigger
  12865. * reason of beacon miss, 0 - success, 1 - fail.
  12866. * If QOS-NULL TX status is successful, beacon miss final count and
  12867. * consecutive beacon miss count will be reset to zero, and roam will
  12868. * not be triggered. If QOS-NULL TX status is failed, beacon miss final
  12869. * count and consecutive beacon miss count continue to calculate until
  12870. * roaming trigger by beacon miss.
  12871. */
  12872. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BMISS_QOS_NULL_SUCCESS = 7,
  12873. /* 8-bit signed value to indicate connected AP RSSI in dBm
  12874. * for trigger reason of poor RSSI.
  12875. */
  12876. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_CURRENT_RSSI = 8,
  12877. /* 8-bit signed value to indicate RSSI threshold value in dBm
  12878. * for trigger reason of poor RSSI.
  12879. */
  12880. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_ROAM_RSSI_THRESHOLD = 9,
  12881. /* 8-bit unsigned value to indicate RX link speed status
  12882. * for trigger reason of poor RSSI, 0 - good link speed,
  12883. * 1 - bad link speed.
  12884. */
  12885. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_RX_LINKSPEED_STATUS = 10,
  12886. /* 8-bit signed value to indicate connected AP RSSI in dBm
  12887. * for trigger reason of better RSSI.
  12888. */
  12889. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_CURRENT_RSSI = 11,
  12890. /* 8-bit signed value to indicate RSSI threshold value in dBm
  12891. * for trigger reason of better RSSI.
  12892. */
  12893. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_HIGH_RSSI_THRESHOLD = 12,
  12894. /* 32-bit unsigned value to indicate RX throughput in bytes per second
  12895. * for trigger reason of congestion.
  12896. */
  12897. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_RX_TPUT = 13,
  12898. /* 32-bit unsigned value to indicate TX throughput in bytes per second
  12899. * for trigger reason of congestion.
  12900. */
  12901. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_TX_TPUT = 14,
  12902. /* 8-bit unsigned value to indicate roamable AP count
  12903. * for trigger reason of congestion.
  12904. */
  12905. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_ROAMABLE_CNT = 15,
  12906. /* 8-bit unsigned value to indicate invoke reason, one of the values
  12907. * defined in qca_wlan_roam_stats_invoke_reason.
  12908. */
  12909. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON = 16,
  12910. /* 8-bit unsigned value to indicate request mode for trigger reason
  12911. * of BTM, values are defined in IEEE Std 802.11-2020, 9.6.13.9.
  12912. */
  12913. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQUEST_MODE = 17,
  12914. /* 32-bit unsigned value to indicate disassociate time in milliseconds
  12915. * for trigger reason of BTM.
  12916. */
  12917. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_DISASSOC_IMMINENT_TIME = 18,
  12918. /* 32-bit unsigned value to indicate preferred candidate list valid
  12919. * interval in milliseconds for trigger reason of BTM.
  12920. */
  12921. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_VALID_INTERNAL = 19,
  12922. /* 8-bit unsigned value to indicate the number of preferred
  12923. * candidates for trigger reason of BTM.
  12924. */
  12925. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_CANDIDATE_LIST_CNT = 20,
  12926. /* 8-bit unsigned value to indicate response status for trigger
  12927. * reason of BTM, values are defined in IEEE Std 802.11-2020,
  12928. * Table 9-428 (BTM status code definitions).
  12929. */
  12930. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_RESPONSE_STATUS_CODE = 21,
  12931. /* 32-bit unsigned value to indicate BSS termination timeout value
  12932. * in milliseconds for trigger reason of BTM.
  12933. */
  12934. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_BSS_TERMINATION_TIMEOUT = 22,
  12935. /* 32-bit unsigned value to indicate MBO associate retry timeout
  12936. * value in milliseconds for trigger reason of BTM.
  12937. */
  12938. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_MBO_ASSOC_RETRY_TIMEOUT = 23,
  12939. /* 8-bit unsigned value to indicate dialog token number
  12940. * for trigger reason of BTM.
  12941. */
  12942. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQ_DIALOG_TOKEN = 24,
  12943. /* 8-bit unsigned value to indicate percentage of connected AP
  12944. * channel congestion utilization for trigger reason of BSS load.
  12945. */
  12946. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BSS_CU_LOAD = 25,
  12947. /* 8-bit unsigned value to indicate disconnection type
  12948. * for trigger reason of disconnection. 1 - Deauthentication,
  12949. * 2 - Disassociation.
  12950. */
  12951. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_TYPE = 26,
  12952. /* 16-bit unsigned value to indicate deauthentication or disassociation
  12953. * reason for trigger reason of disconnection, values are defined
  12954. * in IEEE Std 802.11-2020, Table 9-49 (Reason codes).
  12955. */
  12956. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_REASON = 27,
  12957. /* 32-bit unsigned value to indicate milliseconds of roam scan
  12958. * periodicity when needing to roam to find a better AP for trigger
  12959. * reason of periodic timer.
  12960. */
  12961. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PERIODIC_TIMER_MS = 28,
  12962. /* 8-bit signed value to indicate connected AP RSSI in dBm for
  12963. * trigger reason of background scan.
  12964. */
  12965. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_CURRENT_RSSI = 29,
  12966. /* 8-bit signed value to indicate data RSSI in dBm for trigger reason
  12967. * of background scan.
  12968. */
  12969. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI = 30,
  12970. /* 8-bit signed value to indicate data RSSI threshold in dBm
  12971. * for trigger reason of background scan.
  12972. */
  12973. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI_THRESH = 31,
  12974. /* 32-bit unsigned value to indicate consecutive TX failure threshold
  12975. * for trigger reason of TX failures.
  12976. */
  12977. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_THRESHOLD = 32,
  12978. /* 8-bit unsigned value to indicate TX failure reason for trigger
  12979. * reason of TX failures, one of the values defined in
  12980. * qca_wlan_roam_stats_tx_failures_reason.
  12981. */
  12982. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON = 33,
  12983. /* 8-bit unsigned value to indicate detail abort reason. One of the
  12984. * values in enum qca_wlan_roam_stats_abort_reason.
  12985. */
  12986. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON = 34,
  12987. /* 8-bit signed value to indicate data RSSI in dBm when aborting the
  12988. * roam scan.
  12989. */
  12990. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI = 35,
  12991. /* 8-bit signed value to indicate data RSSI threshold in dBm when
  12992. * aborting the roam scan.
  12993. */
  12994. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI_THRESHOLD = 36,
  12995. /* 8-bit unsigned value to indicate data RSSI threshold in RX link
  12996. * speed status when aborting the roam scan.
  12997. * 0 - good link speed, 1 - bad link speed
  12998. */
  12999. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RX_LINKSPEED_STATUS = 37,
  13000. /* 8-bit unsigned value to indicate roaming scan type.
  13001. * One of the values in enum qca_wlan_roam_stats_scan_type.
  13002. */
  13003. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE = 38,
  13004. /* 8-bit unsigned value to indicate roaming result, used in STA mode
  13005. * only.
  13006. * 0-Roaming is successful, 1-Roaming is failed
  13007. */
  13008. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS = 39,
  13009. /* 8-bit unsigned value to indicate the roam fail reason for the
  13010. * last failed roaming attempt by the firmware. Different roam failure
  13011. * reason codes are specified in enum qca_vendor_roam_fail_reasons.
  13012. * This can be queried either in connected state or disconnected state.
  13013. */
  13014. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FAIL_REASON = 40,
  13015. /* Nested attribute. Indicate roam scan info for each channel, the
  13016. * attributes defined in enum
  13017. * qca_wlan_vendor_attr_roam_stats_scan_chan_info are used inside
  13018. * this attribute.
  13019. */
  13020. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO = 41,
  13021. /* 32-bit unsigned value to indicate total scan time during roam scan
  13022. * all channels, time in milliseconds.
  13023. */
  13024. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TOTAL_SCAN_TIME = 42,
  13025. /* Nested attribute. This attribute shall be used by the driver to
  13026. * send roam information of each subtype. The attributes defined in
  13027. * enum qca_wlan_vendor_attr_roam_stats_frame_info are used inside
  13028. * this attribute.
  13029. */
  13030. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO = 43,
  13031. /* 6-byte MAC address used by the driver to send roam stats information
  13032. * of the original AP BSSID. The original AP is the connected AP before
  13033. * roam happens, regardless of the roam resulting in success or failure.
  13034. * This attribute is only present when
  13035. * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
  13036. * 0 (success) or 1 (failure).
  13037. * For non-MLO scenario, it indicates the original connected AP BSSID.
  13038. * For MLO scenario, it indicates the original BSSID of the link
  13039. * for which the reassociation occurred during the roam.
  13040. */
  13041. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ORIGINAL_BSSID = 45,
  13042. /* 6-byte MAC address used by the driver to send roam stats information
  13043. * of the roam candidate AP BSSID when roam failed. This is only present
  13044. * when QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
  13045. * 1 (failure). If the firmware updates more than one candidate AP BSSID
  13046. * to the driver, the driver only fills the last candidate AP BSSID and
  13047. * reports it to user space.
  13048. * For non-MLO scenario, it indicates the last candidate AP BSSID.
  13049. * For MLO scenario, it indicates the AP BSSID which may be the primary
  13050. * link BSSID or a nonprimary link BSSID.
  13051. */
  13052. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CANDIDATE_BSSID = 46,
  13053. /* 6-byte MAC address used by the driver to send roam stats information
  13054. * of the roamed AP BSSID when roam succeeds. This is only present when
  13055. * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
  13056. * 0 (success).
  13057. * For non-MLO scenario, it indicates the new AP BSSID to which has
  13058. * been successfully roamed.
  13059. * For MLO scenario, it indicates the new AP BSSID of the link on
  13060. * which the reassociation occurred during the roam.
  13061. */
  13062. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAMED_BSSID = 47,
  13063. /* keep last */
  13064. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST,
  13065. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX =
  13066. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST - 1,
  13067. };
  13068. /**
  13069. * enum qca_wlan_vendor_attr_roam_cached_stats - Vendor subcmd attributes to
  13070. * report cached roam info from the driver to user space, enum values are used
  13071. * for netlink attributes sent with the
  13072. * %QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS sub command.
  13073. */
  13074. enum qca_wlan_vendor_attr_roam_cached_stats {
  13075. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INVALID = 0,
  13076. /* Nested attribute, this attribute contains nested array roam info
  13077. * statistics defined in enum qca_wlan_vendor_attr_roam_stats_info.
  13078. */
  13079. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO = 1,
  13080. /* keep last */
  13081. QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST,
  13082. QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_MAX =
  13083. QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST - 1,
  13084. };
  13085. /**
  13086. * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
  13087. * radio configurations present in each radio combination.
  13088. *
  13089. * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
  13090. * the band info in the radio configuration. Uses the enum qca_set_band values.
  13091. *
  13092. * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
  13093. * the number of antennas info in the radio configuration.
  13094. */
  13095. enum qca_wlan_vendor_attr_supported_radio_cfg {
  13096. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
  13097. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
  13098. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
  13099. /* keep last */
  13100. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
  13101. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
  13102. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
  13103. };
  13104. /**
  13105. * enum qca_wlan_vendor_attr_radio_combination - Attributes for
  13106. * radio combinations supported by the device.
  13107. *
  13108. * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
  13109. * provides the radio configurations present in the radio combination.
  13110. * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
  13111. * This attribute provides the values for radio combination matrix.
  13112. * For standalone config, the number of config values is one and the config
  13113. * carries the band and antenna information for standalone configuration. For
  13114. * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
  13115. * configuration the number of config values is two and the config carries the
  13116. * band and antenna information for each simultaneous radio.
  13117. */
  13118. enum qca_wlan_vendor_attr_radio_combination {
  13119. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
  13120. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
  13121. /* keep last */
  13122. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
  13123. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
  13124. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
  13125. };
  13126. /**
  13127. * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
  13128. * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
  13129. *
  13130. * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
  13131. * provides the radio combinations supported by the device.
  13132. * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
  13133. * For example, in the radio combination matrix for a device which has two
  13134. * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
  13135. * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
  13136. * combinations is 5 and the radio combinations are
  13137. * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
  13138. * {{5 GHz 2X2}}, //Standalone 5 GHz
  13139. * {{6 GHz 2X2}}, //Standalone 6 GHz
  13140. * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
  13141. * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
  13142. * The band and antenna info together as nested data provides one radio config.
  13143. * Standalone configuration has one config with band and antenna nested data.
  13144. * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
  13145. * have two nested band and antenna info data.
  13146. */
  13147. enum qca_wlan_vendor_attr_radio_combination_matrix {
  13148. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
  13149. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
  13150. /* keep last */
  13151. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
  13152. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
  13153. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
  13154. };
  13155. /**
  13156. * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
  13157. * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
  13158. *
  13159. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
  13160. * Enable mDNS offload. This attribute is mandatory to enable
  13161. * mDNS offload feature. If this attribute is not present, mDNS offload
  13162. * is disabled.
  13163. *
  13164. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
  13165. * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
  13166. * attribute is mandatory when enabling the feature, and not required when
  13167. * disabling the feature.
  13168. *
  13169. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
  13170. * the following attributes:
  13171. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
  13172. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
  13173. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
  13174. *
  13175. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
  13176. * It consists of a hostname and ".local" as the domain name. The character
  13177. * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
  13178. * It is used to compare the domain the in the "QU" query. Only 1 FQDN is
  13179. * supported per vdev.
  13180. * For example: myphone.local
  13181. *
  13182. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
  13183. * u16 attribute. It specifies the total number of resource records present
  13184. * in the answer section of the answer payload. This attribute is needed by the
  13185. * firmware to populate the mDNS response frame for mNDS queries without having
  13186. * to parse the answer payload.
  13187. *
  13188. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required Binary blob
  13189. * attribute sent by the mdnsResponder from userspace. It contains resource
  13190. * records of various types (Eg: A, AAAA, PTR, TXT) and service list. This
  13191. * payload is passed down to firmware and is transmitted in response to
  13192. * mDNS queries.
  13193. * The maximum size of the answer payload supported is 512 bytes.
  13194. */
  13195. enum qca_wlan_vendor_attr_mdns_offload {
  13196. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
  13197. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
  13198. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
  13199. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
  13200. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
  13201. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
  13202. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
  13203. /* keep last */
  13204. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
  13205. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
  13206. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
  13207. };
  13208. /**
  13209. * enum qca_vendor_attr_diag_event_type - Attributes used by
  13210. * %QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute.
  13211. *
  13212. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING: Diag event sent from
  13213. * driver/firmware during Connection request from Userspace. Uses the
  13214. * following attributes of enum qca_wlan_vendor_attr_diag:
  13215. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13216. * QCA_WLAN_VENDOR_ATTR_DIAG_SSID,
  13217. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13218. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT,
  13219. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  13220. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT,
  13221. * QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE,
  13222. * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE,
  13223. * QCA_WLAN_VENDOR_ATTR_DIAG_AKM,
  13224. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  13225. * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE,
  13226. * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE,
  13227. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13228. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13229. *
  13230. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL: Diag event sent from
  13231. * driver/firmware when a connection is failed. Uses the
  13232. * following attributes of enum qca_wlan_vendor_attr_diag:
  13233. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13234. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13235. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  13236. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13237. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13238. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13239. *
  13240. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ: Diag event sent from
  13241. * driver/firmware during Authentication request from a device. Uses the
  13242. * following attributes of enum qca_wlan_vendor_attr_diag:
  13243. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13244. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13245. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13246. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  13247. * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
  13248. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13249. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  13250. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13251. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13252. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13253. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13254. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13255. *
  13256. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP: Diag event sent from
  13257. * driver/firmware when device receives an authentication response. Uses the
  13258. * following attributes of enum qca_wlan_vendor_attr_diag:
  13259. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13260. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13261. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  13262. * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
  13263. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13264. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  13265. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13266. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13267. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13268. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13269. *
  13270. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ: Diag event sent from
  13271. * driver/firmware when device sends an association request. Uses the
  13272. * following attributes of enum qca_wlan_vendor_attr_diag:
  13273. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13274. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13275. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13276. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13277. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13278. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13279. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13280. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13281. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13282. *
  13283. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP: Diag event sent from
  13284. * driver/firmware when device receives an association response. Uses the
  13285. * following attributes of enum qca_wlan_vendor_attr_diag:
  13286. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13287. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13288. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13289. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  13290. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13291. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13292. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13293. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  13294. * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID.
  13295. *
  13296. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX: Diag event sent from
  13297. * driver/userspace when device receives a deauthentication response. Uses the
  13298. * following attributes of enum qca_wlan_vendor_attr_diag:
  13299. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13300. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13301. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13302. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13303. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13304. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13305. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13306. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13307. *
  13308. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX: Diag event sent from
  13309. * driver/userspace when device sends a deauthentication request. Uses the
  13310. * following attributes of enum qca_wlan_vendor_attr_diag:
  13311. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13312. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13313. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13314. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13315. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13316. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13317. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13318. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13319. *
  13320. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX: Diag event sent from
  13321. * driver/firmware when device receives a disassociation response. Uses the
  13322. * following attributes of enum qca_wlan_vendor_attr_diag:
  13323. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13324. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13325. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13326. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13327. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13328. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13329. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13330. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13331. *
  13332. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX: Diag event sent from
  13333. * driver/firmware when device sends a disassociation request. Uses the
  13334. * following attributes of enum qca_wlan_vendor_attr_diag:
  13335. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13336. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13337. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13338. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13339. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13340. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13341. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13342. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13343. *
  13344. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN: Diag event sent from
  13345. * driver/firmware when device did not receive beacon packets during connection.
  13346. * Uses the following attributes of enum qca_wlan_vendor_attr_diag:
  13347. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13348. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13349. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13350. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13351. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13352. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13353. *
  13354. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START: Diag event sent from
  13355. * driver/firmware when Roaming scan is triggered. Uses the following
  13356. * attributes of enum qca_wlan_vendor_attr_diag:
  13357. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13358. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON,
  13359. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON,
  13360. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13361. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  13362. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE,
  13363. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD,
  13364. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13365. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13366. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13367. *
  13368. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE: Diag event sent from
  13369. * driver/firmware Roam scanning is processed. Uses the following
  13370. * attributes of enum qca_wlan_vendor_attr_diag:
  13371. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13372. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  13373. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST,
  13374. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT,
  13375. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  13376. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13377. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13378. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  13379. * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE.
  13380. *
  13381. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP: Diag event sent from
  13382. * driver/firmware to provide Roam information of the current AP. Uses the
  13383. * following attributes of enum qca_wlan_vendor_attr_diag:
  13384. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13385. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13386. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13387. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  13388. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  13389. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
  13390. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13391. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13392. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13393. *
  13394. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP: Diag event sent from
  13395. * driver/firmware to provide Roam information of the candid AP. Uses the
  13396. * following attributes of enum qca_wlan_vendor_attr_diag:
  13397. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13398. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13399. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13400. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  13401. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  13402. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
  13403. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP,
  13404. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  13405. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13406. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13407. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13408. *
  13409. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT: Diag event sent from
  13410. * driver/firmware to provide Roam result after selecting a candidate. Uses the
  13411. * following attributes of enum qca_wlan_vendor_attr_diag:
  13412. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13413. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL,
  13414. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13415. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13416. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13417. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13418. *
  13419. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL: Diag event sent from
  13420. * driver/firmware to indicate Roam Cancellation due to higher priority events.
  13421. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13422. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13423. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13424. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13425. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13426. *
  13427. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ: Diag event sent from driver
  13428. * /firmware when STA sends a BTM request frame. Uses the following attributes
  13429. * of enum qca_wlan_vendor_attr_diag:
  13430. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13431. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  13432. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE,
  13433. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER,
  13434. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL,
  13435. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT,
  13436. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13437. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13438. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13439. *
  13440. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY: Diag event sent from
  13441. * driver/firmware when STA queries about BTM transition. Uses the following
  13442. * attributes of enum qca_wlan_vendor_attr_diag:
  13443. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13444. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  13445. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON,
  13446. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13447. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13448. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13449. *
  13450. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP: Diag event sent from driver
  13451. * /firmware when STA receives BTM response frame. Uses the following
  13452. * attributes of enum qca_wlan_vendor_attr_diag:
  13453. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13454. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  13455. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE,
  13456. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY,
  13457. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID,
  13458. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13459. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13460. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13461. *
  13462. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI: Diag event sent from
  13463. * driver/firmware to provide BTM request candidate information. Uses the
  13464. * following attributes of enum qca_wlan_vendor_attr_diag:
  13465. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13466. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13467. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE,
  13468. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  13469. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13470. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13471. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13472. *
  13473. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC: Diag event sent from driver
  13474. * /firmware when ROAM WTC trigger happens. Uses the following attributes of
  13475. * enum qca_wlan_vendor_attr_diag:
  13476. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13477. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE,
  13478. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13479. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION,
  13480. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13481. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13482. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13483. *
  13484. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER: Diag event sent from
  13485. * driver/firmware to indicate DHCP discovery to AP. Uses the following
  13486. * attributes of enum qca_wlan_vendor_attr_diag:
  13487. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13488. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13489. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13490. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13491. *
  13492. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER: Diag event sent from
  13493. * driver/firmware to indicate DHCP offering to AP. Uses the following
  13494. * attributes of enum qca_wlan_vendor_attr_diag:
  13495. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13496. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13497. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13498. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13499. *
  13500. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST: Diag event sent from
  13501. * driver/firmware to indicate driver sent DHCP packets. Uses the following
  13502. * attributes of enum qca_wlan_vendor_attr_diag:
  13503. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13504. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13505. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13506. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13507. *
  13508. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK: Diag event sent from driver
  13509. * /firmware to indicate acknowledgement of DHCP packets. Uses the following
  13510. * attributes of enum qca_wlan_vendor_attr_diag:
  13511. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13512. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13513. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13514. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13515. *
  13516. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK: Diag event sent from driver
  13517. * /firmware to indicate negative acknowledgement of DHCP packets. Uses the
  13518. * following attributes of enum qca_wlan_vendor_attr_diag:
  13519. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13520. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13521. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13522. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13523. *
  13524. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1: Diag event sent from driver
  13525. * /firmware to indicate EAPOL M1 message. Uses the following attributes of
  13526. * enum qca_wlan_vendor_attr_diag:
  13527. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13528. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13529. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13530. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13531. *
  13532. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2: Diag event sent from driver
  13533. * /firmware to indicate EAPOL M2 message. Uses the following attributes of
  13534. * enum qca_wlan_vendor_attr_diag:
  13535. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13536. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13537. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13538. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13539. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13540. *
  13541. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3: Diag event sent from driver
  13542. * /firmware to indicate EAPOL M3 message. Uses the following attributes of
  13543. * enum qca_wlan_vendor_attr_diag:
  13544. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13545. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13546. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13547. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13548. *
  13549. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4: Diag event sent from driver
  13550. * /firmware to indicate EAPOL M4 message. Uses the following attributes of
  13551. * enum qca_wlan_vendor_attr_diag:
  13552. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13553. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13554. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13555. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13556. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13557. *
  13558. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1: Diag event sent from driver
  13559. * /firmware to indicate GTK rekey M1 frame. Uses the following attributes of
  13560. * enum qca_wlan_vendor_attr_diag:
  13561. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13562. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13563. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13564. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13565. *
  13566. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2: Diag event sent from driver
  13567. * /firmware to indicate GTK Rekey M2 frame. Uses the following attributes of
  13568. * enum qca_wlan_vendor_attr_diag:
  13569. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13570. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13571. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13572. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13573. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13574. *
  13575. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST: Diag event sent from driver
  13576. * /firmware to indicate device sent EAP request. Uses the following attributes
  13577. * of enum qca_wlan_vendor_attr_diag:
  13578. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13579. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
  13580. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
  13581. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13582. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13583. *
  13584. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE: Diag event sent from driver
  13585. * /firmware to indicate device received EAP response. Uses the following
  13586. * attributes of enum qca_wlan_vendor_attr_diag:
  13587. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13588. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
  13589. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
  13590. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13591. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13592. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13593. *
  13594. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS: Diag event sent from driver
  13595. * /firmware to indicate EAP frame transmission is success. Uses the following
  13596. * attributes of enum qca_wlan_vendor_attr_diag:
  13597. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13598. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13599. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13600. *
  13601. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE: Diag event sent from driver
  13602. * /firmware to indicate EAP frame transmission is failed. Uses the following
  13603. * attributes of enum qca_wlan_vendor_attr_diag:
  13604. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13605. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13606. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13607. *
  13608. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ: Diag event sent from driver
  13609. * /firmware to indicate Reassocation request. Uses the following attributes
  13610. * of enum qca_wlan_vendor_attr_diag:
  13611. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  13612. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13613. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13614. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13615. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13616. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13617. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13618. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  13619. *
  13620. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES: Diag event sent from driver
  13621. * /firmware to indicate Reassocation response. Uses the following attributes
  13622. * of enum qca_wlan_vendor_attr_diag:
  13623. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  13624. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13625. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13626. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  13627. * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID,
  13628. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13629. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13630. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  13631. */
  13632. enum qca_vendor_attr_diag_event_type {
  13633. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING = 0,
  13634. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL = 1,
  13635. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ = 2,
  13636. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP = 3,
  13637. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ = 4,
  13638. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP = 5,
  13639. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX = 6,
  13640. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX = 7,
  13641. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX = 8,
  13642. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX = 9,
  13643. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN = 10,
  13644. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START = 11,
  13645. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE = 12,
  13646. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP = 13,
  13647. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP = 14,
  13648. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT = 15,
  13649. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL = 16,
  13650. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ = 17,
  13651. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY = 18,
  13652. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP = 19,
  13653. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI = 20,
  13654. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC = 21,
  13655. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER = 22,
  13656. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER = 23,
  13657. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST = 24,
  13658. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK = 25,
  13659. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK = 26,
  13660. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1 = 27,
  13661. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2 = 28,
  13662. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3 = 29,
  13663. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4 = 30,
  13664. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1 = 31,
  13665. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2 = 32,
  13666. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST = 33,
  13667. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE = 34,
  13668. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS = 35,
  13669. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE = 36,
  13670. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ = 37,
  13671. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES = 38,
  13672. /* keep last */
  13673. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST,
  13674. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_MAX =
  13675. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST - 1,
  13676. };
  13677. /**
  13678. * enum qca_wlan_vendor_tx_status - Used by attribute
  13679. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS to indicate TX status.
  13680. * @QCA_WLAN_VENDOR_TX_STATUS_FAIL: Indicates frame is not sent over the air.
  13681. * @QCA_WLAN_VENDOR_TX_STATUS_NO_ACK: Indicates packet sent but acknowledgement
  13682. * is not received.
  13683. * @QCA_WLAN_VENDOR_TX_STATUS_ACK: Indicates the frame is successfully sent and
  13684. * acknowledged.
  13685. */
  13686. enum qca_wlan_vendor_tx_status {
  13687. QCA_WLAN_VENDOR_TX_STATUS_FAIL = 1,
  13688. QCA_WLAN_VENDOR_TX_STATUS_NO_ACK = 2,
  13689. QCA_WLAN_VENDOR_TX_STATUS_ACK = 3,
  13690. };
  13691. /**
  13692. * enum qca_roam_sub_reason - Used by attribute
  13693. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON
  13694. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER: Roam scan triggered due to periodic
  13695. * timer expiry
  13696. * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI: Roam scan trigger due
  13697. * to no candidate found during LOW RSSI trigger.
  13698. * @QCA_ROAM_SUB_REASON_BTM_DI_TIMER: Roam scan triggered due to BTM Disassoc
  13699. * Imminent timeout
  13700. * @QCA_ROAM_SUB_REASON_FULL_SCAN: Roam scan triggered due to partial scan
  13701. * failure
  13702. * @QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC: Roam trigger due to
  13703. * emergency like deauth/disassoc.
  13704. * @QCA_ROAM_SUB_REASON_CU_PERIODIC: Roam trigger due to
  13705. * BSS transition management request.
  13706. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI:
  13707. * Roam scan triggered due to Low RSSI periodic timer
  13708. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU:
  13709. * Roam trigger due to periodic timer after no candidate found during CU
  13710. * inactivity timer scan.
  13711. * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU: Roam trigger due to no candidate
  13712. * found in high CU roam trigger.
  13713. */
  13714. enum qca_roam_sub_reason {
  13715. QCA_ROAM_SUB_REASON_PERIODIC_TIMER = 1,
  13716. QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI = 2,
  13717. QCA_ROAM_SUB_REASON_BTM_DI_TIMER = 3,
  13718. QCA_ROAM_SUB_REASON_FULL_SCAN = 4,
  13719. QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC = 5,
  13720. QCA_ROAM_SUB_REASON_CU_PERIODIC = 6,
  13721. QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI = 7,
  13722. QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU = 8,
  13723. QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU = 9,
  13724. };
  13725. /*
  13726. * enum qca_wlan_vendor_attr_diag - Defines attributes used by the driver
  13727. * to send diag data to the userspace. The attributes defined in this enum are
  13728. * used with QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
  13729. *
  13730. * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT: Required Attribute. Nested attribute used
  13731. * by driver/firmware to send diag data. Each instance of this nested attribute
  13732. * contains one QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute and other
  13733. * attributes defined in enum qca_wlan_vendor_attr_diag that belong to the
  13734. * event type defined by QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE. Multiple of this
  13735. * nested attribute can be sent with one vendor command
  13736. * QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
  13737. *
  13738. * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE: Required u32 attribute. This
  13739. * attribute indicates the type of the diag event from driver/firmware. Uses
  13740. * values from enum qca_vendor_attr_diag_event_type.
  13741. *
  13742. * @QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP: Required u64 attribute. This
  13743. * attribute indicates the system timestamp. Driver uses ktime_get_real_ts64()
  13744. * API to send time of the day in microseconds to userspace.
  13745. *
  13746. * @QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP: Optional u64 attribute.
  13747. * This attribute indicates firmware timestamp in microseconds.
  13748. *
  13749. * @QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX: Optional u8 attribute. This attribute
  13750. * indicates wlan interface index.
  13751. *
  13752. * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID: Optional attribute. This attribute
  13753. * indicates 6-byte MAC address representing the BSSID of the AP.
  13754. *
  13755. * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT: Optional attribute. This attribute
  13756. * indicates the 6-byte MAC address representing the BSSID hint sent in
  13757. * the connect request.
  13758. *
  13759. * @QCA_WLAN_VENDOR_ATTR_DIAG_SSID: Optional attribute. This attribute
  13760. * indicates the SSID in u8 array with a maximum length of 32.
  13761. *
  13762. * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ: Optional u16 attribute. This attribute
  13763. * indicates the frequency of AP in MHz.
  13764. *
  13765. * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT: Optional u16 attribute. This attribute
  13766. * indicates frequency hint given in the connect request in MHz.
  13767. *
  13768. * @QCA_WLAN_VENDOR_ATTR_DIAG_RSSI: Optional signed 32 attribute.
  13769. * This attribute indicates RSSI of the 802.11 frame in dBm.
  13770. *
  13771. * @QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE: Optional u32 attribute.
  13772. * This attribute indicates Pairwise cipher suite defined in IEEE 802.11 2020
  13773. * Table 12-10—Integrity and key wrap algorithms.
  13774. *
  13775. * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE: Optional u32 attribute.
  13776. * This attribute indicates Group cipher suite defined in IEEE 802.11 2020
  13777. * Table 12-10—Integrity and key wrap algorithms.
  13778. *
  13779. * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE: Optional u32 attribute. This
  13780. * attribute indicates Group management cipher suite defined in IEEE Std
  13781. * 802.11‐2020 spec. Table 12-10—Integrity and key wrap algorithms.
  13782. *
  13783. * @QCA_WLAN_VENDOR_ATTR_DIAG_AKM: Optional u32 attribute. This attribute
  13784. * indicates Auth key management suite defined in IEEE Std 802.11‐2020
  13785. * Table 9-151—AKM suite selectors.
  13786. *
  13787. * @QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO: Optional u8 attribute. This attribute
  13788. * indicates authentication algorithm number defined in IEEE Std 802.11‐2020
  13789. * Section 9.4.1.1 Authentication Algorithm Number field.
  13790. *
  13791. * @QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE: Optional flag. This attribute
  13792. * indicates bluetooth COEX is active or not.
  13793. *
  13794. * @QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE: Optional u8 attribute. This
  13795. * attribute indicates SAE authentication frame type. The possible values are
  13796. * 1 - SAE commit frame
  13797. * 2 - SAE confirm frame
  13798. *
  13799. * @QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE: Optional u16 attribute. This
  13800. * attribute indicates the reason codes defined in IEEE Std 802.11‐2020
  13801. * Table 9-49—Reason codes.
  13802. *
  13803. * @QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER: Optional u16 attribute. This
  13804. * attribute indicates sequence number of the frame defined in IEEE Std
  13805. * 802.11‐2020 Section 9.4.1.2 Authentication Transaction Sequence Number
  13806. * field.
  13807. *
  13808. * @QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE: Optional u8 attribute. This
  13809. * attribute indicates the status codes defined in IEEE Std 802.11‐2020 Table
  13810. * 9-50—Status codes.
  13811. *
  13812. * @QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS: Optional u8 attribute.
  13813. * Uses enum qca_wlan_vendor_tx_status.
  13814. *
  13815. * @QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME: Optional flag. This attribute
  13816. * indicates if frame transmission is retried.
  13817. *
  13818. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON: Optional u8 attribute.
  13819. * Uses enum qca_roam_reason.
  13820. *
  13821. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON: Optional u8 attribute.
  13822. * Uses enum qca_roam_sub_reason.
  13823. *
  13824. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU: Optional u8 attribute. This attribute
  13825. * indicates channel utilization in percentage.
  13826. *
  13827. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE: Optional u8 attribute. This
  13828. * attribute indicates scan type used. Uses enum qca_roam_scan_scheme.
  13829. *
  13830. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD: Optional signed 32 attribute.
  13831. * This attribute indicates current RSSI threshold in dBm.
  13832. *
  13833. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST: Required Attribute.
  13834. * Nested attribute used by QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE
  13835. * to carry list of QCA_WLAN_VENDOR_ATTR_DIAG_FREQ.
  13836. *
  13837. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT: optional u8 attribute.
  13838. * This attribute indicates number of scanned candidate APs.
  13839. *
  13840. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK: Optional u8 attribute. This
  13841. * attribute indicates roam AP rank computed based on connection preference.
  13842. *
  13843. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP: Optional u32 attribute.
  13844. * This attribute indicates expected throughput in kbps.
  13845. *
  13846. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE: Optional u16 attribute.
  13847. * This attribute indicates the preference value of candidate AP / connected AP
  13848. * calculated in the firmware.
  13849. *
  13850. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL: Optional flag. This attribute
  13851. * indicates connection/roaming is successful or not.
  13852. *
  13853. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE: Optional u8 attribute.
  13854. * This attribute indicates BTM WTC sub reason code in the WTC vendor specific
  13855. * IE present in the BTM frame.
  13856. *
  13857. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION: Optional u32 attribute.
  13858. * This attribute indicates BTM WTC duration in milliseconds.
  13859. *
  13860. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN: Optional u8 attribute. This attribute
  13861. * indicates dialog token value of BTM query/request/response frames.
  13862. *
  13863. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON: Optional u8 attribute. This
  13864. * attribute indicates the Transition Reason field indicates the reason why
  13865. * a transition attempt occurred and contains one of the values defined in IEEE
  13866. * Std 802.11‐2020 Table 9-198—Transition and Transition Query reasons.
  13867. *
  13868. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE: Optional u8 attribute. This attribute
  13869. * indicates BTM mode defined in IEEE Std 802.11‐2020
  13870. * Figure 9-924—Request Mode field format.
  13871. *
  13872. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER: Optional u16 attribute.
  13873. * This attribute indicates the Disassociation Timer field which is the number
  13874. * of beacon transmission times (TBTTs) until the serving AP will send a
  13875. * Disassociation frame to this STA.
  13876. *
  13877. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL: Optional u8 attribute.
  13878. * This attribute indicates BTM validity interval field in TBTTs defined in
  13879. * IEEE Std 802.11‐2020 Figure 9-923—BSS Transition Management Request frame
  13880. * Action field format.
  13881. *
  13882. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT: Optional u8 attribute.
  13883. * This attribute indicates BTM candidate list entries.
  13884. *
  13885. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE: Optional u8 attribute.
  13886. * This attribute indicates network preference for BTM transition defined in
  13887. * IEEE Std 802.11‐2020 Table 9-174—Preference field values.
  13888. *
  13889. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE: Optional u8 attribute.
  13890. * This attribute indicates BTM transition status code defined in IEEE Std
  13891. * 802.11‐2020 Table 9-428—BTM status code definitions.
  13892. *
  13893. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY: Optional u8 attribute.
  13894. * This attribute indicates BSS termination delay defined in IEEE Std
  13895. * 802.11‐2020 Section 9.6.13.10 BSS Transition Management Response frame format.
  13896. *
  13897. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID: Optional attribute.
  13898. * This attribute indicates 6-byte MAC address representing the BSSID of the
  13899. * BSS that the non-AP STA transitions to.
  13900. *
  13901. * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE: Optional u8 attribute. This attribute
  13902. * indicates EAP frame type. The methods are enumerated by IANA at
  13903. * https://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml.
  13904. *
  13905. * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN: Optional u8 attribute. This attribute
  13906. * indicates EAP frame length.
  13907. *
  13908. * @QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP: Required u64 attribute. This
  13909. * attribute indicates the kernel timestamp. Driver uses ktime_get() API
  13910. * (Time from boot but not the time spent in suspend) to send in microseconds
  13911. * to userspace.
  13912. *
  13913. * @QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID: Optional u16 attribute. This attribute
  13914. * indicates the association id received in the (re)association response frame
  13915. * defined in IEEE Std 802.11-2020 Figure 9-91-AID field format.
  13916. */
  13917. enum qca_wlan_vendor_attr_diag {
  13918. QCA_WLAN_VENDOR_ATTR_DIAG_INVALID = 0,
  13919. QCA_WLAN_VENDOR_ATTR_DIAG_EVENT = 1,
  13920. QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE = 2,
  13921. QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP = 3,
  13922. QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP = 4,
  13923. QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX = 5,
  13924. QCA_WLAN_VENDOR_ATTR_DIAG_BSSID = 6,
  13925. QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT = 7,
  13926. QCA_WLAN_VENDOR_ATTR_DIAG_SSID = 8,
  13927. QCA_WLAN_VENDOR_ATTR_DIAG_FREQ = 9,
  13928. QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT = 10,
  13929. QCA_WLAN_VENDOR_ATTR_DIAG_RSSI = 11,
  13930. QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE = 12,
  13931. QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE = 13,
  13932. QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE = 14,
  13933. QCA_WLAN_VENDOR_ATTR_DIAG_AKM = 15,
  13934. QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO = 16,
  13935. QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE = 17,
  13936. QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE = 18,
  13937. QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE = 19,
  13938. QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER = 20,
  13939. QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE = 21,
  13940. QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS = 22,
  13941. QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME = 23,
  13942. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON = 24,
  13943. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON = 25,
  13944. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU = 26,
  13945. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE = 27,
  13946. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD = 28,
  13947. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST = 29,
  13948. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT = 30,
  13949. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK = 31,
  13950. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP = 32,
  13951. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE = 33,
  13952. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL = 34,
  13953. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE = 35,
  13954. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION = 36,
  13955. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN = 37,
  13956. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON = 38,
  13957. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE = 39,
  13958. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER = 40,
  13959. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL = 41,
  13960. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT = 42,
  13961. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE = 43,
  13962. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE = 44,
  13963. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY = 45,
  13964. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID = 46,
  13965. QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE = 47,
  13966. QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN = 48,
  13967. QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP = 49,
  13968. QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID = 50,
  13969. /* keep last */
  13970. QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST,
  13971. QCA_WLAN_VENDOR_ATTR_DIAG_MAX =
  13972. QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST - 1,
  13973. };
  13974. /**
  13975. * qca_wlan_vendor_monitor_data_frame_type - Represent the various
  13976. * data types to be sent over the monitor interface.
  13977. */
  13978. enum qca_wlan_vendor_monitor_data_frame_type {
  13979. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
  13980. /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is
  13981. not set */
  13982. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
  13983. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
  13984. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
  13985. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
  13986. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
  13987. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
  13988. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
  13989. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
  13990. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
  13991. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
  13992. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
  13993. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
  13994. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
  13995. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
  13996. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
  13997. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
  13998. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
  13999. };
  14000. /**
  14001. * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
  14002. * mgmt types to be sent over the monitor interface.
  14003. * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the MGMT Frames.
  14004. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the MGMT Frames
  14005. * except the Beacons. Valid only in the Connect state.
  14006. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
  14007. * BSSID Beacons. Valid only in the Connect state.
  14008. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
  14009. * the Beacons obtained during the scan (off channel and connected channel)
  14010. * when in connected state.
  14011. */
  14012. enum qca_wlan_vendor_monitor_mgmt_frame_type {
  14013. QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
  14014. /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set */
  14015. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON = BIT(1),
  14016. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
  14017. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
  14018. };
  14019. /**
  14020. * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
  14021. * ctrl types to be sent over the monitor interface.
  14022. * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the ctrl Frames.
  14023. * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger Frame.
  14024. */
  14025. enum qca_wlan_vendor_monitor_ctrl_frame_type {
  14026. QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
  14027. /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set */
  14028. QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
  14029. };
  14030. /**
  14031. * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
  14032. * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
  14033. * monitor mode.
  14034. *
  14035. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute,
  14036. * Represents the tx data packet type to be monitored (u32). These data packets
  14037. * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
  14038. *
  14039. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute,
  14040. * Represents the tx data packet type to be monitored (u32). These data packets
  14041. * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
  14042. *
  14043. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute,
  14044. * Represents the tx data packet type to be monitored (u32). These mgmt packets
  14045. * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
  14046. *
  14047. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute,
  14048. * Represents the tx data packet type to be monitored (u32). These mgmt packets
  14049. * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
  14050. *
  14051. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute,
  14052. * Represents the tx data packet type to be monitored (u32). These ctrl packets
  14053. * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
  14054. *
  14055. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute,
  14056. * Represents the tx data packet type to be monitored (u32). These ctrl packets
  14057. * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
  14058. *
  14059. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL:
  14060. * u32 attribute, An interval only for the connected beacon interval, which
  14061. * expects that the connected BSSID's beacons shall be sent on the monitor
  14062. * interface only on this specific interval.
  14063. */
  14064. enum qca_wlan_vendor_attr_set_monitor_mode {
  14065. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
  14066. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
  14067. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
  14068. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
  14069. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
  14070. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
  14071. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
  14072. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
  14073. /* keep last */
  14074. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
  14075. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
  14076. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
  14077. };
  14078. /**
  14079. * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
  14080. * Bits will be set to 1 if the corresponding state is enabled.
  14081. *
  14082. * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
  14083. * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
  14084. */
  14085. enum qca_wlan_vendor_roam_scan_state {
  14086. QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
  14087. QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
  14088. };
  14089. /**
  14090. * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
  14091. * Bits will be set to 1 if the corresponding event is notified.
  14092. *
  14093. * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
  14094. * carries the trigger reason. When set, it is expected that the roam event
  14095. * carries the respective reason via the attribute
  14096. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
  14097. * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
  14098. *
  14099. * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
  14100. * carries the roam fail reason. When set, it is expected that the roam event
  14101. * carries the respective reason via the attribute
  14102. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
  14103. * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
  14104. *
  14105. * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
  14106. * event carries the roam invoke fail reason. When set, it is expected that
  14107. * the roam event carries the respective reason via the attribute
  14108. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
  14109. *
  14110. * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
  14111. * carries the roam scan state. When set, it is expected that the roam event
  14112. * carries the respective scan state via the attribute
  14113. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
  14114. * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
  14115. */
  14116. enum qca_wlan_vendor_roam_event_type {
  14117. QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
  14118. QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
  14119. QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
  14120. QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
  14121. };
  14122. /**
  14123. * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
  14124. * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
  14125. *
  14126. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
  14127. * representing the BSSID of the AP to which the Roam is attempted.
  14128. *
  14129. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
  14130. * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
  14131. * attempted.
  14132. *
  14133. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, Frequency in MHz
  14134. * on which the roam is attempted.
  14135. *
  14136. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
  14137. * STA mode only. This represents the roam fail reason for the last failed
  14138. * roaming attempt by the firmware for the specific BSSID. Different roam
  14139. * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
  14140. */
  14141. enum qca_wlan_vendor_attr_roam_events_candidate_info {
  14142. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
  14143. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
  14144. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
  14145. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
  14146. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
  14147. /* keep last */
  14148. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
  14149. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
  14150. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
  14151. };
  14152. /**
  14153. * enum qca_wlan_vendor_attr_roam_events - Used by the
  14154. * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
  14155. * roam events to the driver or notify these events from the driver.
  14156. *
  14157. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
  14158. * driver/firmware to enable/disable the notification of roam events. It's a
  14159. * mandatory attribute and used only in the request from the userspace to the
  14160. * host driver. 1-Enable, 0-Disable.
  14161. * If the roaming is totally offloaded to the firmware, this request when
  14162. * enabled shall mandate the firmware to notify all the relevant roam events
  14163. * represented by the below attributes. If the host is in the suspend mode,
  14164. * the behavior of the firmware to notify these events is guided by
  14165. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
  14166. * these events in the suspend state, the firmware is expected to wake up the
  14167. * host before the respective events are notified. Please note that such a
  14168. * request to get the events in the suspend state will have a definite power
  14169. * implication.
  14170. *
  14171. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
  14172. * that the roam events need to be notified in the suspend state too. By
  14173. * default, these roam events are notified in the resume state. With this flag,
  14174. * the roam events are notified in both resume and suspend states.
  14175. * This attribute is used in the request from the userspace to the host driver.
  14176. *
  14177. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
  14178. * Represents the different roam event types, signified by the enum
  14179. * qca_wlan_vendor_roam_event_type.
  14180. * Each bit of this attribute represents the different roam even types reported
  14181. * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  14182. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  14183. *
  14184. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
  14185. * mode only. This represents the roam trigger reason for the last roaming
  14186. * attempted by the firmware. Each bit of this attribute represents the
  14187. * different roam trigger reason code which are defined in enum
  14188. * qca_vendor_roam_triggers.
  14189. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  14190. *
  14191. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
  14192. * STA mode only. This represents the roam invoke fail reason for the last
  14193. * failed roam invoke. Different roam invoke failure reason codes
  14194. * are specified in enum qca_vendor_roam_invoke_fail_reasons.
  14195. *
  14196. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
  14197. * for which the roam is attempted. Each entry is a nested attribute defined
  14198. * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
  14199. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  14200. *
  14201. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
  14202. * the scan state on which the roam events need to be notified. The values for
  14203. * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
  14204. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  14205. *
  14206. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
  14207. * u32 values. List of frequencies in MHz considered for a roam scan.
  14208. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  14209. */
  14210. enum qca_wlan_vendor_attr_roam_events {
  14211. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
  14212. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
  14213. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
  14214. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
  14215. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
  14216. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
  14217. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
  14218. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
  14219. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
  14220. /* keep last */
  14221. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
  14222. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
  14223. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1,
  14224. };
  14225. /*
  14226. * enum qca_wlan_ratemask_params_type - Rate mask config type.
  14227. *
  14228. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK_OFDM rate mask config
  14229. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
  14230. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
  14231. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
  14232. */
  14233. enum qca_wlan_ratemask_params_type {
  14234. QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
  14235. QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
  14236. QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
  14237. QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
  14238. };
  14239. /* enum qca_wlan_vendor_attr_ratemask_params - Used by the
  14240. * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
  14241. * This is used to set the rate mask value to be used in rate selection.
  14242. *
  14243. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
  14244. * Array of nested containing attributes
  14245. * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
  14246. * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
  14247. *
  14248. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
  14249. * the different phy types to which the rate mask config is to be applied.
  14250. * The values for this attribute are referred from enum
  14251. * qca_wlan_vendor_ratemask_params_type.
  14252. *
  14253. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
  14254. * A bit value of 1 represents rate is enabled and a value of 0
  14255. * represents rate is disabled.
  14256. * For HE targets, 12 bits correpond to one NSS setting.
  14257. * b0-13 => NSS1, MCS 0-13
  14258. * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
  14259. * For VHT targets, 10 bits correspond to one NSS setting.
  14260. * b0-9 => NSS1, MCS 0-9
  14261. * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
  14262. * For HT targets, 8 bits correspond to one NSS setting.
  14263. * b0-7 => NSS1, MCS 0-7
  14264. * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
  14265. * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
  14266. */
  14267. enum qca_wlan_vendor_attr_ratemask_params {
  14268. QCA_WLAN_VENDOR_ATTR_RATEMASK_INVALID = 0,
  14269. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
  14270. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
  14271. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
  14272. /* keep last */
  14273. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
  14274. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
  14275. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
  14276. };
  14277. /**
  14278. * enum qca_wlan_vendor_flush_pending_policy: Represents values for
  14279. * the policy to flush pending frames, configured via
  14280. * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
  14281. * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
  14282. *
  14283. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
  14284. * the flush policy configured before. This command basically disables the
  14285. * flush config set by the user.
  14286. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
  14287. * the flush policy to be immediate. All pending packets for the peer/TID are
  14288. * flushed when this command/policy is received.
  14289. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
  14290. * the flush policy to the end of TWT SP. All pending packets for the peer/TID
  14291. * are flushed when the end of TWT SP is reached.
  14292. */
  14293. enum qca_wlan_vendor_flush_pending_policy {
  14294. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
  14295. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
  14296. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
  14297. };
  14298. /**
  14299. * enum qca_wlan_vendor_attr_flush_pending - Attributes for
  14300. * flushing pending traffic in firmware.
  14301. *
  14302. * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
  14303. * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
  14304. * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
  14305. * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
  14306. * flush packets with access category. This is optional. See below.
  14307. * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
  14308. * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
  14309. * bit to 1 to act upon the TID. This is optional. Either this attribute or
  14310. * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
  14311. * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
  14312. * it is an error.
  14313. * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
  14314. * packets corresponding to the peer/TID provided. It is a u32 value,
  14315. * represented by %enum qca_wlan_vendor_flush_pending_policy. This
  14316. * value is honored only when TID mask is provided. This is not honored when AC
  14317. * mask is provided.
  14318. */
  14319. enum qca_wlan_vendor_attr_flush_pending {
  14320. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
  14321. QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
  14322. QCA_WLAN_VENDOR_ATTR_AC = 2,
  14323. QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
  14324. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
  14325. /* keep last */
  14326. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
  14327. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
  14328. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
  14329. };
  14330. /**
  14331. * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
  14332. * for) or drop existing PASN security association for the listed the
  14333. * peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
  14334. * to userspace.
  14335. *
  14336. * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
  14337. * devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
  14338. * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
  14339. * the driver to userspace to inform that the existing PASN keys of the
  14340. * peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
  14341. * not valid anymore.
  14342. */
  14343. enum qca_wlan_vendor_pasn_action {
  14344. QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
  14345. QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
  14346. };
  14347. /**
  14348. * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
  14349. * QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
  14350. *
  14351. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
  14352. * event from the driver to userspace and represents the local MAC address
  14353. * to be used for PASN handshake. When this attribute is present, userspace
  14354. * shall use the source address specified in this attribute by the driver
  14355. * for PASN handshake with peer device.
  14356. * This attribute is required in a command response from userspace to the
  14357. * driver and represents the MAC address that was used in PASN handshake
  14358. * with the peer device.
  14359. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
  14360. * peer device to which PASN handshake is requested in an event from the
  14361. * driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
  14362. * QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
  14363. * Indicates the MAC address of the peer device for which the keys are to
  14364. * be invalidated in an event from the driver to userspace when
  14365. * QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
  14366. * QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
  14367. * Indicates the MAC address of the peer device for which the status is
  14368. * being sent in a status report from userspace to the driver.
  14369. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
  14370. * in the event from the driver to userspace. When set, userspace is
  14371. * required to derive LTF key seed from KDK and set it to the driver.
  14372. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
  14373. * attribute is used in the command response from userspace to the driver.
  14374. * If present, it indicates the successful PASN handshake with the peer. If
  14375. * this flag is not present, it indicates that the PASN handshake with the
  14376. * peer device failed.
  14377. */
  14378. enum qca_wlan_vendor_attr_pasn_peer {
  14379. QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
  14380. QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
  14381. QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
  14382. QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
  14383. QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
  14384. /* keep last */
  14385. QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
  14386. QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
  14387. QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
  14388. };
  14389. /**
  14390. * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
  14391. * QCA_NL80211_VENDOR_SUBCMD_PASN command.
  14392. *
  14393. * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
  14394. * defined in enum qca_wlan_vendor_pasn_action and used only in an event
  14395. * from the driver to userspace.
  14396. * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
  14397. * details for each peer and used in both an event and a command response.
  14398. * The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
  14399. * defined in enum qca_wlan_vendor_attr_pasn_peer.
  14400. */
  14401. enum qca_wlan_vendor_attr_pasn {
  14402. QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
  14403. QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
  14404. QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
  14405. /* keep last */
  14406. QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
  14407. QCA_WLAN_VENDOR_ATTR_PASN_MAX =
  14408. QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
  14409. };
  14410. /**
  14411. * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
  14412. * the ranging security context derived from PASN for each peer. Used in
  14413. * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
  14414. *
  14415. * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
  14416. * context for the peer.
  14417. * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
  14418. * context for the peer.
  14419. */
  14420. enum qca_wlan_vendor_secure_ranging_ctx_action {
  14421. QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
  14422. QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
  14423. };
  14424. /**
  14425. * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
  14426. * used for deriving PASN keys to the driver. Used in
  14427. * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
  14428. * @QCA_WLAN_VENDOR_SHA_256: SHA-256
  14429. * @QCA_WLAN_VENDOR_SHA_384: SHA-384
  14430. */
  14431. enum qca_wlan_vendor_sha_type {
  14432. QCA_WLAN_VENDOR_SHA_256,
  14433. QCA_WLAN_VENDOR_SHA_384,
  14434. };
  14435. /**
  14436. * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
  14437. * to set security context for the PASN peer from userspace to the driver.
  14438. * Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
  14439. *
  14440. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
  14441. * values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
  14442. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
  14443. * was used during the PASN handshake.
  14444. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
  14445. * the peer device for which secure ranging context is being configured.
  14446. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
  14447. * hash algorithm to be used, possible values are defined in enum
  14448. * qca_wlan_vendor_sha_type.
  14449. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
  14450. * the temporal key generated from the PASN handshake. The length of this
  14451. * attribute is dependent on the value of
  14452. * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
  14453. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
  14454. * TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
  14455. * (e.g., 0x000FAC04).
  14456. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
  14457. * attribute, holds the LTF keyseed derived from KDK of PASN handshake.
  14458. * The length of this attribute is dependent on the value of
  14459. * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
  14460. *
  14461. */
  14462. enum qca_wlan_vendor_attr_secure_ranging_ctx {
  14463. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
  14464. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
  14465. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
  14466. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
  14467. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
  14468. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
  14469. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
  14470. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
  14471. /* keep last */
  14472. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
  14473. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
  14474. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
  14475. };
  14476. /**
  14477. * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used
  14478. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER
  14479. * nested attribute. The packets that match a filter will be replied with
  14480. * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY.
  14481. *
  14482. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4:
  14483. * u32 attribute. Destination IPv4 address in network byte order, the
  14484. * IPv4 packets with different address will be filtered out.
  14485. * This attribute is optional.
  14486. *
  14487. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC:
  14488. * Flag attribute. If it's present, indicates that
  14489. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast
  14490. * address; while if not, indicates that the address is a unicast/multicast
  14491. * address.
  14492. * This attribute is optional.
  14493. *
  14494. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6:
  14495. * NLA_BINARY attribute, length is 16 bytes.
  14496. * Destination IPv6 address in network byte order, the IPv6 packets
  14497. * with different destination address will be filtered out.
  14498. * This attribute is optional.
  14499. *
  14500. * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and
  14501. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured.
  14502. * Packets on both IPv4 and IPv6 will be processed if both are configured.
  14503. *
  14504. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT:
  14505. * u16 attribute. Destination UDP port, the packets with different destination
  14506. * UDP port will be filtered out.
  14507. * This attribute is mandatory.
  14508. *
  14509. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET:
  14510. * u32 attribute. Represents the offset (in UDP payload) of the data
  14511. * to be matched.
  14512. * This attribute is mandatory.
  14513. *
  14514. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA:
  14515. * NLA_BINARY attribute, the maximum allowed size is 16 bytes.
  14516. * Binary data that is compared bit-by-bit against the data (specified
  14517. * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP
  14518. * payload, the packets don't match will be filtered out.
  14519. * This attribute is mandatory.
  14520. */
  14521. enum qca_wlan_vendor_attr_coap_offload_filter {
  14522. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0,
  14523. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1,
  14524. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2,
  14525. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3,
  14526. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4,
  14527. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5,
  14528. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6,
  14529. /* keep last */
  14530. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST,
  14531. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX =
  14532. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1,
  14533. };
  14534. /**
  14535. * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used
  14536. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute.
  14537. *
  14538. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4:
  14539. * u32 attribute. Source address (in network byte order) for replying
  14540. * the matching broadcast/multicast IPv4 packets.
  14541. * This attribute is optional.
  14542. *
  14543. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6:
  14544. * NLA_BINARY attribute, length is 16 bytes.
  14545. * Source address (in network byte order) for replying the matching
  14546. * multicast IPv6 packets.
  14547. * This attribute is optional.
  14548. *
  14549. * For broadcast/multicast offload reply, one of
  14550. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and
  14551. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be
  14552. * configured according to version of the IP address(es) configured in
  14553. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER;
  14554. * while for unicast case, firmware will take the destination IP address
  14555. * in the received matching packet as the source address for replying.
  14556. *
  14557. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER:
  14558. * Nested attribute. Filter for the received UDP packets, only the matching
  14559. * packets will be replied and cached.
  14560. * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported
  14561. * attributes.
  14562. * This attribute is mandatory.
  14563. *
  14564. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG:
  14565. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  14566. * CoAP message (UDP payload) to be sent upon receiving matching packets.
  14567. * Firmware is responsible for adding any necessary protocol headers.
  14568. * This attribute is mandatory.
  14569. *
  14570. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME:
  14571. * u32 attribute. Expiration time in milliseconds of the cached CoAP messages.
  14572. * A cached message will be dropped by firmware if it's expired.
  14573. * This attribute is optional. A default value of 40000 will be used in the
  14574. * absence of it.
  14575. */
  14576. enum qca_wlan_vendor_attr_coap_offload_reply {
  14577. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0,
  14578. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1,
  14579. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2,
  14580. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3,
  14581. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4,
  14582. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5,
  14583. /* keep last */
  14584. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST,
  14585. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX =
  14586. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1,
  14587. };
  14588. /**
  14589. * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for
  14590. * CoAP message (UDP) transmitting on IPv4.
  14591. *
  14592. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR:
  14593. * u32 attribute. Source address (in network byte order) for transmitting
  14594. * packets on IPv4.
  14595. * This attribute is mandatory.
  14596. *
  14597. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT:
  14598. * u16 attribute. Source UDP port.
  14599. * This attribute is optional, a random port is taken if it's not present.
  14600. *
  14601. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR:
  14602. * u32 attribute. Destination IPv4 address (in network byte order).
  14603. * This attribute is mandatory.
  14604. *
  14605. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC:
  14606. * Flag attribute. If it's present, indicates that
  14607. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast
  14608. * address; while if not, indicates that the address is unicast/multicast
  14609. * address.
  14610. * This attribute is optional.
  14611. *
  14612. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT:
  14613. * u16 attribute. Destination UDP port.
  14614. * This attribute is mandatory.
  14615. */
  14616. enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 {
  14617. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0,
  14618. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1,
  14619. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2,
  14620. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3,
  14621. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4,
  14622. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5,
  14623. /* keep last */
  14624. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST,
  14625. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX =
  14626. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1,
  14627. };
  14628. /**
  14629. * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for
  14630. * CoAP message (UDP) transmitting on IPv6.
  14631. *
  14632. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR:
  14633. * NLA_BINARY attribute, length is 16 bytes.
  14634. * Source address (in network byte order) for transmitting packets on IPv6.
  14635. * This attribute is mandatory.
  14636. *
  14637. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT:
  14638. * u16 attribute. Source UDP port.
  14639. * This attribute is optional, a random port is taken if it's not present.
  14640. *
  14641. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR:
  14642. * NLA_BINARY attribute, length is 16 bytes.
  14643. * Destination IPv6 address (in network byte order).
  14644. * This attribute is mandatory.
  14645. *
  14646. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT:
  14647. * u16 attribute. Destination UDP port.
  14648. * This attribute is mandatory.
  14649. */
  14650. enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 {
  14651. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0,
  14652. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1,
  14653. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2,
  14654. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3,
  14655. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4,
  14656. /* keep last */
  14657. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST,
  14658. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX =
  14659. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1,
  14660. };
  14661. /**
  14662. * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used
  14663. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute.
  14664. *
  14665. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4:
  14666. * Nested attribute. The IPv4 source/destination address/port for offload
  14667. * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list
  14668. * of supported attributes.
  14669. * This attribute is optional.
  14670. *
  14671. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6:
  14672. * Nested attribute. The IPv6 source/destination address/port for offload
  14673. * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list
  14674. * of supported attributes.
  14675. * This attribute is optional.
  14676. *
  14677. * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and
  14678. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured.
  14679. * Firmware will transmit the packets on both IPv4 and IPv6 if both are
  14680. * configured.
  14681. *
  14682. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD:
  14683. * u32 attribute. Period in milliseconds for the periodic transmitting.
  14684. * This attribute is mandatory.
  14685. *
  14686. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG:
  14687. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  14688. * CoAP message (UDP payload) to be periodically transmitted. Firmware
  14689. * is responsible for adding any necessary protocol headers.
  14690. * This attribute is mandatory.
  14691. */
  14692. enum qca_wlan_vendor_attr_coap_offload_periodic_tx {
  14693. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0,
  14694. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1,
  14695. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2,
  14696. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3,
  14697. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4,
  14698. /* keep last */
  14699. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST,
  14700. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX =
  14701. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1,
  14702. };
  14703. /**
  14704. * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used
  14705. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute.
  14706. *
  14707. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS:
  14708. * u64 attribute. Received time (since system booted in microseconds) of
  14709. * the cached CoAP message.
  14710. * This attribute is mandatory.
  14711. *
  14712. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4:
  14713. * u32 attribute. Source IPv4 address (in network byte order) of the cached
  14714. * CoAP message.
  14715. * This attribute is optional.
  14716. *
  14717. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6:
  14718. * NLA_BINARY attribute, length is 16 bytes.
  14719. * Source IPv6 address (in network byte order) of the cached CoAP message.
  14720. * This attribute is optional.
  14721. *
  14722. * At most and at least one of
  14723. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and
  14724. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for
  14725. * an entry.
  14726. *
  14727. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG:
  14728. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  14729. * The cached CoAP message (UDP payload). If the actual message size is
  14730. * greater than the maximum size, it will be truncated and leaving only
  14731. * the first 1152 bytes.
  14732. * This attribute is mandatory.
  14733. */
  14734. enum qca_wlan_vendor_attr_coap_offload_cache_info {
  14735. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0,
  14736. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1,
  14737. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2,
  14738. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3,
  14739. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4,
  14740. /* keep last */
  14741. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST,
  14742. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX =
  14743. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1,
  14744. };
  14745. /**
  14746. * enum qca_wlan_vendor_coap_offload_action - Actions for
  14747. * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
  14748. *
  14749. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE:
  14750. * Enable CoAP offload reply.
  14751. * If it's enabled, firmware will start offload processing on each suspend
  14752. * and stop on each resume.
  14753. *
  14754. * Offload reply on match works as follows:
  14755. * Reply the packets that match the filter with the given CoAP
  14756. * message (with necessary protocol headers), increase the CoAP message
  14757. * ID in the given CoAP message by one for the next use after each successful
  14758. * transmission, and try to store the information of the received packet,
  14759. * including the received time, source IP address, and CoAP message (UDP
  14760. * payload).
  14761. *
  14762. * Firmware has a limit to the maximum stored entries, it takes the source IP
  14763. * address as the key of an entry, and keeps at most one entry for each key.
  14764. * A packet won't be stored if no entry for the same key is present and the
  14765. * total number of the existing unexpired entries reaches the maximum value.
  14766. *
  14767. * If any configured item is changed, user space should disable offload reply
  14768. * first and then issue a new enable request.
  14769. *
  14770. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE:
  14771. * Disable CoAP offload reply and return information of any cached CoAP
  14772. * messages.
  14773. *
  14774. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE:
  14775. * Enable CoAP offload periodic transmitting.
  14776. * If it's enabled, firmware will start offload periodic transmitting on
  14777. * each suspend and stop on each resume.
  14778. *
  14779. * Offload periodic transmitting works as follows:
  14780. * Send the given CoAP message (with necessary protocol headers) with the given
  14781. * source/destination IP address/UDP port periodically based on the given
  14782. * period and increase the CoAP message ID in the given CoAP message by one
  14783. * for the next use after each successful transmission.
  14784. *
  14785. * If any configured item is changed, user space should disable offload
  14786. * periodic transmitting first and then issue a new enable request.
  14787. *
  14788. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE:
  14789. * Disable CoAP offload periodic transmitting.
  14790. *
  14791. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET:
  14792. * Get information of the CoAP messages cached during offload reply
  14793. * processing. The cache is cleared after retrieval.
  14794. */
  14795. enum qca_wlan_vendor_coap_offload_action {
  14796. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0,
  14797. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1,
  14798. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2,
  14799. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3,
  14800. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4,
  14801. };
  14802. /**
  14803. * enum qca_wlan_vendor_attr_coap_offload - Used by the
  14804. * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
  14805. * This is used to set parameters for CoAP offload processing, or get
  14806. * cached CoAP messages from firmware.
  14807. *
  14808. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION:
  14809. * u32 attribute. Action to take in this vendor command.
  14810. * See enum qca_wlan_vendor_coap_offload_action for supported actions.
  14811. * This attribute is mandatory.
  14812. *
  14813. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID:
  14814. * u32 attribute. Represents the Request ID for the CoAP offload
  14815. * configuration, which can help to identify the user entity starting
  14816. * the CoAP offload processing and accordingly stop the respective
  14817. * ones/get the cached CoAP messages with the matching ID.
  14818. * This attribute is mandatory.
  14819. *
  14820. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY:
  14821. * Nested attribute. Parameters for offload reply.
  14822. * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of
  14823. * supported attributes.
  14824. * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
  14825. * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored
  14826. * otherwise.
  14827. *
  14828. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX:
  14829. * Nested attribute. Parameters for offload periodic transmitting.
  14830. * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of
  14831. * supported attributes.
  14832. * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is
  14833. * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored
  14834. * otherwise.
  14835. *
  14836. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES:
  14837. * Array of nested attributes. Information of the cached CoAP messages,
  14838. * where each entry is taken from
  14839. * enum qca_wlan_vendor_attr_coap_offload_cache_info.
  14840. * This attribute is used for reporting the cached CoAP messages
  14841. * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
  14842. * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or
  14843. * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no
  14844. * cached item if this attribute is not present.
  14845. */
  14846. enum qca_wlan_vendor_attr_coap_offload {
  14847. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0,
  14848. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1,
  14849. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2,
  14850. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3,
  14851. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4,
  14852. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5,
  14853. /* keep last */
  14854. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST,
  14855. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX =
  14856. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1,
  14857. };
  14858. /**
  14859. * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command
  14860. * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification
  14861. * Service (SCS) rule.
  14862. *
  14863. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute.
  14864. * Represents the unique id of SCS rule to be configured.
  14865. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute.
  14866. * Represents the request type: add, remove, or change.
  14867. * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request
  14868. * Type definitions).
  14869. *
  14870. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute
  14871. * in case of add/change request type.
  14872. * Represents the output traffic identifier (TID) to be assigned to the flow
  14873. * matching the rule.
  14874. *
  14875. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8
  14876. * attribute in case of add/change request type.
  14877. * Represents type of classifier parameters present in SCS rule.
  14878. * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type).
  14879. * Only classifier types 4 and 10 are supported for SCS.
  14880. *
  14881. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute
  14882. * in case of add/change request type when classifier type is TCLAS4.
  14883. * Represents the IP version (4: IPv4, 6: IPv6) of the rule.
  14884. *
  14885. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional
  14886. * attribute in case of add/change request type when classifier type is TCLAS4
  14887. * and version attribute is IPv4.
  14888. * Represents the source IPv4 address in the rule which is to be compared
  14889. * against the source IP address in the IPv4 header.
  14890. *
  14891. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional
  14892. * attribute in case of add/change request type when classifier type is TCLAS4
  14893. * and version attribute is IPv4.
  14894. * Represents the destination IPv4 address in the rule which is to be compared
  14895. * against the destination IP address in the IPv4 header.
  14896. *
  14897. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional
  14898. * attribute in case of add/change request type when classifier type is TCLAS4
  14899. * and version attribute is IPv6.
  14900. * Represents the source IPv6 address in the rule which is to be compared
  14901. * against the source IP address in the IPv6 header.
  14902. *
  14903. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional
  14904. * attribute in case of add/change request type when classifier type is TCLAS4
  14905. * and version attribute is IPv6.
  14906. * Represents the destination IPv6 address in the rule which is to be compared
  14907. * against the destination IP address in the IPv6 header.
  14908. *
  14909. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute
  14910. * in case of add/change request type when classifier type is TCLAS4.
  14911. * Represents the source port number in the rule which is to be compared against
  14912. * the source port number in the protocol header.
  14913. *
  14914. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute
  14915. * in case of add/change request type when classifier type is TCLAS4.
  14916. * Represents the destination port number in the rule which is to be compared
  14917. * against the destination port number in the protocol header.
  14918. *
  14919. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute
  14920. * in case of add/change request type when classifier type is TCLAS4.
  14921. * Represents the DSCP value in the rule which is to be compared against the
  14922. * DSCP field present in the IP header.
  14923. *
  14924. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8
  14925. * attribute in case of add/change request type when classifier type is TCLAS4.
  14926. * Represents the protocol/next header in the rule which is to be compared
  14927. * against the protocol/next header field present in the IPv4/IPv6 header.
  14928. *
  14929. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional
  14930. * attribute of size 3 bytes present in case of add/change request type
  14931. * when classifier type is TCLAS4 and version is IPv6.
  14932. * Represents the flow label value in the rule which is to be compared against
  14933. * the flow label field present in the IPv6 header.
  14934. *
  14935. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8
  14936. * attribute in case of add/change request type when classifier type is TCLAS10.
  14937. * Represents the protocol instance number in the rule.
  14938. *
  14939. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8
  14940. * attribute in case of add/change request type when classifier type is TCLAS10.
  14941. * Represents the protocol/next header in the rule which is to be compared
  14942. * against the protocol/next header field present in the IPv4/IPv6 header.
  14943. *
  14944. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional
  14945. * attribute of variable length present when request type is add/change and
  14946. * classifier type is TCLAS10.
  14947. * Represents the mask to be used for masking the header contents of the header
  14948. * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER
  14949. * attribute.
  14950. *
  14951. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional
  14952. * attribute of variable length present when request type is add/change and
  14953. * classifier type is TCLAS10.
  14954. * Represents the value to be compared against after masking the header contents
  14955. * of the header specified by the
  14956. * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the
  14957. * filter mask specified by the
  14958. * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute.
  14959. *
  14960. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16
  14961. * attribute.
  14962. * Represents the service class id of the configured SCS rule.
  14963. *
  14964. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR: Optional 6 bytes
  14965. * MAC address.
  14966. * Represents the destination MAC address in the rule.
  14967. *
  14968. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX: Optional u32 attribute
  14969. * Represents the netdevice interface index in the rule.
  14970. */
  14971. enum qca_wlan_vendor_attr_scs_rule_config {
  14972. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0,
  14973. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1,
  14974. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2,
  14975. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3,
  14976. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4,
  14977. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5,
  14978. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6,
  14979. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7,
  14980. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8,
  14981. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9,
  14982. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10,
  14983. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11,
  14984. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12,
  14985. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13,
  14986. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14,
  14987. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15,
  14988. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16,
  14989. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17,
  14990. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18,
  14991. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19,
  14992. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR = 20,
  14993. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX = 21,
  14994. /* Keep last */
  14995. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST,
  14996. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX =
  14997. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1,
  14998. };
  14999. /**
  15000. * enum qca_wlan_vendor_sar_version - This describes the current SAR version
  15001. * used in the firmware.
  15002. *
  15003. * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR.
  15004. * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits.
  15005. *
  15006. * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2,
  15007. * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for
  15008. * each CTL group. So user can select up to 6 SAR indexes from the current CTL
  15009. * groups.
  15010. *
  15011. * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3,
  15012. * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each
  15013. * CTL group but user can choose up to 3 SAR set index only, as the top half
  15014. * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of
  15015. * the SAR index (3 to 5) is used for DBS mode.
  15016. *
  15017. * @QCA_WLAN_VENDOR_SAR_VERSION_4: The firmware supports SAR version 4,
  15018. * known as SAR Smart Transmit (STX) mode. STX is time averaging algorithmic
  15019. * for power limit computation in collaboration with WWAN.
  15020. * In STX mode, firmware has 41 indexes and there is no ctl grouping uses.
  15021. *
  15022. * @QCA_WLAN_VENDOR_SAR_VERSION_5: The firmware supports SAR version 5,
  15023. * known as TAS (Time Averaging SAR) mode. In TAS mode, as name implies
  15024. * instead of fixed static SAR power limit firmware uses time averaging
  15025. * to adjust the SAR limit dynamically. It is wlan soc standalone mechanism.
  15026. * In this mode firmware has up to 43 indexes.
  15027. */
  15028. enum qca_wlan_vendor_sar_version {
  15029. QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0,
  15030. QCA_WLAN_VENDOR_SAR_VERSION_1 = 1,
  15031. QCA_WLAN_VENDOR_SAR_VERSION_2 = 2,
  15032. QCA_WLAN_VENDOR_SAR_VERSION_3 = 3,
  15033. QCA_WLAN_VENDOR_SAR_VERSION_4 = 4,
  15034. QCA_WLAN_VENDOR_SAR_VERSION_5 = 5,
  15035. };
  15036. /**
  15037. * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether
  15038. * CTL grouping is enabled or disabled in the firmware.
  15039. *
  15040. * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping
  15041. * is enabled in firmware.
  15042. *
  15043. * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping
  15044. * is disabled in firmware.
  15045. *
  15046. */
  15047. enum qca_wlan_vendor_sar_ctl_group_state {
  15048. QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0,
  15049. QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1,
  15050. QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2,
  15051. };
  15052. /**
  15053. * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command
  15054. * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities
  15055. * supported by the firmware.
  15056. * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION:
  15057. * u32 attribute. This field describes current SAR version supported by the
  15058. * firmware.
  15059. * See enum qca_wlan_vendor_sar_version for more information.
  15060. * This attribute is mandatory.
  15061. * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE:
  15062. * u32 attribute. This field describes whether CTL groups are enabled
  15063. * or disabled in the firmware.
  15064. * See enum qca_wlan_vendor_sar_ctl_group_state for more information.
  15065. * This attribute is optional.
  15066. */
  15067. enum qca_wlan_vendor_attr_sar_capability {
  15068. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0,
  15069. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1,
  15070. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2,
  15071. /* Keep last */
  15072. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST,
  15073. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX =
  15074. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1,
  15075. };
  15076. /**
  15077. * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics.
  15078. * These statistics are sent from the driver in a response when userspace
  15079. * queries to get the statistics using the operation
  15080. * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset
  15081. * by the driver when the SR feature is enabled, when the driver receives
  15082. * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected.
  15083. *
  15084. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
  15085. * Mandatory only when non-SRG is supported by the AP and optional otherwise.
  15086. * This represents the number of non-SRG TX opportunities.
  15087. *
  15088. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
  15089. * Mandatory only when non-SRG is supported by the AP and optional otherwise.
  15090. * This represents the number of non-SRG PPDUs tried to transmit.
  15091. *
  15092. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
  15093. * Mandatory only when non-SRG is supported by the AP and optional otherwise.
  15094. * This represents the number of non-SRG PPDUs successfully transmitted.
  15095. *
  15096. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
  15097. * Mandatory only when SRG is supported by the AP and optional otherwise.
  15098. * This represents the number of SRG TX opportunities.
  15099. *
  15100. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
  15101. * Mandatory only when SRG is supported by the AP and optional otherwise.
  15102. * This represents the number of SRG PPDUs tried to transmit.
  15103. *
  15104. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
  15105. * Mandatory only when SRG is supported by the AP and optional otherwise.
  15106. * This represents the number of SRG PPDUs successfully transmitted.
  15107. */
  15108. enum qca_wlan_vendor_attr_sr_stats {
  15109. QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0,
  15110. QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1,
  15111. QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2,
  15112. QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3,
  15113. QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4,
  15114. QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5,
  15115. QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6,
  15116. /* Keep last */
  15117. QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST,
  15118. QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX =
  15119. QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1,
  15120. };
  15121. /**
  15122. * enum qca_wlan_sr_reason_code - Defines the different reason codes used in
  15123. * Spatial Reuse feature.
  15124. *
  15125. * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to
  15126. * roaming to an AP that doesn't support/supports SR feature, respectively.
  15127. *
  15128. * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due
  15129. * to change in concurrent interfaces that are supported by the driver.
  15130. */
  15131. enum qca_wlan_sr_reason_code {
  15132. QCA_WLAN_SR_REASON_CODE_ROAMING = 0,
  15133. QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1,
  15134. };
  15135. /**
  15136. * enum qca_wlan_sr_operation - Defines the different types of SR operations.
  15137. * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION.
  15138. *
  15139. * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the
  15140. * driver to enable the Spatial Reuse feature. Attributes
  15141. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
  15142. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this
  15143. * operation.
  15144. *
  15145. * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the
  15146. * driver to disable the Spatial Reuse feature.
  15147. *
  15148. * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an
  15149. * asynchronous event sent to userspace when the SR feature is disabled.
  15150. * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE
  15151. * and sent along with the asynchronous event.
  15152. *
  15153. * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an
  15154. * asynchronous event when the SR feature is enabled again after the SR feature
  15155. * was suspended by the driver earlier. The enable reason is
  15156. * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are
  15157. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
  15158. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD.
  15159. *
  15160. * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is
  15161. * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial
  15162. * reuse transmissions. Userspace sends this operation to the driver.
  15163. * The driver/firmware upon receiving this operation shall prohibit PSR-based
  15164. * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
  15165. *
  15166. * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is
  15167. * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial
  15168. * reuse transmissions. Userspace sends this operation to the driver.
  15169. * The driver/firmware upon receiving this operation shall allow PSR-based
  15170. * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
  15171. *
  15172. * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the
  15173. * driver to get the SR statistics and the driver sends a synchronous response
  15174. * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the
  15175. * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS.
  15176. *
  15177. * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the
  15178. * driver to clear the SR statistics and upon receiving this operation
  15179. * the driver/firmware shall clear the SR statistics.
  15180. *
  15181. * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the
  15182. * driver to get the SR parameters and the driver sends the synchronous response
  15183. * with the following required attributes:
  15184. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
  15185. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
  15186. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
  15187. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
  15188. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
  15189. *
  15190. * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an
  15191. * asynchronous event to userspace to update any changes in SR parameters.
  15192. * The following attributes are used with this operation:
  15193. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
  15194. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
  15195. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
  15196. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
  15197. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
  15198. */
  15199. enum qca_wlan_sr_operation {
  15200. QCA_WLAN_SR_OPERATION_SR_ENABLE = 0,
  15201. QCA_WLAN_SR_OPERATION_SR_DISABLE = 1,
  15202. QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2,
  15203. QCA_WLAN_SR_OPERATION_SR_RESUME = 3,
  15204. QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4,
  15205. QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5,
  15206. QCA_WLAN_SR_OPERATION_GET_STATS = 6,
  15207. QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7,
  15208. QCA_WLAN_SR_OPERATION_GET_PARAMS = 8,
  15209. QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9,
  15210. };
  15211. /**
  15212. * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration
  15213. * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS.
  15214. *
  15215. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute.
  15216. * This attribute is optionally set in response to
  15217. * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to
  15218. * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std
  15219. * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more
  15220. * about HESIGA_Spatial_reuse_value15_allowed.
  15221. *
  15222. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute.
  15223. * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS
  15224. * operation. This indicates whether non-SRG OBSS PD SR transmissions are
  15225. * allowed or not at non-AP STAs that are associated with the AP. If present
  15226. * non-SRG OBSS PD SR transmissions are not allowed else are allowed.
  15227. *
  15228. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8
  15229. * attribute. This attribute is used in response to
  15230. * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
  15231. * Min Offset field which contains an unsigned integer that is added to -82 dBm
  15232. * to generate the value of the SRG OBSS PD Min parameter.
  15233. *
  15234. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8
  15235. * attribute. This attribute is used in response to
  15236. * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
  15237. * Max Offset field which contains an unsigned integer that is added to -82 dBm
  15238. * to generate the value of the SRG OBSS PD Max parameter.
  15239. *
  15240. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8
  15241. * attribute. This attribute is used in response to
  15242. * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS
  15243. * PD Max Offset field which contains an unsigned integer that is added to -82
  15244. * dBm to generate the value of the Non-SRG OBSS PD Max parameter.
  15245. *
  15246. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm).
  15247. * Userspace optionally sends this attribute with
  15248. * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
  15249. * preferred SRG PD threshold. The driver shall send this attribute to
  15250. * userspace in SR resume event to indicate the PD threshold being used for SR.
  15251. * When there is change in SRG PD threshold (for example, due to roaming, etc.)
  15252. * the driver shall indicate the userspace the newly configured SRG PD threshold
  15253. * using an asynchronous event.
  15254. *
  15255. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm).
  15256. * Userspace optionally sends this attribute with
  15257. * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
  15258. * preferred non-SRG PD threshold. The driver shall send this attribute to
  15259. * userspace in SR resume event to indicate the PD threshold being used for SR.
  15260. * When there is change in non-SRG PD threshold (for example, due to roaming,
  15261. * etc.) the driver shall indicate the userspace the newly configured non-SRG PD
  15262. * threshold using an asynchronous event.
  15263. *
  15264. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible
  15265. * values are defined in enum qca_wlan_sr_reason_code. This
  15266. * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and
  15267. * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations.
  15268. */
  15269. enum qca_wlan_vendor_attr_sr_params {
  15270. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0,
  15271. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1,
  15272. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2,
  15273. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3,
  15274. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4,
  15275. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5,
  15276. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6,
  15277. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7,
  15278. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8,
  15279. /* keep last */
  15280. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST,
  15281. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX =
  15282. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1,
  15283. };
  15284. /**
  15285. * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor
  15286. * command QCA_NL80211_VENDOR_SUBCMD_SR.
  15287. *
  15288. * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests
  15289. * from userspace to the driver. Possible values are defined in enum
  15290. * qca_wlan_sr_operation.
  15291. *
  15292. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR
  15293. * configuration parameters. The possible attributes inside this attribute are
  15294. * defined in enum qca_wlan_vendor_attr_sr_params.
  15295. * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
  15296. * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and
  15297. * also in response from the driver to userspace when the response is sent for
  15298. * %QCA_WLAN_SR_OPERATION_GET_PARAMS.
  15299. * The driver uses this attribute in asynchronous events in which the operation
  15300. * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME,
  15301. * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS.
  15302. *
  15303. * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR
  15304. * statistics. These attributes used inside this are defined in enum
  15305. * qca_wlan_vendor_attr_sr_stats.
  15306. * This attribute is used in response from the driver to a command in which
  15307. * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
  15308. * %QCA_WLAN_SR_OPERATION_GET_STATS.
  15309. */
  15310. enum qca_wlan_vendor_attr_sr {
  15311. QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0,
  15312. QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1,
  15313. QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2,
  15314. QCA_WLAN_VENDOR_ATTR_SR_STATS = 3,
  15315. /* Keep last */
  15316. QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST,
  15317. QCA_WLAN_VENDOR_ATTR_SR_MAX =
  15318. QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1,
  15319. };
  15320. /**
  15321. * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes
  15322. * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand.
  15323. *
  15324. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address
  15325. * used by the peer on the link that corresponds to the link used for sending
  15326. * the event notification.
  15327. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte
  15328. * MLD MAC address of the peer.
  15329. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute,
  15330. * used to pass ifindex of the primary netdev.
  15331. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX: u32 attribute,
  15332. * used to pass ifindex of the MLD netdev.
  15333. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS: u8 attribute,
  15334. * used to indicate the number of links that the non-AP MLD negotiated to be
  15335. * used in the ML connection.
  15336. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO: Nested
  15337. * attribute, contains information regarding links of the non-AP MLD.
  15338. * User applications need to know all the links of a non-AP MLD that are
  15339. * participating in the ML association. The possible attributes inside this
  15340. * attribute are defined in enum qca_wlan_vendor_attr_mlo_link_info.
  15341. */
  15342. enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event {
  15343. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0,
  15344. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1,
  15345. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2,
  15346. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3,
  15347. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX = 4,
  15348. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS = 5,
  15349. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO = 6,
  15350. /* keep last */
  15351. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST,
  15352. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX =
  15353. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1,
  15354. };
  15355. /**
  15356. * enum qca_wlan_vendor_attr_mlo_link_info - Defines attributes for
  15357. * non-AP MLD link parameters used by the attribute
  15358. * %QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO.
  15359. *
  15360. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX: u32 attribute, used
  15361. * to pass the netdev ifindex of the non-AP MLD link.
  15362. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR: 6 byte MAC address of
  15363. * the non-AP MLD link.
  15364. */
  15365. enum qca_wlan_vendor_attr_mlo_link_info {
  15366. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_INVALID = 0,
  15367. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX = 1,
  15368. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR = 2,
  15369. /* keep last */
  15370. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST,
  15371. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MAX =
  15372. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST - 1,
  15373. };
  15374. /**
  15375. * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with
  15376. * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and
  15377. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range
  15378. * and PSD information.
  15379. *
  15380. * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is
  15381. * u32. This attribute is used to indicate the start of the queried frequency
  15382. * range in MHz.
  15383. *
  15384. * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32.
  15385. * This attribute is used to indicate the end of the queried frequency range
  15386. * in MHz.
  15387. *
  15388. * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32.
  15389. * This attribute will contain the PSD information for a single range as
  15390. * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and
  15391. * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes.
  15392. *
  15393. * The PSD power info (dBm/MHz) from user space should be multiplied
  15394. * by a factor of 100 when sending to the driver to preserve granularity
  15395. * up to 2 decimal places.
  15396. * Example:
  15397. * PSD power value: 10.21 dBm/MHz
  15398. * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021.
  15399. *
  15400. * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only
  15401. * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with
  15402. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when
  15403. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15404. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
  15405. *
  15406. * The following set of attributes will be used to exchange frequency and
  15407. * corresponding PSD information for AFC between the user space and the driver.
  15408. */
  15409. enum qca_wlan_vendor_attr_afc_freq_psd_info {
  15410. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0,
  15411. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1,
  15412. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2,
  15413. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3,
  15414. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST,
  15415. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX =
  15416. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1,
  15417. };
  15418. /**
  15419. * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with
  15420. * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the
  15421. * channel list and corresponding EIRP information.
  15422. *
  15423. * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8.
  15424. * This attribute is used to indicate queried channel from
  15425. * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO.
  15426. *
  15427. * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32.
  15428. * This attribute is used to configure the EIRP power info corresponding
  15429. * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM.
  15430. * The EIRP power info(dBm) from user space should be multiplied
  15431. * by a factor of 100 when sending to Driver to preserve granularity up to
  15432. * 2 decimal places.
  15433. * Example:
  15434. * EIRP power value: 34.23 dBm
  15435. * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423.
  15436. *
  15437. * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with
  15438. * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
  15439. * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when
  15440. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15441. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE:
  15442. *
  15443. * The following set of attributes will be used to exchange Channel and
  15444. * corresponding EIRP information for AFC between the user space and Driver.
  15445. */
  15446. enum qca_wlan_vendor_attr_afc_chan_eirp_info {
  15447. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0,
  15448. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1,
  15449. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2,
  15450. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST,
  15451. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX =
  15452. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1,
  15453. };
  15454. /**
  15455. * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested
  15456. * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
  15457. * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class,
  15458. * channel, and EIRP related information.
  15459. *
  15460. * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8.
  15461. * This attribute is used to indicate the operating class, as listed under
  15462. * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list.
  15463. *
  15464. * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes
  15465. * for updating the channel number and EIRP power information.
  15466. * It uses the attributes defined in
  15467. * enum qca_wlan_vendor_attr_afc_chan_eirp_info.
  15468. *
  15469. * Operating class information packing format for
  15470. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
  15471. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15472. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY.
  15473. *
  15474. * m - Total number of operating classes.
  15475. * n, j - Number of queried channels for the corresponding operating class.
  15476. *
  15477. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
  15478. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
  15479. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  15480. * .....
  15481. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
  15482. * ....
  15483. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
  15484. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
  15485. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  15486. * ....
  15487. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
  15488. *
  15489. * Operating class information packing format for
  15490. * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
  15491. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
  15492. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15493. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
  15494. *
  15495. * m - Total number of operating classes.
  15496. * n, j - Number of channels for the corresponding operating class.
  15497. *
  15498. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
  15499. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
  15500. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  15501. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
  15502. * .....
  15503. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
  15504. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1]
  15505. * ....
  15506. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
  15507. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
  15508. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  15509. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
  15510. * ....
  15511. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
  15512. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1]
  15513. *
  15514. * The following set of attributes will be used to exchange operating class
  15515. * information for AFC between the user space and the driver.
  15516. */
  15517. enum qca_wlan_vendor_attr_afc_opclass_info {
  15518. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0,
  15519. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1,
  15520. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2,
  15521. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST,
  15522. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX =
  15523. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1,
  15524. };
  15525. /**
  15526. * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type.
  15527. * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute.
  15528. *
  15529. * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the
  15530. * driver to userspace in order to query the new AFC power values.
  15531. *
  15532. * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update
  15533. * complete event will be sent from the driver to userspace to indicate
  15534. * processing of the AFC response.
  15535. *
  15536. * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event
  15537. * will be sent from the driver to userspace to indicate last received
  15538. * AFC response data has been cleared on the AP due to invalid data
  15539. * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE.
  15540. *
  15541. * The following enum defines the different event types that will be
  15542. * used by the driver to help trigger corresponding AFC functionality in user
  15543. * space.
  15544. */
  15545. enum qca_wlan_vendor_afc_event_type {
  15546. QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0,
  15547. QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1,
  15548. QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2,
  15549. };
  15550. /**
  15551. * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP
  15552. * deployment type.
  15553. * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute.
  15554. *
  15555. * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment.
  15556. *
  15557. * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment.
  15558. *
  15559. * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment.
  15560. *
  15561. * The following enum defines different deployment modes that the AP might
  15562. * come up in. This information will be essential to retrieve deployment-type
  15563. * specific SP power values for AFC operation.
  15564. */
  15565. enum qca_wlan_vendor_afc_ap_deployment_type {
  15566. QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0,
  15567. QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1,
  15568. QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2,
  15569. };
  15570. /**
  15571. * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to
  15572. * indicate AFC response status.
  15573. * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute.
  15574. *
  15575. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success
  15576. *
  15577. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication
  15578. * command was not received within the expected time of the AFC expiry event
  15579. * being triggered.
  15580. *
  15581. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data
  15582. * parsing error by the driver.
  15583. *
  15584. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local
  15585. * error.
  15586. *
  15587. * The following enum defines the status codes that the driver will use to
  15588. * indicate whether the AFC data is valid or not.
  15589. */
  15590. enum qca_wlan_vendor_afc_evt_status_code {
  15591. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0,
  15592. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1,
  15593. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2,
  15594. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3,
  15595. };
  15596. /**
  15597. * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with
  15598. * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will
  15599. * support sending only a single request to the user space at a time.
  15600. *
  15601. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute.
  15602. * Used with event to notify the type of AFC event received.
  15603. * Valid values are defined in enum qca_wlan_vendor_afc_event_type.
  15604. *
  15605. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when
  15606. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
  15607. * otherwise unused.
  15608. *
  15609. * This attribute is used to indicate the AP deployment type in the AFC request.
  15610. * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type.
  15611. *
  15612. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute.
  15613. * Unique request identifier generated by the AFC client for every
  15614. * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID.
  15615. * The user space application is responsible for ensuring no duplicate values
  15616. * are in-flight with the server, e.g., by delaying a request, should the same
  15617. * value be received from different radios in parallel.
  15618. *
  15619. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional.
  15620. * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15621. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused.
  15622. *
  15623. * This attribute indicates the AFC spec version information. This will
  15624. * indicate the AFC version AFC client must use to query the AFC data.
  15625. * Bits 15:0 - Minor version
  15626. * Bits 31:16 - Major version
  15627. *
  15628. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when
  15629. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
  15630. * otherwise unused.
  15631. * This attribute indicates the minimum desired power (in dBm) for
  15632. * the queried spectrum.
  15633. *
  15634. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when
  15635. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15636. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15637. *
  15638. * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code.
  15639. * This attribute is used to indicate if there were any errors parsing the
  15640. * AFC response.
  15641. *
  15642. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required
  15643. * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15644. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15645. *
  15646. * This attribute indicates the AFC response code. The AFC response codes are
  15647. * in the following categories:
  15648. * -1: General Failure.
  15649. * 0: Success.
  15650. * 100 - 199: General errors related to protocol.
  15651. * 300 - 399: Error events specific to message exchange
  15652. * for the Available Spectrum Inquiry.
  15653. *
  15654. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when
  15655. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15656. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15657. *
  15658. * This attribute indicates the date until which the current response is
  15659. * valid for in UTC format.
  15660. * Date format: bits 7:0 - DD (Day 1-31)
  15661. * bits 15:8 - MM (Month 1-12)
  15662. * bits 31:16 - YYYY (Year)
  15663. *
  15664. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when
  15665. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15666. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15667. *
  15668. * This attribute indicates the time until which the current response is
  15669. * valid for in UTC format.
  15670. * Time format: bits 7:0 - SS (Seconds 0-59)
  15671. * bits 15:8 - MM (Minutes 0-59)
  15672. * bits 23:16 - HH (Hours 0-23)
  15673. * bits 31:24 - Reserved
  15674. *
  15675. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes
  15676. * for updating the list of frequency ranges to be queried.
  15677. * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15678. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
  15679. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15680. * It uses the attributes defined in
  15681. * enum qca_wlan_vendor_attr_afc_freq_psd_info.
  15682. *
  15683. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes
  15684. * for updating the list of operating classes and corresponding channels to be
  15685. * queried.
  15686. * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15687. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
  15688. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15689. * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info.
  15690. */
  15691. enum qca_wlan_vendor_attr_afc_event {
  15692. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0,
  15693. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1,
  15694. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2,
  15695. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3,
  15696. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4,
  15697. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5,
  15698. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6,
  15699. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7,
  15700. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8,
  15701. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9,
  15702. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10,
  15703. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11,
  15704. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST,
  15705. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX =
  15706. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1,
  15707. };
  15708. /**
  15709. * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used
  15710. * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes
  15711. * will support sending only a single AFC response to the driver at a time.
  15712. *
  15713. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute.
  15714. * This attribute will be used to send a single Spectrum Inquiry response object
  15715. * from the 'availableSpectrumInquiryResponses' array object from the response
  15716. * JSON.
  15717. *
  15718. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute.
  15719. *
  15720. * This attribute indicates the period (in seconds) for which the response
  15721. * data received is valid for.
  15722. *
  15723. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute.
  15724. *
  15725. * This attribute indicates the request ID for which the corresponding
  15726. * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID.
  15727. *
  15728. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute.
  15729. *
  15730. * This attribute indicates the date until which the current response is
  15731. * valid for in UTC format.
  15732. * Date format: bits 7:0 - DD (Day 1-31)
  15733. * bits 15:8 - MM (Month 1-12)
  15734. * bits 31:16 - YYYY (Year)
  15735. *
  15736. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME: Required u32 attribute.
  15737. *
  15738. * This attribute indicates the time until which the current response is
  15739. * valid for in UTC format.
  15740. * Time format: bits 7:0 - SS (Seconds 0-59)
  15741. * bits 15:8 - MM (Minutes 0-59)
  15742. * bits 23:16 - HH (Hours 0-23)
  15743. * bits 31:24 - Reserved
  15744. *
  15745. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute.
  15746. *
  15747. * This attribute indicates the AFC response code. The AFC response codes are
  15748. * in the following categories:
  15749. * -1: General Failure.
  15750. * 0: Success.
  15751. * 100 - 199: General errors related to protocol.
  15752. * 300 - 399: Error events specific to message exchange
  15753. * for the Available Spectrum Inquiry.
  15754. *
  15755. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes
  15756. * for PSD info of all the queried frequency ranges. It uses the attributes
  15757. * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute.
  15758. *
  15759. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested
  15760. * attributes for EIRP info of all queried operating class/channels. It uses
  15761. * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and
  15762. * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute.
  15763. *
  15764. */
  15765. enum qca_wlan_vendor_attr_afc_response {
  15766. QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0,
  15767. QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1,
  15768. QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2,
  15769. QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3,
  15770. QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4,
  15771. QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5,
  15772. QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6,
  15773. QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7,
  15774. QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8,
  15775. QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST,
  15776. QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX =
  15777. QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1,
  15778. };
  15779. /**
  15780. * enum qca_wlan_dozed_ap_state - Doze states for AP interface
  15781. *
  15782. * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface.
  15783. *
  15784. * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts
  15785. * beaconing at higher beacon interval with Rx disabled.
  15786. */
  15787. enum qca_wlan_dozed_ap_state {
  15788. QCA_WLAN_DOZED_AP_DISABLE = 0,
  15789. QCA_WLAN_DOZED_AP_ENABLE = 1,
  15790. };
  15791. /**
  15792. * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command
  15793. * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode
  15794. * configuration.
  15795. *
  15796. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute.
  15797. * Configures the doze state for an AP interface. Possible values are defined
  15798. * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event
  15799. * gets triggered asynchronously to provide updated AP interface configuration.
  15800. *
  15801. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by
  15802. * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP
  15803. * command, which is used later to maintain synchronization between commands
  15804. * and asynchronous events.
  15805. *
  15806. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute.
  15807. * Used in event to indicate the next TBTT TSF timer value after applying the
  15808. * doze mode configuration. Next TBTT TSF is the time at which the AP sends
  15809. * the first beacon after entering or exiting dozed mode.
  15810. *
  15811. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute.
  15812. * Used with event to inform the periodicity of beacon transmission that would
  15813. * be skipped at all TBTTs in between.
  15814. */
  15815. enum qca_wlan_vendor_attr_dozed_ap {
  15816. QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0,
  15817. QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1,
  15818. QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2,
  15819. QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3,
  15820. QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4,
  15821. /* Keep last */
  15822. QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST,
  15823. QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX =
  15824. QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1,
  15825. };
  15826. /**
  15827. * enum qca_wlan_vendor_monitor_mode_status - Represents the status codes
  15828. * used with QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE.
  15829. * @QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING: Used to indicate no
  15830. * capture running status.
  15831. * @QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING: Used to indicate
  15832. * capture running status.
  15833. **/
  15834. enum qca_wlan_vendor_monitor_mode_status {
  15835. QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING = 0,
  15836. QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING = 1,
  15837. };
  15838. /**
  15839. * enum qca_wlan_vendor_attr_get_monitor_mode - Used by the
  15840. * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE to report
  15841. * information regarding the local packet capture over the monitor mode.
  15842. *
  15843. * @QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS: u32 attribute. This attribute
  15844. * represents the status of the start capture commands. The values used with
  15845. * this attribute are defined in enum qca_wlan_vendor_monitor_mode_status. This
  15846. * is returned by the driver in the response to the command.
  15847. */
  15848. enum qca_wlan_vendor_attr_get_monitor_mode {
  15849. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_INVALID = 0,
  15850. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS = 1,
  15851. /* Keep last */
  15852. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST,
  15853. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_MAX =
  15854. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST - 1,
  15855. };
  15856. /**
  15857. * enum qca_wlan_vendor_link_state_op_types - Defines different types of
  15858. * operations for which %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE can be used.
  15859. * Will be used with %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE attribute.
  15860. *
  15861. * @QCA_WLAN_VENDOR_LINK_STATE_OP_GET - Get the MLO links state information.
  15862. * @QCA_WLAN_VENDOR_LINK_STATE_OP_SET - Set the MLO links state information.
  15863. */
  15864. enum qca_wlan_vendor_link_state_op_types {
  15865. QCA_WLAN_VENDOR_LINK_STATE_OP_GET = 0,
  15866. QCA_WLAN_VENDOR_LINK_STATE_OP_SET = 1,
  15867. };
  15868. /**
  15869. * enum qca_wlan_vendor_link_state_control_modes - Represents the types of MLO
  15870. * links state control modes. This enum is used by
  15871. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE attribute.
  15872. *
  15873. * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT: MLO links state controlled
  15874. * by the driver.
  15875. * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER: MLO links state controlled by
  15876. * user space.
  15877. * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED: User space provides the
  15878. * desired number of MLO links to operate in active state at any given time.
  15879. * The driver will choose which MLO links should operate in the active state.
  15880. * See enum qca_wlan_vendor_link_state for active state definition.
  15881. */
  15882. enum qca_wlan_vendor_link_state_control_modes {
  15883. QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT = 0,
  15884. QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER = 1,
  15885. QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED = 2,
  15886. };
  15887. /**
  15888. * enum qca_wlan_vendor_link_state_operation_modes - Represents the types of MLO
  15889. * links state operation modes. This enum is used by
  15890. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE attribute.
  15891. *
  15892. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT: In the default operation
  15893. * mode, the driver selects the operating mode of the links, without any
  15894. * guidance from the user space.
  15895. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY: In the low latency
  15896. * operation mode the driver should select MLO links that will achieve low
  15897. * latency.
  15898. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT: In the high
  15899. * throughput operation mode the driver should select MLO links that will
  15900. * achieve higher throughput.
  15901. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER: In the low power
  15902. * operation mode the driver should select MLO links that will achieve low
  15903. * power.
  15904. */
  15905. enum qca_wlan_vendor_link_state_operation_modes {
  15906. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT = 0,
  15907. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY = 1,
  15908. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT = 2,
  15909. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER = 3,
  15910. };
  15911. /**
  15912. * enum qca_wlan_vendor_link_state - Represents the possible link states of an
  15913. * MLO link.
  15914. *
  15915. * @QCA_WLAN_VENDOR_LINK_STATE_INACTIVE: In this state, the link will not
  15916. * be used for data transmission but it can have TIDs mapped to it. It will be
  15917. * in doze state always and does not monitor the beacons.
  15918. * @QCA_WLAN_VENDOR_LINK_STATE_ACTIVE: In this state, the link will be
  15919. * used for data TX/RX and monitors the beacons to check TIM bit indication.
  15920. * It may enter doze state and comes out based on the transmit data traffic and
  15921. * TIM bit indication in the beacon.
  15922. */
  15923. enum qca_wlan_vendor_link_state {
  15924. QCA_WLAN_VENDOR_LINK_STATE_INACTIVE = 0,
  15925. QCA_WLAN_VENDOR_LINK_STATE_ACTIVE = 1,
  15926. };
  15927. /**
  15928. * enum qca_wlan_vendor_attr_link_state_config - Definition of attributes used
  15929. * inside nested attribute %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG.
  15930. *
  15931. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID: u8 attribute, link ID of the
  15932. * MLO link.
  15933. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE: u32 attribute. See
  15934. * enum qca_wlan_vendor_link_state for possible MLO link states.
  15935. */
  15936. enum qca_wlan_vendor_attr_link_state_config {
  15937. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_INVALID = 0,
  15938. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID = 1,
  15939. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE = 2,
  15940. /* Keep last */
  15941. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST,
  15942. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_MAX =
  15943. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST - 1,
  15944. };
  15945. /**
  15946. * enum qca_wlan_vendor_attr_mlo_link_state - Attributes used by
  15947. * %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE vendor command.
  15948. *
  15949. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE: u32 attribute. Indicates the type
  15950. * of the operation %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE intended for.
  15951. * Required only in a command. Possible values for this attribute are defined in
  15952. * enum qca_wlan_vendor_link_state_op_types.
  15953. *
  15954. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE: u32 attribute. Indicates MLO
  15955. * links control mode type. Optional attribute in a command when
  15956. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15957. * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
  15958. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15959. * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
  15960. * See enum qca_wlan_vendor_link_state_control_modes for possible control modes.
  15961. *
  15962. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG: Array of nested attributes.
  15963. * Indicates the state of the each MLO link affiliated with the interface.
  15964. * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
  15965. * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
  15966. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
  15967. * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER. Required attribute in a
  15968. * response when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15969. * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
  15970. * See enum qca_wlan_vendor_attr_link_state_config for the nested attributes.
  15971. *
  15972. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS: u8 attribute.
  15973. * Represents the number of active state links. See enum
  15974. * qca_wlan_vendor_link_state for active state definition.
  15975. * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
  15976. * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
  15977. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
  15978. * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED.
  15979. *
  15980. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE: u32 attribute. Indicates MLO
  15981. * links operation mode type. Optional attribute in a command when
  15982. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15983. * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
  15984. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15985. * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
  15986. * See enum qca_wlan_vendor_link_state_operation_modes for possible operation
  15987. * modes.
  15988. */
  15989. enum qca_wlan_vendor_attr_mlo_link_state {
  15990. QCA_WLAN_VENDOR_ATTR_LINK_STATE_INVALID = 0,
  15991. QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE = 1,
  15992. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE = 2,
  15993. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG = 3,
  15994. QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS = 4,
  15995. QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE = 5,
  15996. /* keep last */
  15997. QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST,
  15998. QCA_WLAN_VENDOR_ATTR_LINK_STATE_MAX =
  15999. QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST - 1,
  16000. };
  16001. /**
  16002. * enum qca_wlan_vendor_attr_tid_link_map_status - Definition of attributes used
  16003. * inside nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
  16004. *
  16005. * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK: Required u16 attribute
  16006. * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
  16007. * Indicates the link mapping bitmap of a TID for uplink traffic. It is a
  16008. * bitmask of the link IDs in which a bit set means that the TID is mapped with
  16009. * that link ID in uplink traffic. Otherwise, the TID is not mapped to uplink
  16010. * traffic for that link.
  16011. *
  16012. * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK: Required u16 attribute
  16013. * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
  16014. * Indicates the link mapping bitmap of a TID for downlink traffic. It is a
  16015. * bitmask of the link IDs in which a bit set means that the TID is mapped with
  16016. * that link ID in downlink traffic. Otherwise, the TID is not mapped to
  16017. * downlink traffic for that link.
  16018. */
  16019. enum qca_wlan_vendor_attr_tid_link_map_status {
  16020. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_INVALID = 0,
  16021. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK = 1,
  16022. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK = 2,
  16023. /* keep last */
  16024. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST,
  16025. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_MAX =
  16026. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST - 1,
  16027. };
  16028. /*
  16029. * enum qca_wlan_vendor_attr_tid_to_link_map: Definition of attributes used with
  16030. * %QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP event.
  16031. *
  16032. * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR: Required attribute. 6-byte
  16033. * AP MLD address with which this TID-to-link negotiation mapping is
  16034. * established/updated.
  16035. *
  16036. * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS: Optional attribute. Array of
  16037. * nested attributes containing TID-to-links mapping information. This will have
  16038. * TID-to-link mapping for TID0 to TID7, each containing the uplink and downlink
  16039. * map information. If this attribute is not present the default TID-to-link
  16040. * mapping is in use, i.e., all TIDs are mapped to all links for both uplink and
  16041. * downlink traffic.
  16042. * See enum qca_wlan_vendor_attr_tid_link_map_status for the nested attributes.
  16043. */
  16044. enum qca_wlan_vendor_attr_tid_to_link_map {
  16045. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_INVALID = 0,
  16046. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR = 1,
  16047. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS = 2,
  16048. /* keep last */
  16049. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST,
  16050. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_MAX =
  16051. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST - 1,
  16052. };
  16053. /**
  16054. * enum qca_wlan_vendor_attr_link_reconfig: Definition of attributes used
  16055. * with %QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG event.
  16056. *
  16057. * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR: Required attribute.
  16058. * 6-byte AP MLD address of the AP which indicated the link reconfiguration.
  16059. *
  16060. * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS: Required u16 attribute.
  16061. * A bitmap of the removed setup links link IDs.
  16062. */
  16063. enum qca_wlan_vendor_attr_link_reconfig {
  16064. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_INVALID = 0,
  16065. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR = 1,
  16066. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS = 2,
  16067. /* keep last */
  16068. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST,
  16069. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_MAX =
  16070. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST - 1,
  16071. };
  16072. /**
  16073. * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext - Attributes used by
  16074. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT vendor command.
  16075. *
  16076. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK: u8 attribute.
  16077. * Indicates the MLO link id on which the TDLS discovery response
  16078. * frame is to be transmitted.
  16079. */
  16080. enum qca_wlan_vendor_attr_tdls_disc_rsp_ext {
  16081. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_INVALID = 0,
  16082. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK = 1,
  16083. /* Keep last */
  16084. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST,
  16085. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_MAX =
  16086. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST - 1,
  16087. };
  16088. /**
  16089. * enum qca_wlan_vendor_tdls_state - Represents the possible TDLS states.
  16090. *
  16091. * @QCA_WLAN_VENDOR_TDLS_STATE_DISABLED: TDLS is not enabled, default status
  16092. * for all stations.
  16093. *
  16094. * @QCA_WLAN_VENDOR_TDLS_STATE_ENABLED: TDLS is enabled, but not yet tried to
  16095. * establish the session.
  16096. *
  16097. * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED: Direct link TDLS session is
  16098. * established.
  16099. *
  16100. * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL: Direct link TDLS
  16101. * session is established using MCC.
  16102. *
  16103. * @QCA_WLAN_VENDOR_TDLS_STATE_DROPPED: Direct link TDLS session was
  16104. * established, but is temporarily dropped currently.
  16105. *
  16106. * @QCA_WLAN_VENDOR_TDLS_STATE_FAILED: TDLS session is failed to establish.
  16107. */
  16108. enum qca_wlan_vendor_tdls_state {
  16109. QCA_WLAN_VENDOR_TDLS_STATE_DISABLED = 1,
  16110. QCA_WLAN_VENDOR_TDLS_STATE_ENABLED = 2,
  16111. QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED = 3,
  16112. QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL = 4,
  16113. QCA_WLAN_VENDOR_TDLS_STATE_DROPPED = 5,
  16114. QCA_WLAN_VENDOR_TDLS_STATE_FAILED = 6,
  16115. };
  16116. /**
  16117. * enum qca_wlan_vendor_tdls_reason - Represents the possible TDLS reasons.
  16118. *
  16119. * @QCA_WLAN_TDLS_REASON_SUCCESS: TDLS session is successfully established.
  16120. *
  16121. * @QCA_WLAN_TDLS_REASON_UNSPECIFIED: Unspecified reason.
  16122. *
  16123. * @QCA_WLAN_TDLS_REASON_NOT_SUPPORTED: TDLS is not supported.
  16124. *
  16125. * @QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND: The specified band is not supported.
  16126. *
  16127. * @QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL: Packets going through AP is better
  16128. * than through direct link.
  16129. *
  16130. * @QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE: Peer station doesn't want the TDLS
  16131. * session anymore.
  16132. */
  16133. enum qca_wlan_vendor_tdls_reason {
  16134. QCA_WLAN_TDLS_REASON_SUCCESS = 0,
  16135. QCA_WLAN_TDLS_REASON_UNSPECIFIED = -1,
  16136. QCA_WLAN_TDLS_REASON_NOT_SUPPORTED = -2,
  16137. QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND = -3,
  16138. QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL = -4,
  16139. QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE = -5,
  16140. };
  16141. /**
  16142. * enum qca_wlan_vendor_attr_tdls_enable - Attributes used by
  16143. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE vendor command.
  16144. *
  16145. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: 6-byte MAC address of the peer
  16146. * station to enable the TDLS session. Optional attribute. The driver sends the
  16147. * TDLS session result as an asynchronous response using the command
  16148. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE when this peer MAC is provided in
  16149. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE command.
  16150. *
  16151. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: u32 attribute. Indicates the
  16152. * channel on which the TDLS session to be established. Required only when
  16153. * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
  16154. *
  16155. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: u32 attribute.
  16156. * Indicates the global operating class of the TDLS session to be established.
  16157. * Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
  16158. *
  16159. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: u32 attribute. Indicates
  16160. * the maximum latency of the WLAN packets to be transmitted/received in
  16161. * milliseconds on TDLS session. Required only when
  16162. * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
  16163. *
  16164. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: u32 attribute.
  16165. * Indicates the minimum bandwidth to be used to establish the TDLS session
  16166. * in kbps. Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is
  16167. * present.
  16168. */
  16169. enum qca_wlan_vendor_attr_tdls_enable {
  16170. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
  16171. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR = 1,
  16172. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL = 2,
  16173. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS = 3,
  16174. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS = 4,
  16175. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS = 5,
  16176. /* keep last */
  16177. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
  16178. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
  16179. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
  16180. };
  16181. /**
  16182. * enum qca_wlan_vendor_attr_tdls_disable - Attributes used by
  16183. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE vendor command.
  16184. *
  16185. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: 6-byte MAC address of the peer
  16186. * station to disable the TDLS session. Optional attribute.
  16187. */
  16188. enum qca_wlan_vendor_attr_tdls_disable {
  16189. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
  16190. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR = 1,
  16191. /* keep last */
  16192. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
  16193. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
  16194. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
  16195. };
  16196. /**
  16197. * enum qca_wlan_vendor_attr_tdls_get_status - Attributes used by
  16198. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS vendor command.
  16199. *
  16200. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: 6-byte MAC address of the
  16201. * peer station. Optional attribute. Used in
  16202. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS request and response.
  16203. *
  16204. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: u32 attribute. Indicates the
  16205. * TDLS session state with the peer specified in
  16206. * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Uses the values from
  16207. * enum qca_wlan_vendor_tdls_state. Used in
  16208. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
  16209. *
  16210. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: s32 attribute. Indicates the
  16211. * reason for the TDLS session state indicated in
  16212. * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE. Uses the values from enum
  16213. * qca_wlan_vendor_tdls_reason. Used in
  16214. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
  16215. *
  16216. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: u32 attribute. Indicates the
  16217. * channel of the TDLS session established with
  16218. * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in
  16219. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
  16220. *
  16221. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: u32 attribute.
  16222. * Indicates the global operating class of the TDLS session established with
  16223. * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in
  16224. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
  16225. *
  16226. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS: u32 attribute. Indicates
  16227. * the current number of active TDLS sessions. This is indicated in the response
  16228. * when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with
  16229. * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute.
  16230. *
  16231. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE: Flag attribute. Indicates
  16232. * whether the driver can initiate new TDLS session. This is indicated in the
  16233. * response when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with
  16234. * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute.
  16235. */
  16236. enum qca_wlan_vendor_attr_tdls_get_status {
  16237. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
  16238. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR = 1,
  16239. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE = 2,
  16240. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON = 3,
  16241. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL = 4,
  16242. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS = 5,
  16243. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS = 6,
  16244. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE = 7,
  16245. /* keep last */
  16246. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
  16247. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
  16248. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
  16249. };
  16250. /**
  16251. * enum qca_wlan_vendor_attr_tdls_state - Attributes used by
  16252. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE vendor command.
  16253. *
  16254. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: 6-byte MAC address of the
  16255. * peer station. Required attribute.
  16256. *
  16257. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CURRENT_STATE: u32 attribute. Indicates
  16258. * the current TDLS state. Required attribute. Uses the values from
  16259. * enum qca_wlan_vendor_tdls_state.
  16260. *
  16261. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: s32 attribute. Indicates the
  16262. * reason of the current TDLS session state. Required attribute. Uses the values
  16263. * from enum qca_wlan_vendor_tdls_reason.
  16264. *
  16265. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: u32 attribute. Indicates the
  16266. * TDLS session channel. Required attribute.
  16267. *
  16268. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: u32 attribute.
  16269. * Indicates the TDLS session global operating class. Required attribute.
  16270. */
  16271. enum qca_wlan_vendor_attr_tdls_state {
  16272. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
  16273. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR = 1,
  16274. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_NEW_STATE = 2,
  16275. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON = 3,
  16276. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL = 4,
  16277. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS = 5,
  16278. /* keep last */
  16279. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
  16280. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
  16281. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
  16282. };
  16283. /*
  16284. * enum qca_wlan_vendor_opm_mode - Modes supported by
  16285. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT vendor attribute.
  16286. *
  16287. * @QCA_WLAN_VENDOR_OPM_MODE_DISABLE: OPM Disabled
  16288. * @QCA_WLAN_VENDOR_OPM_MODE_ENABLE: OPM Enabled
  16289. * @QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED: User defined mode which allows user
  16290. * to configure power save inactivity timeout and speculative wake up
  16291. * interval through %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
  16292. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes.
  16293. */
  16294. enum qca_wlan_vendor_opm_mode {
  16295. QCA_WLAN_VENDOR_OPM_MODE_DISABLE = 0,
  16296. QCA_WLAN_VENDOR_OPM_MODE_ENABLE = 1,
  16297. QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED = 2,
  16298. };
  16299. /* enum qca_wlan_audio_transport_switch_type - Represents the possible transport
  16300. * switch types.
  16301. *
  16302. * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_NON_WLAN: Request to route audio data
  16303. * via non-WLAN transport (ex: bluetooth).
  16304. *
  16305. * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_WLAN: Request to route audio data via
  16306. * WLAN transport.
  16307. */
  16308. enum qca_wlan_audio_transport_switch_type {
  16309. QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_NON_WLAN = 0,
  16310. QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_WLAN = 1,
  16311. };
  16312. /**
  16313. * enum qca_wlan_audio_transport_switch_status - Represents the status of audio
  16314. * transport switch request.
  16315. *
  16316. * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_REJECTED: Request to switch transport
  16317. * has been rejected. For ex: when transport switch is requested from WLAN
  16318. * to non-WLAN transport, user space modules and peers would evaluate the switch
  16319. * request and may not be ready for switch and hence switch to non-WLAN transport
  16320. * gets rejected.
  16321. *
  16322. * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_COMPLETED: Request to switch transport
  16323. * has been completed. This is sent only in command path. Ex: when host driver
  16324. * had requested for audio transport switch and userspace modules as well as
  16325. * peers are ready for the switch, userspace module switches the transport and
  16326. * sends subcommand with status completed to host driver.
  16327. */
  16328. enum qca_wlan_audio_transport_switch_status {
  16329. QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_REJECTED = 0,
  16330. QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_COMPLETED = 1,
  16331. };
  16332. /**
  16333. * enum qca_wlan_vendor_attr_audio_transport_switch - Attributes used by
  16334. * %QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH vendor command.
  16335. *
  16336. * @QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_TYPE: u8 attribute. Indicates
  16337. * the transport switch type from one of the values in enum
  16338. * qca_wlan_audio_transport_switch_type. This is mandatory param in both
  16339. * command and event path. This attribute is included in both requests and
  16340. * responses.
  16341. *
  16342. * @QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_STATUS: u8 attribute. Indicates
  16343. * the transport switch status from one of the values in enum
  16344. * qca_wlan_audio_transport_switch_status. This is optional param and used in
  16345. * both command and event path. This attribute must not be included in requests.
  16346. */
  16347. enum qca_wlan_vendor_attr_audio_transport_switch {
  16348. QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_INVALID = 0,
  16349. QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_TYPE = 1,
  16350. QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_STATUS = 2,
  16351. /* keep last */
  16352. QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_AFTER_LAST,
  16353. QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_MAX =
  16354. QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_AFTER_LAST - 1,
  16355. };
  16356. /*
  16357. * enum qca_wlan_vendor_tx_latency_type - Represents the possible latency
  16358. * types.
  16359. *
  16360. * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER: Per MSDU latency
  16361. * from: An MSDU is presented to the driver
  16362. * to: the MSDU is queued into TCL SRNG
  16363. *
  16364. * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING: Per MSDU latency
  16365. * from: the MSDU is queued into TCL SRNG
  16366. * to: the MSDU is released by the driver
  16367. *
  16368. * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW: Per MSDU latency
  16369. * from: the MSDU is presented to the hardware
  16370. * to: the MSDU is released by the hardware
  16371. *
  16372. * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA: Per PPDU latency
  16373. * The time spent on Clear Channel Assessment, the maximum value is 50000 (us)
  16374. * from: A PPDU is presented to the hardware LMAC
  16375. * to: over-the-air transmission is started for the PPDU
  16376. */
  16377. enum qca_wlan_vendor_tx_latency_type {
  16378. QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER = 0,
  16379. QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING = 1,
  16380. QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW = 2,
  16381. QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA = 3,
  16382. };
  16383. /**
  16384. * enum qca_wlan_vendor_attr_tx_latency_bucket - Definition of attributes
  16385. * used inside nested attributes
  16386. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS and
  16387. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS.
  16388. *
  16389. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE: u8 attribute.
  16390. * Indicates the latency type.
  16391. * See enum qca_wlan_vendor_tx_latency_type for the supported types.
  16392. *
  16393. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY: u32 attribute.
  16394. * Indicates the granularity (in microseconds) of the distribution for the
  16395. * type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE), the value
  16396. * must be positive.
  16397. * If %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE is
  16398. * %QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA, the value must be an integer multiple
  16399. * of 1000, and the maximum allowed value is 15000 (us).
  16400. *
  16401. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE: u32 attribute.
  16402. * Indicates the average of the latency (in microseconds) for the type
  16403. * (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE) within a cycle.
  16404. * If there is no transmitted MSDUs/MPDUs during a cycle, this average is 0;
  16405. * otherwise, it represents the quotient of <accumulated latency of the
  16406. * transmitted MSDUs/MPDUs in a cycle> divided by <the number of the transmitted
  16407. * MSDUs/MPDUs in a cycle>.
  16408. *
  16409. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION:
  16410. * Array of u32, 4 elements in total, represents the latency distribution for
  16411. * the type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE).
  16412. * Each element holds the count of MSDUs/PPDUs (according to the latency type)
  16413. * within a range:
  16414. * element[0]: latency >= 0 && latency < granularity
  16415. * element[1]: latency >= granularity && latency < granularity * 2
  16416. * element[2]: latency >= granularity * 2 && latency < granularity * 3
  16417. * element[3]: latency >= granularity * 3
  16418. */
  16419. enum qca_wlan_vendor_attr_tx_latency_bucket {
  16420. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_INVALID = 0,
  16421. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE = 1,
  16422. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY = 2,
  16423. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE = 3,
  16424. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION = 4,
  16425. /* keep last */
  16426. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST,
  16427. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_MAX =
  16428. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST - 1,
  16429. };
  16430. /**
  16431. * enum qca_wlan_vendor_attr_tx_latency_link - Definition of attributes
  16432. * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS.
  16433. *
  16434. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE: 6-byte MAC address.
  16435. * Indicates link MAC address of the remote peer. For example, when running
  16436. * in station mode, it's the BSSID of the link; while when running in AP
  16437. * mode, it's the link MAC address of the remote station.
  16438. *
  16439. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS:
  16440. * Array of nested attribute.
  16441. * Represents the transmit latency statistics for the link specified by
  16442. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE.
  16443. * Each entry represents the statistics for one of the types defined in
  16444. * enum qca_wlan_vendor_tx_latency_type.
  16445. * Each defined type has and must have one entry.
  16446. * See enum qca_wlan_vendor_attr_tx_latency_bucket for nested attributes.
  16447. */
  16448. enum qca_wlan_vendor_attr_tx_latency_link {
  16449. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_INVALID = 0,
  16450. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE = 1,
  16451. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS = 2,
  16452. /* keep last */
  16453. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST,
  16454. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAX =
  16455. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST - 1,
  16456. };
  16457. /**
  16458. * enum qca_wlan_vendor_tx_latency_action - Represents the possible actions
  16459. * for %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY.
  16460. *
  16461. * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE:
  16462. * Disable transmit latency monitoring.
  16463. *
  16464. * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE:
  16465. * Enable transmit latency monitoring.
  16466. *
  16467. * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET:
  16468. * Get transmit latency statistics of the last cycle (period is specified by
  16469. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD).
  16470. */
  16471. enum qca_wlan_vendor_tx_latency_action {
  16472. QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE = 0,
  16473. QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE = 1,
  16474. QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET = 2,
  16475. };
  16476. /**
  16477. * enum qca_wlan_vendor_attr_tx_latency - Definition of attributes used by
  16478. * %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY to configure, retrieve, and report
  16479. * per-link transmit latency statistics.
  16480. *
  16481. * There are 6 uses of %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY:
  16482. * 1) used as a command to enable the feature
  16483. * Precondition(s):
  16484. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
  16485. * %QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE
  16486. * Mandatory attribute(s):
  16487. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION,
  16488. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD,
  16489. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS with nested attributes
  16490. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE,
  16491. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY.
  16492. * Notes:
  16493. * The driver will monitor the transmit latency for the active links
  16494. * and save the statistics for each cycle (period is set by
  16495. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD) when the feature is enabled.
  16496. * Set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT if periodical
  16497. * report is required.
  16498. *
  16499. * 2) used as a command to disable the feature
  16500. * Precondition(s):
  16501. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
  16502. * %QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE
  16503. * Mandatory attribute(s):
  16504. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION
  16505. *
  16506. * 3) used as a command to retrieve the statistics for all the active links on
  16507. * the requested interface
  16508. * Precondition(s):
  16509. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
  16510. * QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and
  16511. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is NOT present.
  16512. * Mandatory attribute(s):
  16513. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION
  16514. * Notes:
  16515. * The driver returns failure directly if the feature is not enabled or
  16516. * there is no active link.
  16517. * The driver returns the statistics of the last cycle in the case of
  16518. * success.
  16519. *
  16520. * 4) used as a command to retrieve the statistics for the specified links
  16521. * Precondition(s):
  16522. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
  16523. * QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and
  16524. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is present.
  16525. * Mandatory attribute(s):
  16526. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION,
  16527. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attribute
  16528. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE.
  16529. * Notes:
  16530. * The driver returns failure directly if the feature is not enabled or
  16531. * any of the links (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS)
  16532. * does not exist or is not in active state.
  16533. *
  16534. * 5) used as a command response for #3 or #4
  16535. * Precondition(s):
  16536. * Userspace issues command #3 or #4, and the driver gets corresponding
  16537. * statistics successfully.
  16538. * Mandatory attribute(s):
  16539. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes
  16540. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE,
  16541. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested
  16542. * attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE,
  16543. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY,
  16544. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and
  16545. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION.
  16546. *
  16547. * 6) used as an asynchronous event to report the statistics periodically
  16548. * Precondition(s):
  16549. * Userspace set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT in
  16550. * #1.
  16551. * One or more links are in active state.
  16552. * Mandatory attribute(s):
  16553. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes
  16554. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE,
  16555. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested
  16556. * attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE,
  16557. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY,
  16558. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and
  16559. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION.
  16560. *
  16561. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID: Invalid attribute
  16562. *
  16563. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION: u32 attribute.
  16564. * Action to take in this vendor command.
  16565. * See enum qca_wlan_vendor_tx_latency_action for supported actions.
  16566. *
  16567. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT: Flag attribute.
  16568. * Enable (flag attribute present) - The driver needs to report transmit latency
  16569. * statistics at the end of each statistical period.
  16570. * Disable (flag attribute not present) - The driver doesn't need to report
  16571. * transmit latency statistics periodically.
  16572. *
  16573. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD: u32 attribute.
  16574. * Indicates statistical period for transmit latency in terms of milliseconds,
  16575. * the minimal allowed value is 100 and the maximum allowed value is 60000.
  16576. *
  16577. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS: Array of nested attribute.
  16578. * Each entry represents the latency buckets configuration for one of the types
  16579. * defined in enum qca_wlan_vendor_tx_latency_type.
  16580. * Each defined type has and must have one entry.
  16581. * See enum qca_wlan_vendor_attr_tx_latency_bucket for the list of
  16582. * supported attributes.
  16583. *
  16584. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS: Array of nested attribute.
  16585. * Information of the links, each entry represents for one link.
  16586. * See enum qca_wlan_vendor_attr_tx_latency_link for the list of
  16587. * supported attributes for each entry.
  16588. */
  16589. enum qca_wlan_vendor_attr_tx_latency {
  16590. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID = 0,
  16591. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION = 1,
  16592. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT = 2,
  16593. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD = 3,
  16594. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS = 4,
  16595. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS = 5,
  16596. /* keep last */
  16597. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST,
  16598. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_MAX =
  16599. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST - 1,
  16600. };
  16601. /**
  16602. * qca_wlan_vendor_attr_RECONFIG_REMOVE_COMPLETE_EVENT - Defines attributes for
  16603. * ML Reconfig (Mlo Link removal) parameters used by the attribute
  16604. * @QCA_WLAN_VENDOR_ATTR_RECONFIG_REMOVE_COMPLETE_EVENT_IFINDEX: u32 attribute
  16605. * used to pass the netdev ifindex of the MLO Reconfiguration link.
  16606. */
  16607. enum qca_wlan_vendor_attr_reconfig_remove_complete_EVENT {
  16608. QCA_WLAN_VENDOR_ATTR_RECONFIG_REMOVE_COMPLETE_EVENT_IFINDEX = 0,
  16609. /* keep last */
  16610. QCA_WLAN_VENDOR_ATTR_RECONFIG_REMOVE_COMPLETE_EVENT_AFTER_LAST,
  16611. QCA_WLAN_VENDOR_ATTR_RECONFIG_REMOVE_COMPLETE_EVENT_MAX =
  16612. QCA_WLAN_VENDOR_ATTR_RECONFIG_REMOVE_COMPLETE_EVENT_AFTER_LAST - 1,
  16613. };
  16614. /**
  16615. * enum qca_wlan_vendor_attr_tpc_pwr_level - Definition of attributes
  16616. * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL.
  16617. *
  16618. * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY: u32 channel center
  16619. * frequency (MHz): If PSD power, carries one 20 MHz sub-channel center
  16620. * frequency. If non PSD power, carries either 20 MHz bandwidth's center
  16621. * channel frequency or 40 MHz bandwidth's center channel frequency
  16622. * (or 80/160 MHz bandwidth's center channel frequency).
  16623. *
  16624. * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_TX_POWER: s8 transmit power limit (dBm).
  16625. * If PSD power, carries PSD power value of the
  16626. * QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY mentioned sub-channel.
  16627. * If non PSD power, carries EIRP power value of bandwidth mentioned
  16628. * by QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY center frequency.
  16629. */
  16630. enum qca_wlan_vendor_attr_tpc_pwr_level {
  16631. QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_INVALID = 0,
  16632. QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY = 1,
  16633. QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_TX_POWER = 2,
  16634. /* keep last */
  16635. QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_AFTER_LAST,
  16636. QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_MAX =
  16637. QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_AFTER_LAST - 1,
  16638. };
  16639. /**
  16640. * enum qca_wlan_vendor_tpc - Definition of link attributes
  16641. * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TPC_LINKS.
  16642. *
  16643. * @QCA_WLAN_VENDOR_ATTR_TPC_BSSID: 6-bytes AP BSSID.
  16644. * For MLO STA, AP BSSID indicates the AP's link address.
  16645. *
  16646. * @QCA_WLAN_VENDOR_ATTR_TPC_PSD_POWER: PSD power flag
  16647. * Indicates using PSD power mode if this flag is present.
  16648. *
  16649. * @QCA_WLAN_VENDOR_ATTR_TPC_EIRP_POWER: s8 Regulatory EIRP power
  16650. * value in dBm
  16651. *
  16652. * @QCA_WLAN_VENDOR_ATTR_TPC_POWER_TYPE_6GHZ: u8 power type of 6 GHz
  16653. * AP, refer to Table E-12-Regulatory Info subfield encoding in
  16654. * IEEE P802.11-REVme/D4.0. Only present if link is connected to 6 GHz AP.
  16655. *
  16656. * @QCA_WLAN_VENDOR_ATTR_TPC_AP_CONSTRAINT_POWER: u8 Local Power Constraint
  16657. * (dBm) advertised by AP in Power Constraint element, refer to
  16658. * IEEE Std 802.11-2020, 9.4.2.13 Power Constraint element.
  16659. *
  16660. * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL: A nested attribute containing
  16661. * attributes defined by enum qca_wlan_vendor_attr_tpc_pwr_level.
  16662. * If PSD power, each power level describes each 20 MHz subchannel PSD
  16663. * power value. If non PSD power, each power level describes each supported
  16664. * bandwidth's EIRP power value (up to Max bandwidth of AP operating on),
  16665. * each level attribute contains corresponding bandwidth's center channel
  16666. * frequency and its EIRP power value.
  16667. */
  16668. enum qca_wlan_vendor_attr_tpc {
  16669. QCA_WLAN_VENDOR_ATTR_TPC_INVALID = 0,
  16670. QCA_WLAN_VENDOR_ATTR_TPC_BSSID = 1,
  16671. QCA_WLAN_VENDOR_ATTR_TPC_PSD_POWER = 2,
  16672. QCA_WLAN_VENDOR_ATTR_TPC_EIRP_POWER = 3,
  16673. QCA_WLAN_VENDOR_ATTR_TPC_POWER_TYPE_6GHZ = 4,
  16674. QCA_WLAN_VENDOR_ATTR_TPC_AP_CONSTRAINT_POWER = 5,
  16675. QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL = 6,
  16676. /* keep last */
  16677. QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST,
  16678. QCA_WLAN_VENDOR_ATTR_TPC_MAX =
  16679. QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST - 1,
  16680. };
  16681. /**
  16682. * enum qca_wlan_vendor_attr_tpc_links - Definition of attributes
  16683. * for %QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO subcommand
  16684. *
  16685. * @QCA_WLAN_VENDOR_ATTR_TPC_LINKS: A nested attribute containing
  16686. * per-link TPC information of all the active links of MLO STA.
  16687. * For non MLO STA, only one link TPC information will be returned
  16688. * for connected AP in this nested attribute.
  16689. * The attributes used inside this nested attributes are defined
  16690. * in enum qca_wlan_vendor_attr_tpc.
  16691. */
  16692. enum qca_wlan_vendor_attr_tpc_links {
  16693. QCA_WLAN_VENDOR_ATTR_TPC_LINKS_INVALID = 0,
  16694. QCA_WLAN_VENDOR_ATTR_TPC_LINKS = 1,
  16695. /* keep last */
  16696. QCA_WLAN_VENDOR_ATTR_TPC_LINKS_AFTER_LAST,
  16697. QCA_WLAN_VENDOR_ATTR_TPC_LINKS_MAX =
  16698. QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST - 1,
  16699. };
  16700. /**
  16701. * enum qca_wlan_btm_support: BTM support configuration
  16702. *
  16703. * @QCA_WLAN_BTM_SUPPORT_DEFAULT: Restore default BTM support policy. The driver
  16704. * follows the BSS Transition bit in the Extended Capabilities element from the
  16705. * connect request IEs with the default BTM support policy.
  16706. *
  16707. * @QCA_WLAN_BTM_SUPPORT_DISABLE: Disable BTM support for the subsequent
  16708. * (re)association attempts. The driver shall restore the default BTM support
  16709. * policy during the first disconnection after successful association. When this
  16710. * configuration is enabled, the driver shall overwrite the BSS Transition bit
  16711. * as zero in the Extended Capabilities element while sending (Re)Association
  16712. * Request frames. Also, the driver shall drop the BTM frames from userspace and
  16713. * the connected AP when this configuration is enabled.
  16714. */
  16715. enum qca_wlan_btm_support {
  16716. QCA_WLAN_BTM_SUPPORT_DEFAULT = 0,
  16717. QCA_WLAN_BTM_SUPPORT_DISABLE = 1,
  16718. };
  16719. #endif