qca_vendor.h 757 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368
  1. /*
  2. * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for
  6. * any purpose with or without fee is hereby granted, provided that the
  7. * above copyright notice and this permission notice appear in all
  8. * copies.
  9. *
  10. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  11. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  12. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  13. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  14. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  15. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  16. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  17. * PERFORMANCE OF THIS SOFTWARE.
  18. */
  19. /**
  20. * DOC: declares vendor commands interfacing with linux kernel
  21. */
  22. #ifndef _WLAN_QCA_VENDOR_H_
  23. #define _WLAN_QCA_VENDOR_H_
  24. /* Vendor id to be used in vendor specific command and events
  25. * to user space.
  26. * NOTE: The authoritative place for definition of QCA_NL80211_VENDOR_ID,
  27. * vendor subcmd definitions prefixed with QCA_NL80211_VENDOR_SUBCMD, and
  28. * qca_wlan_vendor_attr is open source file src/common/qca-vendor.h in
  29. * git://w1.fi/srv/git/hostap.git; the values here are just a copy of that
  30. */
  31. #define QCA_NL80211_VENDOR_ID 0x001374
  32. #ifndef BIT
  33. #define BIT(x) (1U << (x))
  34. #endif
  35. /**
  36. * enum qca_nl80211_vendor_subcmds: NL 80211 vendor sub command
  37. *
  38. * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Unspecified
  39. * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test
  40. * Sub commands 2 to 8 are not used
  41. * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Roaming
  42. * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Avoid frequency.
  43. * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: DFS capability
  44. * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
  45. * NAN Request/Response and NAN Indication messages. These messages are
  46. * interpreted between the framework and the firmware component. While
  47. * sending the command from userspace to the driver, payload is not
  48. * encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
  49. * is used when receiving vendor events in userspace from the driver.
  50. * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT: Ext stats
  51. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET: Link layer stats set
  52. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET: Link layer stats get
  53. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR: Link layer stats clear
  54. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS: Link layer stats radio
  55. * results
  56. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS: Link layer stats interface
  57. * results
  58. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS: Link layer stats peer
  59. * results
  60. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START: Ext scan start
  61. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP: Ext scan stop
  62. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS: Ext scan get valid
  63. * channels
  64. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES: Ext scan get capability
  65. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS: Ext scan get cached
  66. * results
  67. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE: Ext scan results
  68. * available. Used when report_threshold is reached in scan cache.
  69. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT: Ext scan full scan
  70. * result. Used to report scan results when each probe rsp. is received,
  71. * if report_events enabled in wifi_scan_cmd_params.
  72. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT: Ext scan event from target.
  73. * Indicates progress of scanning state-machine.
  74. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND: Ext scan hotlist
  75. * ap found
  76. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST: Ext scan set hotlist
  77. * bssid
  78. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST: Ext scan reset
  79. * hotlist bssid
  80. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE: Ext scan significant
  81. * change
  82. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE: Ext scan set
  83. * significant change
  84. * ap found
  85. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE: Ext scan reset
  86. * significant change
  87. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: This command is used to enable TDLS
  88. * capability or to form a session with the specified peer.
  89. * If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this
  90. * indicates to enable TDLS capability on the interface.
  91. * If %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is nested in
  92. * %NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to
  93. * form a TDLS session with the specified peer MAC address.
  94. * The attributes used with this command are defined in
  95. * enum qca_wlan_vendor_attr_tdls_enable.
  96. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: This command is used to disable TDLS
  97. * capability or to terminate the session with the specified peer.
  98. * If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this
  99. * indicates to disable TDLS capability on the interface.
  100. * If %QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR is nested in
  101. * %NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to
  102. * terminate TDLS session with the specified peer MAC address.
  103. * The attributes used with this command are defined in
  104. * enum qca_wlan_vendor_attr_tdls_disable.
  105. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: This command is to get the TDLS
  106. * status at the interface level or with the specific peer.
  107. * If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this
  108. * indicates the TDLS status query is at interface level.
  109. * If %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR is nested in
  110. * %NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to
  111. * get TDLS session status with the specified peer MAC address.
  112. * The attributes used with this command are defined in
  113. * enum qca_wlan_vendor_attr_tdls_get_status.
  114. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: This event is to indicate the result
  115. * of the TDLS session request with the peer sent by userspace in
  116. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE.
  117. * The attributes used with this command are defined in
  118. * enum qca_wlan_vendor_attr_tdls_state.
  119. * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES: Get supported features
  120. * @QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI: Set scanning_mac_oui
  121. * @QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG: No DFS flag
  122. * @QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX: Get Concurrency Matrix
  123. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Get the key mgmt offload keys
  124. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: After roaming, send the
  125. * roaming and auth information.
  126. * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED: Set OCB schedule
  127. *
  128. * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
  129. * invoke the ACS function in device and pass selected channels to
  130. * hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
  131. *
  132. * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Get the supported features by the
  133. * driver.
  134. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Indicate that driver
  135. * started CAC on DFS channel
  136. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Indicate that driver
  137. * completed the CAC check on DFS channel
  138. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Indicate that the CAC
  139. * check was aborted by the driver
  140. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Indicate that the
  141. * driver completed NOP
  142. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Indicate that the
  143. * driver detected radar signal on the current operating channel
  144. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: get wlan driver information
  145. * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: This command is used to
  146. * configure various wiphy or interface level configurations. Attributes
  147. * are defined in enum qca_wlan_vendor_attr_config. Userspace can send one
  148. * or more configuration attributes with a single command. The driver
  149. * accepts the command only if all the configurations are known, otherwise
  150. * it rejects the command. The driver returns success only if processing of
  151. * all the configurations succeeds. The driver continues to process all the
  152. * configurations even if processing of some configurations failed and
  153. * returns the last error occurred while processing the failed
  154. * configurations.
  155. *
  156. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: This command is used to
  157. * get the current values of the various wiphy or interface level
  158. * configurations. Attributes are defined in enum
  159. * qca_wlan_vendor_attr_config. Userspace needs to specify the
  160. * configuration attributes for which it wants to get the values in the
  161. * command, there is no significance for the value sent in the attribute
  162. * unless explicitly specified in the corresponding configuration
  163. * attribute documentation. The driver accepts the command only if all the
  164. * configurations are known, otherwise it rejects the command. The driver
  165. * returns success only if fetching of all configuration values succeeds
  166. * and indicates the configuration values in corresponding attributes in
  167. * the response. The driver continues to process all the configurations
  168. * even if processing of some configurations failed and returns the last
  169. * error occurred while processing the failed configurations.
  170. *
  171. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START: start wifi logger
  172. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP: memory dump request
  173. * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logger feature set
  174. * @QCA_NL80211_VENDOR_SUBCMD_ROAM: roam
  175. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST: extscan set ssid hotlist
  176. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST:
  177. * extscan reset ssid hotlist
  178. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND: hotlist ssid found
  179. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST: hotlist ssid lost
  180. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST: set pno list
  181. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST: set passpoint list
  182. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST:
  183. * reset passpoint list
  184. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND: pno network found
  185. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND:
  186. * passpoint network found
  187. * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: set wifi config
  188. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: get wifi config
  189. * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logging features
  190. * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: get link properties
  191. * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG: set gateway parameters
  192. * @QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST: get preferred channel
  193. list
  194. * @QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL: channel hint
  195. * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the band
  196. * to the host driver. This command sets the band through either
  197. * the attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or
  198. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE
  199. * refers enum qca_set_band as unsigned integer values and
  200. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32 bit unsigned BitMask
  201. * values. Also, the acceptable values for
  202. * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are only till QCA_SETBAND_2G. Further
  203. * values/bitmask's are valid for QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The
  204. * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the
  205. * recommendation is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the
  206. * implementations configure using both the attributes, the configurations
  207. * through QCA_WLAN_VENDOR_ATTR_SETBAND_MASK shall always take the
  208. * precedence.
  209. * @QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN: venodr scan command
  210. * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE: vendor scan complete
  211. * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: vendor abort scan
  212. * @QCA_NL80211_VENDOR_SUBCMD_OTA_TEST: enable OTA test
  213. * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE: set tx power by percentage
  214. * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB: reduce tx power by DB
  215. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG: SAP configuration
  216. * @QCA_NL80211_VENDOR_SUBCMD_TSF: TSF operations command
  217. * @QCA_NL80211_VENDOR_SUBCMD_WISA: WISA mode configuration
  218. * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
  219. * start the P2P Listen Offload function in device and pass the listen
  220. * channel, period, interval, count, number of device types, device
  221. * types and vendor information elements to device driver and firmware.
  222. * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
  223. * indicate stop request/response of the P2P Listen Offload function in
  224. * device. As an event, it indicates either the feature stopped after it
  225. * was already running or feature has actually failed to start.
  226. * @QCA_NL80211_VENDOR_SUBCMD_GET_STATION: send BSS Information
  227. * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After SAP starts
  228. * beaconing, this sub command provides the driver, the frequencies on the
  229. * 5 GHz to check for any radar activity. Driver selects one channel from
  230. * this priority list provided through
  231. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
  232. * to check for radar activity on it. If no radar activity is detected
  233. * during the channel availability check period, driver internally switches
  234. * to the selected frequency of operation. If the frequency is zero, driver
  235. * internally selects a channel. The status of this conditional switch is
  236. * indicated through an event using the same sub command through
  237. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
  238. * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch
  239. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Command/event used to config
  240. * indication period and threshold for MAC layer counters.
  241. * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
  242. * in the host driver. The different TDLS configurations are defined
  243. * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
  244. * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Get HE related capabilities
  245. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS:Set the Specific Absorption Rate
  246. * (SAR) power limits. A critical regulation for FCC compliance, OEMs
  247. * require methods to set SAR limits on TX power of WLAN/WWAN.
  248. * enum qca_vendor_attr_sar_limits attributes are used with this command.
  249. * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: Vendor command used to get/set
  250. * configuration of vendor ACS.
  251. * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
  252. * requisite information leading to a power save failure. The information
  253. * carried as part of this event is represented by the
  254. * enum qca_attr_chip_power_save_failure attributes.
  255. * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
  256. * collection. Uses attributes defined in enum qca_attr_nud_stats_set.
  257. * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
  258. * statistics are represented by the enum qca_attr_nud_stats_get
  259. * attributes.
  260. * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
  261. * the BSS transition status, whether accept or reject, for a list of
  262. * candidate BSSIDs provided by the userspace. This uses the vendor
  263. * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
  264. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
  265. * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
  266. * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
  267. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
  268. * the driver shall specify array of
  269. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
  270. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
  271. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
  272. * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
  273. * specific QCA module. The trace levels are represented by
  274. * enum qca_attr_trace_level attributes.
  275. * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
  276. * Protocol antenna limit in different modes. See enum
  277. * qca_wlan_vendor_attr_brp_ant_limit_mode.
  278. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
  279. * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
  280. * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
  281. * identifying the operation in success case. In failure cases an
  282. * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
  283. * describing the reason for the failure is returned.
  284. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
  285. * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
  286. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
  287. * be stopped.
  288. * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
  289. * specific interface. This can be used to modify some of the low level
  290. * scan parameters (off channel dwell time, home channel time) in the
  291. * driver/firmware. These parameters are maintained within the host
  292. * driver.
  293. * This command is valid only when the interface is in the connected
  294. * state.
  295. * These scan parameters shall be reset by the driver/firmware once
  296. * disconnected. The attributes used with this command are defined in
  297. * enum qca_wlan_vendor_attr_active_tos.
  298. * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
  299. * driver has detected an internal failure. This event carries the
  300. * information indicating the reason that triggered this detection. The
  301. * attributes for this command are defined in
  302. * enum qca_wlan_vendor_attr_hang.
  303. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
  304. * of spectral parameters used. The spectral scan parameters are specified
  305. * by enum qca_wlan_vendor_attr_spectral_scan.
  306. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
  307. * for spectral scan functionality. The debug stats are specified by
  308. * enum qca_wlan_vendor_attr_spectral_diag_stats.
  309. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
  310. * scan system capabilities. The capabilities are specified
  311. * by enum qca_wlan_vendor_attr_spectral_cap.
  312. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
  313. * status of spectral scan. The status values are specified
  314. * by enum qca_wlan_vendor_attr_spectral_scan_status.
  315. * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
  316. * peer pending packets. Specify the peer MAC address in
  317. * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
  318. * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
  319. * in enum qca_wlan_vendor_attr_flush_pending.
  320. * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
  321. * RF Operating Parameter (RROP) information. The attributes for this
  322. * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
  323. * intended for use by external Auto Channel Selection applications.
  324. * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
  325. * (SAR) power limits. This is a companion to the command
  326. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
  327. * settings currently in use. The attributes returned by this command are
  328. * defined by enum qca_vendor_attr_sar_limits.
  329. * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behaviour of
  330. * the WLAN hardware MAC's associated with each WLAN netdev interface.
  331. * This works both as a query (user space asks the current mode) or event
  332. * interface (driver advertizing the current mode to the user space).
  333. * Driver does not trigger this event for temporary hardware mode changes.
  334. * Mode changes w.r.t Wi-Fi connection updation ( VIZ creation / deletion,
  335. * channel change etc ) are updated with this event. Attributes for this
  336. * interface are defined in enum qca_wlan_vendor_attr_mac.
  337. * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
  338. * per peer per TID. Attributes for this command are define in
  339. * enum qca_wlan_set_qdepth_thresh_attr
  340. * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
  341. * guide for WLAN driver. Request to suspend of driver and FW if the
  342. * temperature is higher than the suspend threshold; resume action is
  343. * requested to driver if the temperature is lower than the resume
  344. * threshold. In user poll mode, request temperature data by user. For test
  345. * purpose, getting thermal shutdown configuration parameters is needed.
  346. * Attributes for this interface are defined in
  347. * enum qca_wlan_vendor_attr_thermal_cmd.
  348. * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
  349. * driver. Thermal temperature and indication of resume completion are
  350. * reported as thermal events. The attributes for this command are defined
  351. * in enum qca_wlan_vendor_attr_thermal_event.
  352. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
  353. * test configuration. Attributes for this command are defined in
  354. * enum qca_wlan_vendor_attr_wifi_test_config.
  355. * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
  356. * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
  357. * carried a payload which was a binary blob of data. The command was not
  358. * extendable to send more information. The newer version carries the
  359. * legacy blob encapsulated within an attribute and can be extended with
  360. * additional vendor attributes that can enhance the NAN command
  361. * interface.
  362. * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
  363. * configure parameters per peer to capture Channel Frequency Response
  364. * (CFR) and enable Periodic CFR capture. The attributes for this command
  365. * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command
  366. * can also be used to send CFR data from the driver to userspace when
  367. * netlink events are used to send CFR data.
  368. * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: Sub command to get firmware state.
  369. * The returned firmware state is specified in the attribute
  370. * QCA_WLAN_VENDOR_ATTR_FW_STATE.
  371. * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
  372. * is used by host driver to flush per-peer cached statistics to user space
  373. * application. This interface is used as an event from host driver to
  374. * user space application. Attributes for this event are specified in
  375. * enum qca_wlan_vendor_attr_peer_stats_cache_params.
  376. * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
  377. * sent as event from host driver.
  378. * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
  379. * improve the success rate of Zigbee joining network.
  380. * Due to PTA master limitation, zigbee joining network success rate is
  381. * low while wlan is working. Wlan host driver need to configure some
  382. * parameters including Zigbee state and specific WLAN periods to enhance
  383. * PTA master. All this parameters are delivered by the NetLink attributes
  384. * defined in "enum qca_mpta_helper_vendor_attr".
  385. * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
  386. * implement Beacon frame reporting feature.
  387. *
  388. * Userspace can request the driver/firmware to periodically report
  389. * received Beacon frames whose BSSID is same as the current connected
  390. * BSS's MAC address.
  391. *
  392. * In case the STA seamlessly (without sending disconnect indication to
  393. * userspace) roams to a different BSS, Beacon frame reporting will be
  394. * automatically enabled for the Beacon frames whose BSSID is same as the
  395. * MAC address of the new BSS. Beacon reporting will be stopped when the
  396. * STA is disconnected (when the disconnect indication is sent to
  397. * userspace) and need to be explicitly enabled by userspace for next
  398. * connection.
  399. *
  400. * When a Beacon frame matching configured conditions is received, and if
  401. * userspace has requested to send asynchronous beacon reports, the
  402. * driver/firmware will encapsulate the details of the Beacon frame in an
  403. * event and send it to userspace along with updating the BSS information
  404. * in cfg80211 scan cache, otherwise driver will only update the cfg80211
  405. * scan cache with the information from the received Beacon frame but
  406. * will not send any active report to userspace.
  407. *
  408. * The userspace can request the driver/firmware to stop reporting Beacon
  409. * frames. If the driver/firmware is not able to receive Beacon frames
  410. * due to other Wi-Fi operations such as off-channel activities, etc.,
  411. * the driver/firmware will send a pause event to userspace and stop
  412. * reporting Beacon frames. Whether the beacon reporting will be
  413. * automatically resumed or not by the driver/firmware later will be
  414. * reported to userspace using the
  415. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES flag. The beacon
  416. * reporting shall be resumed for all the cases except either when
  417. * userspace sets QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag
  418. * in the command which triggered the current beacon reporting or during
  419. * any disconnection case as indicated by setting
  420. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
  421. * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
  422. * driver.
  423. *
  424. * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
  425. * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
  426. * flag not set, the next first
  427. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
  428. * shall be considered as un-pause event.
  429. *
  430. * All the attributes used with this command are defined in
  431. * enum qca_wlan_vendor_attr_beacon_reporting_params.
  432. * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some aps have
  433. * interop issues with the DUT. This sub command is used to transfer the
  434. * ap info between driver and user space. This works both as a command
  435. * or event. As a command, it configs the stored list of aps from user
  436. * space to firmware; as an event, it indicates the ap info detected by
  437. * firmware to user space for persistent storage. The attributes defined
  438. * in enum qca_vendor_attr_interop_issues_ap are used to deliver the
  439. * parameters.
  440. * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command is used to send OEM data
  441. * binary blobs from application/service to firmware. The attributes
  442. * defined in enum qca_wlan_vendor_attr_oem_data_params are used to
  443. * deliver the parameters.
  444. * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
  445. * to send/receive avoid frequency data using
  446. * enum qca_wlan_vendor_attr_avoid_frequency_ext.
  447. * This new command is alternative to existing command
  448. * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
  449. * is using stream of bytes instead of structured data using vendor
  450. * attributes. User space sends unsafe frequency ranges to the driver using
  451. * a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On
  452. * reception of this command, the driver shall check if an interface is
  453. * operating on an unsafe frequency and the driver shall try to move to a
  454. * safe channel when needed. If the driver is not able to find a safe
  455. * channel the interface can keep operating on an unsafe channel with the
  456. * TX power limit derived based on internal configurations like
  457. * regulatory/SAR rules.
  458. *
  459. * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
  460. * add the STA node details in driver/firmware. Attributes for this event
  461. * are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
  462. * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
  463. * coex chain mode from application/service.
  464. * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
  465. * to deliver the parameters.
  466. * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
  467. * get information of a station from driver to userspace. This command can
  468. * be used in both STA and AP modes. For STA mode, it provides information
  469. * of the current association when in connected state or the last
  470. * association when in disconnected state. For AP mode, only information
  471. * of the currently connected stations is available. This command uses
  472. * attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
  473. * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
  474. * Host drivers can request the user space entity to set the SAR power
  475. * limits with this event. Accordingly, the user space entity is expected
  476. * to set the SAR power limits. Host drivers can retry this event to the
  477. * user space for the SAR power limits configuration from user space. If
  478. * the driver does not get the SAR power limits from user space for all
  479. * the retried attempts, it can configure a default SAR power limit.
  480. * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
  481. * is used to update the information about the station from the driver to
  482. * userspace. Uses attributes from enum
  483. * qca_wlan_vendor_attr_update_sta_info.
  484. *
  485. * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
  486. * The host driver initiates the disconnection for scenarios such as beacon
  487. * miss, NUD failure, peer kick out, etc. The disconnection indication
  488. * through cfg80211_disconnected() expects the reason codes from enum
  489. * ieee80211_reasoncode which does not signify these various reasons why
  490. * the driver has triggered the disconnection. This event will be used to
  491. * send the driver specific reason codes by the host driver to userspace.
  492. * Host drivers should trigger this event and pass the respective reason
  493. * code immediately prior to triggering cfg80211_disconnected(). The
  494. * attributes used with this event are defined in enum
  495. * qca_wlan_vendor_attr_driver_disconnect_reason.
  496. *
  497. * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
  498. * add/delete TSPEC for each AC. One command is for one specific AC only.
  499. * This command can only be used in STA mode and the STA must be
  500. * associated with an AP when the command is issued. Uses attributes
  501. * defined in enum qca_wlan_vendor_attr_config_tspec.
  502. *
  503. * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
  504. * Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
  505. *
  506. * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the configured band from
  507. * the host driver. The band configurations obtained are referred through
  508. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
  509. *
  510. * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
  511. * assessment.
  512. * Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
  513. *
  514. * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
  515. * used to update SSID information in hostapd when it is updated in the
  516. * driver. Uses the attribute NL80211_ATTR_SSID.
  517. *
  518. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
  519. * the driver to send opaque data from the firmware to userspace. The
  520. * driver sends an event to userspace whenever such data is received from
  521. * the firmware.
  522. *
  523. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
  524. * send this opaque data for this event.
  525. *
  526. * The format of the opaque data is specific to the particular firmware
  527. * version and there is no guarantee of the format remaining same.
  528. *
  529. * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
  530. * The host driver selects Tx VDEV, and notifies user. The attributes
  531. * used with this event are defined in enum
  532. * qca_wlan_vendor_attr_mbssid_tx_vdev_status.
  533. * This event contains Tx VDEV group information contains other VDEVs
  534. * interface index and status information.
  535. *
  536. * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY: Vendor command to
  537. * configure the concurrent session policies when multiple interfaces
  538. * are (getting) active. The attributes used by this command are defined
  539. * in enum qca_wlan_vendor_attr_concurrent_policy.
  540. *
  541. * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command
  542. * to query usable channels for different interface types such as STA,
  543. * AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable
  544. * channels in the response based on country code, different static
  545. * configurations, concurrency combinations, etc. The attributes used
  546. * with this command are defined in
  547. * enum qca_wlan_vendor_attr_usable_channels.
  548. *
  549. * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used
  550. * to get DFS radar history from the driver to userspace. The driver
  551. * returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an
  552. * array of nested entries.
  553. * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to
  554. * enable/disable mDNS offload to the firmware. The attributes used with
  555. * this command are defined in enum qca_wlan_vendor_attr_mdns_offload.
  556. *
  557. * @QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA: Driver uses this command to send
  558. * important debug events that are required for various issues. The
  559. * attributes used with this command are defined in
  560. * enum qca_wlan_vendor_attr_diag.
  561. * This command is defined for temporary usage until this interface is
  562. * moved to the existing diag infra with cnss diag events. This command
  563. * will be deprecated soon and it is not recommended to do any further
  564. * enhancements to this command.
  565. *
  566. * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used
  567. * to set packet monitor mode that aims to send the specified set of TX and
  568. * RX frames on the current client interface to an active monitor interface.
  569. * If this Monitor mode is set, the driver will send the configured frames,
  570. * from the interface on which the command is issued, to an active monitor
  571. * interface. The attributes used with this command are defined in
  572. * enum qca_wlan_vendor_attr_set_monitor_mode.
  573. *
  574. * Though the monitor mode is configured for the respective data/mgmt/ctrl
  575. * frames, it is up to the respective WLAN driver/firmware/hardware designs
  576. * to consider the possibility of sending these frames over the monitor
  577. * interface. For example, the control frames are handled with in the
  578. * hardware and thus passing such frames over the monitor interface is left
  579. * to the respective designs.
  580. *
  581. * Also, this monitor mode is governed to behave accordingly in
  582. * suspend/resume states. If the firmware handles any of such frames
  583. * in suspend state without waking up the host and if the monitor mode
  584. * is configured to notify all such frames, then the firmware is expected
  585. * to resume the host and forward the respective frames to the monitor
  586. * interface. Please note that such a request to get the frames over the
  587. * monitor interface will have a definite power implications.
  588. *
  589. * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both
  590. * as a request to set the driver/firmware with the parameters to trigger
  591. * the roaming events, and also used by the driver/firmware to pass on the
  592. * various roam events to userspace.
  593. * Applicable only for the STA mode. The attributes used with this command
  594. * are defined in enum qca_wlan_vendor_attr_roam_events.
  595. *
  596. * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Sub-command to set or reset the
  597. * rate mask config for a list of phy types. Userspace shall provide
  598. * an array of the vendor attributes defined in
  599. * enum QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS.
  600. *
  601. * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs
  602. * when two interfaces are active on the same band, using two different
  603. * home channels, and only supported by a single radio. In this scenario
  604. * the device must split the use of the radio between the two interfaces.
  605. * The percentage of time allocated to a given interface is the quota.
  606. * Depending on the configuration, the quota can either be fixed or
  607. * dynamic.
  608. *
  609. * When used as an event, the device will report the quota type, and for
  610. * all interfaces operating in MCC it will report the current quota.
  611. * When used as a command, the device can be configured for a specific
  612. * quota type, and in the case of a fixed quota, the quota to apply to one
  613. * of the interfaces.
  614. *
  615. * Applications can use the event to do TX bitrate control based on the
  616. * information, and can use the command to explicitly set the quota to
  617. * enhance performance in specific scenarios.
  618. *
  619. * The attributes used with this command are defined in
  620. * enum qca_wlan_vendor_attr_mcc_quota.
  621. *
  622. * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the
  623. * user space that the driver is ready for operations again after
  624. * recovering from internal failures. This occurs following a failure
  625. * that was indicated by @QCA_NL80211_VENDOR_SUBCMD_HANG.
  626. *
  627. * @QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX: Vendor command to
  628. * get the WLAN radio combinations matrix supported by the device which
  629. * provides the device simultaneous radio configurations such as
  630. * standalone, dual band simultaneous, and single band simultaneous.
  631. *
  632. * The attributes used with this command are defined in
  633. * enum qca_wlan_vendor_attr_radio_combination_matrix.
  634. *
  635. * @QCA_NL80211_VENDOR_SUBCMD_PASN: Subcommand used to offload preassociation
  636. * security negotiation and key generation to user space.
  637. *
  638. * When used as an event, the driver requests userspace to trigger the PASN
  639. * authentication or dropping of a PTKSA for the indicated peer devices.
  640. * When used as a command response, userspace indicates a consolidated
  641. * status report for all the peers that were requested for.
  642. *
  643. * The attributes used with this command are defined in
  644. * enum qca_wlan_vendor_attr_pasn.
  645. *
  646. * @QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT: Subcommand used to set
  647. * secure ranging context such as TK and LTF keyseed for each peer
  648. * requested by the driver with a @QCA_NL80211_VENDOR_SUBCMD_PASN event.
  649. *
  650. * The attributes used with this command are defined in
  651. * enum qca_wlan_vendor_attr_secure_ranging_ctx.
  652. *
  653. * @QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD: This vendor subcommand is used to
  654. * enable/disable offload processing in firmware during system/runtime
  655. * suspend for CoAP messages (see RFC7252: The Constrained Application
  656. * Protocol) and fetch information of the CoAP messages cached during
  657. * offload processing.
  658. *
  659. * The attributes used with this command are defined in
  660. * enum qca_wlan_vendor_attr_coap_offload.
  661. *
  662. * @QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG: Subcommand to configure
  663. * (add, remove, or change) a Stream Classification Service (SCS) rule.
  664. *
  665. * The attributes used with this event are defined in
  666. * enum qca_wlan_vendor_attr_scs_rule_config.
  667. *
  668. * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY: Fetch SAR capabilities
  669. * supported by the WLAN firmware.
  670. *
  671. * The attributes used with this command are defined in
  672. * enum qca_wlan_vendor_attr_sar_capability.
  673. *
  674. * @QCA_NL80211_VENDOR_SUBCMD_SR: Subcommand used to implement Spatial Reuse
  675. * (SR) feature. This command is used by userspace to configure SR
  676. * parameters to the driver and to get the SR related parameters and
  677. * statistics with synchronous responses from the driver.
  678. * The driver also uses this command to send asynchronous events to
  679. * userspace to indicate suspend/resume of SR feature and changes
  680. * in SR parameters.
  681. *
  682. * The attributes used with this command are defined in
  683. * enum qca_wlan_vendor_attr_sr.
  684. *
  685. * @QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT: Subcommand used to
  686. * notify application layer about the primary netdev of an MLO connection.
  687. * In some implementations, MLO has multiple netdevs out of which one
  688. * netdev is designated as primary to provide a unified interface to the
  689. * bridge. In those implementations this event is sent on every MLO peer
  690. * connection. 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. enum qca_nl80211_vendor_subcmds {
  834. QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
  835. QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
  836. QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
  837. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
  838. QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
  839. QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
  840. QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
  841. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
  842. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
  843. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
  844. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
  845. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
  846. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
  847. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20,
  848. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21,
  849. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22,
  850. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23,
  851. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24,
  852. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25,
  853. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26,
  854. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27,
  855. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28,
  856. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29,
  857. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30,
  858. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31,
  859. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32,
  860. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33,
  861. QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
  862. QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
  863. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
  864. QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
  865. QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
  866. QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
  867. QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
  868. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41,
  869. /* Get Concurrency Matrix */
  870. QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
  871. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
  872. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
  873. QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
  874. /* Deprecated */
  875. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53,
  876. QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
  877. QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
  878. /* Off loaded DFS events */
  879. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
  880. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
  881. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
  882. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
  883. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
  884. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
  885. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
  886. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
  887. QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
  888. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65,
  889. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66,
  890. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67,
  891. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68,
  892. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69,
  893. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70,
  894. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71,
  895. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72,
  896. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73,
  897. /* Wi-Fi Configuration subcommands */
  898. QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
  899. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
  900. QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
  901. QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
  902. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
  903. QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
  904. QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
  905. QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
  906. /* NS Offload enable/disable cmd */
  907. QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
  908. QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
  909. QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
  910. QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
  911. QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
  912. /* OCB commands */
  913. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
  914. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
  915. QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
  916. QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
  917. QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
  918. QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
  919. QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
  920. QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
  921. QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
  922. /* subcommand to get link properties */
  923. QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
  924. /* LFR Subnet Detection */
  925. QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
  926. /* DBS subcommands */
  927. QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
  928. QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
  929. /* Vendor setband command */
  930. QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
  931. /* Vendor scan commands */
  932. QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
  933. QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
  934. /* OTA test subcommand */
  935. QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
  936. /* Tx power scaling subcommands */
  937. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
  938. /* Tx power scaling in db subcommands */
  939. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115,
  940. QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
  941. QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117,
  942. QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
  943. QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
  944. QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
  945. QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121,
  946. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
  947. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
  948. QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
  949. QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
  950. QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
  951. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
  952. /* FTM/indoor location subcommands */
  953. QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
  954. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
  955. QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
  956. QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
  957. QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
  958. QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
  959. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
  960. QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
  961. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
  962. /* Encrypt/Decrypt command */
  963. QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
  964. QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
  965. /* DMG low level RF sector operations */
  966. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
  967. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
  968. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
  969. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
  970. /* Configure the TDLS mode from user space */
  971. QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
  972. QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
  973. /* Vendor abort scan command */
  974. QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
  975. /* Set Specific Absorption Rate(SAR) Power Limits */
  976. QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
  977. /* External Auto channel configuration setting */
  978. QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
  979. QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
  980. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
  981. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
  982. QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
  983. /* Set the trace level for QDF */
  984. QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
  985. QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
  986. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
  987. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
  988. QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
  989. QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
  990. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
  991. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
  992. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
  993. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
  994. QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
  995. QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
  996. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
  997. QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
  998. QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
  999. QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
  1000. QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
  1001. /* Wi-Fi test configuration subcommand */
  1002. QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
  1003. QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
  1004. QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
  1005. QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
  1006. QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
  1007. QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
  1008. QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
  1009. QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
  1010. QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
  1011. QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
  1012. QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
  1013. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
  1014. QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
  1015. QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
  1016. QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
  1017. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
  1018. QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
  1019. QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
  1020. QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
  1021. QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
  1022. QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
  1023. QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
  1024. QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
  1025. QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
  1026. QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
  1027. QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197,
  1028. QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
  1029. QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
  1030. QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
  1031. QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA = 201,
  1032. QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
  1033. QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
  1034. QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
  1035. QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
  1036. /* 206..212 - reserved for QCA */
  1037. QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
  1038. QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
  1039. QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
  1040. QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
  1041. QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217,
  1042. QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218,
  1043. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219,
  1044. QCA_NL80211_VENDOR_SUBCMD_SR = 220,
  1045. QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221,
  1046. QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222,
  1047. QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223,
  1048. QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224,
  1049. QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE = 225,
  1050. QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS = 226,
  1051. QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE = 227,
  1052. QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS = 228,
  1053. QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP = 229,
  1054. QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG = 230,
  1055. QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT = 231,
  1056. QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH = 232,
  1057. QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY = 233,
  1058. QCA_NL80211_VENDOR_SUBCMD_RECONFIG_REMOVE_COMPLETE_EVENT = 234,
  1059. };
  1060. enum qca_wlan_vendor_tos {
  1061. QCA_WLAN_VENDOR_TOS_BK = 0,
  1062. QCA_WLAN_VENDOR_TOS_BE = 1,
  1063. QCA_WLAN_VENDOR_TOS_VI = 2,
  1064. QCA_WLAN_VENDOR_TOS_VO = 3,
  1065. };
  1066. /**
  1067. * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
  1068. * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
  1069. */
  1070. enum qca_wlan_vendor_attr_active_tos {
  1071. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
  1072. /* Type Of Service - Represented by qca_wlan_vendor_tos */
  1073. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
  1074. /* Flag attribute representing the start (attribute included) or stop
  1075. * (attribute not included) of the respective TOS.
  1076. */
  1077. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
  1078. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3,
  1079. };
  1080. enum qca_wlan_vendor_hang_reason {
  1081. /* Unspecified reason */
  1082. QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
  1083. /* No Map for the MAC entry for the received frame */
  1084. QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
  1085. /* peer deletion timeout happened */
  1086. QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
  1087. /* peer unmap timeout */
  1088. QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
  1089. /* Scan request timed out */
  1090. QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
  1091. /* Consecutive Scan attempt failures */
  1092. QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
  1093. /* Unable to get the message buffer */
  1094. QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
  1095. /* Current command processing is timedout */
  1096. QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
  1097. /* Timeout for an ACK from FW for suspend request */
  1098. QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
  1099. /* Timeout for an ACK from FW for resume request */
  1100. QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
  1101. /* Transmission timeout for consecutive data frames */
  1102. QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
  1103. /* Timeout for the TX completion status of data frame */
  1104. QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
  1105. /* DXE failure for tx/Rx, DXE resource unavailability */
  1106. QCA_WLAN_HANG_DXE_FAILURE = 12,
  1107. /* WMI pending commands exceed the maximum count */
  1108. QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
  1109. /* Timeout for peer STA connection accept command's response from the
  1110. * FW in AP mode. This command is triggered when a STA (peer) connects
  1111. * to AP (DUT).
  1112. */
  1113. QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
  1114. /* Timeout for the AP connection accept command's response from the FW
  1115. * in STA mode. This command is triggered when the STA (DUT) connects
  1116. * to an AP (peer).
  1117. */
  1118. QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
  1119. /* Timeout waiting for the response to the MAC HW mode change command
  1120. * sent to FW as a part of MAC mode switch among DBS (Dual Band
  1121. * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
  1122. * Channel Concurrency) mode.
  1123. */
  1124. QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
  1125. /* Timeout waiting for the response from FW to configure the MAC HW's
  1126. * mode. This operation is to configure the single/two MACs in either
  1127. * SCC/MCC/DBS mode.
  1128. */
  1129. QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
  1130. /* Timeout waiting for response of VDEV start command from the FW */
  1131. QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
  1132. /* Timeout waiting for response of VDEV restart command from the FW */
  1133. QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
  1134. /* Timeout waiting for response of VDEV stop command from the FW */
  1135. QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
  1136. /* Timeout waiting for response of VDEV delete command from the FW */
  1137. QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
  1138. /* Timeout waiting for response of peer all delete request command to
  1139. * the FW on a specific VDEV.
  1140. */
  1141. QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
  1142. /* WMI sequence mismatch between WMI command and Tx completion */
  1143. QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
  1144. /* Write to Device HAL register failed */
  1145. QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
  1146. /* No credit left to send the wow_wakeup_from_sleep to firmware */
  1147. QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
  1148. /* Bus failure */
  1149. QCA_WLAN_HANG_BUS_FAILURE = 26,
  1150. /* tasklet/credit latency found */
  1151. QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
  1152. /* MSDU buffers received in REO error ring, exceeding certain
  1153. * threshold
  1154. */
  1155. QCA_WLAN_HANG_RX_MSDU_BUF_RCVD_IN_ERR_RING = 28,
  1156. /* Vdev SM is out of sync and connect req received
  1157. * when already connected
  1158. */
  1159. QCA_WLAN_HANG_VDEV_SM_OUT_OF_SYNC = 29,
  1160. /* Stats request timeout */
  1161. QCA_WLAN_HANG_STATS_REQ_TIMEOUT = 30,
  1162. /* Leak in TX descriptor for a packet */
  1163. QCA_WLAN_HANG_TX_DESC_LEAK = 31,
  1164. /* Scheduler watchdog timeout */
  1165. QCA_WLAN_HANG_SCHED_TIMEOUT = 32,
  1166. /* Failed to send self peer deletion cmd to firmware */
  1167. QCA_WLAN_HANG_SELF_PEER_DEL_FAIL = 33,
  1168. /* Received del self sta without del bss */
  1169. QCA_WLAN_HANG_DEL_SELF_STA_FAIL = 34,
  1170. /* Recovery needed when sending flush completion to userspace */
  1171. QCA_WLAN_HANG_FLUSH_LOGS = 35,
  1172. /* Host wakeup because of page fault */
  1173. QCA_WLAN_HANG_HOST_WAKEUP_REASON_PAGE_FAULT = 36,
  1174. };
  1175. /**
  1176. * enum qca_wlan_vendor_attr_hang - Used by the vendor command
  1177. * QCA_NL80211_VENDOR_SUBCMD_HANG.
  1178. */
  1179. enum qca_wlan_vendor_attr_hang {
  1180. QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
  1181. /*
  1182. * Reason for the Hang - Represented by enum
  1183. * qca_wlan_vendor_hang_reason.
  1184. */
  1185. QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
  1186. /* The binary blob data associated with the hang reason specified by
  1187. * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
  1188. * contain the required dump to analyze the reason for the hang.
  1189. * NLA_BINARY attribute, the max size is 1024 bytes.
  1190. */
  1191. QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
  1192. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
  1193. QCA_WLAN_VENDOR_ATTR_HANG_MAX =
  1194. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
  1195. };
  1196. /**
  1197. * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level
  1198. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level
  1199. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters
  1200. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace
  1201. level needs to be updated.
  1202. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need
  1203. * to be set.
  1204. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last.
  1205. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute.
  1206. */
  1207. enum qca_vendor_attr_set_trace_level {
  1208. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0,
  1209. /*
  1210. * Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM
  1211. * attributes.
  1212. */
  1213. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1,
  1214. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2,
  1215. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3,
  1216. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST,
  1217. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX =
  1218. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1,
  1219. };
  1220. /**
  1221. * enum qca_wlan_vendor_attr_get_station - Sub commands used by
  1222. * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding
  1223. * station information. The information obtained through these
  1224. * commands signify the current info in connected state and
  1225. * latest cached information during the connected state , if queried
  1226. * when in disconnected state.
  1227. *
  1228. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute
  1229. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info
  1230. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason
  1231. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info
  1232. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last
  1233. */
  1234. enum qca_wlan_vendor_attr_get_station {
  1235. QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0,
  1236. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO,
  1237. QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON,
  1238. QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE,
  1239. /* keep last */
  1240. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST,
  1241. QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX =
  1242. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1,
  1243. };
  1244. /**
  1245. * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
  1246. * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
  1247. *
  1248. * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
  1249. * Used in STA mode. This attribute represents the list of channel center
  1250. * frequencies in MHz (u32) the station has learnt during the last connection
  1251. * or roaming attempt. This information shall not signify the channels for
  1252. * an explicit scan request from the user space. Host drivers can update this
  1253. * information to the user space in both connected and disconnected state.
  1254. * In the disconnected state this information shall signify the channels
  1255. * scanned in the last connection/roam attempt that lead to the disconnection.
  1256. */
  1257. enum qca_wlan_vendor_attr_update_sta_info {
  1258. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
  1259. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
  1260. /* keep last */
  1261. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
  1262. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
  1263. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
  1264. };
  1265. /**
  1266. * enum qca_wlan_802_11_mode - dot11 mode
  1267. * @QCA_WLAN_802_11_MODE_11B: mode B
  1268. * @QCA_WLAN_802_11_MODE_11G: mode G
  1269. * @QCA_WLAN_802_11_MODE_11N: mode N
  1270. * @QCA_WLAN_802_11_MODE_11A: mode A
  1271. * @QCA_WLAN_802_11_MODE_11AC: mode AC
  1272. * @QCA_WLAN_802_11_MODE_11AX: mode AX
  1273. * @QCA_WLAN_802_11_MODE_11BE: mode BE
  1274. * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode
  1275. */
  1276. enum qca_wlan_802_11_mode {
  1277. QCA_WLAN_802_11_MODE_11B,
  1278. QCA_WLAN_802_11_MODE_11G,
  1279. QCA_WLAN_802_11_MODE_11N,
  1280. QCA_WLAN_802_11_MODE_11A,
  1281. QCA_WLAN_802_11_MODE_11AC,
  1282. QCA_WLAN_802_11_MODE_11AX,
  1283. QCA_WLAN_802_11_MODE_11BE,
  1284. QCA_WLAN_802_11_MODE_INVALID,
  1285. };
  1286. /**
  1287. * enum qca_wlan_auth_type - Authentication key management type
  1288. * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type
  1289. * @QCA_WLAN_AUTH_TYPE_OPEN: Open key
  1290. * @QCA_WLAN_AUTH_TYPE_SHARED: shared key
  1291. * @QCA_WLAN_AUTH_TYPE_WPA: wpa key
  1292. * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key
  1293. * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key
  1294. * @QCA_WLAN_AUTH_TYPE_RSN: rsn key
  1295. * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key
  1296. * @QCA_WLAN_AUTH_TYPE_FT: ft key
  1297. * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key
  1298. * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key
  1299. * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk
  1300. * @QCA_WLAN_AUTH_TYPE_WAI: wai key
  1301. * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key
  1302. * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key
  1303. * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key
  1304. * @QCA_WLAN_AUTH_TYPE_AUTOSWITCH: Autoswitch key
  1305. * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm
  1306. * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384
  1307. * @QCA_WLAN_AUTH_TYPE_SAE: SAE key
  1308. * @QCA_WLAN_AUTH_TYPE_FILS_SHA256: FILS SHA 256 key
  1309. * @QCA_WLAN_AUTH_TYPE_FILS_SHA384: FILS SAH 384 key
  1310. * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256: FT FILS SHA 256 key
  1311. * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384: FT FILS SHA 384 key
  1312. * @QCA_WLAN_AUTH_TYPE_DPP_RSN: DPP RSN key
  1313. * @QCA_WLAN_AUTH_TYPE_OWE: owe key
  1314. * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256 : EAP SHA 256 key
  1315. * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384 : EAP SHA 384 key
  1316. */
  1317. enum qca_wlan_auth_type {
  1318. QCA_WLAN_AUTH_TYPE_INVALID,
  1319. QCA_WLAN_AUTH_TYPE_OPEN,
  1320. QCA_WLAN_AUTH_TYPE_SHARED,
  1321. QCA_WLAN_AUTH_TYPE_WPA,
  1322. QCA_WLAN_AUTH_TYPE_WPA_PSK,
  1323. QCA_WLAN_AUTH_TYPE_WPA_NONE,
  1324. QCA_WLAN_AUTH_TYPE_RSN,
  1325. QCA_WLAN_AUTH_TYPE_RSN_PSK,
  1326. QCA_WLAN_AUTH_TYPE_FT,
  1327. QCA_WLAN_AUTH_TYPE_FT_PSK,
  1328. QCA_WLAN_AUTH_TYPE_SHA256,
  1329. QCA_WLAN_AUTH_TYPE_SHA256_PSK,
  1330. QCA_WLAN_AUTH_TYPE_WAI,
  1331. QCA_WLAN_AUTH_TYPE_WAI_PSK,
  1332. QCA_WLAN_AUTH_TYPE_CCKM_WPA,
  1333. QCA_WLAN_AUTH_TYPE_CCKM_RSN,
  1334. QCA_WLAN_AUTH_TYPE_AUTOSWITCH,
  1335. QCA_WLAN_AUTH_TYPE_FT_SAE,
  1336. QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384,
  1337. QCA_WLAN_AUTH_TYPE_SAE,
  1338. QCA_WLAN_AUTH_TYPE_FILS_SHA256,
  1339. QCA_WLAN_AUTH_TYPE_FILS_SHA384,
  1340. QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256,
  1341. QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384,
  1342. QCA_WLAN_AUTH_TYPE_DPP_RSN,
  1343. QCA_WLAN_AUTH_TYPE_OWE,
  1344. QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256,
  1345. QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384,
  1346. };
  1347. /**
  1348. * enum qca_wlan_vendor_attr_get_station_info - Station Info queried
  1349. * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION.
  1350. *
  1351. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute
  1352. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR:
  1353. * Get the standard NL attributes Nested with this attribute.
  1354. * Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link -
  1355. * NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) /
  1356. * NL80211_ATTR_STA_INFO
  1357. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR:
  1358. * Get the standard NL attributes Nested with this attribute.
  1359. * Ex : Query HT/VHT Capability advertised by the AP.
  1360. * NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY
  1361. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT:
  1362. * Number of successful Roam attempts before a
  1363. * disconnect, Unsigned 32 bit value
  1364. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM:
  1365. * Authentication Key Management Type used for the connected session.
  1366. * Signified by enum qca_wlan_auth_type
  1367. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the
  1368. * connected Session, signified by enum qca_wlan_802_11_mode
  1369. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION:
  1370. * HS20 Indication Element
  1371. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON:
  1372. * Status Code Corresponding to the Association Failure.
  1373. * Unsigned 32 bit value.
  1374. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE:
  1375. * Max phy rate of remote station
  1376. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS:
  1377. * TX packets to remote station
  1378. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES:
  1379. * TX bytes to remote station
  1380. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS:
  1381. * RX packets from remote station
  1382. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES:
  1383. * RX bytes from remote station
  1384. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE:
  1385. * Last TX rate with remote station
  1386. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE:
  1387. * Last RX rate with remote station
  1388. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM:
  1389. * Remote station enable/disable WMM
  1390. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE:
  1391. * Remote station connection mode
  1392. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU:
  1393. * Remote station AMPDU enable/disable
  1394. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC:
  1395. * Remote station TX Space-time block coding enable/disable
  1396. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC:
  1397. * Remote station RX Space-time block coding enable/disable
  1398. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH:
  1399. * Remote station channel width
  1400. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE:
  1401. * Remote station short GI enable/disable
  1402. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding
  1403. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES: Binary attribute
  1404. * containing the raw information elements from Beacon frames. Represents
  1405. * the Beacon frames of the current BSS in the connected state. When queried
  1406. * in the disconnected state, these IEs correspond to the last connected BSSID.
  1407. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON: u32, Driver
  1408. * disconnect reason for the last disconnection if the disconnection is
  1409. * triggered from the host driver. The values are referred from
  1410. * enum qca_disconnect_reason_codes. If the disconnect is from
  1411. * peer/userspace this value is QCA_DISCONNECT_REASON_UNSPECIFIED.
  1412. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES: Binary attribute
  1413. * Applicable in AP mode only. It contains the raw information elements
  1414. * from assoc request frame of the given peer station. User queries with the
  1415. * mac address of peer station when it disconnects. Host driver sends
  1416. * assoc request frame of the given station. Host driver doesn't provide
  1417. * the IEs when the peer station is still in connected state.
  1418. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION: Attribute type for
  1419. * sending HE operation info.
  1420. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH_V2: Attribute
  1421. * type for remote channel width greater than 160 MHz.
  1422. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_EHT_OPERATION: Attribute type for
  1423. * sending EHT operation info.
  1424. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last
  1425. *
  1426. */
  1427. enum qca_wlan_vendor_attr_get_station_info {
  1428. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0,
  1429. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR,
  1430. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR,
  1431. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT,
  1432. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM,
  1433. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE,
  1434. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION,
  1435. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION,
  1436. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION,
  1437. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON,
  1438. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE,
  1439. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS,
  1440. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES,
  1441. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS,
  1442. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES,
  1443. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE,
  1444. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE,
  1445. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM,
  1446. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE,
  1447. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU,
  1448. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC,
  1449. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC,
  1450. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH,
  1451. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE,
  1452. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD,
  1453. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT,
  1454. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT,
  1455. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_FAILURE,
  1456. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AVG_RSSI_PER_CHAIN,
  1457. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_SUCCEED,
  1458. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_LAST_PKT_RSSI,
  1459. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY,
  1460. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST,
  1461. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_TOTAL_FW,
  1462. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_FW,
  1463. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST_FW,
  1464. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES,
  1465. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON,
  1466. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES,
  1467. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION,
  1468. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH_V2,
  1469. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_EHT_OPERATION,
  1470. /* keep last */
  1471. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST,
  1472. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX =
  1473. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1,
  1474. };
  1475. /**
  1476. * qca_chip_power_save_failure_reason: Power save failure reason
  1477. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure
  1478. * due to protocol/module.
  1479. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure
  1480. * due to hardware
  1481. */
  1482. enum qca_chip_power_save_failure_reason {
  1483. QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
  1484. QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
  1485. };
  1486. /**
  1487. * qca_attr_chip_power_save_failure: attributes to vendor subcmd
  1488. * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite
  1489. * information leading to the power save failure.
  1490. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid
  1491. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason
  1492. * represented by enum qca_chip_power_save_failure_reason
  1493. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last
  1494. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value
  1495. */
  1496. enum qca_attr_chip_power_save_failure {
  1497. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
  1498. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
  1499. /* keep last */
  1500. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
  1501. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
  1502. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
  1503. };
  1504. /* enum's to provide TDLS capabilities */
  1505. enum qca_wlan_vendor_attr_get_tdls_capabilities {
  1506. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
  1507. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1,
  1508. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2,
  1509. /* keep last */
  1510. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
  1511. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
  1512. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
  1513. };
  1514. /* Compatibility defines for previously used subcmd names.
  1515. * These values should not be used in any new implementation.
  1516. */
  1517. #define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \
  1518. QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY
  1519. enum qca_wlan_vendor_attr {
  1520. QCA_WLAN_VENDOR_ATTR_INVALID = 0,
  1521. /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
  1522. QCA_WLAN_VENDOR_ATTR_DFS = 1,
  1523. /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
  1524. QCA_WLAN_VENDOR_ATTR_NAN = 2,
  1525. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  1526. QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
  1527. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  1528. QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
  1529. /*
  1530. * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
  1531. * by enum qca_roaming_policy.
  1532. */
  1533. QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
  1534. QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
  1535. /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
  1536. QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
  1537. QCA_WLAN_VENDOR_ATTR_TEST = 8,
  1538. /*
  1539. * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES
  1540. * Unsigned 32-bit value.
  1541. */
  1542. QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
  1543. /* Unsigned 32-bit value */
  1544. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
  1545. /* Unsigned 32-bit value */
  1546. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
  1547. /* Unsigned 32-bit value from enum qca_set_band. Also, the acceptable
  1548. * value for this attribute are only till QCA_SETBAND_2G. This attribute
  1549. * is deprecated. Recommendation is to use
  1550. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. If the band is configured
  1551. * using both the attributes, the ones configured through
  1552. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK take the precedence.
  1553. */
  1554. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
  1555. /* Dummy (NOP) attribute for 64 bit padding */
  1556. QCA_WLAN_VENDOR_ATTR_PAD = 13,
  1557. /*
  1558. * Unique FTM session cookie (Unsigned 64 bit). Specified in
  1559. * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
  1560. * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
  1561. * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
  1562. */
  1563. QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
  1564. /*
  1565. * Indoor location capabilities, returned by
  1566. * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
  1567. * see enum qca_wlan_vendor_attr_loc_capa.
  1568. */
  1569. QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
  1570. /*
  1571. * Array of nested attributes containing information about each peer
  1572. * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
  1573. * for supported attributes for each peer.
  1574. */
  1575. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
  1576. /*
  1577. * Array of nested attributes containing measurement results for
  1578. * one or more peers, reported by the
  1579. * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
  1580. * See enum qca_wlan_vendor_attr_peer_result for list of supported
  1581. * attributes.
  1582. */
  1583. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
  1584. /* Flag attribute for enabling or disabling responder functionality. */
  1585. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
  1586. /*
  1587. * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  1588. * command to specify the LCI report that will be sent by
  1589. * the responder during a measurement exchange. The format is
  1590. * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
  1591. */
  1592. QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
  1593. /*
  1594. * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  1595. * command to specify the location civic report that will
  1596. * be sent by the responder during a measurement exchange.
  1597. * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
  1598. */
  1599. QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
  1600. /*
  1601. * Session/measurement completion status code,
  1602. * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
  1603. * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
  1604. * see enum qca_vendor_attr_loc_session_status.
  1605. */
  1606. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
  1607. /*
  1608. * Initial dialog token used by responder (0 if not specified),
  1609. * unsigned 8 bit value.
  1610. */
  1611. QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
  1612. /*
  1613. * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
  1614. * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
  1615. * AOA measurements are needed as part of an FTM session.
  1616. * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
  1617. * enum qca_wlan_vendor_attr_aoa_type.
  1618. */
  1619. QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
  1620. /*
  1621. * A bit mask (unsigned 32 bit value) of antenna arrays used
  1622. * by indoor location measurements. Refers to the antenna
  1623. * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
  1624. */
  1625. QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
  1626. /*
  1627. * AOA measurement data. Its contents depends on the AOA measurement
  1628. * type and antenna array mask:
  1629. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
  1630. * phase of the strongest CIR path for each antenna in the measured
  1631. * array(s).
  1632. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
  1633. * values, phase and amplitude of the strongest CIR path for each
  1634. * antenna in the measured array(s).
  1635. */
  1636. QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
  1637. /*
  1638. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1639. * to specify the chain number (unsigned 32 bit value) to inquire
  1640. * the corresponding antenna RSSI value */
  1641. QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
  1642. /*
  1643. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1644. * to report the specific antenna RSSI value (unsigned 32 bit value) */
  1645. QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
  1646. /* Frequency in MHz, various uses. Unsigned 32 bit value */
  1647. QCA_WLAN_VENDOR_ATTR_FREQ = 28,
  1648. /*
  1649. * TSF timer value, unsigned 64 bit value.
  1650. * May be returned by various commands.
  1651. */
  1652. QCA_WLAN_VENDOR_ATTR_TSF = 29,
  1653. /*
  1654. * DMG RF sector index, unsigned 16 bit number. Valid values are
  1655. * 0..127 for sector indices or 65535 as special value used to
  1656. * unlock sector selection in
  1657. * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
  1658. */
  1659. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
  1660. /*
  1661. * DMG RF sector type, unsigned 8 bit value. One of the values
  1662. * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
  1663. */
  1664. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
  1665. /*
  1666. * Bitmask of DMG RF modules for which information is requested. Each
  1667. * bit corresponds to an RF module with the same index as the bit
  1668. * number. Unsigned 32 bit number but only low 8 bits can be set since
  1669. * all DMG chips currently have up to 8 RF modules.
  1670. */
  1671. QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
  1672. /*
  1673. * Array of nested attributes where each entry is DMG RF sector
  1674. * configuration for a single RF module.
  1675. * Attributes for each entry are taken from enum
  1676. * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
  1677. * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
  1678. * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
  1679. */
  1680. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
  1681. /*
  1682. * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
  1683. * to report frame aggregation statistics to userspace.
  1684. */
  1685. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
  1686. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
  1687. /*
  1688. * Unsigned 8-bit value representing MBO transition reason code as
  1689. * provided by the AP used by subcommand
  1690. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
  1691. * specified by the userspace in the request to the driver.
  1692. */
  1693. QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
  1694. /*
  1695. * Array of nested attributes, BSSID and status code, used by subcommand
  1696. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
  1697. * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
  1698. * The userspace space specifies the list/array of candidate BSSIDs in
  1699. * the order of preference in the request. The driver specifies the
  1700. * status code, for each BSSID in the list, in the response. The
  1701. * acceptable candidates are listed in the order preferred by the
  1702. * driver.
  1703. */
  1704. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
  1705. /*
  1706. * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
  1707. * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
  1708. */
  1709. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
  1710. /*
  1711. * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
  1712. * to define the number of antennas to use for BRP.
  1713. * different purpose in each ANT_LIMIT_MODE:
  1714. * DISABLE - ignored
  1715. * EFFECTIVE - upper limit to number of antennas to be used
  1716. * FORCE - exact number of antennas to be used
  1717. * unsigned 8 bit value
  1718. */
  1719. QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
  1720. /*
  1721. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1722. * to report the corresponding antenna index to the chain RSSI value
  1723. */
  1724. QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
  1725. /*
  1726. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1727. * to report the specific antenna EVM value (unsigned 32 bit value).
  1728. * With a determinate group of antennas, the driver specifies the
  1729. * EVM value for each antenna ID, and application extract them
  1730. * in user space.
  1731. */
  1732. QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
  1733. /*
  1734. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
  1735. * wlan firmware current state. FW state is an unsigned 8 bit value,
  1736. * one of the values in enum qca_wlan_vendor_attr_fw_state.
  1737. */
  1738. QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
  1739. /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
  1740. * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only the
  1741. * integer values of enum qca_set_band till QCA_SETBAND_2G are valid.
  1742. * This attribute shall consider the bitmask combinations to define
  1743. * the respective Band combinations and always takes precedence over
  1744. * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE.
  1745. */
  1746. QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
  1747. /* Unsigned 8-bit used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES.
  1748. * This field describes the maximum number of links supported by the
  1749. * chip for MLO association.
  1750. * This is an optional attribute.
  1751. */
  1752. QCA_WLAN_VENDOR_ATTR_MLO_CAPABILITY_MAX_ASSOCIATION_COUNT = 44,
  1753. /* Unsigned 8-bit used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES.
  1754. * This field describes the maximum number of Simultaneous Transmit
  1755. * and Receive (STR) links used in Multi-Link Operation.
  1756. * The maximum number of STR links used can be different
  1757. * from the maximum number of radios supported by the chip.
  1758. * This is a static configuration of the chip.
  1759. * This is an optional attribute.
  1760. */
  1761. QCA_WLAN_VENDOR_ATTR_MLO_CAPABILITY_MAX_STR_LINK_COUNT = 45,
  1762. /* keep last */
  1763. QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
  1764. QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1
  1765. };
  1766. enum qca_wlan_vendor_attr_extscan_config_params {
  1767. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
  1768. /* Unsigned 32-bit value */
  1769. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
  1770. /*
  1771. * Attributes for data used by
  1772. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command.
  1773. */
  1774. /* Unsigned 32-bit value */
  1775. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
  1776. = 2,
  1777. /* Unsigned 32-bit value */
  1778. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
  1779. = 3,
  1780. /*
  1781. * Attributes for input params used by
  1782. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command.
  1783. */
  1784. /* Unsigned 32-bit value; channel frequency */
  1785. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4,
  1786. /* Unsigned 32-bit value; dwell time in ms. */
  1787. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
  1788. /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
  1789. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6,
  1790. /* Unsigned 8-bit value; channel class */
  1791. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7,
  1792. /* Unsigned 8-bit value; bucket index, 0 based */
  1793. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8,
  1794. /* Unsigned 8-bit value; band. */
  1795. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9,
  1796. /* Unsigned 32-bit value; desired period, in ms. */
  1797. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10,
  1798. /* Unsigned 8-bit value; report events semantics. */
  1799. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
  1800. /*
  1801. * Unsigned 32-bit value. Followed by a nested array of
  1802. * EXTSCAN_CHANNEL_SPEC_* attributes.
  1803. */
  1804. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
  1805. /*
  1806. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes.
  1807. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  1808. */
  1809. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13,
  1810. /* Unsigned 32-bit value; base timer period in ms. */
  1811. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
  1812. /*
  1813. * Unsigned 32-bit value; number of APs to store in each scan in the
  1814. * BSSID/RSSI history buffer (keep the highest RSSI APs).
  1815. */
  1816. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
  1817. /*
  1818. * Unsigned 8-bit value; in %, when scan buffer is this much full, wake
  1819. * up AP.
  1820. */
  1821. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
  1822. = 16,
  1823. /*
  1824. * Unsigned 8-bit value; number of scan bucket specs; followed by a
  1825. * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size
  1826. * of the array is determined by NUM_BUCKETS.
  1827. */
  1828. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
  1829. /*
  1830. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes.
  1831. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
  1832. */
  1833. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18,
  1834. /* Unsigned 8-bit value */
  1835. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
  1836. = 19,
  1837. /* Unsigned 32-bit value; maximum number of results to be returned. */
  1838. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
  1839. = 20,
  1840. /* An array of 6 x unsigned 8-bit value */
  1841. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
  1842. /* Signed 32-bit value */
  1843. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
  1844. /* Signed 32-bit value */
  1845. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
  1846. /* Unsigned 32-bit value */
  1847. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
  1848. /*
  1849. * Number of hotlist APs as unsigned 32-bit value, followed by a nested
  1850. * array of AP_THRESHOLD_PARAM attributes and values. The size of the
  1851. * array is determined by NUM_AP.
  1852. */
  1853. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
  1854. /*
  1855. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes.
  1856. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  1857. */
  1858. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26,
  1859. /* Unsigned 32-bit value; number of samples for averaging RSSI. */
  1860. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
  1861. = 27,
  1862. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  1863. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
  1864. = 28,
  1865. /* Unsigned 32-bit value; number of APs breaching threshold. */
  1866. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
  1867. /*
  1868. * Unsigned 32-bit value; number of APs. Followed by an array of
  1869. * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
  1870. */
  1871. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
  1872. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  1873. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
  1874. = 31,
  1875. /*
  1876. * Unsigned 32-bit value. If max_period is non zero or different than
  1877. * period, then this bucket is an exponential backoff bucket.
  1878. */
  1879. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
  1880. /* Unsigned 32-bit value. */
  1881. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33,
  1882. /*
  1883. * Unsigned 32-bit value. For exponential back off bucket, number of
  1884. * scans to perform for a given period.
  1885. */
  1886. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34,
  1887. /*
  1888. * Unsigned 8-bit value; in number of scans, wake up AP after these
  1889. * many scans.
  1890. */
  1891. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
  1892. = 35,
  1893. /*
  1894. * Attributes for data used by
  1895. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command.
  1896. */
  1897. /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
  1898. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
  1899. = 36,
  1900. /*
  1901. * Number of hotlist SSIDs as unsigned 32-bit value, followed by a
  1902. * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
  1903. * size of the array is determined by NUM_SSID.
  1904. */
  1905. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
  1906. /*
  1907. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_*
  1908. * attributes.
  1909. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
  1910. */
  1911. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38,
  1912. /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
  1913. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
  1914. /* Unsigned 8-bit value */
  1915. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
  1916. /* Signed 32-bit value */
  1917. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
  1918. /* Signed 32-bit value */
  1919. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
  1920. /* Unsigned 32-bit value; a bitmask with additional extscan config flag.
  1921. */
  1922. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43,
  1923. /* keep last */
  1924. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
  1925. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX =
  1926. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
  1927. };
  1928. enum qca_wlan_vendor_attr_extscan_results {
  1929. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0,
  1930. /*
  1931. * Unsigned 32-bit value; must match the request Id supplied by
  1932. * Wi-Fi HAL in the corresponding subcmd NL msg.
  1933. */
  1934. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1,
  1935. /*
  1936. * Unsigned 32-bit value; used to indicate the status response from
  1937. * firmware/driver for the vendor sub-command.
  1938. */
  1939. QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2,
  1940. /*
  1941. * EXTSCAN Valid Channels attributes */
  1942. /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
  1943. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3,
  1944. /*
  1945. * An array of NUM_CHANNELS x unsigned 32-bit value integers
  1946. * representing channel numbers.
  1947. */
  1948. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4,
  1949. /* EXTSCAN Capabilities attributes */
  1950. /* Unsigned 32-bit value */
  1951. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
  1952. /* Unsigned 32-bit value */
  1953. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
  1954. /* Unsigned 32-bit value */
  1955. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
  1956. = 7,
  1957. /* Unsigned 32-bit value */
  1958. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
  1959. = 8,
  1960. /* Signed 32-bit value */
  1961. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
  1962. = 9,
  1963. /* Unsigned 32-bit value */
  1964. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
  1965. /* Unsigned 32-bit value */
  1966. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
  1967. = 11,
  1968. /* Unsigned 32-bit value */
  1969. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
  1970. = 12,
  1971. /*
  1972. * EXTSCAN Attributes used with
  1973. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command.
  1974. */
  1975. /* Unsigned 32-bit value */
  1976. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
  1977. /*
  1978. * EXTSCAN attributes used with
  1979. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command.
  1980. */
  1981. /*
  1982. * An array of NUM_RESULTS_AVAILABLE x
  1983. * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_*
  1984. */
  1985. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14,
  1986. /* Unsigned 64-bit value; age of sample at the time of retrieval */
  1987. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
  1988. /* 33 x unsigned 8-bit value; NULL terminated SSID */
  1989. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16,
  1990. /* An array of 6 x unsigned 8-bit value */
  1991. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
  1992. /* Unsigned 32-bit value; channel frequency in MHz */
  1993. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
  1994. /* Signed 32-bit value */
  1995. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
  1996. /* Unsigned 32-bit value */
  1997. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20,
  1998. /* Unsigned 32-bit value */
  1999. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
  2000. /* Unsigned 16-bit value */
  2001. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
  2002. /* Unsigned 16-bit value */
  2003. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
  2004. /* Unsigned 32-bit value; size of the IE DATA blob */
  2005. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
  2006. /*
  2007. * An array of IE_LENGTH x unsigned 8-bit value; blob of all the
  2008. * information elements found in the beacon; this data should be a
  2009. * packed list of wifi_information_element objects, one after the
  2010. * other.
  2011. */
  2012. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
  2013. /*
  2014. * Unsigned 8-bit value; set by driver to indicate more scan results are
  2015. * available.
  2016. */
  2017. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
  2018. /*
  2019. * EXTSCAN attributes for
  2020. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command.
  2021. */
  2022. /* Unsigned 8-bit value */
  2023. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
  2024. /* Unsigned 32-bit value */
  2025. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
  2026. /*
  2027. * EXTSCAN attributes for
  2028. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command.
  2029. */
  2030. /*
  2031. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  2032. * to indicate number of results.
  2033. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
  2034. * list of results.
  2035. */
  2036. /*
  2037. * EXTSCAN attributes for
  2038. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command.
  2039. */
  2040. /* An array of 6 x unsigned 8-bit value */
  2041. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
  2042. /* Unsigned 32-bit value */
  2043. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
  2044. = 30,
  2045. /* Unsigned 32-bit value. */
  2046. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
  2047. = 31,
  2048. /*
  2049. * A nested array of signed 32-bit RSSI values. Size of the array is
  2050. * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
  2051. */
  2052. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
  2053. = 32,
  2054. /*
  2055. * EXTSCAN attributes used with
  2056. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command.
  2057. */
  2058. /*
  2059. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  2060. * to indicate number of extscan cached results returned.
  2061. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate
  2062. * the list of extscan cached results.
  2063. */
  2064. /*
  2065. * An array of NUM_RESULTS_AVAILABLE x
  2066. * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_*
  2067. */
  2068. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33,
  2069. /* Unsigned 32-bit value; a unique identifier for the scan unit. */
  2070. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34,
  2071. /*
  2072. * Unsigned 32-bit value; a bitmask w/additional information about scan.
  2073. */
  2074. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35,
  2075. /*
  2076. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  2077. * to indicate number of wifi scan results/bssids retrieved by the scan.
  2078. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
  2079. * list of wifi scan results returned for each cached result block.
  2080. */
  2081. /*
  2082. * EXTSCAN attributes for
  2083. * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
  2084. */
  2085. /*
  2086. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
  2087. * number of results.
  2088. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
  2089. * list of wifi scan results returned for each
  2090. * wifi_passpoint_match_result block.
  2091. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
  2092. */
  2093. /*
  2094. * EXTSCAN attributes for
  2095. * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
  2096. */
  2097. /* Unsigned 32-bit value */
  2098. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
  2099. = 36,
  2100. /*
  2101. * A nested array of
  2102. * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
  2103. * attributes. Array size =
  2104. * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
  2105. */
  2106. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
  2107. /* Unsigned 32-bit value; network block id for the matched network */
  2108. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
  2109. /*
  2110. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
  2111. * list of wifi scan results returned for each
  2112. * wifi_passpoint_match_result block.
  2113. */
  2114. /* Unsigned 32-bit value */
  2115. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
  2116. /*
  2117. * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
  2118. * ANQP data in the information_element format.
  2119. */
  2120. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
  2121. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2122. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
  2123. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2124. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
  2125. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2126. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
  2127. = 43,
  2128. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2129. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
  2130. = 44,
  2131. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45,
  2132. QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
  2133. /* keep last */
  2134. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST,
  2135. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX =
  2136. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1,
  2137. };
  2138. /**
  2139. * enum qca_vendor_interop_issues_ap_type - interop issues type
  2140. * This enum defines the valid set of values of interop issues type. These
  2141. * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
  2142. *
  2143. * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue
  2144. * when the STA's Qpower feature is enabled.
  2145. */
  2146. enum qca_vendor_interop_issues_ap_type {
  2147. QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
  2148. QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
  2149. };
  2150. /**
  2151. * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues
  2152. * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
  2153. *
  2154. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value
  2155. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type
  2156. * 32-bit unsigned value, The type defined in enum
  2157. * qca_vendor_interop_issues_ap_type are used.
  2158. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container
  2159. * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes,
  2160. * it is present and mandatory for the command but is not used for
  2161. * the event since only a single BSSID is reported in an event.
  2162. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid
  2163. * 6-byte MAC address. It is used within the nested
  2164. * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case
  2165. * and without such encapsulation in the event case.
  2166. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
  2167. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
  2168. */
  2169. enum qca_vendor_attr_interop_issues_ap {
  2170. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
  2171. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
  2172. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
  2173. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
  2174. /* keep last */
  2175. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
  2176. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
  2177. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
  2178. };
  2179. #ifdef WLAN_FEATURE_LINK_LAYER_STATS
  2180. enum qca_wlan_vendor_attr_ll_stats_set {
  2181. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
  2182. /* Unsigned 32-bit value */
  2183. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
  2184. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
  2185. /* keep last */
  2186. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
  2187. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
  2188. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
  2189. };
  2190. /**
  2191. * qca_wlan_ll_stats_clr_req_bitmap - Represents the bitmap to clear LL STATS
  2192. * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK.
  2193. *
  2194. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO: Clear all radio statistics.
  2195. *
  2196. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA: Clear cca_busy_time within
  2197. * radio statistics.
  2198. *
  2199. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNEL: Clear all channel
  2200. * statistics within radio statistics.
  2201. *
  2202. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_SCAN: Clear all scan statistics within
  2203. * radio statistics.
  2204. *
  2205. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE: Clear all interface statistics.
  2206. *
  2207. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE: Clear all TX rate statistics
  2208. * within interface statistics.
  2209. *
  2210. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC: Clear all AC statistics within
  2211. * interface statistics.
  2212. *
  2213. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION: Clear all contention
  2214. * (min, max, avg) statistics within AC statistics.
  2215. *
  2216. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER: Clear all peer statistics
  2217. * on this interface.
  2218. *
  2219. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER: Clear particular peer
  2220. * statistics depending on the peer_mac.
  2221. */
  2222. enum qca_wlan_ll_stats_clr_req_bitmap {
  2223. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO = BIT(0),
  2224. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA = BIT(1),
  2225. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNELS = BIT(2),
  2226. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_SCAN = BIT(3),
  2227. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE = BIT(4),
  2228. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE = BIT(5),
  2229. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC = BIT(6),
  2230. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION = BIT(7),
  2231. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER = BIT(8),
  2232. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER = BIT(9),
  2233. };
  2234. enum qca_wlan_vendor_attr_ll_stats_clr {
  2235. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
  2236. /* Unsigned 32bit bitmap for clearing statistics, specified
  2237. * in the enum qca_wlan_ll_stats_clr_req_bitmap.
  2238. */
  2239. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
  2240. /* Unsigned 8 bit value: Request to stop statistics collection */
  2241. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
  2242. /* Unsigned 32 bit bitmap: Response from the driver
  2243. * for the cleared statistics
  2244. */
  2245. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
  2246. /* Unsigned 8 bit value: Response from driver/firmware
  2247. * for the stop request
  2248. */
  2249. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
  2250. /* keep last */
  2251. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
  2252. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
  2253. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
  2254. };
  2255. /**
  2256. * qca_wlan_ll_stats_get_req_bitmap - Represents the bitmap to request LL STATS
  2257. * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK.
  2258. *
  2259. * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO: Request all radio statistics.
  2260. *
  2261. * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE: Request interface statistics.
  2262. *
  2263. * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER: Request all peer statistics.
  2264. *
  2265. * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER: Request per peer statistics.
  2266. */
  2267. enum qca_wlan_ll_stats_get_req_bitmap {
  2268. QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO = BIT(0),
  2269. QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE = BIT(1),
  2270. QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER = BIT(2),
  2271. QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER = BIT(3),
  2272. };
  2273. enum qca_wlan_vendor_attr_ll_stats_get {
  2274. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
  2275. /* Unsigned 32 bit value provided by the caller issuing the GET stats
  2276. * command. When reporting the stats results, the driver uses the same
  2277. * value to indicate which GET request the results correspond to.
  2278. */
  2279. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
  2280. /* Unsigned 32 bit value - bit mask to identify what statistics are
  2281. * requested for retrieval specified in the enum
  2282. * qca_wlan_ll_stats_get_req_bitmap
  2283. */
  2284. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
  2285. /* keep last */
  2286. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
  2287. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
  2288. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
  2289. };
  2290. enum qca_wlan_vendor_attr_ll_stats_results {
  2291. QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
  2292. /*
  2293. * For Multi Link Operation (MLO) connection, per-link statistics will
  2294. * be sent inside of %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and
  2295. * cumulative statistics will be sent outside of
  2296. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to maintain backward
  2297. * compatibility with legacy user space. Attributes which don't have
  2298. * explicit documentation for MLO will be sent only outside of
  2299. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK, such attributes values
  2300. * don't depend on whether the connection is MLO capable or not, e.g.,
  2301. * radio and channel specific attributes.
  2302. */
  2303. /* Unsigned 32bit value. Used by the driver; must match the request id
  2304. * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
  2305. */
  2306. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
  2307. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2308. * the link with the best RSSI outside
  2309. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2310. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2311. */
  2312. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
  2313. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2314. * the link with the best RSSI outside
  2315. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2316. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2317. */
  2318. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
  2319. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2320. * the link with the best RSSI outside
  2321. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2322. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2323. */
  2324. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
  2325. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2326. * the link with the best RSSI outside
  2327. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2328. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2329. */
  2330. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
  2331. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2332. * the link with the best RSSI outside
  2333. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2334. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2335. */
  2336. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
  2337. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2338. * the link with the best RSSI outside
  2339. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2340. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2341. */
  2342. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
  2343. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2344. * the link with the best RSSI outside
  2345. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2346. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2347. */
  2348. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
  2349. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
  2350. * nested within the interface stats.
  2351. */
  2352. /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
  2353. * Type = enum wifi_interface_mode.
  2354. */
  2355. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
  2356. /* Interface MAC address. An array of 6 Unsigned int8 */
  2357. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
  2358. /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
  2359. * AUTHENTICATING, etc. valid for STA, CLI only.
  2360. */
  2361. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
  2362. /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
  2363. */
  2364. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
  2365. /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
  2366. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
  2367. /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
  2368. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
  2369. /* For non-MLO connection, BSSID of the AP. For MLO connection, MLD
  2370. * address of the AP. An array of 6 unsigned 8 bit values
  2371. */
  2372. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
  2373. /* Country string advertised by AP. An array of 3 unsigned 8 bit
  2374. * values.
  2375. */
  2376. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
  2377. /* Country string for this association. An array of 3 unsigned 8 bit
  2378. * values.
  2379. */
  2380. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
  2381. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
  2382. * be nested within the interface stats.
  2383. * For an MLO connection, all %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
  2384. * attributes except %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_*
  2385. * indicate the aggregate of all links outside
  2386. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2387. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_* attributes
  2388. * indicate value of the MLO link with the best RSSI outside
  2389. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2390. * These attributes indicate the link specific value inside
  2391. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2392. */
  2393. /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
  2394. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
  2395. /* Unsigned int 32 value corresponding to respective AC */
  2396. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
  2397. /* Unsigned int 32 value corresponding to respective AC */
  2398. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
  2399. /* Unsigned int 32 value corresponding to respective AC */
  2400. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
  2401. /* Unsigned int 32 value corresponding to respective AC */
  2402. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
  2403. /* Unsigned int 32 value corresponding to respective AC */
  2404. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
  2405. /* Unsigned int 32 value corresponding to respective AC */
  2406. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
  2407. /* Unsigned int 32 value corresponding to respective AC */
  2408. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
  2409. /* Unsigned int 32 value corresponding to respective AC */
  2410. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
  2411. /* Unsigned int 32 value corresponding to respective AC */
  2412. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
  2413. /* Unsigned int 32 values corresponding to respective AC */
  2414. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
  2415. /* Unsigned int 32 values corresponding to respective AC */
  2416. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
  2417. /* Unsigned int 32 values corresponding to respective AC */
  2418. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
  2419. /* Unsigned int 32 values corresponding to respective AC */
  2420. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
  2421. /* Unsigned int 32 values corresponding to respective AC */
  2422. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
  2423. /* Unsigned 32 bit value. Number of peers */
  2424. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
  2425. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
  2426. * nested within the interface stats.
  2427. */
  2428. /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
  2429. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
  2430. /* MAC addr corresponding to respective peer. An array of 6 unsigned
  2431. * 8 bit values.
  2432. */
  2433. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
  2434. /* Unsigned int 32 bit value representing capabilities corresponding
  2435. * to respective peer.
  2436. */
  2437. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
  2438. /* Unsigned 32 bit value. Number of rates */
  2439. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
  2440. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
  2441. * are nested within the rate stat.
  2442. */
  2443. /* Wi-Fi Rate - separate attributes defined for individual fields */
  2444. /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
  2445. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
  2446. /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
  2447. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
  2448. /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
  2449. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
  2450. /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
  2451. * in the units of 0.5 Mbps HT/VHT it would be MCS index
  2452. */
  2453. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
  2454. /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
  2455. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
  2456. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
  2457. * nested within the peer info stats.
  2458. */
  2459. /* Unsigned int 32 bit value. Number of successfully transmitted data
  2460. * packets, i.e., with ACK received corresponding to the respective
  2461. * rate.
  2462. */
  2463. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
  2464. /* Unsigned int 32 bit value. Number of received data packets
  2465. * corresponding to the respective rate.
  2466. */
  2467. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
  2468. /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
  2469. * received corresponding to the respective rate.
  2470. */
  2471. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
  2472. /* Unsigned int 32 bit value. Total number of data packet retries for
  2473. * the respective rate.
  2474. */
  2475. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
  2476. /* Unsigned int 32 bit value. Total number of short data packet retries
  2477. * for the respective rate.
  2478. */
  2479. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
  2480. /* Unsigned int 32 bit value. Total number of long data packet retries
  2481. * for the respective rate.
  2482. */
  2483. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
  2484. /* Unsigned 32 bit value. This is used to indicate radio ID of the radio
  2485. * statistics when %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
  2486. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used
  2487. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate radio ID
  2488. * of the MLO link.
  2489. */
  2490. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
  2491. /* Unsigned 32 bit value. Total number of msecs the radio is awake
  2492. * accruing over time.
  2493. */
  2494. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
  2495. /* Unsigned 32 bit value. Total number of msecs the radio is
  2496. * transmitting accruing over time.
  2497. */
  2498. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
  2499. /* Unsigned 32 bit value. Total number of msecs the radio is in active
  2500. * receive accruing over time.
  2501. */
  2502. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
  2503. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2504. * to all scan accruing over time.
  2505. */
  2506. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
  2507. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2508. * to NAN accruing over time.
  2509. */
  2510. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
  2511. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2512. * to GSCAN accruing over time.
  2513. */
  2514. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
  2515. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2516. * to roam scan accruing over time.
  2517. */
  2518. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
  2519. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2520. * to PNO scan accruing over time.
  2521. */
  2522. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
  2523. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2524. * to Hotspot 2.0 scans and GAS exchange accruing over time.
  2525. */
  2526. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
  2527. /* Unsigned 32 bit value. Number of channels. */
  2528. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
  2529. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
  2530. * be nested within the channel stats.
  2531. */
  2532. /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
  2533. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
  2534. /* Unsigned 32 bit value. Primary 20 MHz channel. This is used to
  2535. * indicate the primary frequency of the channel when
  2536. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
  2537. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used inside
  2538. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate the frequency
  2539. * on which the MLO link is operating.
  2540. */
  2541. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
  2542. /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
  2543. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
  2544. /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
  2545. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
  2546. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
  2547. * nested within the radio stats.
  2548. */
  2549. /* Unsigned int 32 bit value representing total number of msecs the
  2550. * radio is awake on that channel accruing over time, corresponding to
  2551. * the respective channel.
  2552. */
  2553. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
  2554. /* Unsigned int 32 bit value representing total number of msecs the CCA
  2555. * register is busy accruing over time corresponding to the respective
  2556. * channel.
  2557. */
  2558. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
  2559. QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
  2560. /* Signifies the nested list of channel attributes
  2561. * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
  2562. */
  2563. QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
  2564. /* Signifies the nested list of peer info attributes
  2565. * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*. For MLO connection,
  2566. * this also contains %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID to
  2567. * indicate on which link the peer is connected.
  2568. */
  2569. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
  2570. /* Signifies the nested list of rate info attributes
  2571. * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
  2572. */
  2573. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
  2574. /* Signifies the nested list of wmm info attributes
  2575. * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
  2576. */
  2577. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
  2578. /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
  2579. * that more stats, e.g., peers or radio, are to follow in the next
  2580. * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
  2581. * Otherwise, it is set to 0.
  2582. */
  2583. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
  2584. /* Unsigned 64 bit value. For an MLO connection, indicates the value of
  2585. * the link with the best RSSI outside
  2586. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2587. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2588. */
  2589. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
  2590. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2591. * the link with the best RSSI outside
  2592. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2593. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2594. */
  2595. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
  2596. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2597. * the link with the best RSSI outside
  2598. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2599. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2600. */
  2601. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
  2602. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2603. * the link with the best RSSI outside
  2604. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2605. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2606. */
  2607. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
  2608. /* Unsigned 32 bit value */
  2609. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
  2610. /* Unsigned 32 bit value */
  2611. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
  2612. /* Number of msecs the radio spent in transmitting for each power level
  2613. */
  2614. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
  2615. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2616. * the link with the best RSSI outside
  2617. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2618. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2619. */
  2620. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
  2621. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2622. * the link with the best RSSI outside
  2623. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2624. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2625. */
  2626. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
  2627. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2628. * the link with the best RSSI outside
  2629. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2630. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2631. */
  2632. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
  2633. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2634. * the link with the best RSSI outside
  2635. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2636. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2637. */
  2638. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
  2639. /* Unsigned int 32 value.
  2640. * Pending MSDUs corresponding to respective AC.
  2641. */
  2642. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
  2643. /* u32 value representing total time in milliseconds for which the radio
  2644. * is transmitting on this channel. This attribute will be nested
  2645. * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
  2646. */
  2647. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
  2648. /* u32 value representing total time in milliseconds for which the radio
  2649. * is receiving all 802.11 frames intended for this device on this
  2650. * channel. This attribute will be nested within
  2651. * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
  2652. */
  2653. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
  2654. /* u8 value representing the channel load percentage. Possible values
  2655. * are 0-100.
  2656. */
  2657. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
  2658. /* u8 value representing the time slicing duty cycle percentage.
  2659. * Possible values are 0-100. For an MLO connection, indicates the value
  2660. * of the link with the best RSSI outside
  2661. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2662. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2663. */
  2664. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
  2665. /* Unsigned 32 bit value. The number of Beacon frames which are received
  2666. * from the associated AP and indicate buffered unicast frame(s) for us
  2667. * in the TIM element. For an MLO connection, indicates the value of the
  2668. * link with the best RSSI outside
  2669. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2670. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2671. */
  2672. QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88,
  2673. /* Unsigned 32 bit value. The total number of Beacon frames received
  2674. * from the associated AP that have wrongly indicated buffered unicast
  2675. * traffic in the TIM element for us.
  2676. * Below scenarios will be considered as wrong TIM element beacon:
  2677. * 1) The related TIM element is set in the beacon for STA but STA
  2678. * doesn’t receive any unicast data after this beacon.
  2679. * 2) The related TIM element is still set in the beacon for STA
  2680. * after STA has indicated power save exit by QoS Null Data frame.
  2681. * For an MLO connection, indicates the value of the link with the best
  2682. * RSSI outside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link
  2683. * specific value inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2684. */
  2685. QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89,
  2686. /* Signed 32 bit value. It represents the noise floor calibration value.
  2687. * Possible values are -120~-50 dBm. For an MLO connection, indicates
  2688. * the value of the link with the best RSSI outside
  2689. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2690. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2691. */
  2692. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NF_CAL_VAL = 90,
  2693. /* Attribute used for padding for 64-bit alignment */
  2694. QCA_WLAN_VENDOR_ATTR_LL_STATS_PAD = 91,
  2695. /* Unsigned u8 value, link ID of an MLO link. Used inside nested
  2696. * attribute %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to represent the
  2697. * link ID of the MLO link for which the statistics are embedded in the
  2698. * nested attribute. Used inside nested attribute
  2699. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO to represent the connected
  2700. * link ID of the peer.
  2701. */
  2702. QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID = 92,
  2703. /* A nested array of attributes for each MLO link, each containing
  2704. * per-link statistics of a multi link connection. The attributes used
  2705. * inside this nested attribute are defined in enum
  2706. * qca_wlan_vendor_attr_ll_stats_results.
  2707. *
  2708. * For non-MLO connection, this attribute is not present and the
  2709. * statistics will be sent outside this attribute (without nesting).
  2710. *
  2711. * For MLO connection, this attribute is present and also cumulative
  2712. * statistics of all the links will be sent outside of this attribute
  2713. * to be compatible with legacy user space.
  2714. */
  2715. QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK = 93,
  2716. /* keep last */
  2717. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
  2718. QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
  2719. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
  2720. };
  2721. enum qca_wlan_vendor_attr_ll_stats_type {
  2722. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
  2723. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
  2724. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
  2725. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
  2726. /* keep last */
  2727. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
  2728. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
  2729. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
  2730. };
  2731. #endif /* WLAN_FEATURE_LINK_LAYER_STATS */
  2732. /**
  2733. * enum qca_wlan_vendor_attr_get_supported_features - get supported feature
  2734. *
  2735. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value
  2736. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value
  2737. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last
  2738. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
  2739. */
  2740. enum qca_wlan_vendor_attr_get_supported_features {
  2741. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0,
  2742. QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1,
  2743. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST,
  2744. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX =
  2745. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1,
  2746. };
  2747. /**
  2748. * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui
  2749. *
  2750. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value
  2751. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit
  2752. * value
  2753. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last
  2754. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value
  2755. */
  2756. enum qca_wlan_vendor_attr_set_scanning_mac_oui {
  2757. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0,
  2758. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1,
  2759. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST,
  2760. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX =
  2761. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1,
  2762. };
  2763. /**
  2764. * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
  2765. * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
  2766. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
  2767. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
  2768. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
  2769. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
  2770. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
  2771. */
  2772. enum qca_wlan_vendor_scan_priority {
  2773. QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
  2774. QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
  2775. QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
  2776. QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
  2777. QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
  2778. };
  2779. /**
  2780. * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
  2781. *
  2782. * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
  2783. * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
  2784. * with frequencies to be scanned (in MHz)
  2785. * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
  2786. * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
  2787. * rates to be included
  2788. * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
  2789. * at non CCK rate in 2GHz band
  2790. * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
  2791. * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
  2792. * driver for the specific scan request
  2793. * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
  2794. * request decoded as in enum scan_status
  2795. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
  2796. * scan flag is set
  2797. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
  2798. * randomisation
  2799. * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
  2800. * specific BSSID to scan for.
  2801. * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
  2802. * microseconds. This is a common value which applies across all
  2803. * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
  2804. * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
  2805. * other scan requests. It is a u32 attribute and takes values from enum
  2806. * qca_wlan_vendor_scan_priority. This is an optional attribute.
  2807. * If this attribute is not configured, the driver shall use
  2808. * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
  2809. */
  2810. enum qca_wlan_vendor_attr_scan {
  2811. QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
  2812. QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
  2813. QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
  2814. QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
  2815. QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
  2816. QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
  2817. QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
  2818. QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
  2819. QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
  2820. QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
  2821. QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
  2822. QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
  2823. QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
  2824. QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
  2825. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
  2826. QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
  2827. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
  2828. };
  2829. /**
  2830. * enum scan_status - Specifies the valid values the vendor scan attribute
  2831. * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
  2832. * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
  2833. * new scan results
  2834. * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
  2835. */
  2836. enum scan_status {
  2837. VENDOR_SCAN_STATUS_NEW_RESULTS,
  2838. VENDOR_SCAN_STATUS_ABORTED,
  2839. VENDOR_SCAN_STATUS_MAX,
  2840. };
  2841. /**
  2842. * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix
  2843. *
  2844. * NL attributes for data used by
  2845. * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command.
  2846. *
  2847. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value
  2848. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX:
  2849. * Unsigned 32-bit value
  2850. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE:
  2851. * Unsigned 32-bit value
  2852. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An
  2853. * array of SET_SIZE x Unsigned 32bit values representing concurrency
  2854. * combinations
  2855. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last
  2856. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value
  2857. */
  2858. enum qca_wlan_vendor_attr_get_concurrency_matrix {
  2859. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0,
  2860. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX
  2861. = 1,
  2862. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2,
  2863. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3,
  2864. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST,
  2865. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX =
  2866. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1,
  2867. };
  2868. /**
  2869. * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag
  2870. *
  2871. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value
  2872. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value
  2873. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last
  2874. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value
  2875. */
  2876. enum qca_wlan_vendor_attr_set_no_dfs_flag {
  2877. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0,
  2878. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1,
  2879. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST,
  2880. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX =
  2881. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1,
  2882. };
  2883. /**
  2884. * enum qca_vendor_attr_wisa_cmd
  2885. * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr
  2886. * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32)
  2887. * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last
  2888. * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value
  2889. * WISA setup vendor commands
  2890. */
  2891. enum qca_vendor_attr_wisa_cmd {
  2892. QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
  2893. QCA_WLAN_VENDOR_ATTR_WISA_MODE,
  2894. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
  2895. QCA_WLAN_VENDOR_ATTR_WISA_MAX =
  2896. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
  2897. };
  2898. enum qca_roaming_policy {
  2899. QCA_ROAMING_NOT_ALLOWED,
  2900. QCA_ROAMING_ALLOWED_WITHIN_ESS,
  2901. };
  2902. /**
  2903. * enum qca_roam_reason - Represents the reason codes for roaming. Used by
  2904. * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
  2905. *
  2906. * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
  2907. * reasons.
  2908. *
  2909. * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached
  2910. * the configured threshold.
  2911. *
  2912. * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
  2913. * beacon misses from the then connected AP.
  2914. *
  2915. * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
  2916. * by the connected AP.
  2917. *
  2918. * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a
  2919. * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is
  2920. * not poor.
  2921. *
  2922. * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
  2923. * or environment being very noisy / congested.
  2924. *
  2925. * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
  2926. * from the user (user space).
  2927. *
  2928. * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from
  2929. * connected AP.
  2930. *
  2931. * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
  2932. * breaching out the configured threshold.
  2933. *
  2934. * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
  2935. * transition request.
  2936. *
  2937. * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended,
  2938. * there is no data activity with the AP and the current rssi falls below a
  2939. * certain threshold.
  2940. *
  2941. * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to
  2942. * deauthentication or disassociation frames received from the connected AP.
  2943. *
  2944. * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic
  2945. * scan that happens when there is no candidate AP found during the poor
  2946. * RSSI scan trigger.
  2947. *
  2948. * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan
  2949. * results obtained from an external scan (not aimed at roaming).
  2950. *
  2951. * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to bluetooth
  2952. * connection is established when the station is connected in 2.4 Ghz band.
  2953. *
  2954. * @QCA_ROAM_REASON_STA_KICKOUT: Roam triggered due to continuous TX Data frame
  2955. * failures to the connected AP.
  2956. */
  2957. enum qca_roam_reason {
  2958. QCA_ROAM_REASON_UNKNOWN,
  2959. QCA_ROAM_REASON_PER,
  2960. QCA_ROAM_REASON_BEACON_MISS,
  2961. QCA_ROAM_REASON_POOR_RSSI,
  2962. QCA_ROAM_REASON_BETTER_RSSI,
  2963. QCA_ROAM_REASON_CONGESTION,
  2964. QCA_ROAM_REASON_USER_TRIGGER,
  2965. QCA_ROAM_REASON_BTM,
  2966. QCA_ROAM_REASON_BSS_LOAD,
  2967. QCA_ROAM_REASON_WTC,
  2968. QCA_ROAM_REASON_IDLE,
  2969. QCA_ROAM_REASON_DISCONNECTION,
  2970. QCA_ROAM_REASON_PERIODIC_TIMER,
  2971. QCA_ROAM_REASON_BACKGROUND_SCAN,
  2972. QCA_ROAM_REASON_BT_ACTIVITY,
  2973. QCA_ROAM_REASON_STA_KICKOUT,
  2974. };
  2975. /**
  2976. * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming
  2977. *
  2978. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE
  2979. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE
  2980. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status
  2981. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter
  2982. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK
  2983. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK
  2984. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status
  2985. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS:
  2986. * Indicates the status of re-association requested by user space for
  2987. * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
  2988. * Type u16.
  2989. * Represents the status code from AP. Use
  2990. * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
  2991. * real status code for failures.
  2992. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION:
  2993. * This attribute indicates that the old association was maintained when
  2994. * a re-association is requested by user space and that re-association
  2995. * attempt fails (i.e., cannot connect to the requested BSS, but can
  2996. * remain associated with the BSS with which the association was in
  2997. * place when being requested to roam). Used along with
  2998. * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
  2999. * re-association status. Type flag.
  3000. * This attribute is applicable only for re-association failure cases.
  3001. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK
  3002. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID
  3003. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next
  3004. * seq number
  3005. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value
  3006. * representing the reasons for the roaming. Defined by enum
  3007. * qca_roam_reason.
  3008. */
  3009. enum qca_wlan_vendor_attr_roam_auth {
  3010. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
  3011. /* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address
  3012. * of the roamed AP for MLO roaming.
  3013. */
  3014. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
  3015. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
  3016. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
  3017. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
  3018. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
  3019. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
  3020. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
  3021. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
  3022. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
  3023. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
  3024. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK,
  3025. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID,
  3026. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM,
  3027. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON,
  3028. /* A nested attribute containing per-link information of all the links
  3029. * of MLO connection done while roaming. The attributes used inside this
  3030. * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links.
  3031. */
  3032. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15,
  3033. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
  3034. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
  3035. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
  3036. };
  3037. /**
  3038. * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside
  3039. * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS.
  3040. *
  3041. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link.
  3042. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link.
  3043. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link.
  3044. */
  3045. enum qca_wlan_vendor_attr_mlo_links {
  3046. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0,
  3047. QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1,
  3048. QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2,
  3049. QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3,
  3050. /* Keep last */
  3051. QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST,
  3052. QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX =
  3053. QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1,
  3054. };
  3055. /**
  3056. * enum qca_wlan_vendor_attr_wifi_config - wifi config
  3057. *
  3058. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value
  3059. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM
  3060. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor
  3061. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time
  3062. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last
  3063. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value
  3064. */
  3065. enum qca_wlan_vendor_attr_wifi_config {
  3066. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0,
  3067. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1,
  3068. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2,
  3069. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3,
  3070. /* keep last */
  3071. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST,
  3072. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX =
  3073. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1,
  3074. };
  3075. /**
  3076. * enum qca_wlan_epno_type - the type of request to the EPNO command
  3077. * @QCA_WLAN_EPNO: epno type request
  3078. * @QCA_WLAN_PNO: pno type request
  3079. */
  3080. enum qca_wlan_epno_type {
  3081. QCA_WLAN_EPNO,
  3082. QCA_WLAN_PNO
  3083. };
  3084. /**
  3085. * enum qca_wlan_vendor_attr_pno_config_params - pno config params
  3086. *
  3087. * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value
  3088. *
  3089. * NL attributes for data used by
  3090. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
  3091. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM:
  3092. * Unsigned 32-bit value; pno passpoint number of networks
  3093. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY:
  3094. * Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
  3095. * attributes. Array size =
  3096. * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
  3097. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID:
  3098. * Unsigned 32-bit value; network id
  3099. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM:
  3100. * An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded
  3101. * realm, 0 if unspecified.
  3102. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID:
  3103. * An array of 16 x Unsigned 32-bit value; roaming consortium ids
  3104. * to match, 0 if unspecified.
  3105. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN:
  3106. * An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if
  3107. * unspecified.
  3108. *
  3109. * NL attributes for data used by
  3110. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
  3111. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS:
  3112. * Unsigned 32-bit value; set pno number of networks
  3113. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST:
  3114. * Array of nested
  3115. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
  3116. * attributes. Array size =
  3117. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS
  3118. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID:
  3119. * An array of 33 x Unsigned 8-bit value; NULL terminated SSID
  3120. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD:
  3121. * Signed 8-bit value; threshold for considering this SSID as found,
  3122. * required granularity for this threshold is 4dBm to 8dBm
  3123. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS:
  3124. * Unsigned 8-bit value; WIFI_PNO_FLAG_XXX
  3125. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT:
  3126. * Unsigned 8-bit value; auth bit field for matching WPA IE
  3127. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE
  3128. * Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type
  3129. *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST
  3130. * Nested attribute to send the channel list
  3131. *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL
  3132. * Unsigned 32-bit value; indicates the Interval between PNO scan
  3133. * cycles in msec
  3134. *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI
  3135. * Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered
  3136. *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI
  3137. * Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered
  3138. * This attribute is obsolete now.
  3139. *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX
  3140. * Signed 32-bit value; the maximum score that a network
  3141. * can have before bonuses
  3142. *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS
  3143. * Signed 32-bit value; only report when there is a network's
  3144. * score this much higher han the current connection
  3145. *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS
  3146. * Signed 32-bit value; score bonus for all networks with
  3147. * the same network flag
  3148. *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS
  3149. * Signed 32-bit value; score bonus for networks that are not open
  3150. *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS
  3151. * Signed 32-bit value; 5GHz RSSI score bonus applied to all
  3152. * 5GHz networks
  3153. *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID
  3154. * Unsigned 32-bit value, representing the PNO Request ID
  3155. * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last
  3156. * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max
  3157. */
  3158. enum qca_wlan_vendor_attr_pno_config_params {
  3159. QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
  3160. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
  3161. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
  3162. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
  3163. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
  3164. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
  3165. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
  3166. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
  3167. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
  3168. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
  3169. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10,
  3170. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
  3171. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
  3172. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
  3173. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
  3174. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
  3175. QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
  3176. QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
  3177. QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
  3178. QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
  3179. QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
  3180. QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
  3181. QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
  3182. QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
  3183. /* keep last */
  3184. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
  3185. QCA_WLAN_VENDOR_ATTR_PNO_MAX =
  3186. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
  3187. };
  3188. /**
  3189. * enum qca_scan_freq_list_type: Frequency list types
  3190. *
  3191. * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
  3192. * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
  3193. * a preferred frequency list for roaming.
  3194. *
  3195. * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
  3196. * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
  3197. * a specific frequency list for roaming.
  3198. */
  3199. enum qca_scan_freq_list_type {
  3200. QCA_PREFERRED_SCAN_FREQ_LIST = 1,
  3201. QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
  3202. };
  3203. /**
  3204. * enum qca_roam_scan_scheme: scan scheme
  3205. *
  3206. * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No Frequencies specified to scan.
  3207. * Indicates the driver to not scan on a Roam Trigger scenario, but
  3208. * Disconnect.e.g., On a BTM request from the AP driver/firmware shall
  3209. * disconnect from the current connected AP by notifying a failure
  3210. * code in the BTM response.
  3211. *
  3212. * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
  3213. * trigger partial frequency scans. These frequencies are the ones learnt
  3214. * or maintained by the driver based on the probability of finding the
  3215. * BSSID's in the ESS for which the roaming is triggered.
  3216. *
  3217. * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
  3218. * trigger the scan on all the valid frequencies to find the better
  3219. * candidates to roam.
  3220. */
  3221. enum qca_roam_scan_scheme {
  3222. QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
  3223. QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
  3224. QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
  3225. };
  3226. /**
  3227. * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
  3228. *
  3229. * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values.
  3230. * List of frequencies in MHz to be considered for a roam scan.
  3231. *
  3232. * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
  3233. * Type of frequency list scheme being configured/gotten as defined by the
  3234. * enum qca_scan_freq_list_type.
  3235. */
  3236. enum qca_vendor_attr_scan_freq_list_scheme {
  3237. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
  3238. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
  3239. /* keep last */
  3240. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
  3241. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
  3242. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
  3243. };
  3244. /*
  3245. * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
  3246. *
  3247. * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
  3248. * a bad packet error rates (PER).
  3249. * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
  3250. * based on beacon misses from the connected AP.
  3251. * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
  3252. * due to poor RSSI of the connected AP.
  3253. * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
  3254. * upon finding a BSSID with a better RSSI than the connected BSSID.
  3255. * Also, set if the roam has to be triggered due to the high RSSI of the
  3256. * current connected AP (better than
  3257. * QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET). Here the RSSI of
  3258. * the current BSSID need not be poor.
  3259. * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
  3260. * by triggering a periodic scan to find a better AP to roam.
  3261. * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
  3262. * when the connected channel environment is too noisy/congested.
  3263. * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
  3264. * when BTM Request frame is received from the connected AP.
  3265. * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
  3266. * when the channel utilization is goes above the configured threshold.
  3267. * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
  3268. * based on the request from the user (space).
  3269. * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
  3270. * device receives Deauthentication/Disassociation frame from connected
  3271. * AP.
  3272. * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
  3273. * DUT is in idle state (no tx/rx) and suspend mode, if the current RSSI
  3274. * is determined to be a poor one.
  3275. * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
  3276. * based on continuous TX Data Frame failures to the connected AP.
  3277. * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
  3278. * based on the scan results obtained from an external scan (not
  3279. * triggered to aim roaming)
  3280. *
  3281. * Set the corresponding roam trigger reason bit to consider it for roam
  3282. * trigger.
  3283. * Userspace can set multiple bits and send to the driver. The driver shall
  3284. * consider all of them to trigger/initiate a roam scan.
  3285. */
  3286. enum qca_vendor_roam_triggers {
  3287. QCA_ROAM_TRIGGER_REASON_PER = 1 << 0,
  3288. QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1,
  3289. QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2,
  3290. QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3,
  3291. QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4,
  3292. QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5,
  3293. QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6,
  3294. QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7,
  3295. QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8,
  3296. QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9,
  3297. QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10,
  3298. QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11,
  3299. QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12,
  3300. };
  3301. /*
  3302. * enum qca_vendor_roam_fail_reasons: Defines the various roam
  3303. * fail reasons. This enum value is used in
  3304. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
  3305. *
  3306. * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
  3307. * able to trigger the scan.
  3308. * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
  3309. * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
  3310. * scan.
  3311. * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
  3312. * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
  3313. * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
  3314. * status code.
  3315. * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
  3316. * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
  3317. * frame.
  3318. * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
  3319. * with error status code.
  3320. * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
  3321. * received.
  3322. * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
  3323. * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
  3324. * frame.
  3325. * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
  3326. * internally before transmission.
  3327. * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
  3328. * Request frame.
  3329. * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
  3330. * dropped internally.
  3331. * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
  3332. * times out.
  3333. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
  3334. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
  3335. * internally.
  3336. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
  3337. * M2 frame.
  3338. * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
  3339. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
  3340. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
  3341. * internally.
  3342. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
  3343. * frame.
  3344. * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
  3345. * started for final beacon miss case.
  3346. * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
  3347. * received from the AP during roaming handoff.
  3348. * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
  3349. * or host is suspended and gives the indication of the last roamed AP only
  3350. * when the Apps is resumed. If the Apps is resumed while the roaming is in
  3351. * progress, this ongoing roaming is aborted and the last roamed AP is
  3352. * indicated to host.
  3353. * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
  3354. * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
  3355. * out.
  3356. * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
  3357. * @QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK: Roam scan did not happen since the
  3358. * current network conditions are fine.
  3359. */
  3360. enum qca_vendor_roam_fail_reasons {
  3361. QCA_ROAM_FAIL_REASON_NONE = 0,
  3362. QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
  3363. QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
  3364. QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
  3365. QCA_ROAM_FAIL_REASON_HOST = 4,
  3366. QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
  3367. QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
  3368. QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
  3369. QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
  3370. QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
  3371. QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
  3372. QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
  3373. QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
  3374. QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
  3375. QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
  3376. QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
  3377. QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
  3378. QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
  3379. QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
  3380. QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
  3381. QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
  3382. QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
  3383. QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
  3384. QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
  3385. QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
  3386. QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
  3387. QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
  3388. QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
  3389. QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
  3390. QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
  3391. QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK = 30,
  3392. };
  3393. /*
  3394. * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
  3395. * invoke fail reasons. This enum value is used in
  3396. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
  3397. *
  3398. * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
  3399. * in roam invoke command.
  3400. * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
  3401. * enabled.
  3402. * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
  3403. * length is invalid.
  3404. * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
  3405. * in progress.
  3406. * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
  3407. * of the AP in the roam invoke command to firmware. This reason is sent by the
  3408. * firmware when the given AP is configured to be ignored or SSID/security
  3409. * does not match.
  3410. * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
  3411. * firmware internal reasons.
  3412. * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
  3413. * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
  3414. * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
  3415. * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
  3416. * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
  3417. * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
  3418. */
  3419. enum qca_vendor_roam_invoke_fail_reasons {
  3420. QCA_ROAM_INVOKE_STATUS_NONE = 0,
  3421. QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
  3422. QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
  3423. QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
  3424. QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
  3425. QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
  3426. QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
  3427. QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
  3428. QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
  3429. QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
  3430. QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
  3431. QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
  3432. QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
  3433. };
  3434. /**
  3435. * enum qca_vendor_attr_roam_candidate_selection_criteria:
  3436. *
  3437. * Each attribute carries a weightage in percentage (%).
  3438. *
  3439. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
  3440. * Represents the weightage to be given for the RSSI selection
  3441. * criteria among other parameters.
  3442. *
  3443. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
  3444. * Represents the weightage to be given for the rate selection
  3445. * criteria among other parameters.
  3446. *
  3447. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
  3448. * Represents the weightage to be given for the band width selection
  3449. * criteria among other parameters.
  3450. *
  3451. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
  3452. * Represents the weightage to be given for the band selection
  3453. * criteria among other parameters.
  3454. *
  3455. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
  3456. * Represents the weightage to be given for the NSS selection
  3457. * criteria among other parameters.
  3458. *
  3459. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
  3460. * Represents the weightage to be given for the channel congestion
  3461. * selection criteria among other parameters.
  3462. *
  3463. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
  3464. * Represents the weightage to be given for the beamforming selection
  3465. * criteria among other parameters.
  3466. *
  3467. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
  3468. * Represents the weightage to be given for the OCE selection
  3469. * criteria among other parameters.
  3470. */
  3471. enum qca_vendor_attr_roam_candidate_selection_criteria {
  3472. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
  3473. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
  3474. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
  3475. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
  3476. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
  3477. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
  3478. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
  3479. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
  3480. /* keep last */
  3481. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
  3482. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
  3483. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
  3484. };
  3485. /**
  3486. * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
  3487. * The following attributes are used to set/get/clear the respective
  3488. * configurations to/from the driver.
  3489. * For the get, the attribute for the configuration to be queried shall
  3490. * carry any of its acceptable values to the driver. In return, the driver
  3491. * shall send the configured values within the same attribute to the user
  3492. * space.
  3493. *
  3494. * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
  3495. * Signifies to enable/disable roam control in driver.
  3496. * 1-enable, 0-disable
  3497. * Enable: Mandates the driver to do the further roams using the
  3498. * configuration parameters set through
  3499. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
  3500. * Disable: Disables the driver/firmware roaming triggered through
  3501. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
  3502. * expected to continue with the default configurations.
  3503. *
  3504. * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
  3505. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
  3506. * Roam control status is obtained through this attribute.
  3507. *
  3508. * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
  3509. * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
  3510. * is to be cleared in the driver.
  3511. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
  3512. * and shall be ignored if used with other sub commands.
  3513. * If this attribute is specified along with subcmd
  3514. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
  3515. * all other attributes, if there are any.
  3516. * If this attribute is not specified when the subcmd
  3517. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
  3518. * clear the data corresponding to the attributes specified.
  3519. *
  3520. * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
  3521. * list of frequencies and its type, represented by
  3522. * enum qca_vendor_attr_scan_freq_list_scheme.
  3523. * Frequency list and its type are mandatory for this attribute to set
  3524. * the frequencies.
  3525. * Frequency type is mandatory for this attribute to get the frequencies
  3526. * and the frequency list is obtained through
  3527. * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
  3528. * Frequency list type is mandatory for this attribute to clear the
  3529. * frequencies.
  3530. *
  3531. * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
  3532. * Carries the value of scan period in seconds to set.
  3533. * The value of scan period is obtained with the same attribute for get.
  3534. * Clears the scan period in the driver when specified with clear command.
  3535. * Scan period is the idle time in seconds between each subsequent
  3536. * channel scans.
  3537. *
  3538. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
  3539. * Carries the value of full scan period in seconds to set.
  3540. * The value of full scan period is obtained with the same attribute for
  3541. * get.
  3542. * Clears the full scan period in the driver when specified with clear
  3543. * command. Full scan period is the idle period in seconds between two
  3544. * successive full channel roam scans.
  3545. *
  3546. * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
  3547. * Carries a bitmap of the roam triggers specified in
  3548. * enum qca_vendor_roam_triggers.
  3549. * The driver shall enable roaming by enabling corresponding roam triggers
  3550. * based on the trigger bits sent with this attribute.
  3551. * If this attribute is not configured, the driver shall proceed with
  3552. * default behavior.
  3553. * The bitmap configured is obtained with the same attribute for get.
  3554. * Clears the bitmap configured in driver when specified with clear
  3555. * command.
  3556. *
  3557. * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
  3558. * weightage in percentage (%) to be given for each selection criteria.
  3559. * Different roam candidate selection criteria are represented by
  3560. * enum qca_vendor_attr_roam_candidate_selection_criteria.
  3561. * The driver shall select the roam candidate based on corresponding
  3562. * candidate selection scores sent.
  3563. *
  3564. * An empty nested attribute is used to indicate that no specific
  3565. * preference score/criteria is configured (i.e., to disable this mechanism
  3566. * in the set case and to show that the mechanism is disabled in the get
  3567. * case).
  3568. *
  3569. * Userspace can send multiple attributes out of this enum to the driver.
  3570. * Since this attribute represents the weight/percentage of preference for
  3571. * the respective selection criteria, it is preferred to configure 100%
  3572. * total weightage. The value in each attribute or cumulative weight of the
  3573. * values in all the nested attributes should not exceed 100%. The driver
  3574. * shall reject such configuration.
  3575. *
  3576. * If the weights configured through this attribute are less than 100%,
  3577. * the driver shall honor the weights (x%) passed for the corresponding
  3578. * selection criteria and choose/distribute rest of the weight (100-x)%
  3579. * for the other selection criteria, based on its internal logic.
  3580. *
  3581. * The selection criteria configured is obtained with the same
  3582. * attribute for get.
  3583. *
  3584. * Clears the selection criteria configured in the driver when specified
  3585. * with clear command.
  3586. *
  3587. * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
  3588. * Represents value of scan frequency scheme from
  3589. * enum qca_roam_scan_scheme.
  3590. *
  3591. * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
  3592. * signifying the RSSI threshold of the current connected AP, indicating
  3593. * the driver to trigger roam only when the current connected AP's RSSI
  3594. * is lesser than this threshold.
  3595. *
  3596. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
  3597. * signifying the RSSI threshold of the candidate AP, indicating
  3598. * the driver to trigger roam only to the candidate AP with RSSI
  3599. * better than this threshold. If RSSI thresholds for candidate APs found
  3600. * in the 2.4GHz, 5GHz and 6Ghz bands are configured separately using
  3601. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
  3602. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
  3603. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, then those values
  3604. * will take precedence over the value configured using
  3605. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
  3606. *
  3607. * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
  3608. * user triggered reason code to be sent to the AP in response to AP's
  3609. * request to trigger the roam if the roaming cannot be triggered.
  3610. * Applies to all the scenarios of AP assisted roaming (e.g., BTM).
  3611. *
  3612. * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
  3613. * Carries a bitmap of the roam triggers specified in
  3614. * enum qca_vendor_roam_triggers.
  3615. * Represents the roam triggers for which the specific scan scheme from
  3616. * enum qca_roam_scan_scheme has to be applied.
  3617. * It's an optional attribute. If this attribute is not configured, but
  3618. * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, then the scan scheme
  3619. * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
  3620. * all the roams.
  3621. * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
  3622. * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
  3623. * driver shall proceed with the default behavior.
  3624. *
  3625. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
  3626. * in dBm, signifying the RSSI threshold of the candidate AP found in
  3627. * 2.4GHz band. The driver/firmware shall trigger roaming to the candidate
  3628. * AP found in 2.4GHz band only if it's RSSI value is better than this
  3629. * threshold. Optional attribute. If this attribute is not included, then
  3630. * threshold value specified by the
  3631. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3632. *
  3633. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
  3634. * dBm, signifying the RSSI threshold of the candidate AP found in 5GHz
  3635. * band. The driver/firmware shall trigger roaming to the candidate AP
  3636. * found in 5GHz band only if it's RSSI value is better than this
  3637. * threshold. Optional attribute. If this attribute is not included, then
  3638. * threshold value specified by the
  3639. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3640. *
  3641. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
  3642. * dBm, signifying the RSSI threshold of the candidate AP found in 6GHz
  3643. * band. The driver/firmware shall trigger roaming to the candidate AP
  3644. * found in 6GHz band only if it's RSSI value is better than this
  3645. * threshold. Optional attribute. If this attribute is not included, then
  3646. * threshold value specified by the
  3647. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3648. *
  3649. * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
  3650. * Carries bitmask value of bits from &enum qca_set_band and represents
  3651. * all the bands in which roaming is allowed. The configuration is valid
  3652. * until next disconnection. If this attribute is not present, the
  3653. * existing configuration shall be used. By default, roaming is allowed
  3654. * on all bands supported by local device. When the value is set to
  3655. * %QCA_SETBAND_AUTO, all supported bands shall be enabled.
  3656. *
  3657. * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps.
  3658. * Optional parameter. RX link speed threshold to disable roaming.
  3659. * If the current RX link speed is above the threshold, roaming is not
  3660. * needed. If this attribute is not configured, or if it is set to 0, the
  3661. * driver will not consider the RX link speed in the roaming decision.
  3662. *
  3663. * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds.
  3664. * Optional parameter. This configuration delays hand-off (in msec) by the
  3665. * specified duration to receive pending rx frames from current BSS.
  3666. *
  3667. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit
  3668. * value.
  3669. * During the roam scan, if there are no desired APs found in the partial
  3670. * frequency list, an immediate full scan on all the supported frequencies
  3671. * is initiated as a fallback. This flag controls the frequency list
  3672. * creation for the full scan on the following lines.
  3673. * 1 - Full scan to exclude the frequencies that were already scanned by
  3674. * the previous partial scan.
  3675. * 0 - Full scan to include all the supported frequencies irrespective of
  3676. * the ones part of the earlier partial scan.
  3677. * If this flag is not specified, a full scan shall include all the
  3678. * supported frequencies irrespective of the ones part of an earlier
  3679. * partial scan.
  3680. *
  3681. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit
  3682. * value.
  3683. * During the roam scan, if there are no desired APs found in the partial
  3684. * frequency list, an immediate full scan on all the supported frequencies
  3685. * is initiated as a fallback. This full scan would add the 2.4/5/6 GHz
  3686. * frequencies, including all PSC frequencies by default. This attribute
  3687. * controls the inclusion of the 6 GHz PSC frequencies for the full scan
  3688. * as following.
  3689. * 1 - Full scan to include the supported 6 GHz PSC frequencies only on the
  3690. * prior discovery of any 6 GHz frequency support in the environment.
  3691. * This discovery can happen through a prior RNR, 11k neighbor
  3692. * request, 11v BTM request, host scan, etc.
  3693. * 0 - Default behavior. Full scan to include all the supported 6 GHz
  3694. * PSC frequencies regardless of whether 6 GHz BSSs have been
  3695. * discovered.
  3696. * The default behavior if this flag is not specified is to include all
  3697. * the supported 6 GHz PSC frequencies in the roam full scan.
  3698. *
  3699. * @QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET: Unsigned 8-bit value.
  3700. * This attribute signifies the RSSI offset that is added to low RSSI
  3701. * threshold (QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD) to imply
  3702. * high RSSI threshold. STA is expected to trigger roam if the current
  3703. * connected AP's RSSI gets above this high RSSI threshold. STA's roam
  3704. * attempt on high RSSI threshold aims to find candidates from other
  3705. * better Wi-Fi bands. E.g., STA would initially connect to a 2.4 GHz BSSID
  3706. * and would migrate to 5/6 GHz when it comes closer to the AP (high RSSI
  3707. * for 2.4 GHz BSS).
  3708. */
  3709. enum qca_vendor_attr_roam_control {
  3710. QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
  3711. QCA_ATTR_ROAM_CONTROL_STATUS = 2,
  3712. QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
  3713. QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
  3714. QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
  3715. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
  3716. QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
  3717. QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
  3718. QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
  3719. QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
  3720. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
  3721. QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
  3722. QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
  3723. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
  3724. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
  3725. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
  3726. QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
  3727. QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD = 24,
  3728. QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25,
  3729. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26,
  3730. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27,
  3731. QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET = 31,
  3732. /* keep last */
  3733. QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
  3734. QCA_ATTR_ROAM_CONTROL_MAX =
  3735. QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
  3736. };
  3737. /**
  3738. * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
  3739. * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
  3740. *
  3741. * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
  3742. * Represents the different roam sub commands referred by
  3743. * enum qca_wlan_vendor_roaming_subcmd.
  3744. *
  3745. * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
  3746. * Represents the Request ID for the specific set of commands.
  3747. * This also helps to map specific set of commands to the respective
  3748. * ID / client. e.g., helps to identify the user entity configuring the
  3749. * Blacklist BSSID and accordingly clear the respective ones with the
  3750. * matching ID.
  3751. *
  3752. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
  3753. * 32-bit value.Represents the number of whitelist SSIDs configured.
  3754. *
  3755. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
  3756. * to carry the list of Whitelist SSIDs.
  3757. *
  3758. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
  3759. * 0..32 octets). Represents the white list SSID. Whitelist SSIDs
  3760. * represent the list of SSIDs to which the firmware/driver can consider
  3761. * to roam to.
  3762. *
  3763. * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
  3764. * comparing with a 2.4GHz BSSID. They are not applied when comparing two
  3765. * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
  3766. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS.
  3767. *
  3768. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
  3769. * value, RSSI threshold above which 5GHz RSSI is favored.
  3770. *
  3771. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
  3772. * value, RSSI threshold below which 5GHz RSSI is penalized.
  3773. *
  3774. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
  3775. * value, factor by which 5GHz RSSI is boosted.
  3776. * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
  3777. *
  3778. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
  3779. * value, factor by which 5GHz RSSI is penalized.
  3780. * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
  3781. *
  3782. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
  3783. * value, maximum boost that can be applied to a 5GHz RSSI.
  3784. *
  3785. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
  3786. * value, boost applied to current BSSID to ensure the currently
  3787. * associated BSSID is favored so as to prevent ping-pong situations.
  3788. *
  3789. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
  3790. * value, RSSI below which "Alert" roam is enabled.
  3791. * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID
  3792. * because the RSSI is low, or because many successive beacons have been
  3793. * lost or other bad link conditions.
  3794. *
  3795. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
  3796. * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
  3797. * firmware is hunting for a better BSSID or white listed SSID even though
  3798. * the RSSI of the link is good. The parameters enabling the roaming are
  3799. * configured through the PARAM_A_BAND_XX attrbutes.
  3800. *
  3801. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
  3802. * represents the BSSIDs preferred over others while evaluating them
  3803. * for the roaming.
  3804. *
  3805. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
  3806. * 32-bit value. Represents the number of preferred BSSIDs set.
  3807. *
  3808. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
  3809. * address representing the BSSID to be preferred.
  3810. *
  3811. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
  3812. * 32-bit value, representing the modifier to be applied to the RSSI of
  3813. * the BSSID for the purpose of comparing it with other roam candidate.
  3814. *
  3815. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
  3816. * represents the BSSIDs to get blacklisted for roaming.
  3817. *
  3818. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
  3819. * 32-bit value, represents the number of blacklisted BSSIDs.
  3820. *
  3821. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
  3822. * address representing the Blacklisted BSSID.
  3823. *
  3824. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
  3825. * indicates this BSSID blacklist as a hint to the driver. The driver can
  3826. * select this BSSID in the worst case (when no other BSSIDs are better).
  3827. *
  3828. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
  3829. * set/get/clear the roam control config as
  3830. * defined @enum qca_vendor_attr_roam_control.
  3831. *
  3832. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last
  3833. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max
  3834. */
  3835. enum qca_wlan_vendor_attr_roaming_config_params {
  3836. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
  3837. QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
  3838. QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
  3839. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
  3840. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
  3841. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
  3842. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
  3843. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
  3844. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
  3845. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
  3846. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
  3847. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
  3848. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
  3849. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
  3850. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
  3851. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
  3852. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
  3853. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
  3854. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
  3855. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
  3856. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
  3857. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
  3858. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
  3859. /* keep last */
  3860. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
  3861. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
  3862. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
  3863. };
  3864. /**
  3865. * enum qca_wlan_vendor_roaming_subcmd: Referred by
  3866. * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
  3867. *
  3868. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
  3869. * configure the white list SSIDs. These are configured through
  3870. * the following attributes.
  3871. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
  3872. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
  3873. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
  3874. *
  3875. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to
  3876. * configure the Roam params. These parameters are evaluated on the extscan
  3877. * results. Refers the attributes PARAM_A_BAND_XX above to configure the
  3878. * params.
  3879. *
  3880. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
  3881. * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
  3882. * to enable/disable Lazy roam.
  3883. *
  3884. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
  3885. * preference. Contains the attribute
  3886. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
  3887. * preference.
  3888. *
  3889. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params
  3890. *
  3891. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist
  3892. * BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to
  3893. * set the same.
  3894. *
  3895. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
  3896. * roam control config to the driver with the attribute
  3897. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3898. *
  3899. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
  3900. * roam control config from driver with the attribute
  3901. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3902. * For the get, the attribute for the configuration to be queried shall
  3903. * carry any of its acceptable value to the driver. In return, the driver
  3904. * shall send the configured values within the same attribute to the user
  3905. * space.
  3906. *
  3907. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
  3908. * roam control config in the driver with the attribute
  3909. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3910. * The driver shall continue with its default roaming behavior when data
  3911. * corresponding to an attribute is cleared.
  3912. */
  3913. enum qca_wlan_vendor_roaming_subcmd {
  3914. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
  3915. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2,
  3916. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
  3917. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
  3918. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
  3919. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
  3920. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
  3921. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
  3922. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
  3923. };
  3924. /**
  3925. * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information
  3926. *
  3927. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value
  3928. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version
  3929. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version
  3930. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index
  3931. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last
  3932. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max
  3933. */
  3934. enum qca_wlan_vendor_attr_get_wifi_info {
  3935. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
  3936. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
  3937. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
  3938. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
  3939. /* KEEP LAST */
  3940. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
  3941. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
  3942. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
  3943. };
  3944. enum qca_wlan_vendor_attr_logger_results {
  3945. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
  3946. /*
  3947. * Unsigned 32-bit value; must match the request Id supplied by
  3948. * Wi-Fi HAL in the corresponding subcmd NL msg.
  3949. */
  3950. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
  3951. /*
  3952. * Unsigned 32-bit value; used to indicate the size of memory
  3953. * dump to be allocated.
  3954. */
  3955. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
  3956. /* keep last */
  3957. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
  3958. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
  3959. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
  3960. };
  3961. /**
  3962. * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
  3963. * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
  3964. */
  3965. enum qca_wlan_vendor_channel_prop_flags {
  3966. /* Bits 0, 1, 2, and 3 are reserved */
  3967. /* Turbo channel */
  3968. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
  3969. /* CCK channel */
  3970. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
  3971. /* OFDM channel */
  3972. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
  3973. /* 2.4 GHz spectrum channel. */
  3974. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
  3975. /* 5 GHz spectrum channel */
  3976. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
  3977. /* Only passive scan allowed */
  3978. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
  3979. /* Dynamic CCK-OFDM channel */
  3980. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
  3981. /* GFSK channel (FHSS PHY) */
  3982. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
  3983. /* Radar found on channel */
  3984. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
  3985. /* 11a static turbo channel only */
  3986. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
  3987. /* Half rate channel */
  3988. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
  3989. /* Quarter rate channel */
  3990. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
  3991. /* HT 20 channel */
  3992. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
  3993. /* HT 40 with extension channel above */
  3994. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
  3995. /* HT 40 with extension channel below */
  3996. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
  3997. /* HT 40 intolerant */
  3998. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
  3999. /* VHT 20 channel */
  4000. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
  4001. /* VHT 40 with extension channel above */
  4002. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
  4003. /* VHT 40 with extension channel below */
  4004. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
  4005. /* VHT 80 channel */
  4006. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
  4007. /* HT 40 intolerant mark bit for ACS use */
  4008. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
  4009. /* Channel temporarily blocked due to noise */
  4010. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
  4011. /* VHT 160 channel */
  4012. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
  4013. /* VHT 80+80 channel */
  4014. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
  4015. /* HE 20 channel */
  4016. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
  4017. /* HE 40 with extension channel above */
  4018. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
  4019. /* HE 40 with extension channel below */
  4020. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
  4021. /* HE 40 intolerant */
  4022. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1U << 31,
  4023. };
  4024. /**
  4025. * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
  4026. * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
  4027. * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
  4028. */
  4029. enum qca_wlan_vendor_channel_prop_flags_2 {
  4030. /* HE 40 intolerant mark bit for ACS use */
  4031. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
  4032. /* HE 80 channel */
  4033. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
  4034. /* HE 160 channel */
  4035. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
  4036. /* HE 80+80 channel */
  4037. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
  4038. };
  4039. /**
  4040. * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
  4041. * each channel. This is used by
  4042. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
  4043. */
  4044. enum qca_wlan_vendor_channel_prop_flags_ext {
  4045. /* Radar found on channel */
  4046. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
  4047. /* DFS required on channel */
  4048. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
  4049. /* DFS required on channel for 2nd band of 80+80 */
  4050. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
  4051. /* If channel has been checked for DFS */
  4052. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
  4053. /* Excluded in 802.11d */
  4054. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
  4055. /* Channel Switch Announcement received on this channel */
  4056. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
  4057. /* Ad-hoc is not allowed */
  4058. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
  4059. /* Station only channel */
  4060. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
  4061. /* DFS radar history for slave device (STA mode) */
  4062. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
  4063. /* DFS CAC valid for slave device (STA mode) */
  4064. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
  4065. };
  4066. /**
  4067. * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
  4068. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
  4069. * information to start/stop the NUD statistics collection.
  4070. */
  4071. enum qca_attr_nud_stats_set {
  4072. QCA_ATTR_NUD_STATS_SET_INVALID = 0,
  4073. /*
  4074. * Flag to start/stop the NUD statistics collection.
  4075. * Start - If included, Stop - If not included
  4076. */
  4077. QCA_ATTR_NUD_STATS_SET_START = 1,
  4078. /* IPv4 address of the default gateway (in network byte order) */
  4079. QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
  4080. /*
  4081. * Represents the data packet type to be monitored.
  4082. * Host driver tracks the stats corresponding to each data frame
  4083. * represented by these flags.
  4084. * These data packets are represented by
  4085. * enum qca_wlan_vendor_nud_stats_set_data_pkt_info.
  4086. */
  4087. QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
  4088. /* keep last */
  4089. QCA_ATTR_NUD_STATS_SET_LAST,
  4090. QCA_ATTR_NUD_STATS_SET_MAX =
  4091. QCA_ATTR_NUD_STATS_SET_LAST - 1,
  4092. };
  4093. /**
  4094. * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd
  4095. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  4096. * information to start / stop the NUD stats collection.
  4097. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats
  4098. * Bitmap to Flag to Start / Stop the NUD stats collection
  4099. * Start - If included , Stop - If not included
  4100. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gateway ipv4 address
  4101. * IPv4 address of Default Gateway (in network byte order)
  4102. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  4103. * information to start / stop the NUD stats collection.
  4104. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats
  4105. * Flag to Start / Stop the NUD stats collection
  4106. * Start - If included , Stop - If not included
  4107. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gateway ipv4 address
  4108. * IPv4 address of Default Gateway (in network byte order)
  4109. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  4110. * information to start / stop the NUD stats collection.
  4111. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats
  4112. * Flag to Start / Stop the NUD stats collection
  4113. * Start - If included , Stop - If not included
  4114. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gateway ipv4 address
  4115. * IPv4 address of Default Gateway (in network byte order)
  4116. */
  4117. enum qca_attr_connectivity_check_stats_set {
  4118. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0,
  4119. QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1,
  4120. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2,
  4121. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3,
  4122. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4,
  4123. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5,
  4124. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6,
  4125. /* keep last */
  4126. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST,
  4127. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX =
  4128. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1,
  4129. };
  4130. /**
  4131. * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
  4132. * data types for which the stats have to get collected.
  4133. */
  4134. enum qca_wlan_vendor_connectivity_check_pkt_flags {
  4135. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0,
  4136. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1,
  4137. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2,
  4138. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3,
  4139. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4,
  4140. /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
  4141. * to represent the stats of respective data type.
  4142. */
  4143. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5,
  4144. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6,
  4145. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7,
  4146. };
  4147. enum qca_attr_connectivity_check_stats {
  4148. QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0,
  4149. /* Data packet type for which the stats are collected.
  4150. * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
  4151. */
  4152. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1,
  4153. /* ID corresponding to the DNS frame for which the respective DNS stats
  4154. * are monitored (u32).
  4155. */
  4156. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2,
  4157. /* source / destination port on which the respective proto stats are
  4158. * collected (u32).
  4159. */
  4160. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3,
  4161. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4,
  4162. /* IPv4/IPv6 address for which the destined data packets are
  4163. * monitored. (in network byte order)
  4164. */
  4165. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5,
  4166. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6,
  4167. /* Data packet Request count received from netdev */
  4168. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
  4169. /* Data packet Request count sent to lower MAC from upper MAC */
  4170. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
  4171. /* Data packet Request count received by lower MAC from upper MAC */
  4172. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
  4173. /* Data packet Request count successfully transmitted by the device */
  4174. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
  4175. /* Data packet Response count received by lower MAC */
  4176. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
  4177. /* Data packet Response count received by upper MAC */
  4178. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
  4179. /* Data packet Response count delivered to netdev */
  4180. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
  4181. /* Data Packet Response count that are dropped out of order */
  4182. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
  4183. /* keep last */
  4184. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST,
  4185. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX =
  4186. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1,
  4187. };
  4188. /**
  4189. * qca_attr_nud_stats_get: Attributes to vendor subcmd
  4190. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
  4191. * NUD statistics collected when queried.
  4192. */
  4193. enum qca_attr_nud_stats_get {
  4194. QCA_ATTR_NUD_STATS_GET_INVALID = 0,
  4195. /* ARP Request count from netdev */
  4196. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
  4197. /* ARP Request count sent to lower MAC from upper MAC */
  4198. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
  4199. /* ARP Request count received by lower MAC from upper MAC */
  4200. QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
  4201. /* ARP Request count successfully transmitted by the device */
  4202. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
  4203. /* ARP Response count received by lower MAC */
  4204. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
  4205. /* ARP Response count received by upper MAC */
  4206. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
  4207. /* ARP Response count delivered to netdev */
  4208. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
  4209. /* ARP Response count delivered to netdev */
  4210. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
  4211. /*
  4212. * Flag indicating if the station's link to the AP is active.
  4213. * Active Link - If included, Inactive link - If not included
  4214. */
  4215. QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
  4216. /*
  4217. * Flag indicating if there is any duplicate address detected (DAD).
  4218. * Yes - If detected, No - If not detected.
  4219. */
  4220. QCA_ATTR_NUD_STATS_IS_DAD = 10,
  4221. /*
  4222. * List of Data types for which the stats are requested.
  4223. * This list does not carry ARP stats as they are done by the
  4224. * above attributes. Represented by enum qca_attr_nud_data_stats.
  4225. */
  4226. QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
  4227. /* keep last */
  4228. QCA_ATTR_NUD_STATS_GET_LAST,
  4229. QCA_ATTR_NUD_STATS_GET_MAX =
  4230. QCA_ATTR_NUD_STATS_GET_LAST - 1,
  4231. };
  4232. enum qca_wlan_btm_candidate_status {
  4233. QCA_STATUS_ACCEPT = 0,
  4234. QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
  4235. QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
  4236. QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
  4237. QCA_STATUS_REJECT_LOW_RSSI = 4,
  4238. QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
  4239. QCA_STATUS_REJECT_UNKNOWN = 6,
  4240. };
  4241. enum qca_wlan_vendor_attr_btm_candidate_info {
  4242. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
  4243. /* 6-byte MAC address representing the BSSID of transition candidate */
  4244. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
  4245. /*
  4246. * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
  4247. * returned by the driver. It says whether the BSSID provided in
  4248. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
  4249. * the driver, if not it specifies the reason for rejection.
  4250. * Note that the user-space can overwrite the transition reject reason
  4251. * codes provided by driver based on more information.
  4252. */
  4253. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
  4254. /* keep last */
  4255. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
  4256. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
  4257. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
  4258. };
  4259. enum qca_attr_trace_level {
  4260. QCA_ATTR_TRACE_LEVEL_INVALID = 0,
  4261. /*
  4262. * Nested array of the following attributes:
  4263. * QCA_ATTR_TRACE_LEVEL_MODULE,
  4264. * QCA_ATTR_TRACE_LEVEL_MASK.
  4265. */
  4266. QCA_ATTR_TRACE_LEVEL_PARAM = 1,
  4267. /*
  4268. * Specific QCA host driver module. Please refer to the QCA host
  4269. * driver implementation to get the specific module ID.
  4270. */
  4271. QCA_ATTR_TRACE_LEVEL_MODULE = 2,
  4272. /* Different trace level masks represented in the QCA host driver. */
  4273. QCA_ATTR_TRACE_LEVEL_MASK = 3,
  4274. /* keep last */
  4275. QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
  4276. QCA_ATTR_TRACE_LEVEL_MAX =
  4277. QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
  4278. };
  4279. /**
  4280. * enum qca_wlan_vendor_attr_get_logger_features - value for logger
  4281. * supported features
  4282. * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid
  4283. * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features
  4284. * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum
  4285. * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type
  4286. *
  4287. * enum values are used for NL attributes for data used by
  4288. * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command.
  4289. */
  4290. enum qca_wlan_vendor_attr_get_logger_features {
  4291. QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
  4292. QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
  4293. /* keep last */
  4294. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
  4295. QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
  4296. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
  4297. };
  4298. /**
  4299. * enum qca_wlan_vendor_attr_link_properties - link properties
  4300. *
  4301. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value
  4302. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to
  4303. * specify the number of spatial streams negotiated
  4304. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value
  4305. * to specify negotiated rate flags i.e. ht, vht and channel width
  4306. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to
  4307. * specify the operating frequency
  4308. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer
  4309. * (STA / AP ) for the connected link.
  4310. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
  4311. * &struct nl80211_sta_flag_update for the respective connected link. MAC
  4312. * address of the peer represented by
  4313. * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
  4314. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last
  4315. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value
  4316. */
  4317. enum qca_wlan_vendor_attr_link_properties {
  4318. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
  4319. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1,
  4320. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2,
  4321. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3,
  4322. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
  4323. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
  4324. /* KEEP LAST */
  4325. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
  4326. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX =
  4327. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
  4328. };
  4329. /**
  4330. * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support
  4331. *
  4332. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid
  4333. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload
  4334. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum
  4335. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type
  4336. *
  4337. * enum values are used for NL attributes for data used by
  4338. * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command.
  4339. */
  4340. enum qca_wlan_vendor_attr_nd_offload {
  4341. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
  4342. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
  4343. /* Keep last */
  4344. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
  4345. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
  4346. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
  4347. };
  4348. /**
  4349. * enum qca_wlan_vendor_features - Vendor device/driver feature flags
  4350. *
  4351. * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
  4352. * management offload, a mechanism where the station's firmware
  4353. * does the exchange with the AP to establish the temporal keys
  4354. * after roaming, rather than having the user space wpa_supplicant do it.
  4355. * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
  4356. * band selection based on channel selection results.
  4357. * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
  4358. * simultaneous off-channel operations.
  4359. * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
  4360. * Listen offload; a mechanism where the station's firmware takes care of
  4361. * responding to incoming Probe Request frames received from other P2P
  4362. * Devices whilst in Listen state, rather than having the user space
  4363. * wpa_supplicant do it. Information from received P2P requests are
  4364. * forwarded from firmware to host whenever the host processor wakes up.
  4365. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
  4366. * specific features.
  4367. * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
  4368. * features.
  4369. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
  4370. * specific features only. If a Device sets this bit but not the
  4371. * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
  4372. * this Device may not support all OCE AP functionalities but can support
  4373. * only OCE STA-CFON functionalities.
  4374. * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
  4375. * managed regulatory.
  4376. * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
  4377. * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
  4378. * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
  4379. * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
  4380. * and applying thermal configuration through
  4381. * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
  4382. * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
  4383. * userspace.
  4384. * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
  4385. * With Adaptive 11r feature, access points advertise the vendor
  4386. * specific IEs and MDE but do not include FT AKM in the RSNE.
  4387. * The Adaptive 11r supported stations are expected to identify
  4388. * such vendor specific IEs and connect to the AP in FT mode though
  4389. * the profile is configured in non-FT mode.
  4390. * The driver-based SME cases also need to have this support for
  4391. * Adaptive 11r to handle the connection and roaming scenarios.
  4392. * This flag indicates the support for the same to the user space.
  4393. * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
  4394. * concurrent network sessions on different Wi-Fi Bands. This feature
  4395. * capability is attributed to the hardware's capability to support
  4396. * the same (e.g., DBS).
  4397. * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
  4398. * responses for the respective TWT operations are asynchronous (separate)
  4399. * event message) from the driver. If not specified, the responses are
  4400. * synchronous (in vendor command reply) to the request. Each TWT
  4401. * operation is specifically mentioned (against its respective)
  4402. * documentation) to support either of these or both modes.
  4403. * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
  4404. * that the driver requires add/del virtual interface path using the
  4405. * generic nl80211 commands for NDP interface create/delete and to
  4406. * register/unregister the netdev instead of creating/deleting the NDP
  4407. * interface using the vendor commands
  4408. * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
  4409. * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
  4410. * (5.12 version onward), interface creation/deletion is not allowed using
  4411. * vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
  4412. * during the register/unregister of netdev. Create and delete NDP
  4413. * interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
  4414. * commands respectively if the driver advertises this capability set.
  4415. * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in
  4416. * station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is
  4417. * set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored.
  4418. * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP
  4419. * mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then
  4420. * QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored.
  4421. * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in
  4422. * station mode supports secure RTT measurement exchange. If
  4423. * NL80211_EXT_FEATURE_SECURE_RTT is set,
  4424. * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored.
  4425. * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP
  4426. * mode supports secure RTT measurement exchange. If
  4427. * NL80211_EXT_FEATURE_SECURE_RTT is set,
  4428. * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored.
  4429. * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that
  4430. * the device in station mode supports protection of range negotiation and
  4431. * measurement management frames. If
  4432. * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
  4433. * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored.
  4434. * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that
  4435. * the device in AP mode supports protection of range negotiation and
  4436. * measurement management frames. If
  4437. * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
  4438. * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored.
  4439. * @QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST: Flag indicates that the device
  4440. * in AP mode supports configuring allowed frequency list for AP operation
  4441. * with %QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST.
  4442. * @QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN: Flag indicates
  4443. * that the device supports enhanced audio experience over WLAN feature.
  4444. * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
  4445. */
  4446. enum qca_wlan_vendor_features {
  4447. QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
  4448. QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
  4449. QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
  4450. QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
  4451. QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
  4452. QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
  4453. QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
  4454. QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
  4455. QCA_WLAN_VENDOR_FEATURE_TWT = 8,
  4456. QCA_WLAN_VENDOR_FEATURE_11AX = 9,
  4457. QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
  4458. QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
  4459. QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
  4460. QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
  4461. QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
  4462. QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
  4463. QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA = 16,
  4464. QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP = 17,
  4465. QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA = 18,
  4466. QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP = 19,
  4467. QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20,
  4468. QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21,
  4469. QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST = 22,
  4470. QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN = 23,
  4471. NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
  4472. };
  4473. /**
  4474. * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP
  4475. * conditional channel switch
  4476. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial
  4477. * value
  4478. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based
  4479. * frequency list (an array of u32 values in host byte order)
  4480. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the
  4481. * conditional switch (u32)- 0: Success, Non-zero: Failure
  4482. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last
  4483. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max
  4484. */
  4485. enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
  4486. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
  4487. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
  4488. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
  4489. /* Keep Last */
  4490. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
  4491. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
  4492. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
  4493. };
  4494. /**
  4495. * enum wifi_logger_supported_features - values for supported logger features
  4496. * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW
  4497. * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics
  4498. * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events
  4499. * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver
  4500. * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver
  4501. * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health
  4502. * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump
  4503. * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate
  4504. */
  4505. enum wifi_logger_supported_features {
  4506. WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)),
  4507. WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)),
  4508. WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)),
  4509. WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)),
  4510. WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)),
  4511. WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)),
  4512. WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)),
  4513. WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)),
  4514. WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8))
  4515. };
  4516. /**
  4517. * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get
  4518. * capabilities features
  4519. */
  4520. enum qca_wlan_tdls_caps_features_supported {
  4521. WIFI_TDLS_SUPPORT = (1 << (0)),
  4522. WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)),
  4523. WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2)),
  4524. /* Indicates if the TDLS session can be formed with the peer using
  4525. * higher bandwidth than the bandwidth of the AP path.
  4526. */
  4527. WIFI_TDLS_WIDER_BW_SUPPORT = (1 << (3)),
  4528. };
  4529. /**
  4530. * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
  4531. * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
  4532. *
  4533. * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
  4534. * Used with event to notify the primary channel number selected in ACS
  4535. * operation.
  4536. * Note: If both the driver and user-space application supports the 6 GHz band,
  4537. * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
  4538. * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
  4539. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
  4540. * is still used if either of the driver or user space application doesn't
  4541. * support the 6 GHz band.
  4542. *
  4543. * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
  4544. * Used with event to notify the secondary channel number selected in ACS
  4545. * operation.
  4546. * Note: If both the driver and user-space application supports the 6 GHz band,
  4547. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
  4548. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
  4549. * To maintain backward compatibility,
  4550. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
  4551. * the driver or user space application doesn't support 6 GHz band.
  4552. *
  4553. * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
  4554. * (a) Used with command to configure hw_mode from
  4555. * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
  4556. * (b) Also used with event to notify the hw_mode of selected primary channel
  4557. * in ACS operation.
  4558. *
  4559. * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
  4560. * Used with command to configure ACS operation for HT mode.
  4561. * Disable (flag attribute not present) - HT disabled and
  4562. * Enable (flag attribute present) - HT enabled.
  4563. *
  4564. * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
  4565. * Used with command to configure ACS operation for HT40 mode.
  4566. * Disable (flag attribute not present) - HT40 disabled and
  4567. * Enable (flag attribute present) - HT40 enabled.
  4568. *
  4569. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
  4570. * Used with command to configure ACS operation for VHT mode.
  4571. * Disable (flag attribute not present) - VHT disabled and
  4572. * Enable (flag attribute present) - VHT enabled.
  4573. *
  4574. * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
  4575. * mandatory with event.
  4576. * If specified in command path, ACS operation is configured with the given
  4577. * channel width (in MHz).
  4578. * In event path, specifies the channel width of the primary channel selected.
  4579. *
  4580. * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
  4581. * Used with command to configure channel list using an array of
  4582. * channel numbers (u8).
  4583. * Note: If both the driver and user-space application supports the 6 GHz band,
  4584. * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
  4585. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
  4586. *
  4587. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
  4588. * Used with event to notify the VHT segment 0 center channel number selected in
  4589. * ACS operation.
  4590. * Note: If both the driver and user-space application supports the 6 GHz band,
  4591. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
  4592. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
  4593. * To maintain backward compatibility,
  4594. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
  4595. * the driver or user space application doesn't support the 6 GHz band.
  4596. *
  4597. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
  4598. * Used with event to notify the VHT segment 1 center channel number selected in
  4599. * ACS operation.
  4600. * Note: If both the driver and user-space application supports the 6 GHz band,
  4601. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
  4602. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
  4603. * To maintain backward compatibility,
  4604. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
  4605. * the driver or user space application doesn't support the 6 GHz band.
  4606. *
  4607. * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
  4608. * Used with command to configure the channel list using an array of channel
  4609. * center frequencies in MHz (u32).
  4610. * Note: If both the driver and user-space application supports the 6 GHz band,
  4611. * the driver first parses the frequency list and if it fails to get a frequency
  4612. * list, parses the channel list specified using
  4613. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
  4614. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
  4615. *
  4616. * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
  4617. * Used with event to notify the primary channel center frequency (MHz) selected
  4618. * in ACS operation.
  4619. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4620. * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
  4621. *
  4622. * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
  4623. * Used with event to notify the secondary channel center frequency (MHz)
  4624. * selected in ACS operation.
  4625. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4626. * includes this attribute along with
  4627. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
  4628. *
  4629. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
  4630. * Used with event to notify the VHT segment 0 center channel frequency (MHz)
  4631. * selected in ACS operation.
  4632. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4633. * includes this attribute along with
  4634. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
  4635. *
  4636. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
  4637. * Used with event to notify the VHT segment 1 center channel frequency (MHz)
  4638. * selected in ACS operation.
  4639. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4640. * includes this attribute along with
  4641. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
  4642. *
  4643. * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
  4644. * Used with command to notify the driver of EDMG request for ACS
  4645. * operation.
  4646. *
  4647. * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
  4648. * Used with event to notify the EDMG channel number selected in ACS
  4649. * operation.
  4650. * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
  4651. *
  4652. * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
  4653. * Used with event to notify the puncture pattern selected in ACS operation.
  4654. * Encoding for this attribute will follow the convention used in the Disabled
  4655. * Subchannel Bitmap field of the EHT Operation IE.
  4656. *
  4657. * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
  4658. * Used with command to configure ACS operation for EHT mode.
  4659. * Disable (flag attribute not present) - EHT disabled and
  4660. * Enable (flag attribute present) - EHT enabled.
  4661. *
  4662. * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
  4663. * Used with command to configure how older scan can be considered for ACS
  4664. * scoring. In case scan was performed on partial set of channels configured
  4665. * with this command, within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
  4666. * (in ms), then scan only remaining channels.
  4667. */
  4668. enum qca_wlan_vendor_attr_acs_offload {
  4669. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
  4670. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
  4671. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
  4672. QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
  4673. QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
  4674. QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
  4675. QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
  4676. QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
  4677. QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
  4678. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
  4679. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
  4680. QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
  4681. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
  4682. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
  4683. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
  4684. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
  4685. QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
  4686. QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
  4687. QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
  4688. QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
  4689. QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
  4690. /* keep last */
  4691. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
  4692. QCA_WLAN_VENDOR_ATTR_ACS_MAX =
  4693. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
  4694. };
  4695. /**
  4696. * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
  4697. * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
  4698. *
  4699. * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
  4700. * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
  4701. * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
  4702. * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
  4703. * @QCA_ACS_MODE_IEEE80211ANY: all modes
  4704. * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
  4705. */
  4706. enum qca_wlan_vendor_acs_hw_mode {
  4707. QCA_ACS_MODE_IEEE80211B,
  4708. QCA_ACS_MODE_IEEE80211G,
  4709. QCA_ACS_MODE_IEEE80211A,
  4710. QCA_ACS_MODE_IEEE80211AD,
  4711. QCA_ACS_MODE_IEEE80211ANY,
  4712. QCA_ACS_MODE_IEEE80211AX,
  4713. };
  4714. /**
  4715. * enum qca_access_policy - access control policy
  4716. *
  4717. * Access control policy is applied on the configured IE
  4718. * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
  4719. * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
  4720. *
  4721. * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match
  4722. *» with the specific configuration (IE) set, i.e. allow all the
  4723. *» connections which do not match the configuration.
  4724. * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match
  4725. *» with the specific configuration (IE) set, i.e. deny all the
  4726. *» connections which do not match the configuration.
  4727. */
  4728. enum qca_access_policy {
  4729. QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
  4730. QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
  4731. };
  4732. /**
  4733. * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values
  4734. *
  4735. * The valid values for the ignore assoc disallowed
  4736. *
  4737. * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed
  4738. * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed
  4739. *
  4740. */
  4741. enum qca_ignore_assoc_disallowed {
  4742. QCA_IGNORE_ASSOC_DISALLOWED_DISABLE,
  4743. QCA_IGNORE_ASSOC_DISALLOWED_ENABLE
  4744. };
  4745. /* Attributes for data used by
  4746. * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
  4747. * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
  4748. */
  4749. #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES\
  4750. QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
  4751. #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL\
  4752. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
  4753. #define QCA_WLAN_VENDOR_ATTR_ROAM_REASON\
  4754. QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON
  4755. enum qca_wlan_vendor_attr_config {
  4756. QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
  4757. /*
  4758. * Unsigned 32-bit value to set the DTIM period.
  4759. * Whether the wifi chipset wakes at every dtim beacon or a multiple of
  4760. * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
  4761. * DTIM beacons.
  4762. */
  4763. QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1,
  4764. /*
  4765. * Unsigned 32-bit value to set the wifi_iface stats averaging factor
  4766. * used to calculate statistics like average the TSF offset or average
  4767. * number of frame leaked.
  4768. * For instance, upon Beacon frame reception:
  4769. * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
  4770. * For instance, when evaluating leaky APs:
  4771. * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
  4772. */
  4773. QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
  4774. /*
  4775. * Unsigned 32-bit value to configure guard time, i.e., when
  4776. * implementing IEEE power management based on frame control PM bit, how
  4777. * long the driver waits before shutting down the radio and after
  4778. * receiving an ACK frame for a Data frame with PM bit set.
  4779. */
  4780. QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
  4781. /* Unsigned 32-bit value to change the FTM capability dynamically */
  4782. QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
  4783. /* Unsigned 16-bit value to configure maximum TX rate dynamically */
  4784. QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
  4785. /*
  4786. * Unsigned 32-bit value to configure the number of continuous
  4787. * Beacon Miss which shall be used by the firmware to penalize
  4788. * the RSSI.
  4789. */
  4790. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
  4791. /*
  4792. * Unsigned 8-bit value to configure the channel avoidance indication
  4793. * behavior. Firmware to send only one indication and ignore duplicate
  4794. * indications when set to avoid multiple Apps wakeups.
  4795. */
  4796. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
  4797. /*
  4798. * 8-bit unsigned value to configure the maximum TX MPDU for
  4799. * aggregation.
  4800. */
  4801. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
  4802. /*
  4803. * 8-bit unsigned value to configure the maximum RX MPDU for
  4804. * aggregation.
  4805. */
  4806. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
  4807. /*
  4808. * 8-bit unsigned value to configure the Non aggregate/11g sw
  4809. * retry threshold (0 disable, 31 max).
  4810. */
  4811. QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
  4812. /*
  4813. * 8-bit unsigned value to configure the aggregate sw
  4814. * retry threshold (0 disable, 31 max).
  4815. */
  4816. QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
  4817. /*
  4818. * 8-bit unsigned value to configure the MGMT frame
  4819. * retry threshold (0 disable, 31 max).
  4820. */
  4821. QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
  4822. /*
  4823. * 8-bit unsigned value to configure the CTRL frame
  4824. * retry threshold (0 disable, 31 max).
  4825. */
  4826. QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
  4827. /*
  4828. * 8-bit unsigned value to configure the propagation delay for
  4829. * 2G/5G band (0~63, units in us)
  4830. */
  4831. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
  4832. /*
  4833. * Unsigned 32-bit value to configure the number of unicast TX fail
  4834. * packet count. The peer is disconnected once this threshold is
  4835. * reached.
  4836. */
  4837. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
  4838. /*
  4839. * Attribute used to set scan default IEs to the driver.
  4840. *
  4841. * These IEs can be used by scan operations that will be initiated by
  4842. * the driver/firmware.
  4843. *
  4844. * For further scan requests coming to the driver, these IEs should be
  4845. * merged with the IEs received along with scan request coming to the
  4846. * driver. If a particular IE is present in the scan default IEs but not
  4847. * present in the scan request, then that IE should be added to the IEs
  4848. * sent in the Probe Request frames for that scan request.
  4849. */
  4850. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
  4851. /* Unsigned 32-bit attribute for generic commands */
  4852. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
  4853. /* Unsigned 32-bit value attribute for generic commands */
  4854. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
  4855. /* Unsigned 32-bit data attribute for generic command response */
  4856. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
  4857. /*
  4858. * Unsigned 32-bit length attribute for
  4859. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  4860. */
  4861. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
  4862. /*
  4863. * Unsigned 32-bit flags attribute for
  4864. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  4865. */
  4866. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
  4867. /*
  4868. * Unsigned 32-bit, defining the access policy.
  4869. * See enum qca_access_policy. Used with
  4870. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
  4871. */
  4872. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
  4873. /*
  4874. * Sets the list of full set of IEs for which a specific access policy
  4875. * has to be applied. Used along with
  4876. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
  4877. * Zero length payload can be used to clear this access constraint.
  4878. */
  4879. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
  4880. /*
  4881. * Unsigned 32-bit, specifies the interface index (netdev) for which the
  4882. * corresponding configurations are applied. If the interface index is
  4883. * not specified, the configurations are attributed to the respective
  4884. * wiphy.
  4885. */
  4886. QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
  4887. /*
  4888. * 8-bit unsigned value to trigger QPower:
  4889. * 1-Enable, 0-Disable
  4890. */
  4891. QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
  4892. /*
  4893. * 8-bit unsigned value to configure the driver and below layers to
  4894. * ignore the assoc disallowed set by APs while connecting
  4895. * 1-Ignore, 0-Don't ignore
  4896. */
  4897. QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
  4898. /*
  4899. * 32-bit unsigned value to trigger antenna diversity features:
  4900. * 1-Enable, 0-Disable
  4901. */
  4902. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
  4903. /* 32-bit unsigned value to configure specific chain antenna */
  4904. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
  4905. /*
  4906. * 32-bit unsigned value to trigger cycle selftest
  4907. * 1-Enable, 0-Disable
  4908. */
  4909. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
  4910. /*
  4911. * 32-bit unsigned to configure the cycle time of selftest
  4912. * the unit is micro-second
  4913. */
  4914. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
  4915. /* 32-bit unsigned value to set reorder timeout for AC_VO */
  4916. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
  4917. /* 32-bit unsigned value to set reorder timeout for AC_VI */
  4918. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
  4919. /* 32-bit unsigned value to set reorder timeout for AC_BE */
  4920. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
  4921. /* 32-bit unsigned value to set reorder timeout for AC_BK */
  4922. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
  4923. /* 6-byte MAC address to point out the specific peer */
  4924. QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC = 35,
  4925. /* Backward compatibility with the original name */
  4926. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC =
  4927. QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC,
  4928. /* 32-bit unsigned value to set window size for specific peer */
  4929. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
  4930. /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
  4931. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
  4932. /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
  4933. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
  4934. /*
  4935. * 32-bit unsigned value to configure 5 or 10 MHz channel width for
  4936. * station device while in disconnect state. The attribute use the
  4937. * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
  4938. * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
  4939. * 10 MHz channel width, the station will not connect to a BSS using 20
  4940. * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
  4941. * clear this constraint.
  4942. */
  4943. QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
  4944. /*
  4945. * 32-bit unsigned value to configure the propagation absolute delay
  4946. * for 2G/5G band (units in us)
  4947. */
  4948. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
  4949. /* 32-bit unsigned value to set probe period */
  4950. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
  4951. /* 32-bit unsigned value to set stay period */
  4952. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
  4953. /* 32-bit unsigned value to set snr diff */
  4954. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
  4955. /* 32-bit unsigned value to set probe dwell time */
  4956. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
  4957. /* 32-bit unsigned value to set mgmt snr weight */
  4958. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
  4959. /* 32-bit unsigned value to set data snr weight */
  4960. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
  4961. /* 32-bit unsigned value to set ack snr weight */
  4962. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
  4963. /*
  4964. * 32-bit unsigned value to configure the listen interval.
  4965. * This is in units of beacon intervals. This configuration alters
  4966. * the negotiated listen interval with the AP during the connection.
  4967. * It is highly recommended to configure a value less than or equal to
  4968. * the one negotiated during the association. Configuring any greater
  4969. * value can have adverse effects (frame loss, AP disassociating STA,
  4970. * etc.).
  4971. */
  4972. QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
  4973. /*
  4974. * 8 bit unsigned value that is set on an AP/GO virtual interface to
  4975. * disable operations that would cause the AP/GO to leave its operating
  4976. * channel.
  4977. *
  4978. * This will restrict the scans to the AP/GO operating channel and the
  4979. * channels of the other band, if DBS is supported.A STA/CLI interface
  4980. * brought up after this setting is enabled, will be restricted to
  4981. * connecting to devices only on the AP/GO interface's operating channel
  4982. * or on the other band in DBS case. P2P supported channel list is
  4983. * modified, to only include AP interface's operating-channel and the
  4984. * channels of the other band if DBS is supported.
  4985. *
  4986. * These restrictions are only applicable as long as the AP/GO interface
  4987. * is alive. If the AP/GO interface is brought down then this
  4988. * setting/restriction is forgotten.
  4989. *
  4990. * If this variable is set on an AP/GO interface while a multi-channel
  4991. * concurrent session is active, it has no effect on the operation of
  4992. * the current interfaces, other than restricting the scan to the AP/GO
  4993. * operating channel and the other band channels if DBS is supported.
  4994. * However, if the STA is brought down and restarted then the new STA
  4995. * connection will either be formed on the AP/GO channel or on the
  4996. * other band in a DBS case. This is because of the scan being
  4997. * restricted on these channels as mentioned above.
  4998. *
  4999. * 1-Disable offchannel operations, 0-Enable offchannel operations.
  5000. */
  5001. QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
  5002. /*
  5003. * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
  5004. * on an interface.
  5005. * 1 - Enable , 0 - Disable.
  5006. */
  5007. QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
  5008. /*
  5009. * 8 bit unsigned value to globally enable/disable scan
  5010. * 1 - Enable, 0 - Disable.
  5011. */
  5012. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
  5013. /* 8-bit unsigned value to set the total beacon miss count */
  5014. QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
  5015. /*
  5016. * Unsigned 32-bit value to configure the number of continuous
  5017. * Beacon Miss which shall be used by the firmware to penalize
  5018. * the RSSI for BTC.
  5019. */
  5020. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
  5021. /*
  5022. * 8-bit unsigned value to configure the driver and below layers to
  5023. * enable/disable all fils features.
  5024. * 0-enable, 1-disable
  5025. */
  5026. QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
  5027. /* 16-bit unsigned value to configure the level of WLAN latency
  5028. * module. See enum qca_wlan_vendor_attr_config_latency_level.
  5029. */
  5030. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
  5031. /*
  5032. * 8-bit unsigned value indicating the driver to use the RSNE as-is from
  5033. * the connect interface. Exclusively used for the scenarios where the
  5034. * device is used as a test bed device with special functionality and
  5035. * not recommended for production. This helps driver to not validate the
  5036. * RSNE passed from user space and thus allow arbitrary IE data to be
  5037. * used for testing purposes.
  5038. * 1-enable, 0-disable.
  5039. * Applications set/reset this configuration. If not reset, this
  5040. * parameter remains in use until the driver is unloaded.
  5041. */
  5042. QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
  5043. /*
  5044. * 8-bit unsigned value to trigger green Tx power saving.
  5045. * 1-Enable, 0-Disable
  5046. */
  5047. QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
  5048. /*
  5049. * Attribute to configure disconnect IEs to the driver.
  5050. * This carries an array of unsigned 8-bit characters.
  5051. *
  5052. * If this is configured, driver shall fill the IEs in disassoc/deauth
  5053. * frame.
  5054. * These IEs are expected to be considered only for the next
  5055. * immediate disconnection (disassoc/deauth frame) originated by
  5056. * the DUT, irrespective of the entity (user space/driver/firmware)
  5057. * triggering the disconnection.
  5058. * The host drivers are not expected to use the IEs set through
  5059. * this interface for further disconnections after the first immediate
  5060. * disconnection initiated post the configuration.
  5061. * If the IEs are also updated through cfg80211 interface (after the
  5062. * enhancement to cfg80211_disconnect), host driver is expected to
  5063. * take the union of IEs from both of these interfaces and send in
  5064. * further disassoc/deauth frames.
  5065. */
  5066. QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
  5067. /* 8-bit unsigned value for ELNA bypass.
  5068. * 0 - Disable eLNA bypass.
  5069. * 1 - Enable eLNA bypass.
  5070. * 2 - Reset eLNA bypass configuration, the driver should
  5071. * revert to the default configuration of eLNA bypass.
  5072. */
  5073. QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
  5074. /* 8-bit unsigned value. This attribute enables/disables the host driver
  5075. * to send the Beacon Report response with failure reason for the
  5076. * scenarios where STA cannot honor the Beacon report request from AP.
  5077. * 1-Enable, 0-Disable.
  5078. */
  5079. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
  5080. /* 8-bit unsigned value. This attribute enables/disables the host driver
  5081. * to send roam reason information in the reassociation request to the
  5082. * AP. 1-Enable, 0-Disable.
  5083. */
  5084. QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
  5085. /* 32-bit unsigned value to configure different PHY modes to the
  5086. * driver/firmware. The possible values are defined in
  5087. * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
  5088. * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
  5089. * the driver.
  5090. */
  5091. QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
  5092. /* 8-bit unsigned value to configure the maximum supported channel width
  5093. * for STA mode. If this value is configured when STA is in connected
  5094. * state, it should not exceed the negotiated channel width. If it is
  5095. * configured when STA is in disconnected state, the configured value
  5096. * will take effect for the next immediate connection.
  5097. * This configuration can be sent inside
  5098. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum
  5099. * supported channel width per-MLO link.
  5100. *
  5101. * This uses values defined in enum nl80211_chan_width.
  5102. */
  5103. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
  5104. /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
  5105. * This attribute is only applicable for STA mode. When dynamic
  5106. * bandwidth adjustment is disabled, STA will use static channel width
  5107. * the value of which is negotiated during connection.
  5108. * 1-enable (default), 0-disable
  5109. */
  5110. QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
  5111. /* 8-bit unsigned value to configure the maximum number of subframes of
  5112. * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
  5113. * it is decided by hardware.
  5114. */
  5115. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
  5116. /* 8-bit unsigned value to configure the maximum number of subframes of
  5117. * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
  5118. * it is decided by hardware.
  5119. */
  5120. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
  5121. /* 8-bit unsigned value. This attribute is used to dynamically
  5122. * enable/disable the LDPC capability of the device. When configured in
  5123. * the disconnected state, the updated configuration will be considered
  5124. * for the immediately following connection attempt. If this
  5125. * configuration is modified while the device is in the connected state,
  5126. * the LDPC TX will be updated with this configuration immediately,
  5127. * while the LDPC RX configuration update will take place starting from
  5128. * the subsequent association attempt.
  5129. * 1-Enable, 0-Disable.
  5130. */
  5131. QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
  5132. /* 8-bit unsigned value. This attribute is used to dynamically
  5133. * enable/disable the TX STBC capability of the device. When configured
  5134. * in the disconnected state, the updated configuration will be
  5135. * considered for the immediately following connection attempt. If the
  5136. * connection is formed with TX STBC enabled and if this configuration
  5137. * is disabled during that association, the TX will be impacted
  5138. * immediately. Further connection attempts will disable TX STBC.
  5139. * However, enabling the TX STBC for a connected session with disabled
  5140. * capability is not allowed and will fail.
  5141. * 1-Enable, 0-Disable.
  5142. */
  5143. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
  5144. /* 8-bit unsigned value. This attribute is used to dynamically
  5145. * enable/disable the RX STBC capability of the device. When configured
  5146. * in the disconnected state, the updated configuration will be
  5147. * considered for the immediately following connection attempt. If the
  5148. * configuration is modified in the connected state, there will be no
  5149. * impact for the current association, but further connection attempts
  5150. * will use the updated configuration.
  5151. * 1-Enable, 0-Disable.
  5152. */
  5153. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
  5154. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5155. * the number of spatial streams. When configured in the disconnected
  5156. * state, the updated configuration will be considered for the
  5157. * immediately following connection attempt. If the NSS is updated after
  5158. * the connection, the updated NSS value is notified to the peer using
  5159. * the Operating Mode Notification/Spatial Multiplexing Power Save
  5160. * frame. The updated NSS value after the connection shall not be
  5161. * greater than the one negotiated during the connection. Any such
  5162. * higher value configuration shall be returned with a failure.
  5163. * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
  5164. * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
  5165. * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
  5166. * configure the asymmetric NSS configuration (such as 1X2).
  5167. */
  5168. QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
  5169. /* 8-bit unsigned value to configure Optimized Power Management mode:
  5170. * Modes are defined by enum qca_wlan_vendor_opm_mode.
  5171. *
  5172. * This attribute shall be configured along with
  5173. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
  5174. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes
  5175. * when its value is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED.
  5176. */
  5177. QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
  5178. /* 8-bit unsigned value. This attribute takes the QOS/access category
  5179. * value represented by the enum qca_wlan_ac_type and expects the driver
  5180. * to upgrade the UDP frames to this QOS. The value of QCA_WLAN_AC_ALL
  5181. * is invalid for this attribute. This will override the DSCP value
  5182. * configured in the frame with the intention to only upgrade the QOS.
  5183. * That said, it is not intended to downgrade the QOS for the frames.
  5184. * Set the value to 0 ( corresponding to BE ) if the QOS upgrade needs
  5185. * to disable.
  5186. *
  5187. * If only UDP frames of BE or BK access category needs to be upgraded
  5188. * without changing the access category of VO or VI UDP frames, refer to
  5189. * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK.
  5190. *
  5191. * This attribute is not recommended to be used as it blindly forces all
  5192. * UDP packets to a higher access category which could impact the
  5193. * traffic pattern of all apps using UDP and can cause unknown behavior.
  5194. */
  5195. QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
  5196. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5197. * the number of chains to be used for transmitting data. This
  5198. * configuration is allowed only when in connected state and will be
  5199. * effective until disconnected. The driver rejects this configuration
  5200. * if the number of spatial streams being used in the current connection
  5201. * cannot be supported by this configuration.
  5202. */
  5203. QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
  5204. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5205. * the number of chains to be used for receiving data. This
  5206. * configuration is allowed only when in connected state and will be
  5207. * effective until disconnected. The driver rejects this configuration
  5208. * if the number of spatial streams being used in the current connection
  5209. * cannot be supported by this configuration.
  5210. */
  5211. QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
  5212. /* 8-bit unsigned value to configure ANI setting type.
  5213. * See &enum qca_wlan_ani_setting for possible values.
  5214. */
  5215. QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
  5216. /* 32-bit signed value to configure ANI level. This is used when
  5217. * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
  5218. * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
  5219. * is invalid, the driver will return a failure.
  5220. */
  5221. QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
  5222. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5223. * the number of spatial streams used for transmitting the data. When
  5224. * configured in the disconnected state, the configured value will
  5225. * be considered for the following connection attempt.
  5226. * If the NSS is updated after the connection, the updated NSS value
  5227. * is notified to the peer using the Operating Mode Notification/Spatial
  5228. * Multiplexing Power Save frame.
  5229. * The TX NSS value configured after the connection shall not be greater
  5230. * than the value negotiated during the connection. Any such higher
  5231. * value configuration shall be treated as invalid configuration by
  5232. * the driver. This attribute shall be configured along with
  5233. * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
  5234. * configuration (such as 2X2 or 1X1) or the asymmetric
  5235. * configuration (such as 1X2).
  5236. * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
  5237. * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
  5238. * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
  5239. */
  5240. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
  5241. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5242. * the number of spatial streams used for receiving the data. When
  5243. * configured in the disconnected state, the configured value will
  5244. * be considered for the following connection attempt.
  5245. * If the NSS is updated after the connection, the updated NSS value
  5246. * is notified to the peer using the Operating Mode Notification/Spatial
  5247. * Multiplexing Power Save frame.
  5248. * The RX NSS value configured after the connection shall not be greater
  5249. * than the value negotiated during the connection. Any such higher
  5250. * value configuration shall be treated as invalid configuration by
  5251. * the driver. This attribute shall be configured along with
  5252. * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
  5253. * configuration (such as 2X2 or 1X1) or the asymmetric
  5254. * configuration (such as 1X2).
  5255. * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
  5256. * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
  5257. * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
  5258. */
  5259. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
  5260. /*
  5261. * 8-bit unsigned value. This attribute, when set, indicates whether the
  5262. * specified interface is the primary STA interface when there are more
  5263. * than one STA interfaces concurrently active.
  5264. *
  5265. * This configuration helps the firmware/hardware to support certain
  5266. * features (e.g., roaming) on this primary interface, if the same
  5267. * cannot be supported on the concurrent STA interfaces simultaneously.
  5268. *
  5269. * This configuration is only applicable for a single STA interface on
  5270. * a device and gives the priority for it only over other concurrent STA
  5271. * interfaces.
  5272. *
  5273. * If the device is a multi wiphy/soc, this configuration applies to a
  5274. * single STA interface across the wiphys.
  5275. *
  5276. * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
  5277. */
  5278. QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
  5279. /*
  5280. * 8-bit unsigned value. This attribute can be used to configure the
  5281. * driver to enable/disable FT-over-DS feature. Possible values for
  5282. * this attribute are 1-Enable and 0-Disable.
  5283. */
  5284. QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
  5285. /*
  5286. * 8-bit unsigned value. This attribute can be used to configure the
  5287. * firmware to enable/disable ARP/NS offload feature. Possible values
  5288. * for this attribute are 0-Disable and 1-Enable.
  5289. *
  5290. * This attribute is only applicable for STA/P2P-Client interface,
  5291. * and is optional, default behavior is APR/NS offload Enable.
  5292. *
  5293. * This attribute can be set in disconncted and connected state, and
  5294. * will restore to default behavior if interface is closed.
  5295. */
  5296. QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
  5297. /*
  5298. * 8-bit unsigned value. This attribute can be used to configure the
  5299. * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values
  5300. * for this attribute are defined in the enum qca_dbam_config.
  5301. */
  5302. QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
  5303. /* 8-bit unsigned value. This attribute takes the QoS/access category
  5304. * value represented by the enum qca_wlan_ac_type and expects the driver
  5305. * to upgrade the UDP frames of BE or BK access category to this access
  5306. * category. This attribute will not modify UDP frames of VO or VI
  5307. * access category. The value of QCA_WLAN_AC_ALL is invalid for this
  5308. * attribute.
  5309. *
  5310. * This will override the DSCP value configured in the frame with the
  5311. * intention to only upgrade the access category. That said, it is not
  5312. * intended to downgrade the access category for the frames.
  5313. * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
  5314. * disabled, as BK is of the lowest priority and an upgrade to it does
  5315. * not result in any changes for the frames.
  5316. *
  5317. * This attribute behavior is similar to
  5318. * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that
  5319. * only UDP frames of BE or BK access category are upgraded and not
  5320. * UDP frames of VI or VO access category.
  5321. *
  5322. * This attribute is not recommended to be used as it blindly forces all
  5323. * UDP packets of BE or BK access category to a higher access category
  5324. * which could impact the traffic pattern of all apps using UDP and can
  5325. * cause unknown behavior.
  5326. */
  5327. QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84,
  5328. /* 8-bit unsigned value to configure the driver to enable/disable the
  5329. * periodic sounding for Tx beamformer functionality. The default
  5330. * behavior uses algorithm to do sounding based on packet stats.
  5331. *
  5332. * 0 - Default behavior.
  5333. * 1 - Enable the periodic sounding for Tx beamformer.
  5334. * This attribute is used for testing purposes.
  5335. */
  5336. QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85,
  5337. /* 8-bit unsigned value, whenever wifi calling (wfc) begin or end,
  5338. * Userspace sends this information to driver/firmware to configure
  5339. * wfc state. Driver/Firmware uses this information to
  5340. * optimize power savings, rate adaption, roaming, etc.
  5341. *
  5342. * 1 - wfc is on.
  5343. * 0 - wfc is off.
  5344. */
  5345. QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86,
  5346. /* 8-bit unsigned value to configure the driver to enable/disable the
  5347. * EHT EML capability in management frame EHT capabilities.
  5348. * 1 - Enable, 0 - Disable.
  5349. */
  5350. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_EML_CAPABILITY = 87,
  5351. /* 8-bit unsigned value to configure the driver with EHT MLO max
  5352. * simultaneous links to be used for MLO connection.
  5353. * The range of the value is 0 to 14.
  5354. */
  5355. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_SIMULTANEOUS_LINKS = 88,
  5356. /* 8-bit unsigned value to configure the driver with EHT MLO maximum
  5357. * number of links to be used for MLO connection.
  5358. * The range of the value is 1 to 16.
  5359. */
  5360. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_NUM_LINKS = 89,
  5361. /* 8-bit unsigned value to configure the driver with EHT MLO mode.
  5362. * Uses enum qca_wlan_eht_mlo_mode values.
  5363. */
  5364. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MODE = 90,
  5365. /* Nested attribute with frequencies in u32 attributes to configure a
  5366. * list of allowed 20 MHz channel center frequencies in MHz for AP
  5367. * operation. Whenever performing a channel selection operation, the
  5368. * driver shall generate a new list based on this provided list by
  5369. * filtering out channels that cannot be used at that time due to
  5370. * regulatory or other constraints. The resulting list is used as the
  5371. * list of all allowed channels, i.e., operation on any channel that is
  5372. * not included is not allowed, whenever performing operations like ACS
  5373. * and DFS.
  5374. *
  5375. * Userspace shall configure this before starting the AP and the
  5376. * configuration is valid only from the next BSS start and until the
  5377. * BSS is stopped. The driver shall clear this configuration when the
  5378. * AP is stopped and fall back to the default behavior for subsequent
  5379. * AP operation.
  5380. *
  5381. * The default behavior when this configuration is not applicable is the
  5382. * driver can choose any of the channels supported by the hardware
  5383. * except the channels that cannot be used due to regulatory or other
  5384. * constraints.
  5385. *
  5386. * The driver shall reject this configuration if done after the AP is
  5387. * started. This attribute can be used to specify user's choice of
  5388. * frequencies and static puncture channel list, etc.
  5389. */
  5390. QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST = 91,
  5391. /* Nested attribute to indicate EHT MLO links to be forced active.
  5392. * It contains link MAC address attributes. These nested attributes are
  5393. * of the type NL80211_ATTR_MAC and are used to force enabling of the
  5394. * MLO links corresponding to the indicated link MAC addresses.
  5395. * Subsequently, the links corresponding to the link MAC addresses that
  5396. * are not indicated are forced inactive.
  5397. */
  5398. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_ACTIVE_LINKS = 92,
  5399. /* 8-bit unsigned value to configure EMLSR mode entry or exit.
  5400. * Uses enum qca_wlan_emlsr_mode values.
  5401. */
  5402. QCA_WLAN_VENDOR_ATTR_CONFIG_EMLSR_MODE_SWITCH = 93,
  5403. /* 8-bit unsigned value. This attribute is used to dynamically
  5404. * enable/suspend trigger based UL MU transmission.
  5405. * This is supported in STA mode and the device sends Operating
  5406. * Mode Indication to inform the change as described in
  5407. * IEEE Std 802.11ax-2021, 26.9.
  5408. *
  5409. * This attribute can be configured when the STA is associated
  5410. * to an AP and the configuration is maintained until the current
  5411. * association terminates.
  5412. *
  5413. * By default all UL MU transmissions are enabled.
  5414. *
  5415. * Uses enum qca_ul_mu_config values.
  5416. */
  5417. QCA_WLAN_VENDOR_ATTR_CONFIG_UL_MU_CONFIG = 95,
  5418. /* 8-bit unsigned value. Optionally specified along with
  5419. * %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH when STA is in connected
  5420. * state. This configuration is applicable only for the current
  5421. * connection. This configuration not allowed in disconnected state.
  5422. * This configuration can be sent inside
  5423. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum
  5424. * supported channel width update type per-MLO link.
  5425. *
  5426. * valid values:
  5427. * 0 - The maximum allowed bandwidth change is applicable for both Tx
  5428. * and Rx paths. The driver shall conduct OMI operation as defined
  5429. * in 26.9 (Operating mode indication) or OMN operation as
  5430. * defined in 11.40 (Notification of operating mode
  5431. * changes) in IEEE P802.11-REVme/D2.0 with AP to indicate the
  5432. * change in the maximum allowed operating bandwidth.
  5433. * 1 - Limit the change in maximum allowed bandwidth only to Tx path.
  5434. * In this case the driver doesn't need to conduct OMI/OMN
  5435. * operation since %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH is
  5436. * expected to be less than the current connection maximum
  5437. * negotiated bandwidth.
  5438. * For example: Negotiated maximum bandwidth is 160 MHz and the new
  5439. * maximum bandwidth configured is 80 MHz, now the driver limits
  5440. * the maximum bandwidth to 80 MHz only in the Tx path.
  5441. */
  5442. QCA_WLAN_VENDOR_ATTR_CONFIG_CHAN_WIDTH_UPDATE_TYPE = 96,
  5443. /* 8-bit unsigned value to set EPCS (Emergency Preparedness
  5444. * Communications Service) feature capability
  5445. * 1 - Enable, 0 - Disable.
  5446. *
  5447. * This configuration is used for testing purposes.
  5448. */
  5449. QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY = 97,
  5450. /* 8-bit unsigned value to enable/disable EPCS priority access
  5451. * 1 - Enable, 0 - Disable.
  5452. * The EPCS priority access shall be enabled only when EPCS feature
  5453. * capability is also enabled (see
  5454. * QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY).
  5455. *
  5456. * This configuration is used for testing purposes.
  5457. */
  5458. QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_FUNCTION = 98,
  5459. /* 8-bit unsigned value. Used only for representing MLO link ID of a
  5460. * link inside %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS.
  5461. */
  5462. QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID = 99,
  5463. /* Array of nested links each identified by
  5464. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID. This uses values defined in
  5465. * enum qca_wlan_vendor_attr_config, explicit documentation shall be
  5466. * added for the attributes in enum qca_wlan_vendor_attr_config to
  5467. * support per-MLO link configuration through
  5468. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS.
  5469. *
  5470. * Userspace can configure a single link or multiple links with this
  5471. * attribute by nesting the corresponding configuration attributes and
  5472. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link.
  5473. *
  5474. * Userspace can fetch the configuration attribute values for a single
  5475. * link or multiple links with this attribute by nesting the
  5476. * corresponding configuration attributes and
  5477. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link.
  5478. *
  5479. * For STA interface, this attribute is applicable only in connected
  5480. * state when the current connection is MLO capable. The valid values of
  5481. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link IDs of the
  5482. * connected AP MLD links.
  5483. *
  5484. * For AP interface, this configuration applicable only after adding
  5485. * MLO links to the AP interface with %NL80211_CMD_ADD_LINK and the
  5486. * valid values of %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link
  5487. * IDs specified in %NL80211_CMD_ADD_LINK while adding the MLO links to
  5488. * the AP interface.
  5489. */
  5490. QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS = 100,
  5491. /* 16-bit unsigned value to configure power save inactivity timeout in
  5492. * milliseconds.
  5493. *
  5494. * STA enters into power save mode (PM=1) after TX/RX inactivity of time
  5495. * duration specified by %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO.
  5496. *
  5497. * This attribute shall be configured along with
  5498. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL when
  5499. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT
  5500. * is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode.
  5501. */
  5502. QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO = 101,
  5503. /* 16-bit unsigned value to configure speculative wake interval in
  5504. * milliseconds.
  5505. *
  5506. * STA speculatively wakes up to look for buffered data by AP at
  5507. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL interval after
  5508. * entering into power save. If configured zero, STA wakes up at
  5509. * upcoming DTIM beacon.
  5510. *
  5511. * This attribute shall be configured along with
  5512. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
  5513. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT
  5514. * to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode.
  5515. */
  5516. QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL = 102,
  5517. /*
  5518. * 16-bit unsigned value to configure TX max A-MPDU count.
  5519. *
  5520. * For STA interface, this attribute is applicable only in connected
  5521. * state, peer MAC address is not required to be provided.
  5522. *
  5523. * For AP interface, this attribute is applicable only in started
  5524. * state and one of the associated peer STAs must be specified with
  5525. * QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC. If this is for an ML
  5526. * association, the peer MAC address provided is the link address of
  5527. * the non-AP MLD.
  5528. *
  5529. * This attribute runtime configures the TX maximum aggregation size.
  5530. * The value must be in range of 1 to BA window size for the specific
  5531. * peer.
  5532. */
  5533. QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_AMPDU_CNT = 103,
  5534. /*
  5535. * 8-bit unsigned value to configure TID-to-link mapping negotiation
  5536. * type.
  5537. * Uses enum qca_wlan_ttlm_negotiation_support values.
  5538. *
  5539. * This value applies to the complete AP/non-AP MLD interface, and the
  5540. * MLD advertises it within the Basic Multi-Link element in the
  5541. * association frames. If a new value is configured during an active
  5542. * connection, it will take effect in the subsequent associations and
  5543. * is not reset during disconnection.
  5544. *
  5545. * This attribute is used for testing purposes.
  5546. */
  5547. QCA_WLAN_VENDOR_ATTR_CONFIG_TTLM_NEGOTIATION_SUPPORT = 104,
  5548. /* 8-bit unsigned value
  5549. *
  5550. * This attribute configures a traffic shaping mode
  5551. * applied during coex scenarios.
  5552. * By default all coex traffic shaping modes are enabled,
  5553. * i.e., shape WLAN traffic based on coex traffic pattern and priority.
  5554. * To shape traffic, STA may enter in power save mode
  5555. * and AP may send CTS-to-self frame.
  5556. *
  5557. * Uses enum qca_coex_traffic_shaping_mode values.
  5558. */
  5559. QCA_WLAN_VENDOR_ATTR_CONFIG_COEX_TRAFFIC_SHAPING_MODE = 105,
  5560. /* keep last */
  5561. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
  5562. QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
  5563. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
  5564. };
  5565. /**
  5566. * enum qca_ul_mu_config - UL MU configuration
  5567. * @QCA_UL_MU_SUSPEND - All trigger based UL MU transmission is suspended
  5568. * @QCA_UL_MU_ENABLE - All trigger based UL MU transmission is enabled
  5569. */
  5570. enum qca_ul_mu_config {
  5571. QCA_UL_MU_SUSPEND = 0,
  5572. QCA_UL_MU_ENABLE = 1,
  5573. };
  5574. /**
  5575. * enum qca_dbam_config - Specifies DBAM config mode
  5576. * @QCA_DBAM_DISABLE: Firmware disables DBAM
  5577. * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when
  5578. * internal criteria are met.
  5579. * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully.
  5580. */
  5581. enum qca_dbam_config {
  5582. QCA_DBAM_DISABLE = 0,
  5583. QCA_DBAM_ENABLE = 1,
  5584. QCA_DBAM_FORCE_ENABLE = 2,
  5585. };
  5586. /**
  5587. * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting
  5588. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute
  5589. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID
  5590. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level
  5591. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag
  5592. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value
  5593. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value
  5594. */
  5595. enum qca_wlan_vendor_attr_wifi_logger_start {
  5596. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
  5597. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
  5598. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
  5599. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
  5600. /* keep last */
  5601. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
  5602. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX =
  5603. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
  5604. };
  5605. /*
  5606. * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data
  5607. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute
  5608. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID
  5609. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value
  5610. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value
  5611. */
  5612. enum qca_wlan_vendor_attr_wifi_logger_get_ring_data {
  5613. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0,
  5614. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1,
  5615. /* keep last */
  5616. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST,
  5617. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX =
  5618. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1,
  5619. };
  5620. #ifdef WLAN_FEATURE_OFFLOAD_PACKETS
  5621. /**
  5622. * enum wlan_offloaded_packets_control - control commands
  5623. * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets
  5624. * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets
  5625. *
  5626. */
  5627. enum wlan_offloaded_packets_control {
  5628. WLAN_START_OFFLOADED_PACKETS = 1,
  5629. WLAN_STOP_OFFLOADED_PACKETS = 2
  5630. };
  5631. /**
  5632. * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
  5633. *
  5634. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
  5635. * the offloaded data.
  5636. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
  5637. * data.
  5638. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
  5639. * indication.
  5640. */
  5641. enum qca_wlan_vendor_attr_data_offload_ind {
  5642. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
  5643. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
  5644. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
  5645. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
  5646. /* keep last */
  5647. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
  5648. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
  5649. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
  5650. };
  5651. /**
  5652. * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
  5653. * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
  5654. */
  5655. enum qca_wlan_vendor_attr_offloaded_packets {
  5656. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
  5657. /* Takes valid value from the enum
  5658. * qca_wlan_offloaded_packets_sending_control
  5659. * Unsigned 32-bit value
  5660. */
  5661. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
  5662. /* Unsigned 32-bit value */
  5663. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
  5664. /* array of u8 len: Max packet size */
  5665. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
  5666. /* 6-byte MAC address used to represent source MAC address */
  5667. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
  5668. /* 6-byte MAC address used to represent destination MAC address */
  5669. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
  5670. /* Unsigned 32-bit value, in milli seconds */
  5671. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
  5672. /* This optional unsigned 16-bit attribute is used for specifying
  5673. * ethernet protocol type. If not specified ethertype defaults to IPv4.
  5674. */
  5675. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
  5676. /* keep last */
  5677. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
  5678. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
  5679. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
  5680. };
  5681. #endif /* WLAN_FEATURE_OFFLOAD_PACKETS */
  5682. /**
  5683. * enum qca_wlan_rssi_monitoring_control - rssi control commands
  5684. * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid
  5685. * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start
  5686. * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop
  5687. */
  5688. enum qca_wlan_rssi_monitoring_control {
  5689. QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
  5690. QCA_WLAN_RSSI_MONITORING_START,
  5691. QCA_WLAN_RSSI_MONITORING_STOP,
  5692. };
  5693. /**
  5694. * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring
  5695. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid
  5696. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control
  5697. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi
  5698. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi
  5699. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid
  5700. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi
  5701. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last
  5702. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max
  5703. */
  5704. enum qca_wlan_vendor_attr_rssi_monitoring {
  5705. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
  5706. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
  5707. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
  5708. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
  5709. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
  5710. /* attributes to be used/received in callback */
  5711. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
  5712. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
  5713. /* keep last */
  5714. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
  5715. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
  5716. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
  5717. };
  5718. /**
  5719. * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
  5720. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  5721. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID
  5722. * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd
  5723. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID:
  5724. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicates a service info
  5725. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz
  5726. * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC
  5727. * address
  5728. * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being
  5729. * created
  5730. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use
  5731. * NCS_SK_TYPE/PMK/SCID instead
  5732. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS
  5733. * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info
  5734. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id
  5735. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids
  5736. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response
  5737. * code: accept/reject
  5738. * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address
  5739. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by
  5740. * driver
  5741. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by
  5742. * driver
  5743. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration
  5744. * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type
  5745. * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO
  5746. * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the
  5747. * PMKID
  5748. * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase
  5749. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name
  5750. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule
  5751. * update:
  5752. * BIT_0: NSS Update
  5753. * BIT_1: Channel list update
  5754. * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss
  5755. * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL
  5756. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH:
  5757. * 0:20 MHz,
  5758. * 1:40 MHz,
  5759. * 2:80 MHz,
  5760. * 3:160 MHz
  5761. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width
  5762. * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array
  5763. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating
  5764. * transport port used by NDP.
  5765. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating
  5766. * protocol used by NDP and assigned by the Internet Assigned Numbers Authority
  5767. * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
  5768. * @QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT: Unsigned 8-bit value indicating if
  5769. * NDP remote peer supports NAN NDPE. 1:support 0:not support
  5770. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID: As per Wi-Fi Aware Specification v3.2
  5771. * Service Id is the first 48 bits of the SHA-256 hash of the Service Name.
  5772. * A lower-case representation of the Service Name shall be used to
  5773. * calculate the Service ID.
  5774. * Array of u8: length is 6 bytes
  5775. * This attribute is used and optional for ndp indication.
  5776. * @QCA_WLAN_VENDOR_ATTR_NDP_CSIA_CAPABILITIES: Unsigned 8-bit value for Cipher
  5777. * Suite
  5778. * This attribute is used and optional in ndp request, ndp response, ndp
  5779. * indication, and ndp confirm.
  5780. * This attribute is used to indicate the Capabilities field of Cipher Suite
  5781. * Information attribute (CSIA) of NDP frames as defined in Wi-Fi Aware
  5782. * Specification v4.0, 9.5.21.2, Table 122.
  5783. * Firmware can accept or ignore any of the capability bits.
  5784. * @QCA_WLAN_VENDOR_ATTR_NDP_GTK_REQUIRED: Indicate if the GTK protection is
  5785. * required for NDP. NLA_FLAG attribute.
  5786. * This attribute can be used in ndp request, ndp response, ndp indication, and
  5787. * ndp confirm.
  5788. * GTK protection required is indicated in the NDPE attribute of NAN action
  5789. * frame (NAF) during NDP negotiation as defined in Wi-Fi Aware Specification
  5790. * v4.0, 9.5.16.2.
  5791. * If the device and peer supports GTKSA and if GTK protection required bit is
  5792. * set in NDPE IE, devices will share GTK to each other in SKDA of Data Path
  5793. * Security Confirm and Data Path Security Install frames of NDP negotiation to
  5794. * send and receive protected group addressed data frames from each other.
  5795. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute
  5796. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type
  5797. */
  5798. enum qca_wlan_vendor_attr_ndp_params {
  5799. QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
  5800. QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1,
  5801. QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2,
  5802. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3,
  5803. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4,
  5804. QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5,
  5805. QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6,
  5806. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7,
  5807. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8,
  5808. QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9,
  5809. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10,
  5810. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11,
  5811. QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12,
  5812. QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13,
  5813. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14,
  5814. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15,
  5815. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16,
  5816. QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17,
  5817. QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18,
  5818. QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19,
  5819. QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20,
  5820. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21,
  5821. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22,
  5822. QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23,
  5823. QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24,
  5824. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25,
  5825. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26,
  5826. QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
  5827. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
  5828. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
  5829. QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
  5830. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
  5831. QCA_WLAN_VENDOR_ATTR_NDP_CSIA_CAPABILITIES = 32,
  5832. QCA_WLAN_VENDOR_ATTR_NDP_GTK_REQUIRED = 33,
  5833. /* keep last */
  5834. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
  5835. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
  5836. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
  5837. };
  5838. /**
  5839. * enum qca_wlan_ndp_sub_cmd - NDP sub commands types for
  5840. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  5841. * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value
  5842. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: Command to create a NAN
  5843. * data path interface.
  5844. * This command was initially designed to both create and start a NAN
  5845. * data path interface. However, changes to Linux 5.12 no longer allow
  5846. * interface creation via vendor commands. When the driver advertises
  5847. * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
  5848. * userspace must explicitly first create the interface using
  5849. * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
  5850. * to start the interface.
  5851. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: command to delete a NAN
  5852. * data path interface.
  5853. * This command was initially designed to both stop and delete a NAN
  5854. * data path interface. However, changes to Linux 5.12 no longer allow
  5855. * interface deletion via vendor commands. When the driver advertises
  5856. * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
  5857. * userspace must explicitly delete the interface using
  5858. * NL80211_CMD_DEL_INTERFACE after calling this command.
  5859. * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above
  5860. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session
  5861. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above
  5862. * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end
  5863. * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above
  5864. * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request
  5865. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete
  5866. * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request
  5867. * being received
  5868. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule
  5869. * update
  5870. */
  5871. enum qca_wlan_ndp_sub_cmd {
  5872. QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
  5873. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
  5874. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
  5875. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
  5876. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
  5877. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
  5878. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
  5879. QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
  5880. QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
  5881. QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
  5882. QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
  5883. QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
  5884. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
  5885. };
  5886. /**
  5887. * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
  5888. * information. These attributes are sent as part of
  5889. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
  5890. * attributes correspond to a single channel.
  5891. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16)
  5892. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  5893. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16)
  5894. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  5895. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency
  5896. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum
  5897. * regulatory transmission power
  5898. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum
  5899. * transmission power
  5900. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum
  5901. * transmission power
  5902. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory
  5903. * class id
  5904. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum
  5905. * antenna gain in dbm
  5906. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0
  5907. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1
  5908. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0: Segment 0
  5909. * center frequency in MHz.
  5910. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht
  5911. * segment 0 in center freq in MHz. (this is the legacy alias)
  5912. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1: Segment 1
  5913. * center frequency in MHz.
  5914. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht
  5915. * segment 1 in center freq in MHz. (this is the legacy alias)
  5916. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES: 3-bits
  5917. * flag indicating the AP power modes supported by the channel, as given by
  5918. * enum qca_wlan_vendor_external_acs_chan_power_level.
  5919. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR: Array of nested
  5920. * attributes for each power mode. It takes attr as defined in enum
  5921. * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
  5922. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1:
  5923. * This indicates the overlapping 320 MHz center frequency in MHz, if the
  5924. * given primary channel supports more than one 320 MHz channel bonding.
  5925. *
  5926. */
  5927. enum qca_wlan_vendor_external_acs_event_chan_info_attr {
  5928. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
  5929. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
  5930. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
  5931. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
  5932. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
  5933. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
  5934. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
  5935. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
  5936. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
  5937. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
  5938. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
  5939. /*
  5940. * A bitmask (u32) with flags specified in
  5941. * enum qca_wlan_vendor_channel_prop_flags_2.
  5942. */
  5943. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
  5944. /*
  5945. * Segment 0 in MHz (u32).
  5946. *
  5947. * For 20/40/80 MHz bandwidth, this indicates the channel center
  5948. * frequency index for the 20/40/80 MHz operating channel.
  5949. * For 160 MHz bandwidth, this indicates the channel center
  5950. * frequency of the primary 80 MHz channel.
  5951. * For 320 MHz bandwidth, indicates the channel center frequency
  5952. * of the primary 160 MHz channel.
  5953. *
  5954. * To maintain backward compatibility,
  5955. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5956. * is also maintained.
  5957. */
  5958. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12,
  5959. /* Legacy alias for the Segment 0 attribute.
  5960. *
  5961. * VHT segment 0 in MHz (u32) and the attribute is mandatory.
  5962. * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
  5963. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5964. * along with
  5965. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
  5966. *
  5967. * If both the driver and user-space application supports the 6 GHz
  5968. * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
  5969. * is deprecated and
  5970. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5971. * should be used.
  5972. *
  5973. * To maintain backward compatibility,
  5974. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5975. * is still used if either of the driver or user space application
  5976. * doesn't support the 6 GHz band.
  5977. */
  5978. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 =
  5979. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0,
  5980. /*
  5981. * Segment 1 in MHz (u32).
  5982. *
  5983. * For 20/40/80 MHz bandwidth, this is set to 0.
  5984. * For 160 MHz bandwidth, indicates the channel center frequency of the
  5985. * 160 MHz channel.
  5986. * For 320 MHz bandwidth, indicates the channel center frequency of the
  5987. * 320 MHz channel.
  5988. *
  5989. * To maintain backward compatibility,
  5990. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5991. * is also maintained.
  5992. */
  5993. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13,
  5994. /* Legacy alias for the Segment 1 attribute.
  5995. *
  5996. * VHT segment 1 in MHz (u32) and the attribute is mandatory.
  5997. * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
  5998. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5999. * along with
  6000. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
  6001. *
  6002. * If both the driver and user-space application supports the 6 GHz
  6003. * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
  6004. * is deprecated and
  6005. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  6006. * should be considered.
  6007. *
  6008. * To maintain backward compatibility,
  6009. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  6010. * is still used if either of the driver or user space application
  6011. * doesn't support the 6 GHz band.
  6012. */
  6013. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 =
  6014. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1,
  6015. /*
  6016. * 16-bit attribute of bits indicating the AP power modes supported by
  6017. * the channel (u16).
  6018. * Note: Currently, only 3 bits are used in the attribute and each bit
  6019. * corresponds to the power mode mentioned in enum
  6020. * qca_wlan_vendor_external_acs_chan_power_level and a given bit is
  6021. * set if the associated mode is supported.
  6022. */
  6023. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
  6024. = 14,
  6025. /* Array of nested attributes for each power mode. It takes attr as
  6026. * defined in enum
  6027. * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
  6028. */
  6029. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR = 15,
  6030. /*
  6031. * This indicates the overlapping 320 MHz center frequency in MHz
  6032. * (u32), if the given primary channel supports more than one
  6033. * 320 MHz channel bonding.
  6034. *
  6035. * Example:
  6036. * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0
  6037. * center frequency (primary 160 MHz) is 6185 MHz and there can be two
  6038. * possible segment 2 frequencies for this (320 MHz center
  6039. * frequencies):
  6040. *
  6041. * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding
  6042. * from frequency 5945 MHz - 6265 MHz
  6043. * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding
  6044. * from frequency 6105 MHz - 6425 MHz
  6045. *
  6046. * In this case,
  6047. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will
  6048. * return 6185 MHz.
  6049. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will
  6050. * return 6105 MHz.
  6051. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
  6052. * will return 6265 MHz.
  6053. */
  6054. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
  6055. = 16,
  6056. /* keep last */
  6057. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
  6058. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
  6059. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
  6060. };
  6061. /**
  6062. * qca_wlan_vendor_external_acs_chan_power_level - Specifies the valid
  6063. * values that the vendor external ACS channel power attribute
  6064. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
  6065. * take.
  6066. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
  6067. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
  6068. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
  6069. */
  6070. enum qca_wlan_vendor_external_acs_chan_power_level {
  6071. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
  6072. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
  6073. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
  6074. };
  6075. /**
  6076. * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
  6077. * attributes for power mode type and power values corresponding to that.
  6078. * These attributes are sent as part of
  6079. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
  6080. */
  6081. enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
  6082. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
  6083. /*
  6084. * Power mode (u8) takes the values defined in enum
  6085. * qca_wlan_vendor_external_acs_chan_power_mode
  6086. */
  6087. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
  6088. = 1,
  6089. /*
  6090. * Indicates if power value is a PSD/EIRP value (flag). If flag is
  6091. * present, it indicates a PSD value.
  6092. */
  6093. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
  6094. /*
  6095. * Power value (u32) PSD/EIRP as indicated by
  6096. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
  6097. * for power mode corresponding to the
  6098. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
  6099. * Units for PSD - dBm/MHz
  6100. * Units for EIRP - dBm
  6101. */
  6102. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
  6103. = 3,
  6104. /* keep last */
  6105. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
  6106. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
  6107. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
  6108. };
  6109. /**
  6110. * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command
  6111. * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host
  6112. * driver.
  6113. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to
  6114. * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why
  6115. * ACS need to be started
  6116. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does
  6117. * driver supports spectral scanning or not
  6118. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is
  6119. * offloaded to firmware.
  6120. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver
  6121. * provides additional channel capability as part of scan operation.
  6122. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate
  6123. * interface status is UP
  6124. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of
  6125. * interface. It takes one of nl80211_iftype values.
  6126. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound
  6127. * of chan width. ACS logic should try to get a channel with specified width
  6128. * if not found then look for lower values.
  6129. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands
  6130. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as
  6131. * a/b/g/n/ac.
  6132. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list
  6133. * among which ACS should choose best frequency.
  6134. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the
  6135. * driver which will have <channel(u8), weight(u8)> format as array of
  6136. * nested values.
  6137. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute
  6138. * for each channel. It takes attr as defined in
  6139. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as
  6140. * PCL mandatory, PCL preferred, etc.It uses values defined in enum
  6141. * qca_wlan_vendor_attr_external_acs_policy.
  6142. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF
  6143. * Operating Parameter (RROP) availability information (u16). It uses values
  6144. * defined in enum qca_wlan_vendor_attr_rropavail_info.
  6145. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY: Flag attribute to
  6146. * indicate if driver supports 6 GHz AFC trigger for External ACS.
  6147. */
  6148. enum qca_wlan_vendor_attr_external_acs_event {
  6149. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
  6150. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
  6151. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
  6152. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
  6153. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
  6154. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
  6155. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
  6156. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
  6157. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
  6158. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
  6159. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
  6160. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
  6161. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
  6162. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
  6163. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
  6164. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
  6165. /* keep last */
  6166. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
  6167. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
  6168. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
  6169. };
  6170. enum qca_iface_type {
  6171. QCA_IFACE_TYPE_STA,
  6172. QCA_IFACE_TYPE_AP,
  6173. QCA_IFACE_TYPE_P2P_CLIENT,
  6174. QCA_IFACE_TYPE_P2P_GO,
  6175. QCA_IFACE_TYPE_IBSS,
  6176. QCA_IFACE_TYPE_TDLS,
  6177. };
  6178. /**
  6179. * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command
  6180. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
  6181. * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
  6182. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value
  6183. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number
  6184. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight
  6185. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency
  6186. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask
  6187. */
  6188. enum qca_wlan_vendor_attr_pcl_config {
  6189. QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
  6190. QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
  6191. QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
  6192. QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
  6193. QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
  6194. };
  6195. enum qca_set_band {
  6196. QCA_SETBAND_AUTO = 0,
  6197. QCA_SETBAND_5G = BIT(0),
  6198. QCA_SETBAND_2G = BIT(1),
  6199. QCA_SETBAND_6G = BIT(2),
  6200. };
  6201. /**
  6202. * enum set_reset_packet_filter - set packet filter control commands
  6203. * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter
  6204. * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter
  6205. * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data
  6206. * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data
  6207. * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter
  6208. * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter
  6209. */
  6210. enum set_reset_packet_filter {
  6211. QCA_WLAN_SET_PACKET_FILTER = 1,
  6212. QCA_WLAN_GET_PACKET_FILTER = 2,
  6213. QCA_WLAN_WRITE_PACKET_FILTER = 3,
  6214. QCA_WLAN_READ_PACKET_FILTER = 4,
  6215. QCA_WLAN_ENABLE_PACKET_FILTER = 5,
  6216. QCA_WLAN_DISABLE_PACKET_FILTER = 6,
  6217. };
  6218. /**
  6219. * enum qca_wlan_vendor_attr_packet_filter - APF control commands
  6220. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid
  6221. * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID
  6222. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version
  6223. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length
  6224. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset
  6225. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions
  6226. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program
  6227. * section in packet filter buffer
  6228. */
  6229. enum qca_wlan_vendor_attr_packet_filter {
  6230. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
  6231. QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER,
  6232. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
  6233. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
  6234. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
  6235. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
  6236. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
  6237. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH,
  6238. /* keep last */
  6239. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
  6240. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
  6241. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
  6242. };
  6243. /**
  6244. * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
  6245. * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
  6246. */
  6247. enum qca_wlan_vendor_attr_wake_stats {
  6248. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
  6249. /* Unsigned 32-bit value indicating the total count of wake event */
  6250. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
  6251. /* Array of individual wake count, each index representing wake reason
  6252. */
  6253. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
  6254. /* Unsigned 32-bit value representing wake count array */
  6255. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
  6256. /* Unsigned 32-bit total wake count value of driver/fw */
  6257. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
  6258. /* Array of wake stats of driver/fw */
  6259. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
  6260. /* Unsigned 32-bit total wake count value of driver/fw */
  6261. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
  6262. /* Unsigned 32-bit total wake count value of packets received */
  6263. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
  6264. /* Unsigned 32-bit wake count value unicast packets received */
  6265. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
  6266. /* Unsigned 32-bit wake count value multicast packets received */
  6267. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
  6268. /* Unsigned 32-bit wake count value broadcast packets received */
  6269. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
  6270. /* Unsigned 32-bit wake count value of ICMP packets */
  6271. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
  6272. /* Unsigned 32-bit wake count value of ICMP6 packets */
  6273. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
  6274. /* Unsigned 32-bit value ICMP6 router advertisement */
  6275. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
  6276. /* Unsigned 32-bit value ICMP6 neighbor advertisement */
  6277. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
  6278. /* Unsigned 32-bit value ICMP6 neighbor solicitation */
  6279. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
  6280. /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
  6281. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
  6282. /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
  6283. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
  6284. /* Unsigned 32-bit wake count value of receive side multicast */
  6285. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
  6286. /* Unsigned 32-bit wake count value of a given RSSI breach */
  6287. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
  6288. /* Unsigned 32-bit wake count value of low RSSI */
  6289. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
  6290. /* Unsigned 32-bit value GSCAN count */
  6291. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
  6292. /* Unsigned 32-bit value PNO complete count */
  6293. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
  6294. /* Unsigned 32-bit value PNO match count */
  6295. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
  6296. /* keep last */
  6297. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
  6298. QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
  6299. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
  6300. };
  6301. /**
  6302. * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
  6303. * configured by userspace to the driver/firmware. The values will be
  6304. * encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL attribute.
  6305. * The driver/firmware takes necessary actions requested by userspace
  6306. * such as throttling wifi tx etc. in order to mitigate high temperature.
  6307. *
  6308. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
  6309. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle tx lightly.
  6310. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle tx moderately.
  6311. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle tx severely.
  6312. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
  6313. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
  6314. */
  6315. enum qca_wlan_vendor_thermal_level {
  6316. QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
  6317. QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
  6318. QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
  6319. QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
  6320. QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
  6321. QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
  6322. };
  6323. /**
  6324. * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
  6325. * cmd value. Used for NL attributes for data used by
  6326. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
  6327. */
  6328. enum qca_wlan_vendor_attr_thermal_cmd {
  6329. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
  6330. /* The value of command, driver will implement different operations
  6331. * according to this value. It uses values defined in
  6332. * enum qca_wlan_vendor_attr_thermal_cmd_type.
  6333. * u32 attribute.
  6334. */
  6335. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
  6336. /* Userspace uses this attribute to configure thermal level to the
  6337. * driver/firmware, or get thermal level from the driver/firmware.
  6338. * Used in request or response, u32 attribute,
  6339. * possible values are defined in enum qca_wlan_vendor_thermal_level.
  6340. */
  6341. QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
  6342. /* Userspace uses this attribute to configure the time in which the
  6343. * driver/firmware should complete applying settings it received from
  6344. * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
  6345. * command type. Used in request, u32 attribute, value is in
  6346. * milliseconds. A value of zero indicates to apply the settings
  6347. * immediately. The driver/firmware can delay applying the configured
  6348. * thermal settings within the time specified in this attribute if
  6349. * there is any critical ongoing operation.
  6350. */
  6351. QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
  6352. /* Nested attribute, driver/firmware uses this attribute to report
  6353. * thermal stats of different thermal levels to userspace when requested
  6354. * using QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
  6355. * type. This attribute contains nested array of records of thermal
  6356. * statistics of multiple levels. The attributes used inside this nested
  6357. * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
  6358. */
  6359. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
  6360. /* keep last */
  6361. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
  6362. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
  6363. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
  6364. };
  6365. /**
  6366. * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
  6367. * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
  6368. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
  6369. * thermal command types sent to driver.
  6370. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
  6371. * get thermal shutdown configuration parameters for display. Parameters
  6372. * responded from driver are defined in
  6373. * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
  6374. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
  6375. * get temperature. Host should respond with a temperature data. It is defined
  6376. * in enum qca_wlan_vendor_attr_thermal_get_temperature.
  6377. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
  6378. * suspend action.
  6379. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
  6380. * resume action.
  6381. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
  6382. * the driver/firmware.
  6383. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
  6384. * thermal level from the driver/firmware. The driver should respond with a
  6385. * thermal level defined in enum qca_wlan_vendor_thermal_level.
  6386. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
  6387. * current thermal stats from the driver/firmware. The driver should respond
  6388. * with stats of all thermal levels encapsulated in attribute
  6389. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
  6390. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
  6391. * the current thermal stats all thermal levels maintained in the
  6392. * driver/firmware and start counting from zero again.
  6393. */
  6394. enum qca_wlan_vendor_attr_thermal_cmd_type {
  6395. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
  6396. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
  6397. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
  6398. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
  6399. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
  6400. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
  6401. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
  6402. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
  6403. };
  6404. /**
  6405. * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
  6406. * to get chip temperature by user.
  6407. * enum values are used for NL attributes for data used by
  6408. * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
  6409. * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
  6410. */
  6411. enum qca_wlan_vendor_attr_thermal_get_temperature {
  6412. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
  6413. /* Temperature value (degree Celsius) from driver.
  6414. * u32 attribute.
  6415. */
  6416. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
  6417. /* keep last */
  6418. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
  6419. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
  6420. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
  6421. };
  6422. /**
  6423. * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
  6424. * report thermal events from driver to user space.
  6425. * enum values are used for NL attributes for data used by
  6426. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
  6427. */
  6428. enum qca_wlan_vendor_attr_thermal_event {
  6429. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
  6430. /* Temperature value (degree Celsius) from driver.
  6431. * u32 attribute.
  6432. */
  6433. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
  6434. /* Indication of resume completion from power save mode.
  6435. * NLA_FLAG attribute.
  6436. */
  6437. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
  6438. /* Thermal level from the driver.
  6439. * u32 attribute. Possible values are defined in
  6440. * enum qca_wlan_vendor_thermal_level.
  6441. */
  6442. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
  6443. /* keep last */
  6444. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
  6445. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
  6446. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
  6447. };
  6448. /**
  6449. * enum qca_vendor_element_id - QCA Vendor Specific element types
  6450. *
  6451. * These values are used to identify QCA Vendor Specific elements. The
  6452. * payload of the element starts with the three octet OUI (OUI_QCA) and
  6453. * is followed by a single octet type which is defined by this enum.
  6454. *
  6455. * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
  6456. * This element can be used to specify preference order for supported
  6457. * channels. The channels in this list are in preference order (the first
  6458. * one has the highest preference) and are described as a pair of
  6459. * (global) Operating Class and Channel Number (each one octet) fields.
  6460. *
  6461. * This extends the standard P2P functionality by providing option to have
  6462. * more than one preferred operating channel. When this element is present,
  6463. * it replaces the preference indicated in the Operating Channel attribute.
  6464. * For supporting other implementations, the Operating Channel attribute is
  6465. * expected to be used with the highest preference channel. Similarly, all
  6466. * the channels included in this Preferred channel list element are
  6467. * expected to be included in the Channel List attribute.
  6468. *
  6469. * This vendor element may be included in GO Negotiation Request, P2P
  6470. * Invitation Request, and Provision Discovery Request frames.
  6471. *
  6472. * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
  6473. * This element can be used for pre-standard publication testing of HE
  6474. * before P802.11ax draft assigns the element ID. The payload of this
  6475. * vendor specific element is defined by the latest P802.11ax draft.
  6476. * Please note that the draft is still work in progress and this element
  6477. * payload is subject to change.
  6478. *
  6479. * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
  6480. * This element can be used for pre-standard publication testing of HE
  6481. * before P802.11ax draft assigns the element ID. The payload of this
  6482. * vendor specific element is defined by the latest P802.11ax draft.
  6483. * Please note that the draft is still work in progress and this element
  6484. * payload is subject to change.
  6485. *
  6486. * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
  6487. * element).
  6488. * This element can be used for pre-standard publication testing of HE
  6489. * before P802.11ax draft assigns the element ID extension. The payload of
  6490. * this vendor specific element is defined by the latest P802.11ax draft
  6491. * (not including the Element ID Extension field). Please note that the
  6492. * draft is still work in progress and this element payload is subject to
  6493. * change.
  6494. *
  6495. * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
  6496. * This element can be used for pre-standard publication testing of HE
  6497. * before P802.11ax draft assigns the element ID extension. The payload of
  6498. * this vendor specific element is defined by the latest P802.11ax draft
  6499. * (not including the Element ID Extension field). Please note that the
  6500. * draft is still work in progress and this element payload is subject to
  6501. * change.
  6502. *
  6503. * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
  6504. * This element can be used for pre-standard publication testing of HE
  6505. * before P802.11ax draft assigns the element ID extension. The payload of
  6506. * this vendor specific element is defined by the latest P802.11ax draft
  6507. * (not including the Element ID Extension field). Please note that the
  6508. * draft is still work in progress and this element payload is subject to
  6509. * change.
  6510. */
  6511. enum qca_vendor_element_id {
  6512. QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
  6513. QCA_VENDOR_ELEM_HE_CAPAB = 1,
  6514. QCA_VENDOR_ELEM_HE_OPER = 2,
  6515. QCA_VENDOR_ELEM_RAPS = 3,
  6516. QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
  6517. QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
  6518. };
  6519. /**
  6520. * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
  6521. * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
  6522. * Specify the TSF command. Possible values are defined in
  6523. * &enum qca_tsf_cmd.
  6524. * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
  6525. * This attribute contains TSF timer value. This attribute is only available
  6526. * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
  6527. * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
  6528. * This attribute contains SOC timer value at TSF capture. This attribute is
  6529. * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
  6530. * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
  6531. * This attribute is used to provide TSF sync interval and only applicable when
  6532. * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
  6533. * driver will use the default value. Time unit is in milliseconds.
  6534. */
  6535. enum qca_vendor_attr_tsf_cmd {
  6536. QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
  6537. QCA_WLAN_VENDOR_ATTR_TSF_CMD,
  6538. QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
  6539. QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
  6540. QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
  6541. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
  6542. QCA_WLAN_VENDOR_ATTR_TSF_MAX =
  6543. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
  6544. };
  6545. /**
  6546. * enum qca_tsf_cmd: TSF driver commands
  6547. * @QCA_TSF_CAPTURE: Initiate TSF Capture
  6548. * @QCA_TSF_GET: Get TSF capture value
  6549. * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
  6550. * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
  6551. * will automatically send TSF report to the host. To query
  6552. * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
  6553. * initiated first.
  6554. * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
  6555. * will not automatically send TSF report to the host. If
  6556. * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
  6557. * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
  6558. * operation needs to be initiated.
  6559. * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
  6560. * fetches TSF and host time mapping from the firmware with interval configured
  6561. * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
  6562. * interval value is not provided the driver will use the default value. The
  6563. * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
  6564. * command.
  6565. * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
  6566. */
  6567. enum qca_tsf_cmd {
  6568. QCA_TSF_CAPTURE,
  6569. QCA_TSF_GET,
  6570. QCA_TSF_SYNC_GET,
  6571. QCA_TSF_AUTO_REPORT_ENABLE,
  6572. QCA_TSF_AUTO_REPORT_DISABLE,
  6573. QCA_TSF_SYNC_START,
  6574. QCA_TSF_SYNC_STOP,
  6575. };
  6576. /**
  6577. * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list
  6578. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value
  6579. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type
  6580. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list
  6581. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight
  6582. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last
  6583. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max
  6584. */
  6585. enum qca_vendor_attr_get_preferred_freq_list {
  6586. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
  6587. /* A 32-unsigned value; the interface type/mode for which the preferred
  6588. * frequency list is requested (see enum qca_iface_type for possible
  6589. * values); used in both south- and north-bound.
  6590. */
  6591. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
  6592. /* An array of 32-unsigned values; values are frequency (MHz); used
  6593. * in north-bound only.
  6594. */
  6595. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
  6596. /* An array of nested values as per enum
  6597. * qca_wlan_vendor_attr_pcl_config attribute.
  6598. * Each element contains frequency (MHz), weight, and flag
  6599. * bit mask indicating how the frequency should be used in P2P
  6600. * negotiation.
  6601. */
  6602. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
  6603. /* keep last */
  6604. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
  6605. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
  6606. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
  6607. };
  6608. /**
  6609. * enum qca_vendor_attr_probable_oper_channel - channel hint
  6610. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value
  6611. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type
  6612. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value
  6613. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last
  6614. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max
  6615. */
  6616. enum qca_vendor_attr_probable_oper_channel {
  6617. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
  6618. /* 32-bit unsigned value; indicates the connection/iface type likely to
  6619. * come on this channel (see enum qca_iface_type).
  6620. */
  6621. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
  6622. /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
  6623. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
  6624. /* keep last */
  6625. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
  6626. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
  6627. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
  6628. };
  6629. /**
  6630. * enum qca_wlan_vendor_attr_gw_param_config - gateway param config
  6631. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid
  6632. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr
  6633. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr
  6634. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr
  6635. */
  6636. enum qca_wlan_vendor_attr_gw_param_config {
  6637. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0,
  6638. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR,
  6639. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR,
  6640. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR,
  6641. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST,
  6642. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX =
  6643. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1,
  6644. };
  6645. /**
  6646. * enum drv_dbs_capability - DBS capability
  6647. * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled
  6648. * @DRV_DBS_CAPABILITY_1X1: 1x1
  6649. * @DRV_DBS_CAPABILITY_2X2: 2x2
  6650. */
  6651. enum drv_dbs_capability {
  6652. DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */
  6653. DRV_DBS_CAPABILITY_1X1,
  6654. DRV_DBS_CAPABILITY_2X2,
  6655. };
  6656. /**
  6657. * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
  6658. *
  6659. * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
  6660. */
  6661. enum qca_vendor_attr_txpower_decr_db {
  6662. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
  6663. /*
  6664. * 8-bit unsigned value to indicate the reduction of TX power in dB for
  6665. * a virtual interface.
  6666. */
  6667. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
  6668. /* keep last */
  6669. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
  6670. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
  6671. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
  6672. };
  6673. /**
  6674. * enum qca_vendor_attr_ota_test - Enable OTA test
  6675. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value
  6676. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test
  6677. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last
  6678. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max
  6679. */
  6680. enum qca_vendor_attr_ota_test {
  6681. QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
  6682. /* 8-bit unsigned value to indicate if OTA test is enabled */
  6683. QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
  6684. /* keep last */
  6685. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
  6686. QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
  6687. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
  6688. };
  6689. /** enum qca_vendor_attr_txpower_scale - vendor sub commands index
  6690. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value
  6691. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
  6692. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value
  6693. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value
  6694. */
  6695. enum qca_vendor_attr_txpower_scale {
  6696. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
  6697. /* 8-bit unsigned value to indicate the scaling of tx power */
  6698. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
  6699. /* keep last */
  6700. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
  6701. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
  6702. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
  6703. };
  6704. /**
  6705. * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index
  6706. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value
  6707. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value
  6708. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value
  6709. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value
  6710. */
  6711. enum qca_vendor_attr_txpower_scale_decr_db {
  6712. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID,
  6713. /* 8-bit unsigned value to indicate the scaling of tx power */
  6714. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB,
  6715. /* keep last */
  6716. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST,
  6717. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX =
  6718. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1
  6719. };
  6720. /**
  6721. * enum dfs_mode - state of DFS mode
  6722. * @DFS_MODE_NONE: DFS mode attribute is none
  6723. * @DFS_MODE_ENABLE: DFS mode is enabled
  6724. * @DFS_MODE_DISABLE: DFS mode is disabled
  6725. * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning
  6726. */
  6727. enum dfs_mode {
  6728. DFS_MODE_NONE,
  6729. DFS_MODE_ENABLE,
  6730. DFS_MODE_DISABLE,
  6731. DFS_MODE_DEPRIORITIZE
  6732. };
  6733. /**
  6734. * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
  6735. * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
  6736. *
  6737. * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
  6738. * DFS mode for ACS operation from enum qca_acs_dfs_mode.
  6739. *
  6740. * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
  6741. * channel number hint for ACS operation, if valid channel is specified then
  6742. * ACS operation gives priority to this channel.
  6743. * Note: If both the driver and user space application supports the 6 GHz band,
  6744. * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
  6745. * should be used.
  6746. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
  6747. * is still used if either of the driver or user space application doesn't
  6748. * support the 6 GHz band.
  6749. *
  6750. * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
  6751. * Channel center frequency (MHz) hint for ACS operation, if a valid center
  6752. * frequency is specified, ACS operation gives priority to this channel.
  6753. */
  6754. enum qca_wlan_vendor_attr_acs_config {
  6755. QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
  6756. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
  6757. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
  6758. QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
  6759. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
  6760. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
  6761. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
  6762. };
  6763. /**
  6764. * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
  6765. */
  6766. enum qca_wlan_vendor_attr_get_hw_capability {
  6767. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
  6768. /*
  6769. * Antenna isolation
  6770. * An attribute used in the response.
  6771. * The content of this attribute is encoded in a byte array. Each byte
  6772. * value is an antenna isolation value. The array length is the number
  6773. * of antennas.
  6774. */
  6775. QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
  6776. /*
  6777. * Request HW capability
  6778. * An attribute used in the request.
  6779. * The content of this attribute is a u32 array for one or more of
  6780. * hardware capabilities (attribute IDs) that are being requested. Each
  6781. * u32 value has a value from this
  6782. * enum qca_wlan_vendor_attr_get_hw_capability
  6783. * identifying which capabilities are requested.
  6784. */
  6785. QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
  6786. /* keep last */
  6787. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
  6788. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
  6789. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
  6790. };
  6791. /**
  6792. * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config -
  6793. * config params for sta roam policy
  6794. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid
  6795. * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels
  6796. * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL:
  6797. * If sta should skip unsafe channels or not in scanning
  6798. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST:
  6799. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute
  6800. */
  6801. enum qca_wlan_vendor_attr_sta_connect_roam_policy_config {
  6802. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0,
  6803. QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE,
  6804. QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL,
  6805. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST,
  6806. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX =
  6807. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1,
  6808. };
  6809. /* Attributes for FTM commands and events */
  6810. /**
  6811. * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
  6812. *
  6813. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
  6814. * enum qca_wlan_vendor_attr_loc_capa_flags.
  6815. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
  6816. * of measurement sessions that can run concurrently.
  6817. * Default is one session (no session concurrency).
  6818. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
  6819. * peers that are supported in running sessions. For example,
  6820. * if the value is 8 and maximum number of sessions is 2, you can
  6821. * have one session with 8 unique peers, or 2 sessions with 4 unique
  6822. * peers each, and so on.
  6823. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
  6824. * of bursts per peer, as an exponent (2^value). Default is 0,
  6825. * meaning no multi-burst support.
  6826. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
  6827. * of measurement exchanges allowed in a single burst.
  6828. * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
  6829. * types. A bit mask (unsigned 32 bit value), each bit corresponds
  6830. * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
  6831. */
  6832. enum qca_wlan_vendor_attr_loc_capa {
  6833. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
  6834. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
  6835. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
  6836. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
  6837. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
  6838. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
  6839. QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
  6840. /* keep last */
  6841. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
  6842. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
  6843. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
  6844. };
  6845. /**
  6846. * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
  6847. *
  6848. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
  6849. * can be configured as an FTM responder (for example, an AP that
  6850. * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  6851. * will be supported if set.
  6852. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
  6853. * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
  6854. * will be supported if set.
  6855. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
  6856. * supports immediate (ASAP) response.
  6857. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
  6858. * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
  6859. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
  6860. * requesting AOA measurements as part of an FTM session.
  6861. */
  6862. enum qca_wlan_vendor_attr_loc_capa_flags {
  6863. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
  6864. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
  6865. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
  6866. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
  6867. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
  6868. };
  6869. /**
  6870. * enum qca_wlan_ani_setting - ANI setting type
  6871. * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
  6872. * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
  6873. */
  6874. enum qca_wlan_ani_setting {
  6875. QCA_WLAN_ANI_SETTING_AUTO = 0,
  6876. QCA_WLAN_ANI_SETTING_FIXED = 1,
  6877. };
  6878. /**
  6879. * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
  6880. *
  6881. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
  6882. * Channel number on which Access Point should restart.
  6883. * Note: If both the driver and user space application supports the 6 GHz band,
  6884. * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
  6885. * should be used.
  6886. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
  6887. * is still used if either of the driver or user space application doesn't
  6888. * support the 6 GHz band.
  6889. *
  6890. * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required
  6891. * Nested attribute to hold list of center frequencies on which AP is
  6892. * expected to operate. This is irrespective of ACS configuration.
  6893. * This list is a priority based one and is looked for before the AP is
  6894. * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC)
  6895. * co-exist in the system.
  6896. *
  6897. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
  6898. * Channel center frequency (MHz) on which the access point should restart.
  6899. */
  6900. enum qca_wlan_vendor_attr_sap_config {
  6901. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
  6902. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
  6903. QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
  6904. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
  6905. /* Keep last */
  6906. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
  6907. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
  6908. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
  6909. };
  6910. /**
  6911. * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
  6912. * a single peer in a measurement session.
  6913. *
  6914. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
  6915. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
  6916. * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
  6917. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
  6918. * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
  6919. * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
  6920. * list of supported attributes.
  6921. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
  6922. * secure measurement.
  6923. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
  6924. * measurement every <value> bursts. If 0 or not specified,
  6925. * AOA measurements will be disabled for this peer.
  6926. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
  6927. * the measurement frames are exchanged. Optional; if not
  6928. * specified, try to locate the peer in the kernel scan
  6929. * results cache and use frequency from there.
  6930. */
  6931. enum qca_wlan_vendor_attr_ftm_peer_info {
  6932. QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
  6933. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
  6934. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
  6935. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
  6936. QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
  6937. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
  6938. QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
  6939. /* keep last */
  6940. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
  6941. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
  6942. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
  6943. };
  6944. /**
  6945. * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
  6946. * per-peer
  6947. *
  6948. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
  6949. * immediate (ASAP) response from peer.
  6950. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
  6951. * LCI report from peer. The LCI report includes the absolute
  6952. * location of the peer in "official" coordinates (similar to GPS).
  6953. * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
  6954. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
  6955. * Location civic report from peer. The LCR includes the location
  6956. * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
  6957. * 11.24.6.7 for more information.
  6958. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
  6959. * request a secure measurement.
  6960. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
  6961. */
  6962. enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
  6963. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
  6964. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
  6965. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
  6966. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
  6967. };
  6968. /**
  6969. * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
  6970. *
  6971. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
  6972. * to perform in a single burst.
  6973. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
  6974. * perform, specified as an exponent (2^value).
  6975. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
  6976. * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
  6977. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
  6978. * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
  6979. * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
  6980. */
  6981. enum qca_wlan_vendor_attr_ftm_meas_param {
  6982. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
  6983. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
  6984. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
  6985. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
  6986. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
  6987. /* keep last */
  6988. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
  6989. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
  6990. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
  6991. };
  6992. /**
  6993. * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
  6994. *
  6995. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
  6996. * peer.
  6997. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
  6998. * request for this peer.
  6999. * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
  7000. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
  7001. * to measurement results for this peer.
  7002. * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
  7003. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
  7004. * request failed and peer requested not to send an additional request
  7005. * for this number of seconds.
  7006. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
  7007. * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  7008. * 9.4.2.22.10.
  7009. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
  7010. * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  7011. * 9.4.2.22.13.
  7012. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
  7013. * overridden some measurement request parameters. See
  7014. * enum qca_wlan_vendor_attr_ftm_meas_param.
  7015. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
  7016. * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
  7017. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
  7018. * results. Each entry is a nested attribute defined
  7019. * by enum qca_wlan_vendor_attr_ftm_meas.
  7020. */
  7021. enum qca_wlan_vendor_attr_ftm_peer_result {
  7022. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
  7023. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
  7024. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
  7025. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
  7026. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
  7027. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
  7028. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
  7029. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
  7030. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
  7031. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
  7032. /* keep last */
  7033. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
  7034. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
  7035. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
  7036. };
  7037. /**
  7038. * enum qca_wlan_vendor_attr_ftm_peer_result_status
  7039. *
  7040. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
  7041. * will be provided. Peer may have overridden some measurement parameters,
  7042. * in which case overridden parameters will be report by
  7043. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
  7044. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
  7045. * of performing the measurement request. No more results will be sent
  7046. * for this peer in this session.
  7047. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
  7048. * failed, and requested not to send an additional request for number
  7049. * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
  7050. * attribute.
  7051. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
  7052. * failed. Request was not sent over the air.
  7053. */
  7054. enum qca_wlan_vendor_attr_ftm_peer_result_status {
  7055. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
  7056. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
  7057. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
  7058. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
  7059. };
  7060. /**
  7061. * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
  7062. * for measurement result, per-peer
  7063. *
  7064. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
  7065. * measurement completed for this peer. No more results will be reported
  7066. * for this peer in this session.
  7067. */
  7068. enum qca_wlan_vendor_attr_ftm_peer_result_flags {
  7069. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
  7070. };
  7071. /**
  7072. * enum qca_vendor_attr_loc_session_status: Session completion status code
  7073. *
  7074. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
  7075. * successfully.
  7076. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
  7077. * by request.
  7078. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
  7079. * was invalid and was not started.
  7080. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
  7081. * and did not complete normally (for example out of resources).
  7082. */
  7083. enum qca_vendor_attr_loc_session_status {
  7084. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
  7085. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
  7086. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
  7087. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
  7088. };
  7089. /**
  7090. * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
  7091. *
  7092. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
  7093. * recorded by responder, in picoseconds.
  7094. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  7095. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
  7096. * initiator, in picoseconds.
  7097. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  7098. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
  7099. * initiator, in picoseconds.
  7100. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  7101. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
  7102. * responder, in picoseconds.
  7103. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  7104. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
  7105. * during this measurement exchange. Optional and will be provided if
  7106. * the hardware can measure it.
  7107. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
  7108. * responder. Not always provided.
  7109. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  7110. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
  7111. * responder. Not always provided.
  7112. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  7113. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
  7114. * initiator. Not always provided.
  7115. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  7116. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
  7117. * initiator. Not always provided.
  7118. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  7119. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
  7120. */
  7121. enum qca_wlan_vendor_attr_ftm_meas {
  7122. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
  7123. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
  7124. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
  7125. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
  7126. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
  7127. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
  7128. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
  7129. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
  7130. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
  7131. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
  7132. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
  7133. /* keep last */
  7134. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
  7135. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
  7136. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
  7137. };
  7138. /**
  7139. * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index
  7140. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value
  7141. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL:
  7142. * A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
  7143. * of the social channels.
  7144. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period
  7145. * A 32-bit unsigned value; the P2P listen offload period (ms).
  7146. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL:
  7147. * A 32-bit unsigned value; the P2P listen interval duration (ms).
  7148. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT:
  7149. * A 32-bit unsigned value; number of interval times the Firmware needs
  7150. * to run the offloaded P2P listen operation before it stops.
  7151. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types
  7152. * An array of unsigned 8-bit characters; vendor information elements.
  7153. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs
  7154. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW
  7155. * A 32-bit unsigned value; a control flag to indicate whether listen
  7156. * results need to be flushed to wpa_supplicant.
  7157. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason
  7158. * A 8-bit unsigned value; reason code for P2P listen offload stop
  7159. * event.
  7160. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value
  7161. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value
  7162. */
  7163. enum qca_wlan_vendor_attr_p2p_listen_offload {
  7164. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
  7165. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
  7166. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
  7167. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
  7168. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
  7169. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
  7170. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
  7171. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
  7172. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
  7173. /* keep last */
  7174. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
  7175. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
  7176. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
  7177. };
  7178. /**
  7179. * enum qca_wlan_vendor_drv_info - WLAN driver info
  7180. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid
  7181. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info
  7182. * between Firmware & Host.
  7183. */
  7184. enum qca_wlan_vendor_drv_info {
  7185. QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
  7186. QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
  7187. /* keep last */
  7188. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
  7189. QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
  7190. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
  7191. };
  7192. /**
  7193. * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
  7194. *
  7195. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
  7196. * CIR (channel impulse response) path for each antenna.
  7197. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
  7198. * of the strongest CIR path for each antenna.
  7199. */
  7200. enum qca_wlan_vendor_attr_aoa_type {
  7201. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
  7202. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
  7203. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
  7204. };
  7205. /**
  7206. * enum qca_wlan_vendor_attr_encryption_test - Attributes to
  7207. * validate encryption engine
  7208. *
  7209. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
  7210. * This will be included if the request is for decryption; if not included,
  7211. * the request is treated as a request for encryption by default.
  7212. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
  7213. * indicating the key cipher suite. Takes same values as
  7214. * NL80211_ATTR_KEY_CIPHER.
  7215. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
  7216. * Key Id to be used for encryption
  7217. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
  7218. * Key (TK) to be used for encryption/decryption
  7219. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
  7220. * Packet number to be specified for encryption/decryption
  7221. * 6 bytes for TKIP/CCMP/GCMP.
  7222. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
  7223. * representing the 802.11 packet (header + payload + FCS) that
  7224. * needs to be encrypted/decrypted.
  7225. * Encrypted/decrypted response from the driver will also be sent
  7226. * to userspace with the same attribute.
  7227. */
  7228. enum qca_wlan_vendor_attr_encryption_test {
  7229. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
  7230. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
  7231. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
  7232. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
  7233. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
  7234. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
  7235. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
  7236. /* keep last */
  7237. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
  7238. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
  7239. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
  7240. };
  7241. /**
  7242. * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
  7243. * sector for DMG RF sector operations.
  7244. *
  7245. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
  7246. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
  7247. */
  7248. enum qca_wlan_vendor_attr_dmg_rf_sector_type {
  7249. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
  7250. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
  7251. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
  7252. };
  7253. /**
  7254. * enum qca_wlan_vendor_attr_fw_state - State of firmware
  7255. *
  7256. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
  7257. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
  7258. */
  7259. enum qca_wlan_vendor_attr_fw_state {
  7260. QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
  7261. QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
  7262. QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
  7263. };
  7264. /**
  7265. * BRP antenna limit mode
  7266. *
  7267. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
  7268. * antenna limit, BRP will be performed as usual.
  7269. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
  7270. * antennas limit. the hardware may use less antennas than the
  7271. * maximum limit.
  7272. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
  7273. * use exactly the specified number of antennas for BRP.
  7274. */
  7275. enum qca_wlan_vendor_attr_brp_ant_limit_mode {
  7276. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
  7277. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
  7278. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
  7279. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
  7280. };
  7281. /**
  7282. * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
  7283. * DMG RF sector configuration for a single RF module.
  7284. * The values are defined in a compact way which closely matches
  7285. * the way it is stored in HW registers.
  7286. * The configuration provides values for 32 antennas and 8 distribution
  7287. * amplifiers, and together describes the characteristics of the RF
  7288. * sector - such as a beam in some direction with some gain.
  7289. *
  7290. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
  7291. * of RF module for this configuration.
  7292. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
  7293. * amplifier gain index. Unsigned 32 bit number containing
  7294. * bits for all 32 antennas.
  7295. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
  7296. * amplifier gain index. Unsigned 32 bit number containing
  7297. * bits for all 32 antennas.
  7298. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
  7299. * amplifier gain index. Unsigned 32 bit number containing
  7300. * bits for all 32 antennas.
  7301. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
  7302. * for first 16 antennas, 2 bits per antenna.
  7303. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
  7304. * for last 16 antennas, 2 bits per antenna.
  7305. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
  7306. * DTYPE values (3 bits) for each distribution amplifier, followed
  7307. * by X16 switch bits for each distribution amplifier. There are
  7308. * total of 8 distribution amplifiers.
  7309. */
  7310. enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
  7311. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
  7312. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
  7313. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
  7314. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
  7315. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
  7316. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
  7317. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
  7318. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
  7319. /* keep last */
  7320. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
  7321. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
  7322. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
  7323. };
  7324. /**
  7325. * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
  7326. * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver.
  7327. *
  7328. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
  7329. * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
  7330. * represents the different TDLS trigger modes.
  7331. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
  7332. * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
  7333. * of packets shall meet the criteria for implicit TDLS setup.
  7334. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx
  7335. * packets within a duration.
  7336. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate
  7337. * a TDLS setup.
  7338. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
  7339. * a TDLS Discovery to the Peer.
  7340. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
  7341. * discovery attempts to know the TDLS capability of the peer. A peer is
  7342. * marked as TDLS not capable if there is no response for all the attempts.
  7343. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
  7344. * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
  7345. * number of TX / RX frames meet the criteria for TDLS teardown.
  7346. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number
  7347. * (u32) of Tx/Rx packets within a duration
  7348. * CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link
  7349. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
  7350. * corresponding to the RSSI of the peer below which a TDLS
  7351. * setup is triggered.
  7352. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
  7353. * corresponding to the RSSI of the peer above which
  7354. * a TDLS teardown is triggered.
  7355. */
  7356. enum qca_wlan_vendor_attr_tdls_configuration {
  7357. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
  7358. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
  7359. /* Attributes configuring the TDLS Implicit Trigger */
  7360. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
  7361. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
  7362. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
  7363. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
  7364. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
  7365. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
  7366. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
  7367. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
  7368. /* keep last */
  7369. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
  7370. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
  7371. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
  7372. };
  7373. /**
  7374. * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
  7375. * the driver.
  7376. *
  7377. * The following are the different values for
  7378. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
  7379. *
  7380. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to
  7381. * initiate/teardown the TDLS connection to a respective peer comes
  7382. * from the user space. wpa_supplicant provides the commands
  7383. * TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this.
  7384. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
  7385. * setup/teardown to the eligible peer once the configured criteria
  7386. * (such as TX/RX threshold, RSSI) is met. The attributes
  7387. * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
  7388. * the different configuration criteria for the TDLS trigger from the
  7389. * host driver.
  7390. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
  7391. * the TDLS setup / teardown through the implicit mode, only to the
  7392. * configured MAC addresses(wpa_supplicant, with tdls_external_control = 1,
  7393. * configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands).
  7394. * External mode works on top of the implicit mode, thus the host Driver
  7395. * is expected to be configured in TDLS Implicit mode too to operate in
  7396. * External mode. Configuring External mode alone without Implicit
  7397. * mode is invalid.
  7398. *
  7399. * All the above implementations work as expected only when the host driver
  7400. * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP -
  7401. * representing that the TDLS message exchange is not internal to the host
  7402. * driver, but depends on wpa_supplicant to do the message exchange.
  7403. */
  7404. enum qca_wlan_vendor_tdls_trigger_mode {
  7405. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
  7406. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
  7407. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
  7408. };
  7409. /**
  7410. * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
  7411. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
  7412. * that is hard-coded in the Board Data File (BDF).
  7413. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
  7414. * that is hard-coded in the Board Data File (BDF).
  7415. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
  7416. * that is hard-coded in the Board Data File (BDF).
  7417. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
  7418. * that is hard-coded in the Board Data File (BDF).
  7419. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
  7420. * that is hard-coded in the Board Data File (BDF).
  7421. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
  7422. * source of SAR power limits, thereby disabling the SAR power
  7423. * limit feature.
  7424. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
  7425. * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  7426. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
  7427. * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  7428. *
  7429. * This enumerates the valid set of values that may be supplied for
  7430. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
  7431. * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
  7432. * the response to an instance of the
  7433. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  7434. */
  7435. enum qca_vendor_attr_sar_limits_selections {
  7436. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
  7437. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
  7438. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
  7439. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
  7440. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
  7441. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
  7442. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
  7443. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
  7444. };
  7445. /**
  7446. * enum qca_vendor_attr_sar_limits_spec_modulations -
  7447. * SAR limits specification modulation
  7448. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
  7449. * CCK modulation
  7450. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
  7451. * OFDM modulation
  7452. *
  7453. * This enumerates the valid set of values that may be supplied for
  7454. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
  7455. * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
  7456. * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
  7457. * command or in the response to an instance of the
  7458. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  7459. */
  7460. enum qca_vendor_attr_sar_limits_spec_modulations {
  7461. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
  7462. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
  7463. };
  7464. /**
  7465. * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
  7466. *
  7467. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
  7468. * select which SAR power limit table should be used. Valid
  7469. * values are enumerated in enum
  7470. * %qca_vendor_attr_sar_limits_selections. The existing SAR
  7471. * power limit selection is unchanged if this attribute is not
  7472. * present.
  7473. *
  7474. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
  7475. * which specifies the number of SAR power limit specifications
  7476. * which will follow.
  7477. *
  7478. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
  7479. * limit specifications. The number of specifications is
  7480. * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
  7481. * specification contains a set of
  7482. * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
  7483. * specification is uniquely identified by the attributes
  7484. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
  7485. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
  7486. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
  7487. * contains as a payload the attribute
  7488. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
  7489. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
  7490. * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
  7491. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
  7492. * needed based upon the value of
  7493. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
  7494. *
  7495. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
  7496. * indicate for which band this specification applies. Valid
  7497. * values are enumerated in enum %nl80211_band (although not all
  7498. * bands may be supported by a given device). If the attribute is
  7499. * not supplied then the specification will be applied to all
  7500. * supported bands.
  7501. *
  7502. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
  7503. * to indicate for which antenna chain this specification
  7504. * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
  7505. * attribute is not supplied then the specification will be
  7506. * applied to all chains.
  7507. *
  7508. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
  7509. * value to indicate for which modulation scheme this
  7510. * specification applies. Valid values are enumerated in enum
  7511. * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
  7512. * is not supplied then the specification will be applied to all
  7513. * modulation schemes.
  7514. *
  7515. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
  7516. * value to specify the actual power limit value in units of 0.5
  7517. * dBm (i.e., a value of 11 represents 5.5 dBm).
  7518. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  7519. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
  7520. *
  7521. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
  7522. * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
  7523. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  7524. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
  7525. *
  7526. * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
  7527. * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
  7528. */
  7529. enum qca_vendor_attr_sar_limits {
  7530. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
  7531. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
  7532. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
  7533. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
  7534. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
  7535. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
  7536. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
  7537. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
  7538. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
  7539. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
  7540. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
  7541. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
  7542. };
  7543. /**
  7544. * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
  7545. * offload which is an extension for LL_STATS.
  7546. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
  7547. * If MAC counters do not exceed the threshold, FW will report monitored
  7548. * link layer counters periodically as this setting. The first report is
  7549. * always triggered by this timer.
  7550. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
  7551. * For each MAC layer counter, FW holds two copies. One is the current value.
  7552. * The other is the last report. Once a current counter's increment is larger
  7553. * than the threshold, FW will indicate that counter to host even if the
  7554. * monitoring timer does not expire.
  7555. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
  7556. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
  7557. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
  7558. * failure code.
  7559. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
  7560. * 1: TX packet discarded
  7561. * 2: No ACK
  7562. * 3: Postpone
  7563. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
  7564. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
  7565. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
  7566. * Threshold for all monitored parameters. If per counter dedicated threshold
  7567. * is not enabled, this threshold will take effect.
  7568. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
  7569. * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
  7570. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
  7571. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
  7572. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
  7573. * Bit0: TX counter unit in MSDU
  7574. * Bit1: TX counter unit in MPDU
  7575. * Bit2: TX counter unit in PPDU
  7576. * Bit3: TX counter unit in byte
  7577. * Bit4: Dropped MSDUs
  7578. * Bit5: Dropped Bytes
  7579. * Bit6: MPDU retry counter
  7580. * Bit7: MPDU failure counter
  7581. * Bit8: PPDU failure counter
  7582. * Bit9: MPDU aggregation counter
  7583. * Bit10: MCS counter for ACKed MPDUs
  7584. * Bit11: MCS counter for Failed MPDUs
  7585. * Bit12: TX Delay counter
  7586. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
  7587. * Bit0: MAC RX counter unit in MPDU
  7588. * Bit1: MAC RX counter unit in byte
  7589. * Bit2: PHY RX counter unit in PPDU
  7590. * Bit3: PHY RX counter unit in byte
  7591. * Bit4: Disorder counter
  7592. * Bit5: Retry counter
  7593. * Bit6: Duplication counter
  7594. * Bit7: Discard counter
  7595. * Bit8: MPDU aggregation size counter
  7596. * Bit9: MCS counter
  7597. * Bit10: Peer STA power state change (wake to sleep) counter
  7598. * Bit11: Peer STA power save counter, total time in PS mode
  7599. * Bit12: Probe request counter
  7600. * Bit13: Other management frames counter
  7601. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
  7602. * Bit0: Idle time
  7603. * Bit1: TX time
  7604. * Bit2: time RX in current bss
  7605. * Bit3: Out of current bss time
  7606. * Bit4: Wireless medium busy time
  7607. * Bit5: RX in bad condition time
  7608. * Bit6: TX in bad condition time
  7609. * Bit7: time wlan card not available
  7610. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
  7611. * Bit0: Per channel SNR counter
  7612. * Bit1: Per channel noise floor counter
  7613. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
  7614. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
  7615. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
  7616. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
  7617. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
  7618. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
  7619. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
  7620. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
  7621. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
  7622. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
  7623. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
  7624. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
  7625. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
  7626. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
  7627. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
  7628. * aggregation stats buffer length
  7629. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
  7630. * buffer for ACKed MPDUs.
  7631. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
  7632. * buffer for failed MPDUs.
  7633. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
  7634. * length of delay stats array.
  7635. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
  7636. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
  7637. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
  7638. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
  7639. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
  7640. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
  7641. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
  7642. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
  7643. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
  7644. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
  7645. * flagged as retransmissions
  7646. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
  7647. * flagged as duplicated
  7648. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
  7649. * packets discarded
  7650. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
  7651. * stats buffer.
  7652. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
  7653. * stats buffer.
  7654. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
  7655. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
  7656. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
  7657. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
  7658. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
  7659. * requests received
  7660. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
  7661. * frames received
  7662. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
  7663. * there is no TX, nor RX, nor interference.
  7664. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
  7665. * transmitting packets.
  7666. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
  7667. * for receiving.
  7668. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
  7669. * interference detected.
  7670. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
  7671. * receiving packets with errors.
  7672. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
  7673. * TX no-ACK.
  7674. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
  7675. * the chip is unable to work in normal conditions.
  7676. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
  7677. * receiving packets in current BSS.
  7678. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
  7679. * receiving packets not in current BSS.
  7680. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
  7681. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
  7682. * This is a container for per antenna signal stats.
  7683. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
  7684. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
  7685. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
  7686. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
  7687. */
  7688. enum qca_wlan_vendor_attr_ll_stats_ext {
  7689. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
  7690. /* Attributes for configurations */
  7691. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
  7692. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
  7693. /* Peer STA power state change */
  7694. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
  7695. /* TX failure event */
  7696. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
  7697. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
  7698. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
  7699. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
  7700. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
  7701. /* MAC counters */
  7702. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
  7703. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
  7704. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
  7705. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
  7706. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
  7707. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
  7708. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
  7709. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
  7710. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
  7711. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
  7712. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
  7713. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
  7714. /* Sub-attributes for PEER_AC_TX */
  7715. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
  7716. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
  7717. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
  7718. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
  7719. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
  7720. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
  7721. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
  7722. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
  7723. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
  7724. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
  7725. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
  7726. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
  7727. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
  7728. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
  7729. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
  7730. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
  7731. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
  7732. /* Sub-attributes for PEER_AC_RX */
  7733. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
  7734. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
  7735. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
  7736. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
  7737. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
  7738. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
  7739. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
  7740. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
  7741. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
  7742. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
  7743. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
  7744. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
  7745. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
  7746. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
  7747. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
  7748. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
  7749. /* Sub-attributes for CCA_BSS */
  7750. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
  7751. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
  7752. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
  7753. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
  7754. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
  7755. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
  7756. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
  7757. /* sub-attribute for BSS_RX_TIME */
  7758. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
  7759. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
  7760. /* Sub-attributes for PEER_SIGNAL */
  7761. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
  7762. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
  7763. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
  7764. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
  7765. /* Sub-attributes for IFACE_BSS */
  7766. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
  7767. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
  7768. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
  7769. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
  7770. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
  7771. };
  7772. /**
  7773. * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
  7774. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
  7775. * in priority order as decided after ACS operation in userspace.
  7776. *
  7777. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
  7778. * One of reason code from enum qca_wlan_vendor_acs_select_reason.
  7779. *
  7780. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
  7781. * Array of nested values for each channel with following attributes:
  7782. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  7783. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  7784. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  7785. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  7786. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7787. * Note: If both the driver and user-space application supports the 6 GHz band,
  7788. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
  7789. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
  7790. * To maintain backward compatibility,
  7791. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
  7792. * is still used if either of the driver or user space application doesn't
  7793. * support the 6 GHz band.
  7794. *
  7795. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
  7796. * Primary channel number
  7797. * Note: If both the driver and user-space application supports the 6 GHz band,
  7798. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
  7799. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
  7800. * To maintain backward compatibility,
  7801. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
  7802. * is still used if either of the driver or user space application doesn't
  7803. * support the 6 GHz band.
  7804. *
  7805. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
  7806. * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
  7807. * Note: If both the driver and user-space application supports the 6 GHz band,
  7808. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
  7809. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
  7810. * To maintain backward compatibility,
  7811. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
  7812. * is still used if either of the driver or user space application
  7813. * doesn't support the 6 GHz band.
  7814. *
  7815. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
  7816. * VHT seg0 channel number
  7817. * Note: If both the driver and user-space application supports the 6 GHz band,
  7818. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
  7819. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
  7820. * To maintain backward compatibility,
  7821. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
  7822. * is still used if either of the driver or user space application
  7823. * doesn't support the 6 GHz band.
  7824. *
  7825. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
  7826. * VHT seg1 channel number
  7827. * Note: If both the driver and user-space application supports the 6 GHz band,
  7828. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
  7829. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
  7830. * To maintain backward compatibility,
  7831. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
  7832. * is still used if either of the driver or user space application
  7833. * doesn't support the 6 GHz band.
  7834. *
  7835. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
  7836. * Takes one of enum nl80211_chan_width values.
  7837. *
  7838. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
  7839. * Array of nested values for each channel with following attributes:
  7840. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
  7841. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
  7842. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
  7843. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
  7844. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7845. * Note: If user-space application has no support of the 6 GHz band, this
  7846. * attribute is optional.
  7847. *
  7848. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
  7849. * Primary channel frequency in MHz
  7850. * Note: If user-space application has no support of the 6 GHz band, this
  7851. * attribute is optional.
  7852. *
  7853. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
  7854. * Secondary channel frequency in MHz used for HT 40 MHz channels.
  7855. * Note: If user-space application has no support of the 6 GHz band, this
  7856. * attribute is optional.
  7857. *
  7858. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
  7859. * VHT seg0 channel frequency in MHz
  7860. * Note: If user-space application has no support of the 6GHz band, this
  7861. * attribute is optional.
  7862. *
  7863. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
  7864. * VHT seg1 channel frequency in MHz
  7865. * Note: If user-space application has no support of the 6 GHz band, this
  7866. * attribute is optional.
  7867. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16)
  7868. * Puncture Bitmap for selected primary channel. Optional if no support
  7869. * for EHT (IEEE 802.11be). Encoding for this attribute follows the
  7870. * convention used in the Disabled Subchannel Bitmap field of the EHT Operation
  7871. * element.
  7872. */
  7873. enum qca_wlan_vendor_attr_external_acs_channels {
  7874. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
  7875. /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
  7876. */
  7877. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
  7878. /* Array of nested values for each channel with following attributes:
  7879. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
  7880. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  7881. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  7882. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  7883. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  7884. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7885. */
  7886. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
  7887. /* This (u8) will hold values of one of enum nl80211_bands */
  7888. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
  7889. /* Primary channel (u8) */
  7890. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
  7891. /* Secondary channel (u8) used for HT 40 MHz channels */
  7892. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
  7893. /* VHT seg0 channel (u8) */
  7894. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
  7895. /* VHT seg1 channel (u8) */
  7896. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
  7897. /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
  7898. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
  7899. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
  7900. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
  7901. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
  7902. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
  7903. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
  7904. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14,
  7905. /* keep last */
  7906. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
  7907. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
  7908. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
  7909. };
  7910. /**
  7911. * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
  7912. * the ACS has to be triggered. These values are used by
  7913. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
  7914. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
  7915. */
  7916. enum qca_wlan_vendor_acs_select_reason {
  7917. /* Represents the reason that the ACS triggered during the AP start */
  7918. QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
  7919. /* Represents the reason that DFS found with the current channel */
  7920. QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
  7921. /* Represents the reason that LTE co-exist in the current band. */
  7922. QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
  7923. /* Represents the reason that generic, uncategorized interference has
  7924. * been found in the current channel.
  7925. */
  7926. QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
  7927. /* Represents the reason that excessive 802.11 interference has been
  7928. * found in the current channel.
  7929. */
  7930. QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
  7931. /* Represents the reason that generic Continuous Wave (CW) interference
  7932. * has been found in the current channel.
  7933. */
  7934. QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
  7935. /* Represents the reason that Microwave Oven (MWO) interference has been
  7936. * found in the current channel.
  7937. */
  7938. QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
  7939. /* Represents the reason that generic Frequency-Hopping Spread Spectrum
  7940. * (FHSS) interference has been found in the current channel. This may
  7941. * include 802.11 waveforms.
  7942. */
  7943. QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
  7944. /* Represents the reason that non-802.11 generic Frequency-Hopping
  7945. * Spread Spectrum (FHSS) interference has been found in the current
  7946. * channel.
  7947. */
  7948. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
  7949. /* Represents the reason that generic Wideband (WB) interference has
  7950. * been found in the current channel. This may include 802.11 waveforms.
  7951. */
  7952. QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
  7953. /* Represents the reason that non-802.11 generic Wideband (WB)
  7954. * interference has been found in the current channel.
  7955. */
  7956. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
  7957. /* Represents the reason that Jammer interference has been found in the
  7958. * current channel.
  7959. */
  7960. QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
  7961. /* Represents the reason that ACS triggered by AFC */
  7962. QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
  7963. };
  7964. /**
  7965. * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
  7966. *
  7967. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
  7968. * value to specify the gpio command, please refer to enum qca_gpio_cmd_type
  7969. * to get the available value that this item can use.
  7970. *
  7971. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
  7972. * value to specify the gpio number.
  7973. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7974. * %QCA_WLAN_VENDOR_GPIO_CONFIG or %.QCA_WLAN_VENDOR_GPIO_OUTPUT.
  7975. *
  7976. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
  7977. * value to specify the gpio output level, please refer to enum qca_gpio_value
  7978. * to get the available value that this item can use.
  7979. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7980. * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
  7981. *
  7982. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
  7983. * value to specify the gpio pull type, please refer to enum qca_gpio_pull_type
  7984. * to get the available value that this item can use.
  7985. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7986. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7987. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7988. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7989. * attribute is present.
  7990. *
  7991. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
  7992. * value to specify the gpio interrupt mode, please refer to enum
  7993. * qca_gpio_interrupt_mode to get the available value that this item can use.
  7994. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7995. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7996. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7997. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7998. * attribute is present.
  7999. *
  8000. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
  8001. * value to specify the gpio direction, please refer to enum qca_gpio_direction
  8002. * to get the available value that this item can use.
  8003. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  8004. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  8005. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  8006. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  8007. * attribute is present.
  8008. *
  8009. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
  8010. * Value to specify the mux config. Meaning of a given value is dependent
  8011. * on the target chipset and gpio pin. Must be of the range 0-15.
  8012. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  8013. * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
  8014. *
  8015. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
  8016. * Value to specify the drive, Refer to enum qca_gpio_drive.
  8017. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  8018. * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
  8019. *
  8020. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
  8021. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  8022. * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
  8023. * other parameters for the given GPIO will be obtained from internal
  8024. * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
  8025. * specified to indicate the GPIO pin being configured.
  8026. */
  8027. enum qca_wlan_gpio_attr {
  8028. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
  8029. /* Unsigned 32-bit attribute for GPIO command */
  8030. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
  8031. /* Unsigned 32-bit attribute for GPIO PIN number to configure */
  8032. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
  8033. /* Unsigned 32-bit attribute for GPIO value to configure */
  8034. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
  8035. /* Unsigned 32-bit attribute for GPIO pull type */
  8036. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
  8037. /* Unsigned 32-bit attribute for GPIO interrupt mode */
  8038. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
  8039. /* Unsigned 32-bit attribute for GPIO direction to configure */
  8040. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
  8041. /* Unsigned 32-bit attribute for GPIO mux config */
  8042. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
  8043. /* Unsigned 32-bit attribute for GPIO drive */
  8044. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
  8045. /* Flag attribute for using internal gpio configuration */
  8046. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
  8047. /* keep last */
  8048. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
  8049. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
  8050. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1,
  8051. };
  8052. /**
  8053. * enum gpio_cmd_type - GPIO configuration command type
  8054. * @QCA_WLAN_VENDOR_GPIO_CONFIG: set gpio configuration info
  8055. * @QCA_WLAN_VENDOR_GPIO_OUTPUT: set gpio output level
  8056. */
  8057. enum qca_gpio_cmd_type {
  8058. QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
  8059. QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
  8060. };
  8061. /**
  8062. * enum qca_gpio_pull_type - GPIO pull type
  8063. * @QCA_WLAN_GPIO_PULL_NONE: set gpio pull type to none
  8064. * @QCA_WLAN_GPIO_PULL_UP: set gpio pull up
  8065. * @QCA_WLAN_GPIO_PULL_DOWN: set gpio pull down
  8066. */
  8067. enum qca_gpio_pull_type {
  8068. QCA_WLAN_GPIO_PULL_NONE = 0,
  8069. QCA_WLAN_GPIO_PULL_UP = 1,
  8070. QCA_WLAN_GPIO_PULL_DOWN = 2,
  8071. QCA_WLAN_GPIO_PULL_MAX,
  8072. };
  8073. /**
  8074. * enum qca_gpio_direction - GPIO direction
  8075. * @QCA_WLAN_GPIO_INPUT: set gpio as input mode
  8076. * @QCA_WLAN_GPIO_OUTPUT: set gpio as output mode
  8077. * @QCA_WLAN_GPIO_VALUE_MAX: invalid value
  8078. */
  8079. enum qca_gpio_direction {
  8080. QCA_WLAN_GPIO_INPUT = 0,
  8081. QCA_WLAN_GPIO_OUTPUT = 1,
  8082. QCA_WLAN_GPIO_DIR_MAX,
  8083. };
  8084. /**
  8085. * enum qca_gpio_value - GPIO Value
  8086. * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
  8087. * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
  8088. * @QCA_WLAN_GPIO_LEVEL_MAX: invalid value
  8089. */
  8090. enum qca_gpio_value {
  8091. QCA_WLAN_GPIO_LEVEL_LOW = 0,
  8092. QCA_WLAN_GPIO_LEVEL_HIGH = 1,
  8093. QCA_WLAN_GPIO_LEVEL_MAX,
  8094. };
  8095. /**
  8096. * enum gpio_interrupt_mode - GPIO interrupt mode
  8097. * @QCA_WLAN_GPIO_INTMODE_DISABLE: disable interrupt trigger
  8098. * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: interrupt with gpio rising edge trigger
  8099. * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: interrupt with gpio falling edge trigger
  8100. * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: interrupt with gpio both edge trigger
  8101. * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: interrupt with gpio level low trigger
  8102. * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: interrupt with gpio level high trigger
  8103. * @QCA_WLAN_GPIO_INTMODE_MAX: invalid value
  8104. */
  8105. enum qca_gpio_interrupt_mode {
  8106. QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
  8107. QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
  8108. QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
  8109. QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
  8110. QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
  8111. QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
  8112. QCA_WLAN_GPIO_INTMODE_MAX,
  8113. };
  8114. /**
  8115. * enum gpio_drive - GPIO drive
  8116. * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
  8117. * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
  8118. * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
  8119. * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
  8120. * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
  8121. * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
  8122. * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
  8123. * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
  8124. * @QCA_WLAN_GPIO_DRIVE_MAX: invalid gpio drive
  8125. */
  8126. enum qca_gpio_drive {
  8127. QCA_WLAN_GPIO_DRIVE_2MA = 0,
  8128. QCA_WLAN_GPIO_DRIVE_4MA = 1,
  8129. QCA_WLAN_GPIO_DRIVE_6MA = 2,
  8130. QCA_WLAN_GPIO_DRIVE_8MA = 3,
  8131. QCA_WLAN_GPIO_DRIVE_10MA = 4,
  8132. QCA_WLAN_GPIO_DRIVE_12MA = 5,
  8133. QCA_WLAN_GPIO_DRIVE_14MA = 6,
  8134. QCA_WLAN_GPIO_DRIVE_16MA = 7,
  8135. QCA_WLAN_GPIO_DRIVE_MAX,
  8136. };
  8137. /**
  8138. * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
  8139. * MSDUQ depth threshold per peer per tid in the target
  8140. *
  8141. * Associated Vendor Command:
  8142. * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
  8143. */
  8144. enum qca_wlan_set_qdepth_thresh_attr {
  8145. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
  8146. /* 6-byte MAC address */
  8147. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
  8148. /* Unsigned 32-bit attribute for holding the TID */
  8149. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
  8150. /* Unsigned 32-bit attribute for holding the update mask
  8151. * bit 0 - Update high priority msdu qdepth threshold
  8152. * bit 1 - Update low priority msdu qdepth threshold
  8153. * bit 2 - Update UDP msdu qdepth threshold
  8154. * bit 3 - Update Non UDP msdu qdepth threshold
  8155. * rest of bits are reserved
  8156. */
  8157. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
  8158. /* Unsigned 32-bit attribute for holding the threshold value */
  8159. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
  8160. /* keep last */
  8161. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
  8162. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
  8163. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
  8164. };
  8165. /**
  8166. * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
  8167. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
  8168. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
  8169. * external ACS policies to select the channels w.r.t. the PCL weights.
  8170. * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
  8171. * their PCL weights.)
  8172. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
  8173. * select a channel with non-zero PCL weight.
  8174. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
  8175. * channel with non-zero PCL weight.
  8176. *
  8177. */
  8178. enum qca_wlan_vendor_attr_external_acs_policy {
  8179. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
  8180. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
  8181. };
  8182. /**
  8183. * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
  8184. */
  8185. enum qca_wlan_vendor_attr_spectral_scan {
  8186. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
  8187. /*
  8188. * Number of times the chip enters spectral scan mode before
  8189. * deactivating spectral scans. When set to 0, chip will enter spectral
  8190. * scan mode continuously. u32 attribute.
  8191. */
  8192. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
  8193. /*
  8194. * Spectral scan period. Period increment resolution is 256*Tclk,
  8195. * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
  8196. */
  8197. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
  8198. /* Spectral scan priority. u32 attribute. */
  8199. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
  8200. /* Number of FFT data points to compute. u32 attribute. */
  8201. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
  8202. /*
  8203. * Enable targeted gain change before starting the spectral scan FFT.
  8204. * u32 attribute.
  8205. */
  8206. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
  8207. /* Restart a queued spectral scan. u32 attribute. */
  8208. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
  8209. /*
  8210. * Noise floor reference number for the calculation of bin power.
  8211. * u32 attribute.
  8212. */
  8213. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
  8214. /*
  8215. * Disallow spectral scan triggers after TX/RX packets by setting
  8216. * this delay value to roughly SIFS time period or greater.
  8217. * u32 attribute.
  8218. */
  8219. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
  8220. /*
  8221. * Number of strong bins (inclusive) per sub-channel, below
  8222. * which a signal is declared a narrow band tone. u32 attribute.
  8223. */
  8224. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
  8225. /*
  8226. * Specify the threshold over which a bin is declared strong (for
  8227. * scan bandwidth analysis). u32 attribute.
  8228. */
  8229. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
  8230. /* Spectral scan report mode. u32 attribute. */
  8231. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
  8232. /*
  8233. * RSSI report mode, if the ADC RSSI is below
  8234. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
  8235. * then FFTs will not trigger, but timestamps and summaries get
  8236. * reported. u32 attribute.
  8237. */
  8238. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
  8239. /*
  8240. * ADC RSSI must be greater than or equal to this threshold (signed dB)
  8241. * to ensure spectral scan reporting with normal error code.
  8242. * u32 attribute.
  8243. */
  8244. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
  8245. /*
  8246. * Format of frequency bin magnitude for spectral scan triggered FFTs:
  8247. * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
  8248. * u32 attribute.
  8249. */
  8250. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
  8251. /*
  8252. * Format of FFT report to software for spectral scan triggered FFTs.
  8253. * 0: No FFT report (only spectral scan summary report)
  8254. * 1: 2-dword summary of metrics for each completed FFT + spectral scan
  8255. * report
  8256. * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
  8257. * bins (in-band) per FFT + spectral scan summary report
  8258. * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
  8259. * bins (all) per FFT + spectral scan summary report
  8260. * u32 attribute.
  8261. */
  8262. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
  8263. /*
  8264. * Number of LSBs to shift out in order to scale the FFT bins.
  8265. * u32 attribute.
  8266. */
  8267. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
  8268. /*
  8269. * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
  8270. * in dBm power. u32 attribute.
  8271. */
  8272. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
  8273. /*
  8274. * Per chain enable mask to select input ADC for search FFT.
  8275. * u32 attribute.
  8276. */
  8277. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
  8278. /*
  8279. * An unsigned 64-bit integer provided by host driver to identify the
  8280. * spectral scan request. This attribute is included in the scan
  8281. * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
  8282. * and used as an attribute in
  8283. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
  8284. * specific scan to be stopped.
  8285. */
  8286. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
  8287. /* Skip interval for FFT reports. u32 attribute */
  8288. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
  8289. /* Set to report only one set of FFT results.
  8290. * u32 attribute.
  8291. */
  8292. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
  8293. /* Debug level for spectral module in driver.
  8294. * 0 : Verbosity level 0
  8295. * 1 : Verbosity level 1
  8296. * 2 : Verbosity level 2
  8297. * 3 : Matched filterID display
  8298. * 4 : One time dump of FFT report
  8299. * u32 attribute.
  8300. */
  8301. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
  8302. /* Type of spectral scan request. u32 attribute.
  8303. * It uses values defined in enum
  8304. * qca_wlan_vendor_attr_spectral_scan_request_type.
  8305. */
  8306. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
  8307. /* This specifies the frequency span over which spectral
  8308. * scan would be carried out. Its value depends on the
  8309. * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
  8310. * the relation is as follows.
  8311. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
  8312. * Not applicable. Spectral scan would happen in the
  8313. * operating span.
  8314. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
  8315. * Center frequency (in MHz) of the span of interest or
  8316. * for convenience, center frequency (in MHz) of any channel
  8317. * in the span of interest. For 80+80 MHz agile spectral scan
  8318. * request it represents center frequency (in MHz) of the primary
  8319. * 80 MHz span or for convenience, center frequency (in MHz) of any
  8320. * channel in the primary 80 MHz span. If agile spectral scan is
  8321. * initiated without setting a valid frequency it returns the
  8322. * error code
  8323. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
  8324. * u32 attribute.
  8325. */
  8326. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
  8327. /* Spectral scan mode. u32 attribute.
  8328. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  8329. * If this attribute is not present, it is assumed to be
  8330. * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
  8331. */
  8332. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
  8333. /* Spectral scan error code. u32 attribute.
  8334. * It uses values defined in enum
  8335. * qca_wlan_vendor_spectral_scan_error_code.
  8336. * This attribute is included only in failure scenarios.
  8337. */
  8338. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
  8339. /* 8-bit unsigned value to enable/disable debug of the
  8340. * Spectral DMA ring.
  8341. * 1-enable, 0-disable
  8342. */
  8343. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
  8344. /* 8-bit unsigned value to enable/disable debug of the
  8345. * Spectral DMA buffers.
  8346. * 1-enable, 0-disable
  8347. */
  8348. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
  8349. /* This specifies the frequency span over which spectral scan would be
  8350. * carried out. Its value depends on the value of
  8351. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
  8352. * follows.
  8353. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
  8354. * Not applicable. Spectral scan would happen in the operating span.
  8355. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
  8356. * This attribute is applicable only for agile spectral scan
  8357. * requests in 80+80 MHz mode. It represents center frequency (in
  8358. * MHz) of the secondary 80 MHz span or for convenience, center
  8359. * frequency (in MHz) of any channel in the secondary 80 MHz span.
  8360. * u32 attribute.
  8361. */
  8362. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
  8363. /* This attribute specifies the bandwidth to be used for Spectral scan
  8364. * operation. This is an u8 attribute and uses the values in enum
  8365. * nl80211_chan_width. This is an optional attribute.
  8366. * If this attribute is not populated, the driver should configure the
  8367. * Spectral scan bandwidth to the maximum value supported by the target
  8368. * for the current operating bandwidth.
  8369. */
  8370. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
  8371. /* Spectral FFT recapture flag attribute, to enable/disable FFT
  8372. * recapture. Recapture can only be enabled for Scan period greater
  8373. * than 52us.
  8374. * If this attribute is enabled, re-triggers will be enabled in uCode
  8375. * when AGC gain changes.
  8376. */
  8377. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
  8378. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
  8379. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
  8380. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
  8381. };
  8382. /**
  8383. * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
  8384. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
  8385. */
  8386. enum qca_wlan_vendor_attr_spectral_diag_stats {
  8387. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
  8388. /* Number of spectral TLV signature mismatches.
  8389. * u64 attribute.
  8390. */
  8391. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
  8392. /* Number of spectral phyerror events with insufficient length when
  8393. * parsing for secondary 80 search FFT report. u64 attribute.
  8394. */
  8395. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
  8396. /* Number of spectral phyerror events without secondary 80
  8397. * search FFT report. u64 attribute.
  8398. */
  8399. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
  8400. /* Number of spectral phyerror events with vht operation segment 1 id
  8401. * mismatches in search fft report. u64 attribute.
  8402. */
  8403. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
  8404. /* Number of spectral phyerror events with vht operation segment 2 id
  8405. * mismatches in search fft report. u64 attribute.
  8406. */
  8407. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
  8408. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
  8409. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
  8410. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
  8411. };
  8412. /**
  8413. * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
  8414. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
  8415. */
  8416. enum qca_wlan_vendor_attr_spectral_cap {
  8417. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
  8418. /* Flag attribute to indicate phydiag capability */
  8419. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
  8420. /* Flag attribute to indicate radar detection capability */
  8421. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
  8422. /* Flag attribute to indicate spectral capability */
  8423. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
  8424. /* Flag attribute to indicate advanced spectral capability */
  8425. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
  8426. /* Spectral hardware generation. u32 attribute.
  8427. * It uses values defined in enum
  8428. * qca_wlan_vendor_spectral_scan_cap_hw_gen.
  8429. */
  8430. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
  8431. /* Spectral bin scaling formula ID. u16 attribute.
  8432. * It uses values defined in enum
  8433. * qca_wlan_vendor_spectral_scan_cap_formula_id.
  8434. */
  8435. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
  8436. /* Spectral bin scaling param - low level offset.
  8437. * s16 attribute.
  8438. */
  8439. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
  8440. /* Spectral bin scaling param - high level offset.
  8441. * s16 attribute.
  8442. */
  8443. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
  8444. /* Spectral bin scaling param - RSSI threshold.
  8445. * s16 attribute.
  8446. */
  8447. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
  8448. /* Spectral bin scaling param - default AGC max gain.
  8449. * u8 attribute.
  8450. */
  8451. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
  8452. /* Flag attribute to indicate agile spectral scan capability
  8453. * for 20/40/80 MHz modes.
  8454. */
  8455. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
  8456. /* Flag attribute to indicate agile spectral scan capability
  8457. * for 160 MHz mode.
  8458. */
  8459. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
  8460. /* Flag attribute to indicate agile spectral scan capability
  8461. * for 80+80 MHz mode.
  8462. */
  8463. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
  8464. /* Number of spectral detectors used for scan in 20 MHz.
  8465. * u32 attribute.
  8466. */
  8467. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
  8468. /* Number of spectral detectors used for scan in 40 MHz.
  8469. * u32 attribute.
  8470. */
  8471. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
  8472. /* Number of spectral detectors used for scan in 80 MHz.
  8473. * u32 attribute.
  8474. */
  8475. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
  8476. /* Number of spectral detectors used for scan in 160 MHz.
  8477. * u32 attribute.
  8478. */
  8479. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
  8480. /* Number of spectral detectors used for scan in 80+80 MHz.
  8481. * u32 attribute.
  8482. */
  8483. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
  8484. /* Flag attribute to indicate agile spectral scan capability
  8485. * for 320 MHz mode.
  8486. */
  8487. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
  8488. /* Number of spectral detectors used for scan in 320 MHz.
  8489. * u32 attribute.
  8490. */
  8491. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
  8492. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
  8493. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
  8494. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
  8495. };
  8496. /**
  8497. * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
  8498. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
  8499. */
  8500. enum qca_wlan_vendor_attr_spectral_scan_status {
  8501. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
  8502. /* Flag attribute to indicate whether spectral scan is enabled */
  8503. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
  8504. /* Flag attribute to indicate whether spectral scan is in progress*/
  8505. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
  8506. /* Spectral scan mode. u32 attribute.
  8507. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  8508. * If this attribute is not present, normal mode
  8509. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
  8510. * requested.
  8511. */
  8512. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
  8513. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
  8514. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
  8515. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
  8516. };
  8517. /**
  8518. * enum qca_wlan_vendor_attr_config_latency_level - Level for
  8519. * wlan latency module.
  8520. *
  8521. * There will be various of Wi-Fi functionality like scan/roaming/adaptive
  8522. * power saving which would causing data exchange out of service, this
  8523. * would be a big impact on latency. For latency sensitive applications over
  8524. * Wi-Fi are intolerant to such operations and thus would configure them
  8525. * to meet their respective needs. It is well understood by such applications
  8526. * that altering the default behavior would degrade the Wi-Fi functionality
  8527. * w.r.t the above pointed WLAN operations.
  8528. *
  8529. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
  8530. * Default WLAN operation level which throughput orientated.
  8531. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
  8532. * Use XR level to benefit XR (extended reality) application to achieve
  8533. * latency and power by via constraint scan/roaming/adaptive PS.
  8534. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
  8535. * Use low latency level to benefit application like concurrent
  8536. * downloading or video streaming via constraint scan/adaptive PS.
  8537. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
  8538. * Use ultra low latency level to benefit for gaming/voice
  8539. * application via constraint scan/roaming/adaptive PS.
  8540. */
  8541. enum qca_wlan_vendor_attr_config_latency_level {
  8542. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
  8543. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
  8544. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
  8545. /* legacy name */
  8546. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
  8547. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
  8548. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
  8549. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
  8550. /* keep last */
  8551. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
  8552. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
  8553. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
  8554. };
  8555. /**
  8556. * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
  8557. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
  8558. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
  8559. * spectral scan request types.
  8560. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
  8561. * set the spectral parameters and start scan.
  8562. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
  8563. * only set the spectral parameters.
  8564. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
  8565. * only start the spectral scan.
  8566. */
  8567. enum qca_wlan_vendor_attr_spectral_scan_request_type {
  8568. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
  8569. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
  8570. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
  8571. };
  8572. /**
  8573. * qca_wlan_vendor_spectral_scan_mode: Attribute values for
  8574. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
  8575. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
  8576. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
  8577. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
  8578. * spectral scan modes.
  8579. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
  8580. * spectral scan in the current operating span.
  8581. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
  8582. * spectral scan in the configured agile span.
  8583. */
  8584. enum qca_wlan_vendor_spectral_scan_mode {
  8585. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
  8586. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
  8587. };
  8588. /**
  8589. * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
  8590. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
  8591. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
  8592. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
  8593. * of a parameter is not supported.
  8594. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
  8595. * mode is not supported.
  8596. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
  8597. * has invalid value.
  8598. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
  8599. * is not initialized.
  8600. */
  8601. enum qca_wlan_vendor_spectral_scan_error_code {
  8602. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
  8603. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
  8604. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
  8605. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
  8606. };
  8607. /**
  8608. * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
  8609. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
  8610. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  8611. * spectral hardware generation.
  8612. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
  8613. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
  8614. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
  8615. */
  8616. enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
  8617. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
  8618. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
  8619. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
  8620. };
  8621. /**
  8622. * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
  8623. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
  8624. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  8625. * Spectral bin scaling formula ID.
  8626. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
  8627. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
  8628. * and RSSI threshold based formula.
  8629. */
  8630. enum qca_wlan_vendor_spectral_scan_cap_formula_id {
  8631. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
  8632. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
  8633. };
  8634. /**
  8635. * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
  8636. * RF Operating Parameter (RROP) information is available, and if so, at which
  8637. * point in the application-driver interaction sequence it can be retrieved by
  8638. * the application from the driver. This point may vary by architecture and
  8639. * other factors. This is a u16 value.
  8640. */
  8641. enum qca_wlan_vendor_attr_rropavail_info {
  8642. /* RROP information is unavailable. */
  8643. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
  8644. /* RROP information is available and the application can retrieve the
  8645. * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
  8646. * event from the driver.
  8647. */
  8648. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
  8649. /* RROP information is available only after a vendor specific scan
  8650. * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
  8651. * successfully completed. The application can retrieve the information
  8652. * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
  8653. * the driver.
  8654. */
  8655. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
  8656. };
  8657. /**
  8658. * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
  8659. * Representative RF Operating Parameter (RROP) information. It is sent for the
  8660. * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
  8661. * intended for use by external Auto Channel Selection applications. It provides
  8662. * guidance values for some RF parameters that are used by the system during
  8663. * operation. These values could vary by channel, band, radio, and so on.
  8664. */
  8665. enum qca_wlan_vendor_attr_rrop_info {
  8666. QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
  8667. /* Representative Tx Power List (RTPL) which has an array of nested
  8668. * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
  8669. */
  8670. QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
  8671. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
  8672. QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
  8673. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
  8674. };
  8675. /**
  8676. * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
  8677. * entry instances in the Representative Tx Power List (RTPL). It provides
  8678. * simplified power values intended for helping external Auto channel Selection
  8679. * applications compare potential Tx power performance between channels, other
  8680. * operating conditions remaining identical. These values are not necessarily
  8681. * the actual Tx power values that will be used by the system. They are also not
  8682. * necessarily the max or average values that will be used. Instead, they are
  8683. * relative, summarized keys for algorithmic use computed by the driver or
  8684. * underlying firmware considering a number of vendor specific factors.
  8685. */
  8686. enum qca_wlan_vendor_attr_rtplinst {
  8687. QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
  8688. /* Primary channel number (u8).
  8689. * Note: If both the driver and user space application support the
  8690. * 6 GHz band, this attribute is deprecated and
  8691. * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
  8692. * maintain backward compatibility,
  8693. * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
  8694. * driver or user space application or both do not support the 6 GHz
  8695. * band.
  8696. */
  8697. QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
  8698. /* Representative Tx power in dBm (s32) with emphasis on throughput. */
  8699. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
  8700. /* Representative Tx power in dBm (s32) with emphasis on range. */
  8701. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
  8702. /* Primary channel center frequency (u32) in MHz */
  8703. QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
  8704. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
  8705. QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
  8706. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
  8707. };
  8708. /**
  8709. * enum qca_wlan_vendor_attr_mac - Used by the vendor command
  8710. * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  8711. *
  8712. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an
  8713. * array of nested values as per attributes in
  8714. * enum qca_wlan_vendor_attr_mac_mode_info.
  8715. */
  8716. enum qca_wlan_vendor_attr_mac {
  8717. QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
  8718. QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
  8719. /* keep last */
  8720. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
  8721. QCA_WLAN_VENDOR_ATTR_MAC_MAX =
  8722. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
  8723. };
  8724. /**
  8725. * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
  8726. * WiFi netdev interface on a respective MAC. Used by the attribute
  8727. * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
  8728. *
  8729. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32).
  8730. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of
  8731. * the connected Wi-Fi interface(u32).
  8732. */
  8733. enum qca_wlan_vendor_attr_mac_iface_info {
  8734. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
  8735. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
  8736. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
  8737. /* keep last */
  8738. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
  8739. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
  8740. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
  8741. };
  8742. /**
  8743. * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
  8744. * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
  8745. * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  8746. *
  8747. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the
  8748. * MAC (u32)
  8749. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC
  8750. * at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described
  8751. * in enum nl80211_band.
  8752. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev
  8753. * interfaces associated with this MAC. Represented by enum
  8754. * qca_wlan_vendor_attr_mac_iface_info.
  8755. */
  8756. enum qca_wlan_vendor_attr_mac_info {
  8757. QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
  8758. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
  8759. QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
  8760. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
  8761. /* keep last */
  8762. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
  8763. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
  8764. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
  8765. };
  8766. /**
  8767. * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
  8768. * to get thermal status from driver/firmware.
  8769. * enum values are used for NL attributes encapsulated inside
  8770. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
  8771. *
  8772. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
  8773. * of a thermal level in Celsius. u32 size.
  8774. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
  8775. * of a thermal level in Celsius. u32 size.
  8776. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
  8777. * thermal level in milliseconds. u32 size.
  8778. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
  8779. * of times the temperature crossed into the temperature range defined by the
  8780. * thermal level from both higher and lower directions. u32 size.
  8781. */
  8782. enum qca_wlan_vendor_attr_thermal_stats {
  8783. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
  8784. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
  8785. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
  8786. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
  8787. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
  8788. /* keep last */
  8789. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
  8790. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
  8791. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
  8792. };
  8793. /**
  8794. * enum he_fragmentation_val - HE fragmentation support values
  8795. * Indicates level of dynamic fragmentation that is supported by
  8796. * a STA as a recipient.
  8797. * HE fragmentation values are defined as per 11ax spec and are used in
  8798. * HE capability IE to advertise the support. These values are validated
  8799. * in the driver to check the device capability and advertised in the HE
  8800. * capability element.
  8801. *
  8802. * @HE_FRAG_DISABLE: no support for dynamic fragmentation
  8803. * @HE_FRAG_LEVEL1: support for dynamic fragments that are
  8804. * contained within an MPDU or S-MPDU, no support for dynamic fragments
  8805. * within an A-MPDU that is not an S-MPDU.
  8806. * @HE_FRAG_LEVEL2: support for dynamic fragments that are
  8807. * contained within an MPDU or S-MPDU and support for up to one dynamic
  8808. * fragment for each MSDU, each A-MSDU if supported by the recipient, and
  8809. * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
  8810. * MPDU or S-MPDU.
  8811. * @HE_FRAG_LEVEL3: support for dynamic fragments that are
  8812. * contained within an MPDU or S-MPDU and support for multiple dynamic
  8813. * fragments for each MSDU and for each A-MSDU if supported by the
  8814. * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
  8815. * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
  8816. */
  8817. enum he_fragmentation_val {
  8818. HE_FRAG_DISABLE,
  8819. HE_FRAG_LEVEL1,
  8820. HE_FRAG_LEVEL2,
  8821. HE_FRAG_LEVEL3,
  8822. };
  8823. /**
  8824. * enum he_mcs_config - HE MCS support configuration
  8825. *
  8826. * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
  8827. * These values are used in driver to configure the HE MCS map to advertise
  8828. * Tx/Rx MCS map in HE capability and these values are applied for all the
  8829. * streams supported by the device. To configure MCS for different bandwidths,
  8830. * vendor command needs to be sent using this attribute with appropriate value.
  8831. * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
  8832. * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS
  8833. * for HE_160_MCS0_11 send this command using HE MCS config attribute with
  8834. * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11;
  8835. *
  8836. * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7
  8837. * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9
  8838. * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11
  8839. * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7
  8840. * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9
  8841. * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11
  8842. * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7
  8843. * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9
  8844. * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11
  8845. */
  8846. enum he_mcs_config {
  8847. HE_80_MCS0_7 = 0,
  8848. HE_80_MCS0_9 = 1,
  8849. HE_80_MCS0_11 = 2,
  8850. HE_160_MCS0_7 = 4,
  8851. HE_160_MCS0_9 = 5,
  8852. HE_160_MCS0_11 = 6,
  8853. HE_80p80_MCS0_7 = 8,
  8854. HE_80p80_MCS0_9 = 9,
  8855. HE_80p80_MCS0_11 = 10,
  8856. };
  8857. /**
  8858. * enum qca_wlan_ba_session_config - BA session configuration
  8859. *
  8860. * Indicates the configuration values for BA session configuration attribute.
  8861. *
  8862. * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
  8863. * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
  8864. */
  8865. enum qca_wlan_ba_session_config {
  8866. QCA_WLAN_ADD_BA = 1,
  8867. QCA_WLAN_DELETE_BA = 2,
  8868. };
  8869. /**
  8870. * enum qca_wlan_ac_type - access category type
  8871. *
  8872. * Indicates the access category type value.
  8873. *
  8874. * @QCA_WLAN_AC_BE: BE access category
  8875. * @QCA_WLAN_AC_BK: BK access category
  8876. * @QCA_WLAN_AC_VI: VI access category
  8877. * @QCA_WLAN_AC_VO: VO access category
  8878. * @QCA_WLAN_AC_ALL: All ACs
  8879. */
  8880. enum qca_wlan_ac_type {
  8881. QCA_WLAN_AC_BE = 0,
  8882. QCA_WLAN_AC_BK = 1,
  8883. QCA_WLAN_AC_VI = 2,
  8884. QCA_WLAN_AC_VO = 3,
  8885. QCA_WLAN_AC_ALL = 4,
  8886. };
  8887. /**
  8888. * enum qca_wlan_he_ltf_cfg - HE LTF configuration
  8889. *
  8890. * Indicates the HE LTF configuration value.
  8891. *
  8892. * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to
  8893. * the mandatory HE-LTF based on the GI setting
  8894. * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
  8895. * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
  8896. * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
  8897. */
  8898. enum qca_wlan_he_ltf_cfg {
  8899. QCA_WLAN_HE_LTF_AUTO = 0,
  8900. QCA_WLAN_HE_LTF_1X = 1,
  8901. QCA_WLAN_HE_LTF_2X = 2,
  8902. QCA_WLAN_HE_LTF_4X = 3,
  8903. };
  8904. /**
  8905. * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
  8906. *
  8907. * Indicates the HE trigger frame MAC padding duration value.
  8908. *
  8909. * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
  8910. * process the trigger frame.
  8911. * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
  8912. * trigger frame.
  8913. * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
  8914. * trigger frame.
  8915. */
  8916. enum qca_wlan_he_mac_padding_dur {
  8917. QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
  8918. QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
  8919. QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
  8920. };
  8921. /**
  8922. * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
  8923. *
  8924. * Indicates the HE Operating mode control channel width setting value.
  8925. *
  8926. * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
  8927. * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
  8928. * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
  8929. * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
  8930. */
  8931. enum qca_wlan_he_om_ctrl_ch_bw {
  8932. QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
  8933. QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
  8934. QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
  8935. QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
  8936. };
  8937. /**
  8938. * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
  8939. *
  8940. * Indicates the frame types to use for keep alive data.
  8941. *
  8942. * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
  8943. * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
  8944. * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
  8945. */
  8946. enum qca_wlan_keep_alive_data_type {
  8947. QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
  8948. QCA_WLAN_KEEP_ALIVE_DATA = 1,
  8949. QCA_WLAN_KEEP_ALIVE_MGMT = 2,
  8950. };
  8951. /**
  8952. * enum eht_mcs_config - EHT MCS support configuration
  8953. *
  8954. * Configures the EHT Tx/Rx MCS map in EHT Capability element.
  8955. * These values are used in the driver to configure the EHT MCS map to advertise
  8956. * Tx/Rx MCS map in EHT capability and these values are applied for all the
  8957. * streams supported by the device.
  8958. * @EHT_MCS0_7: EHT MCS 0 to 7 support
  8959. * @EHT_MCS0_9: EHT MCS 0 to 9 support
  8960. * @EHT_MCS0_11: EHT MCS 0 to 11 support
  8961. * @EHT_MCS0_13: EHT MCS 0 to 13 support
  8962. */
  8963. enum eht_mcs_config {
  8964. EHT_MCS0_7 = 0,
  8965. EHT_MCS0_9 = 1,
  8966. EHT_MCS0_11 = 2,
  8967. EHT_MCS0_13 = 3,
  8968. };
  8969. /**
  8970. * enum qca_wlan_eht_mlo_mode: EHT MLO mode configuration.
  8971. * @QCA_WLAN_EHT_MODE_INVALID: Invalid.
  8972. * @QCA_WLAN_EHT_MLSR: Multi-link single radio mode
  8973. * @QCA_WLAN_EHT_EMLSR: Enhanced multi-link single radio mode.
  8974. * @QCA_WLAN_EHT_NON_STR_MLMR: Non simultaneous transmit and receive
  8975. * multi-link multi radio mode.
  8976. * @QCA_WLAN_EHT_STR_MLMR: Simultaneous transmit and receive
  8977. * multi-link multi radio mode.
  8978. */
  8979. enum qca_wlan_eht_mlo_mode {
  8980. QCA_WLAN_EHT_MODE_INVALID = 0,
  8981. QCA_WLAN_EHT_MLSR = 1,
  8982. QCA_WLAN_EHT_EMLSR = 2,
  8983. QCA_WLAN_EHT_NON_STR_MLMR = 3,
  8984. QCA_WLAN_EHT_STR_MLMR = 4,
  8985. };
  8986. /**
  8987. * enum qca_wlan_emlsr_mode: Enhanced Multi-link Single Radio mode configuration
  8988. * @QCA_WLAN_EMLSR_MODE_ENTER: Enter EMLSR mode
  8989. * @QCA_WLAN_EMLSR_MODE_EXIT: Exit EMLSR mode
  8990. */
  8991. enum qca_wlan_emlsr_mode {
  8992. QCA_WLAN_EMLSR_MODE_ENTER = 0,
  8993. QCA_WLAN_EMLSR_MODE_EXIT = 1,
  8994. };
  8995. /**
  8996. * enum qca_wlan_ttlm_negotiation_support: TID-To-Link Mapping Negotiation
  8997. * support
  8998. * @QCA_WLAN_TTLM_DISABLE: TTLM disabled
  8999. * @QCA_WLAN_TTLM_SAME_LINK_SET: Mapping of all TIDs to the same link set,
  9000. * both DL and UL
  9001. * @QCA_WLAN_TTLM_SAME_DIFF_LINK_SET: Mapping of each TID to the same or
  9002. * different link set
  9003. */
  9004. enum qca_wlan_ttlm_negotiation_support {
  9005. QCA_WLAN_TTLM_DISABLE = 0,
  9006. QCA_WLAN_TTLM_SAME_LINK_SET = 1,
  9007. QCA_WLAN_TTLM_SAME_DIFF_LINK_SET = 2,
  9008. };
  9009. /**
  9010. * enum qca_coex_traffic_shaping_mode: Coex traffic shaping mode
  9011. * @QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE: Coex policies disabled
  9012. * @QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE: All coex policies enabled
  9013. */
  9014. enum qca_coex_traffic_shaping_mode {
  9015. QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE = 0,
  9016. QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE = 1,
  9017. };
  9018. /**
  9019. * enum qca_wlan_vendor_attr_omi_tx: Represents attributes for HE and
  9020. * EHT operating mode control transmit request. These attributes are
  9021. * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX and
  9022. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  9023. *
  9024. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
  9025. * indicates the maximum number of spatial streams, NSS, that the STA
  9026. * supports in reception for PPDU bandwidths less than or equal to 80 MHz
  9027. * and is set to NSS - 1.
  9028. *
  9029. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
  9030. * indicates the operating channel width supported by the STA for both
  9031. * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
  9032. *
  9033. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
  9034. * indicates the all trigger based UL MU operations by the STA.
  9035. * 0 - UL MU operations are enabled by the STA.
  9036. * 1 - All triggered UL MU transmissions are suspended by the STA.
  9037. *
  9038. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
  9039. * indicates the maximum number of space-time streams, NSTS, that
  9040. * the STA supports in transmission and is set to NSTS - 1.
  9041. *
  9042. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
  9043. * combined with the UL MU Disable subfield and the recipient's setting
  9044. * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
  9045. * capabilities to determine which HE TB PPDUs are possible by the
  9046. * STA to transmit.
  9047. * 0 - UL MU data operations are enabled by the STA.
  9048. * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
  9049. * bit is not set, else UL MU Tx is suspended.
  9050. *
  9051. * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN: 8-bit unsigned value in the EHT OM
  9052. * Control subfield combined with the Rx NSS subfield in the OM Control subfield
  9053. * indicates NSS - 1, where NSS is the maximum number of spatial streams that
  9054. * STA supports in reception for PPDU bandwidths less than or equal to 80 MHz.
  9055. *
  9056. * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN: 8-bit unsigned value indicates
  9057. * 320 MHz operating channel width supported by the EHT STA for both reception
  9058. * and transmission.
  9059. *
  9060. * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN: 8-bit unsigned value in the EHT OM
  9061. * Control subfield combined with the Tx NSTS subfield in OM Control subfield
  9062. * indicates NSTS - 1, where NSTS is the maximum number of space-time streams
  9063. * that the STA supports in transmission for PPDU bandwidths less than or equal
  9064. * to 80 MHz.
  9065. */
  9066. enum qca_wlan_vendor_attr_omi_tx {
  9067. QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
  9068. QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
  9069. QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
  9070. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
  9071. QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
  9072. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
  9073. QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN = 6,
  9074. QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN = 7,
  9075. QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN = 8,
  9076. /* keep last */
  9077. QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST,
  9078. QCA_WLAN_VENDOR_ATTR_OMI_MAX =
  9079. QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST - 1,
  9080. };
  9081. /* deprecated legacy names */
  9082. #define QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX \
  9083. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX
  9084. #define qca_wlan_vendor_attr_he_omi_tx \
  9085. qca_wlan_vendor_attr_omi_tx
  9086. #define QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST \
  9087. QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST
  9088. #define QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX \
  9089. QCA_WLAN_VENDOR_ATTR_OMI_MAX
  9090. /**
  9091. * enum qca_wlan_vendor_phy_mode - Different PHY modes
  9092. * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
  9093. *
  9094. * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
  9095. * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
  9096. * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
  9097. * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
  9098. * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
  9099. * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
  9100. * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
  9101. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
  9102. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
  9103. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
  9104. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
  9105. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
  9106. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
  9107. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
  9108. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
  9109. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
  9110. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
  9111. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
  9112. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
  9113. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
  9114. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
  9115. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
  9116. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
  9117. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
  9118. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
  9119. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
  9120. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
  9121. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
  9122. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
  9123. */
  9124. enum qca_wlan_vendor_phy_mode {
  9125. QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
  9126. QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
  9127. QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
  9128. QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
  9129. QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
  9130. QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
  9131. QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
  9132. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
  9133. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
  9134. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
  9135. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
  9136. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
  9137. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
  9138. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
  9139. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
  9140. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
  9141. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
  9142. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
  9143. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
  9144. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
  9145. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
  9146. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
  9147. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
  9148. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
  9149. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
  9150. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
  9151. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
  9152. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
  9153. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
  9154. };
  9155. /* Attributes for data used by
  9156. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
  9157. */
  9158. enum qca_wlan_vendor_attr_wifi_test_config {
  9159. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
  9160. /* 8-bit unsigned value to configure the driver to enable/disable
  9161. * WMM feature. This attribute is used to configure testbed device.
  9162. * 1-enable, 0-disable
  9163. */
  9164. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
  9165. /* 8-bit unsigned value to configure the driver to accept/reject
  9166. * the addba request from peer. This attribute is used to configure
  9167. * the testbed device.
  9168. * 1-accept addba, 0-reject addba
  9169. */
  9170. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
  9171. /* 8-bit unsigned value to configure the driver to send or not to
  9172. * send the addba request to peer.
  9173. * This attribute is used to configure the testbed device.
  9174. * 1-send addba, 0-do not send addba
  9175. */
  9176. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
  9177. /* 8-bit unsigned value to indicate the HE fragmentation support.
  9178. * Uses enum he_fragmentation_val values.
  9179. * This attribute is used to configure the testbed device to
  9180. * allow the advertised hardware capabilities to be downgraded
  9181. * for testing purposes.
  9182. */
  9183. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
  9184. /* 8-bit unsigned value to indicate the HE MCS support.
  9185. * Uses enum he_mcs_config values.
  9186. * This attribute is used to configure the testbed device to
  9187. * allow the advertised hardware capabilities to be downgraded
  9188. * for testing purposes.
  9189. */
  9190. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
  9191. /* 8-bit unsigned value to configure the driver to allow or not to
  9192. * allow the connection with WEP/TKIP in HT/VHT/HE modes.
  9193. * This attribute is used to configure the testbed device.
  9194. * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip
  9195. */
  9196. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
  9197. /* 8-bit unsigned value to configure the driver to add a
  9198. * new BA session or delete the existing BA session for
  9199. * given TID. ADDBA command uses the buffer size and tid
  9200. * configuration if user specifies the values else default
  9201. * value for buffer size is used for all tids if the tid
  9202. * also not specified. For DEL_BA command TID value is
  9203. * required to process the command.
  9204. * Uses enum qca_wlan_ba_session_config values.
  9205. * This attribute is used to configure the testbed device.
  9206. */
  9207. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
  9208. /* 16-bit unsigned value to configure the buffer size in addba
  9209. * request and response frames.
  9210. * This attribute is used to configure the testbed device.
  9211. * The range of the value is 0 to 256.
  9212. */
  9213. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
  9214. /* 8-bit unsigned value to configure the buffer size in addba
  9215. * request and response frames.
  9216. * This attribute is used to configure the testbed device.
  9217. */
  9218. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
  9219. /* 8-bit unsigned value to configure the no ack policy.
  9220. * To configure no ack policy, access category value
  9221. * is required to process the command.
  9222. * This attribute is used to configure the testbed device.
  9223. * 1 - enable no ack, 0 - disable no ack
  9224. */
  9225. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
  9226. /* 8-bit unsigned value to configure the AC for no ack policy
  9227. * This attribute is used to configure the testbed device.
  9228. * uses the enum qca_wlan_ac_type values
  9229. */
  9230. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
  9231. /* 8-bit unsigned value to configure the HE LTF
  9232. * This attribute is used to configure the testbed device.
  9233. * Uses the enum qca_wlan_he_ltf_cfg values.
  9234. */
  9235. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
  9236. /* 8-bit unsigned value to configure the tx beamformee.
  9237. * This attribute is used to configure the testbed device.
  9238. * 1 - enable, 0 - disable.
  9239. */
  9240. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
  9241. /* 8-bit unsigned value to configure the tx beamformee number of
  9242. * space-time streams.
  9243. * This attribute is used to configure the testbed device.
  9244. * The range of the value is 0 to 8
  9245. */
  9246. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
  9247. /* 8-bit unsigned value to configure the MU EDCA params for given AC
  9248. * This attribute is used to configure the testbed device.
  9249. * Uses the enum qca_wlan_ac_type values.
  9250. */
  9251. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
  9252. /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
  9253. * To configure MU EDCA AIFSN value, MU EDCA access category value
  9254. * is required to process the command.
  9255. * This attribute is used to configure the testbed device.
  9256. */
  9257. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
  9258. /* 8-bit unsigned value to configure the MU EDCA ECW min value for
  9259. * given AC.
  9260. * To configure MU EDCA ECW min value, MU EDCA access category value
  9261. * is required to process the command.
  9262. * This attribute is used to configure the testbed device.
  9263. */
  9264. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
  9265. /* 8-bit unsigned value to configure the MU EDCA ECW max value for
  9266. * given AC.
  9267. * To configure MU EDCA ECW max value, MU EDCA access category value
  9268. * is required to process the command.
  9269. * This attribute is used to configure the testbed device.
  9270. */
  9271. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
  9272. /* 8-bit unsigned value to configure the MU EDCA timer for given AC
  9273. * To configure MU EDCA timer value, MU EDCA access category value
  9274. * is required to process the command.
  9275. * This attribute is used to configure the testbed device.
  9276. */
  9277. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
  9278. /* 8-bit unsigned value to configure the HE trigger frame MAC padding
  9279. * duration.
  9280. * This attribute is used to configure the testbed device.
  9281. * Uses the enum qca_wlan_he_mac_padding_dur values.
  9282. */
  9283. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
  9284. /* 8-bit unsigned value to override the MU EDCA params to defaults
  9285. * regardless of the AP beacon MU EDCA params. If it is enabled use
  9286. * the default values else use the MU EDCA params from AP beacon.
  9287. * This attribute is used to configure the testbed device.
  9288. * 1 - enable override, 0 - disable.
  9289. */
  9290. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
  9291. /* 8-bit unsigned value to configure the support for receiving
  9292. * an MPDU that contains an operating mode control subfield.
  9293. * This attribute is used to configure the testbed device.
  9294. * 1-enable, 0-disable.
  9295. */
  9296. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
  9297. /* Nested attribute values required to setup the TWT session.
  9298. * enum qca_wlan_vendor_attr_twt_setup provides the necessary
  9299. * information to set up the session. It contains broadcast flags,
  9300. * set_up flags, trigger value, flow type, flow ID, wake interval
  9301. * exponent, protection, target wake time, wake duration, wake interval
  9302. * mantissa. These nested attributes are used to setup a host triggered
  9303. * TWT session.
  9304. */
  9305. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
  9306. /* This nested attribute is used to terminate the current TWT session.
  9307. * It does not currently carry any attributes.
  9308. */
  9309. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
  9310. /* This nested attribute is used to suspend the current TWT session.
  9311. * It does not currently carry any attributes.
  9312. */
  9313. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
  9314. /* Nested attribute values to indicate the request for resume.
  9315. * This attribute is used to resume the TWT session.
  9316. * enum qca_wlan_vendor_attr_twt_resume provides the necessary
  9317. * parameters required to resume the TWT session.
  9318. */
  9319. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
  9320. /* 8-bit unsigned value to set the HE operating mode control
  9321. * (OM CTRL) Channel Width subfield.
  9322. * The Channel Width subfield indicates the operating channel width
  9323. * supported by the STA for both reception and transmission.
  9324. * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
  9325. * This setting is cleared with the
  9326. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  9327. * flag attribute to reset defaults.
  9328. * This attribute is used to configure the testbed device.
  9329. */
  9330. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
  9331. /* 8-bit unsigned value to configure the number of spatial
  9332. * streams in HE operating mode control field.
  9333. * This setting is cleared with the
  9334. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  9335. * flag attribute to reset defaults.
  9336. * This attribute is used to configure the testbed device.
  9337. */
  9338. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
  9339. /* Flag attribute to configure the UL MU disable bit in
  9340. * HE operating mode control field.
  9341. * This setting is cleared with the
  9342. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  9343. * flag attribute to reset defaults.
  9344. * This attribute is used to configure the testbed device.
  9345. */
  9346. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
  9347. /* Flag attribute to clear the previously set HE operating mode
  9348. * control field configuration.
  9349. * This attribute is used to configure the testbed device to reset
  9350. * defaults to clear any previously set HE operating mode control
  9351. * field configuration.
  9352. */
  9353. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
  9354. /* 8-bit unsigned value to configure HE single user PPDU
  9355. * transmission. By default this setting is disabled and it
  9356. * is disabled in the reset defaults of the device configuration.
  9357. * This attribute is used to configure the testbed device.
  9358. * 1-enable, 0-disable
  9359. */
  9360. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
  9361. /* 8-bit unsigned value to configure action frame transmission
  9362. * in HE trigger based PPDU transmission.
  9363. * By default this setting is disabled and it is disabled in
  9364. * the reset defaults of the device configuration.
  9365. * This attribute is used to configure the testbed device.
  9366. * 1-enable, 0-disable
  9367. */
  9368. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
  9369. /* Nested attribute to indicate HE operating mode control field
  9370. * transmission. It contains operating mode control field Nss,
  9371. * channel bandwidth, Tx Nsts and UL MU disable attributes.
  9372. * These nested attributes are used to send HE operating mode control
  9373. * with configured values.
  9374. * Uses the enum qca_wlan_vendor_attr_omi_tx attributes.
  9375. * This attribute is used to configure the testbed device.
  9376. */
  9377. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX = 33,
  9378. /* 8-bit unsigned value to configure +HTC_HE support to indicate the
  9379. * support for the reception of a frame that carries an HE variant
  9380. * HT Control field.
  9381. * This attribute is used to configure the testbed device.
  9382. * 1-enable, 0-disable
  9383. */
  9384. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
  9385. /* 8-bit unsigned value to configure VHT support in 2.4G band.
  9386. * This attribute is used to configure the testbed device.
  9387. * 1-enable, 0-disable
  9388. */
  9389. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
  9390. /* 8-bit unsigned value to configure HE testbed defaults.
  9391. * This attribute is used to configure the testbed device.
  9392. * 1-set the device HE capabilities to testbed defaults.
  9393. * 0-reset the device HE capabilities to supported config.
  9394. */
  9395. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
  9396. /* 8-bit unsigned value to configure twt request support.
  9397. * This attribute is used to configure the testbed device.
  9398. * 1-enable, 0-disable.
  9399. */
  9400. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
  9401. /* 8-bit unsigned value to configure protection for Management
  9402. * frames when PMF is enabled for the association.
  9403. * This attribute is used to configure the testbed device.
  9404. * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
  9405. */
  9406. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
  9407. /* Flag attribute to inject Disassociation frame to the connected AP.
  9408. * This attribute is used to configure the testbed device.
  9409. */
  9410. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
  9411. /* 8-bit unsigned value to configure an override for the RSNXE Used
  9412. * subfield in the MIC control field of the FTE in FT Reassociation
  9413. * Request frame.
  9414. * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
  9415. * This attribute is used to configure the testbed device.
  9416. * This attribute can be configured when STA is in disconnected or
  9417. * associated state and the configuration is valid until the next
  9418. * disconnection.
  9419. */
  9420. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
  9421. /* 8-bit unsigned value to configure the driver to ignore CSA (Channel
  9422. * Switch Announcement) when STA is in connected state.
  9423. * 0 - Default behavior, 1 - Ignore CSA.
  9424. * This attribute is used to configure the testbed device.
  9425. * This attribute can be configured when STA is in disconnected or
  9426. * associated state and the configuration is valid until the next
  9427. * disconnection.
  9428. */
  9429. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
  9430. /* Nested attribute values required to configure OCI (Operating Channel
  9431. * Information). Attributes defined in enum
  9432. * qca_wlan_vendor_attr_oci_override are nested within this attribute.
  9433. * This attribute is used to configure the testbed device.
  9434. * This attribute can be configured when STA is in disconnected or
  9435. * associated state and the configuration is valid until the next
  9436. * disconnection.
  9437. */
  9438. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
  9439. /* 8-bit unsigned value to configure the driver/firmware to ignore SA
  9440. * Query timeout. If this configuration is enabled STA shall not send
  9441. * Deauthentication frmae when SA Query times out (mainly, after a
  9442. * channel switch when OCV is enabled).
  9443. * 0 - Default behavior, 1 - Ignore SA Query timeout.
  9444. * This attribute is used to configure the testbed device.
  9445. * This attribute can be configured only when STA is in associated state
  9446. * and the configuration is valid until the disconnection.
  9447. */
  9448. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
  9449. /* 8-bit unsigned value to configure the driver/firmware to start or
  9450. * stop transmitting FILS discovery frames.
  9451. * 0 - Stop transmitting FILS discovery frames
  9452. * 1 - Start transmitting FILS discovery frames
  9453. * This attribute is used to configure the testbed device.
  9454. * This attribute can be configured only in AP mode and the
  9455. * configuration is valid until AP restart.
  9456. */
  9457. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
  9458. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9459. * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
  9460. * information field.
  9461. * 0 - Disable full bandwidth UL MU-MIMO subfield
  9462. * 1 - Enable full bandwidth UL MU-MIMO subfield
  9463. * This attribute is used to configure the testbed device.
  9464. */
  9465. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
  9466. /* 16-bit unsigned value to configure the driver with a specific BSS
  9467. * max idle period to advertise in the BSS Max Idle Period element
  9468. * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
  9469. * This attribute is used to configure the testbed device.
  9470. */
  9471. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
  9472. /* 8-bit unsigned value to configure the driver to use only RU 242 tone
  9473. * for data transmission.
  9474. * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
  9475. * This attribute is used to configure the testbed device.
  9476. */
  9477. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
  9478. /* 8-bit unsigned value to configure the driver to disable data and
  9479. * management response frame transmission to test the BSS max idle
  9480. * feature.
  9481. * 0 - Default behavior, 1 - Disable data and management response Tx.
  9482. * This attribute is used to configure the testbed device.
  9483. */
  9484. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
  9485. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9486. * disable Punctured Preamble Rx subfield in the HE PHY capabilities
  9487. * information field.
  9488. * 0 - Disable Punctured Preamble Rx subfield
  9489. * 1 - Enable Punctured Preamble Rx subfield
  9490. * This attribute is used to configure the testbed device.
  9491. */
  9492. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
  9493. /* 8-bit unsigned value to configure the driver to ignore the SAE H2E
  9494. * requirement mismatch for 6 GHz connection.
  9495. * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
  9496. * This attribute is used to configure the testbed device.
  9497. */
  9498. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
  9499. /* 8-bit unsigned value to configure the driver to allow 6 GHz
  9500. * connection with all security modes.
  9501. * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
  9502. * modes.
  9503. * This attribute is used for testing purposes.
  9504. */
  9505. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
  9506. /* 8-bit unsigned value to configure the driver to transmit data with
  9507. * ER SU PPDU type.
  9508. *
  9509. * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
  9510. * This attribute is used for testing purposes.
  9511. */
  9512. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
  9513. /* 8-bit unsigned value to configure the driver to use Data or
  9514. * Management frame type for keep alive data.
  9515. * Uses enum qca_wlan_keep_alive_data_type values.
  9516. *
  9517. * This attribute is used for testing purposes.
  9518. */
  9519. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
  9520. /* 8-bit unsigned value to configure the driver to use scan request
  9521. * BSSID value in Probe Request frame RA(A1) during the scan. The
  9522. * driver saves this configuration and applies this setting to all user
  9523. * space scan requests until the setting is cleared. If this
  9524. * configuration is set, the driver uses the BSSID value from the scan
  9525. * request to set the RA(A1) in the Probe Request frames during the
  9526. * scan.
  9527. *
  9528. * 0 - Default behavior uses the broadcast RA in Probe Request frames.
  9529. * 1 - Uses the scan request BSSID in RA in Probe Request frames.
  9530. * This attribute is used for testing purposes.
  9531. */
  9532. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
  9533. /* 8-bit unsigned value to configure the driver to enable/disable the
  9534. * BSS max idle period support.
  9535. *
  9536. * 0 - Disable the BSS max idle support.
  9537. * 1 - Enable the BSS max idle support.
  9538. * This attribute is used for testing purposes.
  9539. */
  9540. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
  9541. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9542. * disable Rx control frame to MultiBSS subfield in the HE MAC
  9543. * capabilities information field.
  9544. * 0 - Disable Rx control frame to MultiBSS subfield
  9545. * 1 - Enable Rx control frame to MultiBSS subfield
  9546. * This attribute is used to configure the testbed device.
  9547. */
  9548. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
  9549. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9550. * disable Broadcast TWT support subfield in the HE MAC capabilities
  9551. * information field.
  9552. * 0 - Disable Broadcast TWT support subfield
  9553. * 1 - Enable Broadcast TWT support subfield
  9554. * This attribute is used to configure the testbed device.
  9555. */
  9556. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
  9557. /* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
  9558. * mode for 802.11be MLO capable devices. If the attribute is set to 1,
  9559. * and if the FW supports this capability too, then the STA host
  9560. * advertises this capability to AP over assoc request frame. This
  9561. * attribute will not have any effect on legacy devices with no 802.11be
  9562. * support.
  9563. * 0 - Default behavior
  9564. * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
  9565. * This attribute is used to configure the testbed device.
  9566. */
  9567. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
  9568. /* 8-bit unsigned value to configure the driver to enable/disable the
  9569. * periodic sounding for Tx beamformer functionality. The default
  9570. * behavior uses algorithm to do sounding based on packet stats.
  9571. *
  9572. * 0 - Default behavior.
  9573. * 1 - Enable the periodic sounding for Tx beamformer.
  9574. * This attribute is used for testing purposes.
  9575. */
  9576. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59,
  9577. /* 8-bit unsigned value to configure beamformee SS EHT capability
  9578. * to indicate the maximum number of spatial streams that the STA
  9579. * can receive in an EHT sounding NDP for <= 80 MHz bandwidth.
  9580. * The range of the value is 3 to 7.
  9581. * This attribute is used to configure the testbed device.
  9582. */
  9583. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_80MHZ = 60,
  9584. /* 8-bit unsigned value to configure beamformee SS EHT capability
  9585. * to indicate the maximum number of spatial streams that the STA
  9586. * can receive in an EHT sounding NDP for 160 MHz bandwidth.
  9587. * The range of the value is 3 to 7.
  9588. * This attribute is used to configure the testbed device.
  9589. */
  9590. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_160MHZ = 61,
  9591. /* 8-bit unsigned value to configure beamformee SS EHT capability
  9592. * to indicate the maximum number of spatial streams that the STA
  9593. * can receive in an EHT sounding NDP for 320 MHz bandwidth.
  9594. * The range of the value is 3 to 7.
  9595. * This attribute is used to configure the testbed device.
  9596. */
  9597. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_320MHZ = 62,
  9598. /* 8-bit unsigned value to configure the driver to exclude station
  9599. * profile in Probe Request frame Multi-Link element.
  9600. * 0 - Default behavior, sends the Probe Request frame with station
  9601. * profile data included in the Multi-Link element.
  9602. * 1 - Exclude station profile in Probe Request frame Multi-Link
  9603. * element.
  9604. * This attribute is used to configure the testbed device.
  9605. */
  9606. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EXCLUDE_STA_PROF_IN_PROBE_REQ = 63,
  9607. /* 8-bit unsigned value to configure EHT testbed defaults.
  9608. * This attribute is used to configure the testbed device.
  9609. * 1 - Set the device EHT capabilities to testbed defaults.
  9610. * 0 - Reset the device EHT capabilities to supported config.
  9611. */
  9612. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_EHT_TESTBED_DEFAULTS = 64,
  9613. /* 8-bit unsigned value to indicate the EHT MCS support.
  9614. * Uses enum eht_mcs_config values.
  9615. * This attribute is used to configure the testbed device to
  9616. * allow the advertised hardware capabilities to be downgraded
  9617. * for testing purposes.
  9618. */
  9619. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MCS = 65,
  9620. /* 8-bit unsigned value to configure EHT TB Sounding Feedback
  9621. * Rate Limit capability.
  9622. * This attribute is used to configure the testbed device.
  9623. * 0 - Indicates no maximum supported data rate limitation.
  9624. * 1 - Indicates the maximum supported data rate is the lower of
  9625. * the 1500 Mb/s and the maximum supported data rate.
  9626. */
  9627. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_TB_SOUNDING_FB_RL = 66,
  9628. /* 8-bit unsigned value to configure the support for receiving an MPDU
  9629. * that contains an EHT operating mode control subfield.
  9630. * This attribute is used to configure the testbed device.
  9631. * 1-enable, 0-disable.
  9632. */
  9633. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_OM_CTRL_SUPPORT = 67,
  9634. /* 8-bit unsigned value to configure the driver with EMLSR padding delay
  9635. * subfield value.
  9636. *
  9637. * 0 - 0 us
  9638. * 1 - 32 us
  9639. * 2 - 64 us
  9640. * 3 - 128 us
  9641. * 4 - 256 us
  9642. * 5-255 - Reserved
  9643. *
  9644. * This attribute is used for testing purposes.
  9645. */
  9646. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EMLSR_PADDING_DELAY = 68,
  9647. /*
  9648. * 8-bit unsigned value to indicate the firmware to force the active MLO
  9649. * links to power save mode for the configured number of beacon periods.
  9650. * This allows the firmware to suspend STA links for X beacon periods
  9651. * and remain asleep even if the AP advertises TIM as opposed to regular
  9652. * power save mode where STA links wake up if the AP indicates that it
  9653. * has buffered data to send.
  9654. * This attribute is used to configure the testbed device.
  9655. */
  9656. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FORCE_MLO_POWER_SAVE_BCN_PERIOD = 69,
  9657. /*
  9658. * 8-bit unsigned value to indicate the firmware to be in STR MLMR mode
  9659. * to enable simultaneous transmission of PPDUs on all active links.
  9660. * 0 - Default behavior
  9661. * 1 - Enter STR mode for simultaneous data transmission on all links
  9662. */
  9663. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_STR_TX = 70,
  9664. /* Nested attribute to indicate EHT MLO links on which powersave to be
  9665. * enabled. It contains link ID attributes. These nested attributes are
  9666. * of the type u8 and are used to enable the powersave on associated
  9667. * MLO links corresponding to the link IDs provided in the command.
  9668. * This attribute is used to configure the testbed device.
  9669. */
  9670. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_LINK_POWER_SAVE = 71,
  9671. /* 8-bit unsigned value to configure the MLD ID of the BSS whose link
  9672. * info is requested in the ML Probe Request frame. In the MLO-MBSSID
  9673. * testcase, STA can request information of non-Tx BSS through Tx BSS
  9674. * by configuring non-Tx BSS MLD ID within the ML probe request that
  9675. * is transmitted via host initiated scan request.
  9676. *
  9677. * This attribute is used for testing purposes.
  9678. */
  9679. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MLD_ID_ML_PROBE_REQ = 72,
  9680. /* keep last */
  9681. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
  9682. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
  9683. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
  9684. };
  9685. /**
  9686. * enum qca_wlan_twt_operation - Operation of the config TWT request
  9687. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
  9688. * The response for the respective operations can be either synchronous or
  9689. * asynchronous (wherever specified). If synchronous, the response to this
  9690. * operation is obtained in the corresponding vendor command reply to the user
  9691. * space. For the asynchronous case the response is obtained as an event with
  9692. * the same operation type.
  9693. *
  9694. * Drivers shall support either of these modes but not both simultaneously.
  9695. * This support for asynchronous mode is advertised through the flag
  9696. * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
  9697. * the driver shall support synchronous mode.
  9698. *
  9699. * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
  9700. * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9701. * qca_wlan_vendor_attr_twt_setup. Depending upon the
  9702. * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
  9703. * synchronous or asynchronous operation.
  9704. *
  9705. * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
  9706. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9707. * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
  9708. *
  9709. * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
  9710. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9711. * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
  9712. * This terminate can either get triggered by the user space or can as well be
  9713. * a notification from the firmware if it initiates a terminate.
  9714. * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
  9715. * the request from user space can either be a synchronous or asynchronous
  9716. * operation.
  9717. *
  9718. * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
  9719. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9720. * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
  9721. * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
  9722. * this is either a synchronous or asynchronous operation.
  9723. *
  9724. * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
  9725. * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9726. * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
  9727. * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
  9728. * request.
  9729. * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
  9730. * capability, this is either a synchronous or asynchronous operation.
  9731. *
  9732. * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
  9733. * combination of suspend and resume in a single request. Required parameters
  9734. * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
  9735. * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
  9736. * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
  9737. * capability, this is either a synchronous or asynchronous operation.
  9738. *
  9739. * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
  9740. * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
  9741. * session is setup. It's a synchronous operation.
  9742. *
  9743. * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
  9744. * Valid only after the TWT session is setup. It's a synchronous operation.
  9745. *
  9746. * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
  9747. * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
  9748. * operation.
  9749. *
  9750. * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is
  9751. * ready for a new TWT session setup after it issued a twt teardown.
  9752. *
  9753. * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
  9754. * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
  9755. * the enum qca_wlan_vendor_attr_twt_set_param.
  9756. *
  9757. * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
  9758. * related information for example TWT required bit in AP capabilities etc.
  9759. * The reason for the notification is sent using
  9760. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
  9761. */
  9762. enum qca_wlan_twt_operation {
  9763. QCA_WLAN_TWT_SET = 0,
  9764. QCA_WLAN_TWT_GET = 1,
  9765. QCA_WLAN_TWT_TERMINATE = 2,
  9766. QCA_WLAN_TWT_SUSPEND = 3,
  9767. QCA_WLAN_TWT_RESUME = 4,
  9768. QCA_WLAN_TWT_NUDGE = 5,
  9769. QCA_WLAN_TWT_GET_STATS = 6,
  9770. QCA_WLAN_TWT_CLEAR_STATS = 7,
  9771. QCA_WLAN_TWT_GET_CAPABILITIES = 8,
  9772. QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
  9773. QCA_WLAN_TWT_SET_PARAM = 10,
  9774. QCA_WLAN_TWT_NOTIFY = 11,
  9775. };
  9776. /* enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
  9777. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT
  9778. *
  9779. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION:
  9780. * u8 attribute. Specify the TWT operation of this request. Possible values
  9781. * are defined in enum qca_wlan_twt_operation. The parameters for the
  9782. * respective operation is specified through
  9783. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
  9784. *
  9785. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
  9786. * parameters configured for TWT. These parameters are represented by
  9787. * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
  9788. * enum qca_wlan_vendor_attr_twt_set_param or
  9789. * enum qca_wlan_vendor_attr_twt_stats based on the operation.
  9790. *
  9791. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
  9792. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
  9793. * The values used by this attribute are defined in
  9794. * enum qca_wlan_vendor_twt_status.
  9795. */
  9796. enum qca_wlan_vendor_attr_config_twt {
  9797. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
  9798. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
  9799. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
  9800. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
  9801. /* keep last */
  9802. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
  9803. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
  9804. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
  9805. };
  9806. /**
  9807. * qca_wlan_twt_setup_state: Represents the TWT session states.
  9808. *
  9809. * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
  9810. * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
  9811. * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
  9812. */
  9813. enum qca_wlan_twt_setup_state {
  9814. QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
  9815. QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
  9816. QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
  9817. };
  9818. /**
  9819. * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
  9820. * TWT (Target Wake Time) setup request. These attributes are sent as part of
  9821. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
  9822. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
  9823. * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9824. *
  9825. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
  9826. * Disable (flag attribute not present) - Individual TWT
  9827. * Enable (flag attribute present) - Broadcast TWT.
  9828. * Individual means the session is between the STA and the AP.
  9829. * This session is established using a separate negotiation between
  9830. * STA and AP.
  9831. * Broadcast means the session is across multiple STAs and an AP. The
  9832. * configuration parameters are announced in Beacon frames by the AP.
  9833. * This is used in
  9834. * 1. TWT SET Request and Response
  9835. * 2. TWT GET Response
  9836. *
  9837. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
  9838. * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
  9839. * specify the TWT request type. This is used in TWT SET operation.
  9840. *
  9841. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
  9842. * Enable (flag attribute present) - TWT with trigger support.
  9843. * Disable (flag attribute not present) - TWT without trigger support.
  9844. * Trigger means the AP will send the trigger frame to allow STA to send data.
  9845. * Without trigger, the STA will wait for the MU EDCA timer before
  9846. * transmitting the data.
  9847. * This is used in
  9848. * 1. TWT SET Request and Response
  9849. * 2. TWT GET Response
  9850. *
  9851. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
  9852. * 0 - Announced TWT - In this mode, STA may skip few service periods to
  9853. * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
  9854. * NULL frame to AP.
  9855. * 1 - Unannounced TWT - The STA will wakeup during every SP.
  9856. * This is a required parameter for
  9857. * 1. TWT SET Request and Response
  9858. * 2. TWT GET Response
  9859. *
  9860. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
  9861. * Flow ID is the unique identifier for each TWT session.
  9862. * If not provided then dialog ID will be set to zero.
  9863. * This is an optional parameter for
  9864. * 1. TWT SET Request and Response
  9865. * 2. TWT GET Request and Response
  9866. * 3. TWT TERMINATE Request and Response
  9867. * 4. TWT SUSPEND Request and Response
  9868. * Flow Id values from 0 to 254 represent a single TWT session
  9869. * Flow ID value of 255 represents all twt sessions for the following
  9870. * 1. TWT TERMINATE Request and Response
  9871. * 2. TWT SUSPEND Request and Response
  9872. * 4. TWT CLEAR STATISTICS request
  9873. * 5. TWT GET STATISTICS request and response
  9874. * If an invalid dialog id is provided, status
  9875. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  9876. *
  9877. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
  9878. * This attribute (exp) is used along with the mantissa to derive the
  9879. * wake interval using the following formula:
  9880. * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
  9881. * Wake interval is the interval between 2 successive SP.
  9882. * This is a required parameter for
  9883. * 1. TWT SET Request and Response
  9884. * 2. TWT GET Response
  9885. *
  9886. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
  9887. * Enable (flag attribute present) - Protection required.
  9888. * Disable (flag attribute not present) - Protection not required.
  9889. * If protection is enabled, then the AP will use protection
  9890. * mechanism using RTS/CTS to self to reserve the airtime.
  9891. * This is used in
  9892. * 1. TWT SET Request and Response
  9893. * 2. TWT GET Response
  9894. *
  9895. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
  9896. * This attribute is used as the SP offset which is the offset from
  9897. * TSF after which the wake happens. The units are in microseconds. If
  9898. * this attribute is not provided, then the value will be set to zero.
  9899. * This is an optional parameter for
  9900. * 1. TWT SET Request and Response
  9901. * 2. TWT GET Response
  9902. *
  9903. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
  9904. * This is the duration of the service period. This is specified as
  9905. * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
  9906. * This is a required parameter for
  9907. * 1. TWT SET Request and Response
  9908. * 2. TWT GET Response
  9909. *
  9910. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
  9911. * This attribute is used to configure wake interval mantissa.
  9912. * The units are in TU.
  9913. * This is a required parameter for
  9914. * 1. TWT SET Request and Response
  9915. * 2. TWT GET Response
  9916. *
  9917. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
  9918. * This field is applicable for TWT response only.
  9919. * This contains status values in enum qca_wlan_vendor_twt_status
  9920. * and is passed to the userspace. This is used in TWT SET operation.
  9921. * This is a required parameter for
  9922. * 1. TWT SET Response
  9923. * 2. TWT TERMINATE Response
  9924. * 3. TWT SUSPEND Response
  9925. * 4. TWT RESUME Response
  9926. * 5. TWT NUDGE Response
  9927. *
  9928. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
  9929. * This field is applicable for TWT response only.
  9930. * This field contains response type from the TWT responder and is
  9931. * passed to the userspace. The values for this field are defined in
  9932. * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
  9933. * response.
  9934. *
  9935. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
  9936. * In TWT setup command this field contains absolute TSF that will
  9937. * be used by TWT requester during setup.
  9938. * In TWT response this field contains absolute TSF value of the
  9939. * wake time received from the TWT responder and is passed to
  9940. * the userspace.
  9941. * This is an optional parameter for
  9942. * 1. TWT SET Request
  9943. * This is a required parameter for
  9944. * 1. TWT SET Response
  9945. * 2. TWT GET Response
  9946. *
  9947. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
  9948. * Enable (flag attribute present) - Indicates that the TWT responder
  9949. * supports reception of TWT information frame from the TWT requestor.
  9950. * Disable (flag attribute not present) - Indicates that the responder
  9951. * doesn't support reception of TWT information frame from requestor.
  9952. * This is used in
  9953. * 1. TWT SET Response
  9954. * 2. TWT GET Response
  9955. *
  9956. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
  9957. * Represents the MAC address of the peer for which the TWT session
  9958. * is being configured. This is used in AP mode to represent the respective
  9959. * client
  9960. * In AP mode, this is a required parameter in response for
  9961. * 1. TWT SET
  9962. * 2. TWT GET
  9963. * 3. TWT TERMINATE
  9964. * 4. TWT SUSPEND
  9965. * In STA mode, this is an optional parameter in request and response for
  9966. * the above four TWT operations.
  9967. * In AP mode, this is a required parameter in request for
  9968. * 1. TWT GET
  9969. * 2. TWT TERMINATE
  9970. *
  9971. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
  9972. * Minimum tolerance limit of wake interval parameter in microseconds.
  9973. *
  9974. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
  9975. * Maximum tolerance limit of wake interval parameter in microseconds.
  9976. *
  9977. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
  9978. * Minimum tolerance limit of wake duration parameter in microseconds.
  9979. *
  9980. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
  9981. * Maximum tolerance limit of wake duration parameter in microseconds.
  9982. *
  9983. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
  9984. * TWT state for the given dialog id. The values for this are represented
  9985. * by enum qca_wlan_twt_setup_state.
  9986. * This is obtained through TWT GET operation.
  9987. *
  9988. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
  9989. * This attribute is used to configure wake interval mantissa.
  9990. * The unit is microseconds. This attribute, when specified, takes
  9991. * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
  9992. * This parameter is used for
  9993. * 1. TWT SET Request and Response
  9994. * 2. TWT GET Response
  9995. *
  9996. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
  9997. * This attribute is used to configure Broadcast TWT ID.
  9998. * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
  9999. * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
  10000. * This parameter is used for
  10001. * 1. TWT SET Request
  10002. * 2. TWT TERMINATE Request
  10003. *
  10004. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
  10005. * This attribute is used to configure Broadcast TWT recommendation.
  10006. * The Broadcast TWT Recommendation subfield contains a value that indicates
  10007. * recommendations on the types of frames that are transmitted by TWT
  10008. * scheduled STAs and scheduling AP during the broadcast TWT SP.
  10009. * The allowed values are 0 - 3.
  10010. * This parameter is used for
  10011. * 1. TWT SET Request
  10012. *
  10013. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
  10014. * This attribute is used to configure Broadcast TWT Persistence.
  10015. * The Broadcast TWT Persistence subfield indicates the number of
  10016. * TBTTs during which the Broadcast TWT SPs corresponding to this
  10017. * broadcast TWT Parameter set are present. The number of beacon intervals
  10018. * during which the Broadcast TWT SPs are present is equal to the value in the
  10019. * Broadcast TWT Persistence subfield plus 1 except that the value 255
  10020. * indicates that the Broadcast TWT SPs are present until explicitly terminated.
  10021. * This parameter is used for
  10022. * 1. TWT SET Request
  10023. *
  10024. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
  10025. * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
  10026. * from TWT response frame.
  10027. * This parameter is used for
  10028. * 1. TWT SET Response
  10029. * 2. TWT GET Response
  10030. *
  10031. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
  10032. * This attribute is used to configure the announce timeout value (in us) in
  10033. * firmware. This timeout value is only applicable for announced TWT. If
  10034. * timeout value is non-zero then firmware waits upto timeout value to use
  10035. * data frame as announcement frame. If timeout value is 0 then firmware sends
  10036. * explicit QoS NULL frame as announcement frame on SP start. Default value in
  10037. * firmware is 0.
  10038. * This parameter is used for
  10039. * 1. TWT SET Request
  10040. */
  10041. enum qca_wlan_vendor_attr_twt_setup {
  10042. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
  10043. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
  10044. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
  10045. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
  10046. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
  10047. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
  10048. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
  10049. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
  10050. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
  10051. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
  10052. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
  10053. /* TWT Response only attributes */
  10054. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
  10055. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
  10056. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
  10057. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
  10058. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
  10059. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
  10060. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
  10061. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
  10062. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
  10063. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
  10064. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
  10065. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
  10066. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
  10067. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
  10068. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
  10069. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
  10070. /* keep last */
  10071. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
  10072. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
  10073. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
  10074. };
  10075. /**
  10076. * enum qca_wlan_vendor_twt_status - Represents the status of the requested
  10077. * TWT operation
  10078. *
  10079. * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
  10080. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
  10081. * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
  10082. * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
  10083. * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
  10084. * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
  10085. * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
  10086. * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
  10087. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
  10088. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
  10089. * request/response frame
  10090. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
  10091. * frame
  10092. * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
  10093. * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
  10094. * unknown reason
  10095. * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
  10096. * suspend state
  10097. * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
  10098. * invalid IE in the received TWT frame
  10099. * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
  10100. * the responder are not in the specified range
  10101. * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
  10102. * session due to request from the responder. Used on the TWT_TERMINATE
  10103. * notification from the firmware.
  10104. * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
  10105. * session due to roaming. Used on the TWT_TERMINATE notification from the
  10106. * firmware.
  10107. * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
  10108. * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel)
  10109. * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
  10110. * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
  10111. * request due to roaming in progress.
  10112. * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
  10113. * setup request due to channel switch in progress.
  10114. * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
  10115. * request due to scan in progress.
  10116. * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
  10117. * terminate an existing TWT session on power save exit request from userspace.
  10118. * Used on the TWT_TERMINATE notification from the driver/firmware.
  10119. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
  10120. * required bit in its capabilities.
  10121. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
  10122. * the TWT required bit(1->0) in its capabilities.
  10123. */
  10124. enum qca_wlan_vendor_twt_status {
  10125. QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
  10126. QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
  10127. QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
  10128. QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
  10129. QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
  10130. QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
  10131. QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
  10132. QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
  10133. QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
  10134. QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
  10135. QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
  10136. QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
  10137. QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
  10138. QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
  10139. QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
  10140. QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
  10141. QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
  10142. QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
  10143. QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
  10144. QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
  10145. QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
  10146. QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
  10147. QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
  10148. QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
  10149. QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
  10150. };
  10151. /**
  10152. * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
  10153. * TWT (Target Wake Time) resume request. These attributes are sent as part of
  10154. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
  10155. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
  10156. * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  10157. *
  10158. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
  10159. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
  10160. * These attributes are used as the SP offset which is the offset from TSF after
  10161. * which the wake happens. The units are in microseconds. Please note that
  10162. * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
  10163. * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
  10164. * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
  10165. * will be set to zero.
  10166. *
  10167. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
  10168. * This attribute represents the next TWT subfield size.
  10169. * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
  10170. * and 4 for 64 bits.
  10171. *
  10172. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
  10173. * Flow ID is the unique identifier for each TWT session. This attribute
  10174. * represents the respective TWT session to resume.
  10175. * Flow Id values from 0 to 254 represent a single TWT session
  10176. * Flow ID value of 255 represents all TWT sessions.
  10177. * If an invalid dialog id is provided, status
  10178. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  10179. *
  10180. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
  10181. * Represents the MAC address of the peer to which TWT Resume is
  10182. * being sent. This is used in AP mode to represent the respective
  10183. * client and is a required parameter. In STA mode, this is an optional
  10184. * parameter
  10185. *
  10186. */
  10187. enum qca_wlan_vendor_attr_twt_resume {
  10188. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
  10189. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
  10190. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
  10191. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
  10192. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
  10193. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
  10194. /* keep last */
  10195. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
  10196. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
  10197. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
  10198. };
  10199. /**
  10200. * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
  10201. * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
  10202. * and resume in a single request. These attributes are sent as part of
  10203. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  10204. *
  10205. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
  10206. * Flow ID is the unique identifier for each TWT session. This attribute
  10207. * represents the respective TWT session to suspend and resume.
  10208. *
  10209. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
  10210. * Flow ID is the unique identifier for each TWT session. This attribute
  10211. * represents the respective TWT session to suspend and resume.
  10212. * Flow Id values from 0 to 254 represent a single TWT session
  10213. * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
  10214. * and response.
  10215. * If an invalid dialog id is provided, status
  10216. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  10217. *
  10218. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
  10219. * This attribute is used as the SP offset which is the offset from
  10220. * TSF after which the wake happens. The units are in microseconds.
  10221. *
  10222. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
  10223. * This attribute represents the next TWT subfield size.
  10224. * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
  10225. * and 4 for 64 bits.
  10226. *
  10227. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
  10228. * Represents the MAC address of the peer to which TWT Suspend and Resume is
  10229. * being sent. This is used in AP mode to represent the respective
  10230. * client and is a required parameter. In STA mode, this is an optional
  10231. * parameter.
  10232. *
  10233. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
  10234. * This field contains absolute TSF value of the time at which twt
  10235. * sesion will be resumed.
  10236. *
  10237. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32)
  10238. * This field will be used when device supports Flexible TWT.
  10239. * This field contains an offset value by which to shift the starting time
  10240. * of the next service period. The value of offset can be negative or positive.
  10241. * If provided, this attribute will override
  10242. * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds.
  10243. */
  10244. enum qca_wlan_vendor_attr_twt_nudge {
  10245. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
  10246. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
  10247. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
  10248. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
  10249. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
  10250. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
  10251. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6,
  10252. /* keep last */
  10253. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
  10254. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
  10255. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
  10256. };
  10257. /**
  10258. * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
  10259. * TWT (Target Wake Time) get statistics and clear statistics request.
  10260. * These attributes are sent as part of
  10261. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  10262. *
  10263. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
  10264. * Flow ID is the unique identifier for each TWT session. This attribute
  10265. * represents the respective TWT session for get and clear TWT statistics.
  10266. * Flow Id values from 0 to 254 represent a single TWT session
  10267. * Flow ID value of 255 represents all TWT sessions in
  10268. * 1) TWT GET STATISTICS request and response
  10269. * 2) TWT CLEAR STATISTICS request
  10270. *
  10271. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
  10272. * Represents the MAC address of the peer for which TWT Statistics
  10273. * is required.
  10274. * In AP mode this is used to represent the respective
  10275. * client and is a required parameter for
  10276. * 1) TWT GET STATISTICS request and response
  10277. * 2) TWT CLEAR STATISTICS request and response
  10278. * In STA mode, this is an optional parameter.
  10279. *
  10280. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
  10281. * This is the duration of the service period in microseconds.
  10282. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10283. *
  10284. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
  10285. * Average of actual wake duration observed so far. Unit is microseconds.
  10286. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10287. *
  10288. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
  10289. * Number of TWT service period elapsed so far.
  10290. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10291. *
  10292. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
  10293. * This is the minimum value of wake duration observed across
  10294. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
  10295. * microseconds.
  10296. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10297. *
  10298. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
  10299. * This is the maximum value of wake duration observed across
  10300. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
  10301. * microseconds.
  10302. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10303. *
  10304. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
  10305. * Average number of MPDU's transmitted successfully across
  10306. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  10307. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10308. *
  10309. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
  10310. * Average number of MPDU's received successfully across
  10311. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  10312. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10313. *
  10314. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
  10315. * Average number of bytes transmitted successfully across
  10316. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  10317. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10318. *
  10319. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET SIZE: Required (u32)
  10320. * Average number of bytes received successfully across
  10321. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  10322. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10323. *
  10324. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
  10325. * Status of the TWT GET STATISTICS request.
  10326. * This contains status values in enum qca_wlan_vendor_twt_status
  10327. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10328. */
  10329. enum qca_wlan_vendor_attr_twt_stats {
  10330. QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
  10331. QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
  10332. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
  10333. QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
  10334. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
  10335. QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
  10336. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
  10337. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
  10338. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
  10339. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
  10340. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
  10341. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
  10342. QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
  10343. /* keep last */
  10344. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
  10345. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
  10346. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
  10347. };
  10348. /**
  10349. * qca_wlan_twt_get_capa - Represents the Bitmap of TWT capabilities
  10350. * supported by the device and peer.
  10351. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
  10352. *
  10353. * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
  10354. * TWT non-scheduling STA. This capability is advertised in the HE
  10355. * capability/Extended capabilities information element in the
  10356. * Association request frame by the device.
  10357. *
  10358. * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised
  10359. * by the TWT scheduling AP. This capability is advertised in the extended
  10360. * capabilities/HE capabilities information element.
  10361. *
  10362. * @QCA_WLAN_TWT_CAPA_BROADCAST: On requestor side, this indicates support
  10363. * for the broadcast TWT functionality. On responder side, this indicates
  10364. * support for the role of broadcast TWT scheduling functionality. This
  10365. * capability is advertised in the HE capabilities information element.
  10366. *
  10367. * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: Device supports flexible TWT schedule.
  10368. * This capability is advertised in the HE capabilities information element.
  10369. *
  10370. * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
  10371. * that it mandates the associated HE STAs to support TWT. This capability is
  10372. * advertised by AP in the HE Operation Parameters field of the HE operation
  10373. * information element.
  10374. */
  10375. enum qca_wlan_twt_capa {
  10376. QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
  10377. QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
  10378. QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
  10379. QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3),
  10380. QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4),
  10381. };
  10382. /**
  10383. * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT
  10384. * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
  10385. * operation.
  10386. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
  10387. * Represents the MAC address of the peer for which the TWT capabilities
  10388. * are being queried. This is used in AP mode to represent the respective
  10389. * client. In STA mode, this is an optional parameter.
  10390. *
  10391. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
  10392. * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
  10393. * enum qca_wlan_twt_capa.
  10394. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
  10395. * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
  10396. * enum qca_wlan_twt_capa.
  10397. */
  10398. enum qca_wlan_vendor_attr_twt_capability {
  10399. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
  10400. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
  10401. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
  10402. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
  10403. /* keep last */
  10404. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
  10405. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
  10406. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
  10407. };
  10408. /**
  10409. * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
  10410. * TWT (Target Wake Time) related parameters. It is used when
  10411. * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
  10412. * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  10413. *
  10414. * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
  10415. * This attribute configures AC parameters to be used for all TWT
  10416. * sessions in AP mode.
  10417. * Uses the enum qca_wlan_ac_type values.
  10418. */
  10419. enum qca_wlan_vendor_attr_twt_set_param {
  10420. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
  10421. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
  10422. /* keep last */
  10423. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
  10424. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
  10425. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
  10426. };
  10427. /**
  10428. * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
  10429. * the TWT responder
  10430. *
  10431. * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
  10432. * parameters that are different from TWT requesting STA suggested
  10433. * or demanded TWT parameters
  10434. * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
  10435. * parameters that are different from TWT requesting STA TWT suggested
  10436. * or demanded parameters
  10437. * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
  10438. * setup
  10439. * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
  10440. * setup.
  10441. */
  10442. enum qca_wlan_vendor_twt_setup_resp_type {
  10443. QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
  10444. QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
  10445. QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
  10446. QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
  10447. };
  10448. /**
  10449. * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
  10450. * Represents the setup type being requested for TWT.
  10451. * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
  10452. * parameters but relying on AP to fill the parameters during the negotiation.
  10453. * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
  10454. * values which the AP may accept or AP may provide alternative parameters
  10455. * which the STA may accept.
  10456. * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
  10457. * alternate parameters than the requested ones.
  10458. */
  10459. enum qca_wlan_vendor_twt_setup_req_type {
  10460. QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
  10461. QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
  10462. QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
  10463. };
  10464. /**
  10465. * enum qca_wlan_throughput_level - Current throughput level
  10466. *
  10467. * Indicates the current level of throughput calculated by driver. The driver
  10468. * may choose different thresholds to decide whether the throughput level is
  10469. * low or medium or high based on variety of parameters like physical link
  10470. * capacity of current connection, number of pakcets being dispatched per
  10471. * second etc. The throughput level events might not be consistent with the
  10472. * actual current throughput value being observed.
  10473. *
  10474. * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
  10475. * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
  10476. * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
  10477. */
  10478. enum qca_wlan_throughput_level {
  10479. QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
  10480. QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
  10481. QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
  10482. };
  10483. /**
  10484. * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
  10485. * report throughput changes from driver to user space. enum values are used
  10486. * for NL attributes sent with
  10487. * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
  10488. */
  10489. enum qca_wlan_vendor_attr_throughput_change {
  10490. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
  10491. /*
  10492. * Indicates the direction of throughput in which the change is being
  10493. * reported. u8 attribute. Value is 0 for TX and 1 for RX.
  10494. */
  10495. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
  10496. /*
  10497. * Indicates the newly observed throughput level.
  10498. * qca_wlan_throughput_level describes the possible range of values.
  10499. * u8 attribute.
  10500. */
  10501. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
  10502. /*
  10503. * Indicates the driver's guidance on the new value to be set to
  10504. * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver
  10505. * may optionally include this attribute.
  10506. */
  10507. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
  10508. /*
  10509. * Indicates the driver's guidance on the new value to be set to
  10510. * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible
  10511. * values are from -31 to 31. Driver may optionally include this
  10512. * attribute.
  10513. */
  10514. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
  10515. /*
  10516. * Indicates the driver's guidance on the new value to be set to
  10517. * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may
  10518. * optionally include this attribute.
  10519. */
  10520. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
  10521. /* keep last */
  10522. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
  10523. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
  10524. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
  10525. };
  10526. /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
  10527. * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
  10528. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  10529. */
  10530. enum qca_wlan_nan_ext_subcmd_type {
  10531. /* Subcmd of type NAN Enable Request */
  10532. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
  10533. /* Subcmd of type NAN Disable Request */
  10534. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
  10535. };
  10536. /**
  10537. * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
  10538. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  10539. */
  10540. enum qca_wlan_vendor_attr_nan_params {
  10541. QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
  10542. /* Carries NAN command for firmware component. Every vendor command
  10543. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
  10544. * payload containing the NAN command. NLA_BINARY attribute.
  10545. */
  10546. QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
  10547. /* Indicates the type of NAN command sent with
  10548. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
  10549. * describes the possible range of values. This attribute is mandatory
  10550. * if the command being issued is either
  10551. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
  10552. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
  10553. */
  10554. QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
  10555. /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
  10556. * band. This attribute is mandatory when command type is
  10557. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
  10558. */
  10559. QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
  10560. /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
  10561. * band. This attribute is optional and should be included when command
  10562. * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
  10563. * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
  10564. */
  10565. QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
  10566. /* keep last */
  10567. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
  10568. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
  10569. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
  10570. };
  10571. /**
  10572. * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
  10573. * transport modes and is used by attribute
  10574. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as part of vendor command
  10575. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
  10576. * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use RELAY FS to send CFR data.
  10577. * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
  10578. * data. The data shall be encapsulated within
  10579. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with vendor sub command
  10580. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
  10581. */
  10582. enum qca_wlan_vendor_cfr_data_transport_modes {
  10583. QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
  10584. QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
  10585. };
  10586. /**
  10587. * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
  10588. * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
  10589. * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
  10590. * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QOS Null frame.
  10591. * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QOS Null frame
  10592. * with phase
  10593. * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using probe response frame
  10594. */
  10595. enum qca_wlan_vendor_cfr_method {
  10596. QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
  10597. QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
  10598. QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
  10599. };
  10600. /**
  10601. * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
  10602. * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
  10603. * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
  10604. * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
  10605. * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
  10606. * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
  10607. * is provided by one or more of below attributes:
  10608. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
  10609. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
  10610. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
  10611. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
  10612. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
  10613. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
  10614. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
  10615. * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
  10616. * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
  10617. */
  10618. enum qca_wlan_vendor_cfr_capture_type {
  10619. QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
  10620. QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
  10621. QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
  10622. QCA_WLAN_VENDOR_CFR_TA_RA = 3,
  10623. QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
  10624. QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
  10625. };
  10626. /**
  10627. * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
  10628. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
  10629. * Channel Frequency Response capture parameters and enable periodic CFR
  10630. * capture.
  10631. *
  10632. * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
  10633. * MAC address of peer. This is for CFR version 1 only.
  10634. *
  10635. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
  10636. * Enable peer CFR Capture. This attribute is mandatory to
  10637. * enable peer CFR capture. If this attribute is not present,
  10638. * peer CFR capture is disabled.
  10639. *
  10640. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
  10641. * BW of measurement, attribute uses the values in enum nl80211_chan_width
  10642. * Supported values: 20, 40, 80, 80+80, 160.
  10643. * Note that all targets may not support all bandwidths.
  10644. * This attribute is mandatory for version 1 if attribute
  10645. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  10646. *
  10647. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
  10648. * Periodicity of CFR measurement in msec.
  10649. * Periodicity should be a multiple of Base timer.
  10650. * Current Base timer value supported is 10 msecs (default).
  10651. * 0 for one shot capture.
  10652. * This attribute is mandatory for version 1 if attribute
  10653. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  10654. *
  10655. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
  10656. * Method used to capture Channel Frequency Response.
  10657. * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
  10658. * This attribute is mandatory for version 1 if attribute
  10659. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  10660. *
  10661. * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
  10662. * Enable periodic CFR capture.
  10663. * This attribute is mandatory for version 1 to enable Periodic CFR capture.
  10664. * If this attribute is not present, periodic CFR capture is disabled.
  10665. *
  10666. * @QCA_WLAN_VENDOR_ATTR_CFR_VERSION: Optional (u8)
  10667. * Value is 1 or 2 since there are two versions of CFR capture. Two versions
  10668. * can't be enabled at same time. This attribute is mandatory if target
  10669. * support both versions and use one of them.
  10670. *
  10671. * @QCA_WLAN_VENDOR_ATTR_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
  10672. * This attribute is mandatory for version 2 if
  10673. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
  10674. * Bits 15:0 Bit fields indicating which group to be enabled.
  10675. * Bits 31:16 Reserved for future use.
  10676. *
  10677. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
  10678. * CFR capture duration in microsecond. This attribute is mandatory for
  10679. * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
  10680. *
  10681. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
  10682. * CFR capture interval in microsecond. This attribute is mandatory for
  10683. * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
  10684. *
  10685. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
  10686. * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
  10687. * This attribute is mandatory for version 2.
  10688. *
  10689. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
  10690. * Bit fields indicating which user in the current UL MU
  10691. * transmissions are enabled for CFR capture. Bits 36 to 0 indicating
  10692. * user indexes for 37 users in a UL MU transmission. If bit 0 is set,
  10693. * then the CFR capture will happen for user index 0 in the current
  10694. * UL MU transmission. If bits 0,2 are set, then CFR capture for UL MU
  10695. * TX corresponds to user indices 0 and 2. Bits 63:37 Reserved for future use.
  10696. * This is for CFR version 2 only.
  10697. *
  10698. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
  10699. * Indicates the number of consecutive Rx packets to be skipped
  10700. * before CFR capture is enabled again.
  10701. * This is for CFR version 2 only.
  10702. *
  10703. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
  10704. * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
  10705. *
  10706. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
  10707. * the following GROUP attributes:
  10708. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
  10709. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
  10710. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
  10711. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
  10712. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
  10713. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
  10714. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
  10715. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
  10716. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
  10717. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
  10718. *
  10719. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
  10720. * Target support multiple groups for some configurations. Group number could be
  10721. * any value between 0 and 15. This is for CFR version 2 only.
  10722. *
  10723. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
  10724. * Transmitter address which is used to filter packets, this MAC address takes
  10725. * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK.
  10726. * This is for CFR version 2 only.
  10727. *
  10728. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
  10729. * Receiver address which is used to filter packets, this MAC address takes
  10730. * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK.
  10731. * This is for CFR version 2 only.
  10732. *
  10733. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
  10734. * Mask of transmitter address which is used to filter packets.
  10735. * This is for CFR version 2 only.
  10736. *
  10737. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
  10738. * Mask of receiver address which is used to filter packets.
  10739. * This is for CFR version 2 only.
  10740. *
  10741. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
  10742. * Indicates packets with a specific NSS will be filtered for CFR capture.
  10743. * This is for CFR version 2 only. This is a bitmask. Bits 7:0, CFR capture will
  10744. * be done for packets matching the NSS specified within this bitmask.
  10745. * Bits 31:8 Reserved for future use. Bits 7:0 map to NSS:
  10746. * bit 0 : NSS 1
  10747. * bit 1 : NSS 2
  10748. * ...
  10749. * bit 7 : NSS 8
  10750. *
  10751. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
  10752. * Indicates packets with a specific BW will be filtered for CFR capture.
  10753. * This is for CFR version 2 only. This is a bitmask. Bits 4:0, CFR capture
  10754. * will be done for packets matching the bandwidths specified within this
  10755. * bitmask. Bits 31:5 Reserved for future use. Bits 4:0 map to bandwidth
  10756. * numerated in enum nl80211_band (although not all bands may be supported
  10757. * by a given device).
  10758. *
  10759. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
  10760. * Management packets matching the subtype filter categories will be
  10761. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  10762. * represents the corresponding mgmt subtype value as per
  10763. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  10764. * For example, beacon frame control type is 8, its value is 1<<8 = 0x100.
  10765. * This is for CFR version 2 only
  10766. *
  10767. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
  10768. * Control packets matching the subtype filter categories will be
  10769. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  10770. * represents the corresponding control subtype value as per
  10771. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  10772. * This is for CFR version 2 only.
  10773. *
  10774. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
  10775. * Data packets matching the subtype filter categories will be
  10776. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  10777. * represents the corresponding data subtype value as per
  10778. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  10779. * This is for CFR version 2 only.
  10780. *
  10781. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
  10782. * Userspace can use this attribute to specify the driver about which transport
  10783. * mode shall be used by the driver to send CFR data to userspace. Uses values
  10784. * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
  10785. * not present, driver shall choose the default transport mechanism which is
  10786. * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
  10787. *
  10788. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
  10789. * Userspace can use this attribute to specify the nl port id of the application
  10790. * which receives the CFR data and processes it further so that the drivers can
  10791. * unicast the NL events to a specific application. Optionally included when
  10792. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
  10793. * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
  10794. * shall multicast the netlink events when this attribute is not included.
  10795. *
  10796. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
  10797. * This attribute will be used by the driver to encapsulate and send CFR data
  10798. * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
  10799. * asynchronous event when the driver is configured to send CFR data using NL
  10800. * events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS
  10801. *
  10802. */
  10803. enum qca_wlan_vendor_peer_cfr_capture_attr {
  10804. QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
  10805. QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
  10806. QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
  10807. QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
  10808. QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
  10809. QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
  10810. QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
  10811. QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
  10812. QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
  10813. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
  10814. QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
  10815. QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
  10816. QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
  10817. QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
  10818. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
  10819. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
  10820. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
  10821. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
  10822. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
  10823. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
  10824. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
  10825. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
  10826. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
  10827. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
  10828. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
  10829. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
  10830. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
  10831. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
  10832. QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
  10833. /* Keep last */
  10834. QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
  10835. QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
  10836. QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
  10837. };
  10838. /**
  10839. * enum qca_coex_config_profiles - This enum defines different types of
  10840. * traffic streams that can be prioritized one over the other during coex
  10841. * scenarios.
  10842. * The types defined in this enum are categorized in the below manner.
  10843. * 0 - 31 values corresponds to WLAN
  10844. * 32 - 63 values corresponds to BT
  10845. * 64 - 95 values corresponds to Zigbee
  10846. * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
  10847. * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
  10848. * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
  10849. * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
  10850. * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
  10851. * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
  10852. * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
  10853. * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
  10854. * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
  10855. * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
  10856. * @QCA_BT_A2DP: Prioritize BT A2DP
  10857. * @QCA_BT_BLE: Prioritize BT BLE
  10858. * @QCA_BT_SCO: Prioritize BT SCO
  10859. * @QCA_ZB_LOW: Prioritize Zigbee Low
  10860. * @QCA_ZB_HIGH: Prioritize Zigbee High
  10861. */
  10862. enum qca_coex_config_profiles {
  10863. /* 0 - 31 corresponds to WLAN */
  10864. QCA_WIFI_STA_DISCOVERY = 0,
  10865. QCA_WIFI_STA_CONNECTION = 1,
  10866. QCA_WIFI_STA_CLASS_3_MGMT = 2,
  10867. QCA_WIFI_STA_DATA = 3,
  10868. QCA_WIFI_STA_ALL = 4,
  10869. QCA_WIFI_SAP_DISCOVERY = 5,
  10870. QCA_WIFI_SAP_CONNECTION = 6,
  10871. QCA_WIFI_SAP_CLASS_3_MGMT = 7,
  10872. QCA_WIFI_SAP_DATA = 8,
  10873. QCA_WIFI_SAP_ALL = 9,
  10874. QCA_WIFI_CASE_MAX = 31,
  10875. /* 32 - 63 corresponds to BT */
  10876. QCA_BT_A2DP = 32,
  10877. QCA_BT_BLE = 33,
  10878. QCA_BT_SCO = 34,
  10879. QCA_BT_CASE_MAX = 63,
  10880. /* 64 - 95 corresponds to Zigbee */
  10881. QCA_ZB_LOW = 64,
  10882. QCA_ZB_HIGH = 65,
  10883. QCA_ZB_CASE_MAX = 95,
  10884. /* 0xff is default value if the u8 profile value is not set. */
  10885. QCA_PROFILE_DEFAULT_VALUE = 255
  10886. };
  10887. /**
  10888. * enum qca_vendor_attr_coex_config_types - Coex configurations types.
  10889. * This enum defines the valid set of values of coex configuration types. These
  10890. * values may used by attribute
  10891. * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
  10892. *
  10893. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
  10894. * weights to default values.
  10895. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
  10896. * weights with configurability value.
  10897. */
  10898. enum qca_vendor_attr_coex_config_types {
  10899. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
  10900. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
  10901. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
  10902. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX
  10903. };
  10904. /**
  10905. * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
  10906. * attributes
  10907. * Attributes for data used by
  10908. * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
  10909. *
  10910. * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
  10911. * Indicate config type.
  10912. * the config types are 32-bit values from qca_vendor_attr_coex_config_types
  10913. *
  10914. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
  10915. * Indicate the Priority 1 profiles.
  10916. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10917. * In same priority level, maximum to 4 profiles can be set here.
  10918. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
  10919. * Indicate the Priority 2 profiles.
  10920. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10921. * In same priority level, maximum to 4 profiles can be set here.
  10922. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
  10923. * Indicate the Priority 3 profiles.
  10924. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10925. * In same priority level, maximum to 4 profiles can be set here.
  10926. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
  10927. * Indicate the Priority 4 profiles.
  10928. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10929. * In same priority level, maximum to 4 profiles can be set here.
  10930. * NOTE:
  10931. * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
  10932. * arrangement:
  10933. * 1: In the same u32 attribute(priority x), the profiles enum values own
  10934. * same priority level.
  10935. * 2: 0xff is default value if the u8 profile value is not set.
  10936. * 3: max to 4 rules/profiles in same priority level.
  10937. * 4: max to 4 priority level (priority 1 - priority 4)
  10938. * 5: one priority level only supports one scenario from WLAN/BT/ZB,
  10939. * hybrid rules not support.
  10940. * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
  10941. * remain blank to reset all parameters.
  10942. * For example:
  10943. *
  10944. * If the attributes as follow:
  10945. * priority 1:
  10946. * ------------------------------------
  10947. * | 0xff | 0 | 1 | 2 |
  10948. * ------------------------------------
  10949. * priority 2:
  10950. * -------------------------------------
  10951. * | 0xff | 0xff | 0xff | 32 |
  10952. * -------------------------------------
  10953. * priority 3:
  10954. * -------------------------------------
  10955. * | 0xff | 0xff | 0xff | 65 |
  10956. * -------------------------------------
  10957. * then it means:
  10958. * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  10959. * owns same priority level.
  10960. * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  10961. * has priority over BT_A2DP and ZB_HIGH.
  10962. * 3: BT_A2DP has priority over ZB_HIGH.
  10963. */
  10964. enum qca_vendor_attr_coex_config_three_way {
  10965. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
  10966. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
  10967. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
  10968. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
  10969. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
  10970. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
  10971. /* Keep last */
  10972. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
  10973. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
  10974. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
  10975. };
  10976. /**
  10977. * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
  10978. * This enum defines the valid set of values of peer stats cache types. These
  10979. * values are used by attribute
  10980. * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID.
  10981. *
  10982. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics.
  10983. * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics.
  10984. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn
  10985. * statistics
  10986. */
  10987. enum qca_vendor_attr_peer_stats_cache_type {
  10988. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
  10989. QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
  10990. QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
  10991. QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
  10992. };
  10993. /**
  10994. * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
  10995. * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
  10996. * Attributes are required to flush peer rate statistics from driver to
  10997. * user application.
  10998. *
  10999. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
  11000. * Indicate peer stats cache type.
  11001. * The statistics types are 32-bit values from
  11002. * qca_vendor_attr_peer_stats_cache_type
  11003. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
  11004. * of size 6, representing peer mac address.
  11005. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
  11006. * containing buffer of statistics to send event to application layer entity.
  11007. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
  11008. * representing cookie for peer unique session.
  11009. */
  11010. enum qca_wlan_vendor_attr_peer_stats_cache_params {
  11011. QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
  11012. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
  11013. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
  11014. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
  11015. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
  11016. /* Keep last */
  11017. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
  11018. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
  11019. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
  11020. };
  11021. /**
  11022. * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee.
  11023. * this enum defines all the possible state of zigbee, which can be
  11024. * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE.
  11025. *
  11026. * @ZIGBEE_IDLE: zigbee in idle state
  11027. * @ZIGBEE_FORM_NETWORK: zibee forming network
  11028. * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network
  11029. * @ZIGBEE_JOIN: zigbee joining network
  11030. * @ZIGBEE_NETWORK_UP: zigbee network is up
  11031. * @ZIGBEE_HMI: zigbee in HMI mode
  11032. */
  11033. enum qca_mpta_helper_attr_zigbee_state {
  11034. ZIGBEE_IDLE = 0,
  11035. ZIGBEE_FORM_NETWORK = 1,
  11036. ZIGBEE_WAIT_JOIN = 2,
  11037. ZIGBEE_JOIN = 3,
  11038. ZIGBEE_NETWORK_UP = 4,
  11039. ZIGBEE_HMI = 5,
  11040. };
  11041. /**
  11042. * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by
  11043. * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
  11044. */
  11045. enum qca_mpta_helper_vendor_attr {
  11046. QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
  11047. /* Optional attribute used to update zigbee state.
  11048. * enum qca_mpta_helper_attr_zigbee_state.
  11049. * NLA_U32 attribute.
  11050. */
  11051. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
  11052. /* Optional attribute used to configure wlan duration for Shape-OCS
  11053. * during interrupt.
  11054. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
  11055. * Value range 0 ~ 300 (ms).
  11056. * NLA_U32 attribute.
  11057. */
  11058. QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
  11059. /* Optional attribute used to configure non wlan duration for Shape-OCS
  11060. * during interrupt.
  11061. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
  11062. * Value range 0 ~ 300 (ms).
  11063. * NLA_U32 attribute.
  11064. */
  11065. QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
  11066. /* Optional attribute used to configure wlan duration for Shape-OCS
  11067. * monitor period.
  11068. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
  11069. * Value range 0 ~ 300 (ms)
  11070. * NLA_U32 attribute
  11071. */
  11072. QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
  11073. /* Optional attribute used to configure non wlan duration for Shape-OCS
  11074. * monitor period.
  11075. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
  11076. * Value range 0 ~ 300 (ms)
  11077. * NLA_U32 attribute
  11078. */
  11079. QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
  11080. /* Optional attribute used to configure ocs interrupt duration.
  11081. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
  11082. * Value range 1000 ~ 20000 (ms)
  11083. * NLA_U32 attribute
  11084. */
  11085. QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
  11086. /* Optional attribute used to configure ocs monitor duration.
  11087. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
  11088. * Value range 1000 ~ 20000 (ms)
  11089. * NLA_U32 attribute
  11090. */
  11091. QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
  11092. /* Optional attribute used to notify wlan FW current zigbee channel.
  11093. * Value range 11 ~ 26
  11094. * NLA_U32 attribute
  11095. */
  11096. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
  11097. /* Optional attribute used to configure wlan mute duration.
  11098. * Value range 0 ~ 400 (ms)
  11099. * NLA_U32 attribute
  11100. */
  11101. QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
  11102. /* keep last */
  11103. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
  11104. QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
  11105. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
  11106. };
  11107. /**
  11108. * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
  11109. * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be
  11110. * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
  11111. *
  11112. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
  11113. * to request the driver to start reporting Beacon frames.
  11114. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver
  11115. * to request the driver to stop reporting Beacon frames.
  11116. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
  11117. * userspace to report received Beacon frames.
  11118. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
  11119. * to indicate that the driver is going to pause reporting Beacon frames.
  11120. */
  11121. enum qca_wlan_vendor_beacon_reporting_op_types {
  11122. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
  11123. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
  11124. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
  11125. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
  11126. };
  11127. /**
  11128. * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different
  11129. * types of reasons for which the driver is pausing reporting Beacon frames.
  11130. * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
  11131. *
  11132. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
  11133. * reasons.
  11134. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
  11135. * driver/firmware is starting a scan.
  11136. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
  11137. * driver/firmware disconnects from the ESS and indicates the disconnection to
  11138. * userspace (non-seamless roaming case). This reason code will be used by the
  11139. * driver/firmware to indicate stopping of beacon report events. Userspace
  11140. * will need to start beacon reporting again (if desired) by sending vendor
  11141. * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
  11142. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
  11143. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
  11144. * completed.
  11145. */
  11146. enum qca_wlan_vendor_beacon_reporting_pause_reasons {
  11147. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
  11148. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
  11149. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
  11150. };
  11151. /*
  11152. * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
  11153. * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
  11154. */
  11155. enum qca_wlan_vendor_attr_beacon_reporting_params {
  11156. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
  11157. /* Specifies the type of operation that the vendor command/event is
  11158. * intended for. Possible values for this attribute are defined in
  11159. * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
  11160. */
  11161. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
  11162. /* Optionally set by userspace to request the driver to report Beacon
  11163. * frames using asynchronous vendor events when the
  11164. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11165. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  11166. * If this flag is not set, the driver will only update Beacon frames
  11167. * in cfg80211 scan cache but not send any vendor events.
  11168. */
  11169. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
  11170. /* Optionally used by userspace to request the driver/firmware to
  11171. * report Beacon frames periodically when the
  11172. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11173. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
  11174. * u32 attribute, indicates the period of Beacon frames to be reported
  11175. * and in the units of beacon interval.
  11176. * If this attribute is missing in the command, then the default value
  11177. * of 1 will be assumed by driver, i.e., to report every Beacon frame.
  11178. * Zero is an invalid value.
  11179. * If a valid value is received for this attribute, the driver will
  11180. * update the cfg80211 scan cache periodically as per the value
  11181. * received in this attribute in addition to updating the cfg80211 scan
  11182. * cache when there is significant change in Beacon frame IEs.
  11183. */
  11184. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
  11185. /* Used by the driver to encapsulate the SSID when the
  11186. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11187. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  11188. * u8 array with a maximum size of 32.
  11189. *
  11190. * When generating beacon report from non-MBSSID Beacon frame, the SSID
  11191. * will be taken from the SSID element of the received Beacon frame.
  11192. *
  11193. * When generating beacon report from Multiple BSSID Beacon frame and
  11194. * if the BSSID of the current connected BSS matches the BSSID of the
  11195. * transmitting BSS, the SSID will be taken from the SSID element of
  11196. * the received Beacon frame.
  11197. *
  11198. * When generating beacon report from Multiple BSSID Beacon frame and
  11199. * if the BSSID of the current connected BSS matches the BSSID of one
  11200. * of the* nontransmitting BSSs, the SSID will be taken from the SSID
  11201. * field included in the nontransmitted BSS profile whose derived BSSI
  11202. * is same as the BSSID of the current connected BSS. When there is no
  11203. * nontransmitted BSS profile whose derived BSSID is same as the BSSID
  11204. * of current connected* BSS, this attribute will not be present.
  11205. */
  11206. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
  11207. /* Used by the driver to encapsulate the BSSID of the AP to which STA
  11208. * is currently connected to when the
  11209. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11210. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
  11211. * fixed size of 6 bytes.
  11212. *
  11213. * When generating beacon report from a Multiple BSSID beacon and the
  11214. * current connected BSSID matches one of the nontransmitted BSSIDs in
  11215. * a Multiple BSSID set, this BSSID will be that particular
  11216. * nontransmitted BSSID and not the transmitted BSSID (i.e., the
  11217. * transmitting address of the Beacon frame).
  11218. */
  11219. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
  11220. /* Used by the driver to encapsulate the frequency in MHz on which
  11221. * the Beacon frame was received when the
  11222. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
  11223. * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  11224. * u32 attribute.
  11225. */
  11226. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
  11227. /* Used by the driver to encapsulate the Beacon interval
  11228. * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11229. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  11230. * u16 attribute. The value will be copied from the Beacon frame and
  11231. * the units are TUs.
  11232. */
  11233. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
  11234. /* Used by the driver to encapsulate the Timestamp field from the
  11235. * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE
  11236. * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  11237. * u64 attribute.
  11238. */
  11239. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
  11240. /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
  11241. * Beacon frame is received in the driver when the
  11242. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11243. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
  11244. * the units of nanoseconds. This value is expected to have accuracy of
  11245. * about 10 ms.
  11246. */
  11247. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
  11248. /* Used by the driver to encapsulate the IEs of the Beacon frame from
  11249. * which this event is generated when the
  11250. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11251. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
  11252. */
  11253. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
  11254. /* Used by the driver to specify the reason for the driver/firmware to
  11255. * pause sending beacons to userspace when the
  11256. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11257. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
  11258. * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
  11259. * attribute.
  11260. */
  11261. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
  11262. /* Used by the driver to specify whether the driver will automatically
  11263. * resume reporting beacon events to userspace later (for example after
  11264. * the ongoing off-channel activity is completed etc.) when the
  11265. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11266. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
  11267. */
  11268. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
  11269. /* Optionally set by userspace to request the driver not to resume
  11270. * beacon reporting after a pause is completed, when the
  11271. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11272. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  11273. * If this flag is set, the driver will not resume beacon reporting
  11274. * after any pause in beacon reporting is completed. Userspace has to
  11275. * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
  11276. * to initiate beacon reporting again. If this flag is set in the recent
  11277. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
  11278. * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
  11279. * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
  11280. * set by the driver. Setting this flag until and unless there is a
  11281. * specific need is not recommended as there is a chance of some beacons
  11282. * received after pause command and next start command being not
  11283. * reported.
  11284. */
  11285. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
  11286. /* Keep last */
  11287. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
  11288. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
  11289. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
  11290. };
  11291. /**
  11292. * enum qca_vendor_oem_device_type - Represents the target device in firmware.
  11293. * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
  11294. *
  11295. * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
  11296. * a virtual device.
  11297. *
  11298. * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
  11299. * a physical device.
  11300. */
  11301. enum qca_vendor_oem_device_type {
  11302. QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
  11303. QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
  11304. };
  11305. /*
  11306. * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command
  11307. * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
  11308. *
  11309. * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
  11310. * used to set/query the data to/from the firmware. On query, the same
  11311. * attribute is used to carry the respective data in the reply sent by the
  11312. * driver to userspace. The request to set/query the data and the format of the
  11313. * respective data from the firmware are embedded in the attribute. The
  11314. * maximum size of the attribute payload is 1024 bytes.
  11315. *
  11316. * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
  11317. * based on this field. This optional attribute is included to specify whether
  11318. * the device type is a virtual device or a physical device for the command.
  11319. * This attribute can be omitted for a virtual device (default) command.
  11320. * This u8 attribute is used to carry information for the device type using
  11321. * values defined by enum qca_vendor_oem_device_type.
  11322. *
  11323. * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
  11324. * attribute when the data is queried from the firmware.
  11325. *
  11326. * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
  11327. * is set when the userspace queries data from the firmware. This attribute
  11328. * should not be set when userspace sets the OEM data to the firmware.
  11329. */
  11330. enum qca_wlan_vendor_attr_oem_data_params {
  11331. QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
  11332. QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
  11333. QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
  11334. QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
  11335. /* keep last */
  11336. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
  11337. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
  11338. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
  11339. };
  11340. /**
  11341. * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
  11342. * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
  11343. *
  11344. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
  11345. * Nested attribute containing multiple ranges with following attributes:
  11346. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
  11347. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
  11348. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
  11349. *
  11350. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
  11351. * Starting center frequency in MHz.
  11352. *
  11353. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
  11354. * Ending center frequency in MHz.
  11355. *
  11356. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
  11357. * s32 attribute, optional. It is a per frequency range attribute.
  11358. * The maximum TX power limit from user space is to be applied on an
  11359. * unrestricted interface for corresponding frequency range. It is also
  11360. * possible that the actual TX power may be even lower than this cap due to
  11361. * other considerations such as regulatory compliance, SAR, etc. In absence of
  11362. * this attribute the driver shall follow current behavior which means
  11363. * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
  11364. * power derived by the driver based on regulatory/SAR during interface up.
  11365. *
  11366. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
  11367. * u32 attribute, optional. Indicates all the interface types which are
  11368. * restricted for all frequency ranges provided in
  11369. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
  11370. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
  11371. * This attribute encapsulates bitmasks of interface types defined in
  11372. * enum nl80211_iftype. If an interface is marked as restricted the driver must
  11373. * move to a safe channel and if no safe channel is available the driver shall
  11374. * terminate that interface functionality. In absence of this attribute,
  11375. * interface (SAP/P2P) can still continue operating on an unsafe channel with
  11376. * TX power limit derived from either
  11377. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
  11378. * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
  11379. * is not provided.
  11380. */
  11381. enum qca_wlan_vendor_attr_avoid_frequency_ext {
  11382. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
  11383. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
  11384. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
  11385. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
  11386. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
  11387. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
  11388. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
  11389. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
  11390. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
  11391. };
  11392. /*
  11393. * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
  11394. * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
  11395. */
  11396. enum qca_wlan_vendor_attr_add_sta_node_params {
  11397. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
  11398. /* 6 byte MAC address of STA */
  11399. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
  11400. /* Authentication algorithm used by the station of size u16;
  11401. * defined in enum nl80211_auth_type.
  11402. */
  11403. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
  11404. /*
  11405. * This flag attribute is set if the node being added is an
  11406. * MLD STA node.
  11407. */
  11408. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_IS_ML = 3,
  11409. /* keep last */
  11410. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
  11411. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
  11412. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
  11413. };
  11414. /**
  11415. * enum qca_btc_chain_mode - Specifies BT coex chain mode.
  11416. * This enum defines the valid set of values of BT coex chain mode.
  11417. * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
  11418. * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
  11419. *
  11420. * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared.
  11421. * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are
  11422. * separated, hybrid mode.
  11423. * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are
  11424. * separated, fixed FDD mode.
  11425. */
  11426. enum qca_btc_chain_mode {
  11427. QCA_BTC_CHAIN_SHARED = 0,
  11428. QCA_BTC_CHAIN_SEPARATED_HYBRID = 1,
  11429. QCA_BTC_CHAIN_SEPARATED_FDD = 2,
  11430. };
  11431. /* deprecated legacy name */
  11432. #define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID
  11433. /**
  11434. * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
  11435. * chain mode.
  11436. * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
  11437. *
  11438. * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
  11439. * Indicates the BT coex chain mode, are 32-bit values from
  11440. * enum qca_btc_chain_mode. This attribute is mandatory.
  11441. *
  11442. * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
  11443. * If set, vdev should be restarted when BT coex chain mode is updated.
  11444. * This attribute is optional.
  11445. */
  11446. enum qca_vendor_attr_btc_chain_mode {
  11447. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
  11448. QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
  11449. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
  11450. /* Keep last */
  11451. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
  11452. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
  11453. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
  11454. };
  11455. /**
  11456. * enum qca_vendor_wlan_sta_flags - Station feature flags
  11457. * Bits will be set to 1 if the corresponding features are enabled.
  11458. * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
  11459. * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
  11460. for the station
  11461. * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
  11462. for the station
  11463. */
  11464. enum qca_vendor_wlan_sta_flags {
  11465. QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
  11466. QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
  11467. QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
  11468. };
  11469. /**
  11470. * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
  11471. * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
  11472. * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
  11473. * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
  11474. * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
  11475. */
  11476. enum qca_vendor_wlan_sta_guard_interval {
  11477. QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
  11478. QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
  11479. QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
  11480. QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
  11481. };
  11482. /**
  11483. * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
  11484. * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
  11485. *
  11486. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
  11487. * Required attribute in request for AP mode only, 6-byte MAC address,
  11488. * corresponding to the station's MAC address for which information is
  11489. * requested. For STA mode this is not required as the info always correspond
  11490. * to the self STA and the current/last association.
  11491. *
  11492. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
  11493. * Optionally used in response, u32 attribute, contains a bitmap of different
  11494. * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
  11495. *
  11496. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
  11497. * Optionally used in response, u32 attribute, possible values are defined in
  11498. * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
  11499. * Guard interval used by the station.
  11500. *
  11501. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
  11502. * Optionally used in response, u32 attribute, used in AP mode only.
  11503. * Value indicates the number of data frames received from station with retry
  11504. * bit set to 1 in FC.
  11505. *
  11506. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
  11507. * Optionally used in response, u32 attribute, used in AP mode only.
  11508. * Counter for number of data frames with broadcast or multicast address in
  11509. * the destination address received from the station.
  11510. *
  11511. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
  11512. * Optionally used in response, u32 attribute, used in both STA and AP modes.
  11513. * Value indicates the number of data frames successfully transmitted only
  11514. * after retrying the packets and for which the TX status has been updated
  11515. * back to host from target.
  11516. *
  11517. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
  11518. * Optionally used in response, u32 attribute, used in both STA and AP mode.
  11519. * Value indicates the number of data frames not transmitted successfully even
  11520. * after retrying the packets for the number of times equal to the total number
  11521. * of retries allowed for that packet and for which the TX status has been
  11522. * updated back to host from target.
  11523. *
  11524. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
  11525. * Optionally used in response, u32 attribute, used in AP mode only.
  11526. * Counter in the target for the number of data frames successfully transmitted
  11527. * to the station.
  11528. *
  11529. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
  11530. * Optionally used in response, u32 attribute, used in AP mode only.
  11531. * Value indicates the number of data frames successfully transmitted only
  11532. * after retrying the packets.
  11533. *
  11534. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
  11535. * Optionally used in response, u32 attribute, used in both STA & AP mode.
  11536. * Value indicates the number of data frames not transmitted successfully even
  11537. * after retrying the packets for the number of times equal to the total number
  11538. * of retries allowed for that packet.
  11539. *
  11540. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
  11541. * the STA mode only. Represent the number of probe requests sent by the STA
  11542. * while attempting to roam on missing certain number of beacons from the
  11543. * connected AP. If queried in the disconnected state, this represents the
  11544. * count for the last connected state.
  11545. *
  11546. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
  11547. * the STA mode. Represent the number of probe responses received by the station
  11548. * while attempting to roam on missing certain number of beacons from the
  11549. * connected AP. When queried in the disconnected state, this represents the
  11550. * count when in last connected state.
  11551. *
  11552. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
  11553. * STA mode only. Represents the total number of frames sent out by STA
  11554. * including Data, ACK, RTS, CTS, Control Management. This data is maintained
  11555. * only for the connect session. Represents the count of last connected session,
  11556. * when queried in the disconnected state.
  11557. *
  11558. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
  11559. * Total number of RTS sent out by the STA. This data is maintained per connect
  11560. * session. Represents the count of last connected session, when queried in the
  11561. * disconnected state.
  11562. *
  11563. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
  11564. * STA mode.Represent the number of RTS transmission failure that reach retry
  11565. * limit. This data is maintained per connect session. Represents the count of
  11566. * last connected session, when queried in the disconnected state.
  11567. *
  11568. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
  11569. * the STA mode. Represent the total number of non aggregated frames transmitted
  11570. * by the STA. This data is maintained per connect session. Represents the count
  11571. * of last connected session, when queried in the disconnected state.
  11572. *
  11573. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
  11574. * STA mode. Represent the total number of aggregated frames transmitted by the
  11575. * STA. This data is maintained per connect session. Represents the count of
  11576. * last connected session, when queried in the disconnected state.
  11577. *
  11578. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
  11579. * the STA mode. Represents the number of received frames with a good PLCP. This
  11580. * data is maintained per connect session. Represents the count of last
  11581. * connected session, when queried in the disconnected state.
  11582. *
  11583. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
  11584. * used in the STA mode. Represents the number of occasions that no valid
  11585. * delimiter is detected by A-MPDU parser. This data is maintained per connect
  11586. * session. Represents the count of last connected session, when queried in the
  11587. * disconnected state.
  11588. *
  11589. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
  11590. * STA mode. Represents the number of frames for which CRC check failed in the
  11591. * MAC. This data is maintained per connect session. Represents the count of
  11592. * last connected session, when queried in the disconnected state.
  11593. *
  11594. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
  11595. * STA mode. Represents the number of unicast ACKs received with good FCS. This
  11596. * data is maintained per connect session. Represents the count of last
  11597. * connected session, when queried in the disconnected state.
  11598. *
  11599. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
  11600. * mode. Represents the number of received Block Acks. This data is maintained
  11601. * per connect session. Represents the count of last connected session, when
  11602. * queried in the disconnected state.
  11603. *
  11604. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
  11605. * mode. Represents the number of beacons received from the connected BSS. This
  11606. * data is maintained per connect session. Represents the count of last
  11607. * connected session, when queried in the disconnected state.
  11608. *
  11609. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
  11610. * STA mode. Represents the number of beacons received by the other BSS when in
  11611. * connected state (through the probes done by the STA). This data is maintained
  11612. * per connect session. Represents the count of last connected session, when
  11613. * queried in the disconnected state.
  11614. *
  11615. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
  11616. * the STA mode. Represents the number of received DATA frames with good FCS and
  11617. * matching Receiver Address when in connected state. This data is maintained
  11618. * per connect session. Represents the count of last connected session, when
  11619. * queried in the disconnected state.
  11620. *
  11621. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
  11622. * STA mode. Represents the number of RX Data multicast frames dropped by the HW
  11623. * when in the connected state. This data is maintained per connect session.
  11624. * Represents the count of last connected session, when queried in the
  11625. * disconnected state.
  11626. *
  11627. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
  11628. * STA mode. This represents the target power in dBm for the transmissions done
  11629. * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
  11630. * connect session. Represents the count of last connected session, when
  11631. * queried in the disconnected state.
  11632. *
  11633. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
  11634. * STA mode. This represents the Target power in dBm for transmissions done to
  11635. * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
  11636. * session. Represents the count of last connected session, when queried in the
  11637. * disconnected state.
  11638. *
  11639. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
  11640. * STA mode. This represents the Target power in dBm for transmissions done to
  11641. * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
  11642. * Represents the count of last connected session, when queried in the
  11643. * disconnected state.
  11644. *
  11645. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
  11646. * STA mode. This represents the Target power in dBm for transmissions done to
  11647. * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
  11648. * session. Represents the count of last connected session, when queried in
  11649. * the disconnected state.
  11650. *
  11651. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
  11652. * STA mode. This represents the Target power in dBm for for transmissions done
  11653. * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
  11654. * Represents the count of last connected session, when queried in the
  11655. * disconnected state.
  11656. *
  11657. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
  11658. * in the STA mode. This represents the Nested attribute representing the
  11659. * overflow counts of each receive buffer allocated to the hardware during the
  11660. * STA's connection. The number of hw buffers might vary for each WLAN
  11661. * solution and hence this attribute represents the nested array of all such
  11662. * HW buffer count. This data is maintained per connect session. Represents
  11663. * the count of last connected session, when queried in the disconnected state.
  11664. *
  11665. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
  11666. * allowed as per the regulatory requirements for the current or last connected
  11667. * session. Used in the STA mode.
  11668. *
  11669. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
  11670. * (dBm) used by the station in its latest unicast frame while communicating
  11671. * to the AP in the connected state. When queried in the disconnected state,
  11672. * this represents the TX power used by the STA with last AP communication
  11673. * when in connected state.
  11674. *
  11675. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
  11676. * level used to adjust the RX sensitivity. Represents the current ANI level
  11677. * when queried in the connected state. When queried in the disconnected
  11678. * state, this corresponds to the latest ANI level at the instance of
  11679. * disconnection.
  11680. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
  11681. * only. This represents the number of group addressed robust management frames
  11682. * received from this station with an invalid MIC or a missing MME when PMF is
  11683. * enabled.
  11684. *
  11685. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
  11686. * only. This represents the number of group addressed robust management frames
  11687. * received from this station with the packet number less than or equal to the
  11688. * last received packet number when PMF is enabled.
  11689. *
  11690. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
  11691. * mode only. This represents the number of Beacon frames received from this
  11692. * station with an invalid MIC or a missing MME when beacon protection is
  11693. * enabled.
  11694. *
  11695. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
  11696. * only. This represents number of Beacon frames received from this station with
  11697. * the packet number less than or equal to the last received packet number when
  11698. * beacon protection is enabled.
  11699. *
  11700. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
  11701. * STA mode only. Driver uses this attribute to populate the connection failure
  11702. * reason codes and the values are defined in
  11703. * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
  11704. * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
  11705. * connection failure from driver. The driver shall not include this attribute
  11706. * in response to QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no
  11707. * connection failure observed in the last attempted connection.
  11708. *
  11709. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
  11710. * used by the station in its last TX frame while communicating to the AP in the
  11711. * connected state. When queried in the disconnected state, this represents the
  11712. * rate used by the STA in the last TX frame to the AP when it was connected.
  11713. * This attribute is used for STA mode only.
  11714. *
  11715. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
  11716. * This represents the rate index used by the STA for the last TX frame to the
  11717. * AP. When queried in the disconnected state, this gives the last RIX used by
  11718. * the STA in the last TX frame to the AP when it was connected.
  11719. *
  11720. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
  11721. * mode only. This represents the number of times the STA TSF goes out of sync
  11722. * from the AP after the connection. If queried in the disconnected state, this
  11723. * gives the count of TSF out of sync for the last connection.
  11724. *
  11725. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
  11726. * mode only. This represents the roam trigger reason for the last roaming
  11727. * attempted by the firmware. This can be queried either in connected state or
  11728. * disconnected state. Each bit of this attribute represents the different
  11729. * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
  11730. *
  11731. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
  11732. * only. This represents the roam fail reason for the last failed roaming
  11733. * attempt by the firmware. Different roam failure reason codes are specified
  11734. * in enum qca_vendor_roam_fail_reasons. This can be queried either in
  11735. * connected state or disconnected state.
  11736. *
  11737. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
  11738. * STA mode only. This represents the roam invoke fail reason for the last
  11739. * failed roam invoke. Different roam invoke failure reason codes
  11740. * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
  11741. * queried either in connected state or disconnected state.
  11742. *
  11743. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
  11744. * This represents the average congestion duration of uplink frames in MAC
  11745. * queue in unit of ms. This can be queried either in connected state or
  11746. * disconnected state.
  11747. *
  11748. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Mandatory u32 Nested
  11749. * attribute, used in AP mode. This represents the MPDU packet count per MCS
  11750. * rate value of TX packets. Every index of this nested attribute corresponds
  11751. * to MCS index, for example Index 0 represents MCS0 TX rate. This can be
  11752. * queried in connected state.
  11753. *
  11754. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Mandatory u32 Nested
  11755. * attribute, used in AP mode. This represents the MPDU packet count per MCS
  11756. * rate value of RX packets. Every index of this nested attribute corresponds
  11757. * to MCS index, for example Index 0 represents MCS0 RX rate. This can be
  11758. * queried in connected state.
  11759. */
  11760. enum qca_wlan_vendor_attr_get_sta_info {
  11761. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
  11762. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
  11763. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
  11764. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
  11765. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
  11766. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
  11767. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
  11768. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
  11769. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
  11770. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
  11771. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
  11772. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
  11773. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
  11774. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
  11775. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
  11776. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
  11777. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
  11778. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
  11779. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
  11780. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
  11781. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
  11782. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
  11783. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
  11784. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
  11785. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
  11786. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
  11787. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
  11788. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
  11789. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
  11790. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
  11791. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
  11792. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
  11793. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
  11794. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
  11795. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
  11796. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
  11797. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
  11798. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
  11799. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
  11800. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
  11801. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
  11802. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
  11803. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
  11804. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
  11805. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
  11806. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
  11807. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
  11808. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
  11809. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51,
  11810. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52,
  11811. /* keep last */
  11812. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
  11813. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
  11814. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
  11815. };
  11816. /**
  11817. * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
  11818. * Used when the driver triggers the STA to disconnect from the AP.
  11819. *
  11820. * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
  11821. * disconnection with the AP due to unspecified reasons.
  11822. *
  11823. * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
  11824. * disconnection with the AP due to a roaming failure. This roaming is triggered
  11825. * internally (host driver/firmware).
  11826. *
  11827. * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
  11828. * the AP when the user/external triggered roaming fails.
  11829. *
  11830. * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
  11831. * by the host driver whenever gateway reachability failure is detected and the
  11832. * driver disconnects with AP.
  11833. *
  11834. * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
  11835. * the AP on a channel switch announcement from it with an unsupported channel.
  11836. *
  11837. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
  11838. * with indoor channels disabled and if the STA is connected on one of these
  11839. * disabled channels, the host driver disconnected the STA with this reason
  11840. * code.
  11841. *
  11842. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
  11843. * explicit request from the user to disable the current operating channel.
  11844. *
  11845. * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
  11846. * the internal host driver/firmware recovery.
  11847. *
  11848. * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
  11849. * a timeout for the key installations from the user space.
  11850. *
  11851. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
  11852. * STA on a band change request from the user space to a different band from the
  11853. * current operation channel/band.
  11854. *
  11855. * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
  11856. * interface down trigger from the user space.
  11857. *
  11858. * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
  11859. * STA on getting continuous transmission failures for multiple Data frames.
  11860. *
  11861. * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
  11862. * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
  11863. * represents inactivity from AP on such transmissions.
  11864. * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
  11865. * disconnection when SA Query times out (AP does not respond to SA Query).
  11866. *
  11867. * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
  11868. * STA on missing the beacons continuously from the AP.
  11869. *
  11870. * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
  11871. * able to move to the channel mentioned by the AP in CSA.
  11872. *
  11873. * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
  11874. */
  11875. enum qca_disconnect_reason_codes {
  11876. QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
  11877. QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
  11878. QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
  11879. QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
  11880. QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
  11881. QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
  11882. QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
  11883. QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
  11884. QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
  11885. QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
  11886. QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
  11887. QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
  11888. QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
  11889. QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
  11890. QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
  11891. QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
  11892. QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
  11893. };
  11894. /**
  11895. * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
  11896. * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
  11897. *
  11898. * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
  11899. * This attribute represents the driver specific reason codes (local
  11900. * driver/firmware initiated reasons for disconnection) defined
  11901. * in enum qca_disconnect_reason_codes.
  11902. */
  11903. enum qca_wlan_vendor_attr_driver_disconnect_reason {
  11904. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
  11905. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
  11906. /* keep last */
  11907. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
  11908. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
  11909. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
  11910. };
  11911. /**
  11912. * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
  11913. *
  11914. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
  11915. */
  11916. enum qca_wlan_tspec_operation {
  11917. QCA_WLAN_TSPEC_ADD = 0,
  11918. QCA_WLAN_TSPEC_DEL = 1,
  11919. QCA_WLAN_TSPEC_GET = 2,
  11920. };
  11921. /**
  11922. * enum qca_wlan_tspec_direction - Direction in TSPEC
  11923. * As what is defined in IEEE Std 802.11-2016, Table 9-139.
  11924. *
  11925. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
  11926. */
  11927. enum qca_wlan_tspec_direction {
  11928. QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
  11929. QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
  11930. QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
  11931. QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
  11932. };
  11933. /**
  11934. * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC
  11935. * As what is defined in IEEE Std 802.11-2016, Table 9-141.
  11936. *
  11937. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
  11938. */
  11939. enum qca_wlan_tspec_ack_policy {
  11940. QCA_WLAN_TSPEC_NORMAL_ACK = 0,
  11941. QCA_WLAN_TSPEC_NO_ACK = 1,
  11942. /* Reserved */
  11943. QCA_WLAN_TSPEC_BLOCK_ACK = 3,
  11944. };
  11945. /**
  11946. * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
  11947. * used by QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
  11948. *
  11949. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
  11950. * u8 attribute. Specify the TSPEC operation of this request. Possible values
  11951. * are defined in enum qca_wlan_tspec_operation.
  11952. * Mandatory attribute for all kinds of config TSPEC requests.
  11953. *
  11954. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
  11955. * u8 attribute. TS ID. Possible values are 0-7.
  11956. * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
  11957. * QCA_WLAN_TSPEC_GET. A mandatory attribute.
  11958. *
  11959. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
  11960. * u8 attribute. Direction of data carried by the TS. Possible values are
  11961. * defined in enum qca_wlan_tspec_direction.
  11962. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11963. *
  11964. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
  11965. * Flag attribute. Indicate whether APSD is enabled for the traffic associated
  11966. * with the TS. set - enabled, not set - disabled.
  11967. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11968. *
  11969. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
  11970. * u8 attribute. User priority to be used for the transport of MSDUs/ -MSDUs
  11971. * belonging to this TS. Possible values are 0-7.
  11972. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11973. *
  11974. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
  11975. * u8 attribute. Indicate whether MAC acknowledgements are required for
  11976. * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
  11977. * Possible values are defined in enum qca_wlan_tspec_ack_policy.
  11978. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11979. *
  11980. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
  11981. * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
  11982. * belonging to this TS.
  11983. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11984. *
  11985. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
  11986. * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
  11987. * belonging to this TS.
  11988. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11989. *
  11990. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
  11991. * u32 attribute. Specify the minimum interval in microseconds between the
  11992. * start of two successive SPs.
  11993. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11994. *
  11995. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
  11996. * u32 attribute. Specify the maximum interval in microseconds between the
  11997. * start of two successive SPs.
  11998. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11999. *
  12000. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
  12001. * u32 attribute. Specify the minimum interval in microseconds that can elapse
  12002. * without arrival or transfer of an MPDU belonging to the TS before this TS
  12003. * is deleted by the MAC entity at the HC.
  12004. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  12005. *
  12006. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
  12007. * u32 attribute. Specify the minimum interval in microseconds that can elapse
  12008. * without arrival or transfer of an MSDU belonging to the TS before the
  12009. * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
  12010. * 0xFFFFFFFF disables the suspension interval. The value of the suspension
  12011. * interval is always less than or equal to the inactivity interval.
  12012. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  12013. *
  12014. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
  12015. * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
  12016. * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
  12017. * bounds of this TSPEC.
  12018. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  12019. *
  12020. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
  12021. * u32 attribute. Indicate the average data rate in bps specified at the MAC
  12022. * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
  12023. * bounds of this TSPEC.
  12024. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  12025. *
  12026. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
  12027. * u32 attribute. Indicate the maximum allowable data rate in bps specified at
  12028. * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
  12029. * the bounds of this TSPEC.
  12030. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  12031. *
  12032. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
  12033. * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
  12034. * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
  12035. * value of 0 indicates that there are no bursts.
  12036. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  12037. *
  12038. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
  12039. * u32 attribute. Indicate the minimum PHY rate in bps for transport of
  12040. * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
  12041. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  12042. *
  12043. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
  12044. * u16 attribute. Specify the excess allocation of time (and bandwidth) over
  12045. * and above the stated application rates required to transport an MSDU/A-MSDU
  12046. * belonging to the TS in this TSPEC.
  12047. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  12048. */
  12049. enum qca_wlan_vendor_attr_config_tspec {
  12050. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
  12051. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
  12052. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
  12053. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
  12054. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
  12055. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
  12056. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
  12057. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
  12058. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
  12059. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
  12060. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
  12061. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
  12062. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
  12063. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
  12064. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
  12065. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
  12066. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
  12067. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
  12068. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
  12069. /* keep last */
  12070. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
  12071. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
  12072. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
  12073. };
  12074. /**
  12075. * enum qca_wlan_medium_assess_type - Type of medium assess request
  12076. *
  12077. * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
  12078. */
  12079. enum qca_wlan_medium_assess_type {
  12080. QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
  12081. QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
  12082. };
  12083. /**
  12084. * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
  12085. * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
  12086. *
  12087. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
  12088. * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
  12089. * Specify the type of medium assess request and indicate its type in response.
  12090. * Possible values are defined in enum qca_wlan_medium_assess_type.
  12091. *
  12092. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
  12093. * u32 attribute. Mandatory in CCA request.
  12094. * Specify the assessment period in terms of seconds. Assessment result will be
  12095. * sent as the response to the CCA request after the assessment period.
  12096. *
  12097. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
  12098. * u32 attribute. Mandatory in response to CCA request.
  12099. * Total timer tick count of the assessment cycle.
  12100. *
  12101. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
  12102. * u32 attribute. Mandatory in response to CCA request.
  12103. * Timer tick count of idle time in the assessment cycle.
  12104. *
  12105. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
  12106. * u32 attribute. Mandatory in response to CCA request.
  12107. * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
  12108. *
  12109. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
  12110. * u32 attribute. Mandatory in response to CCA request.
  12111. * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
  12112. *
  12113. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
  12114. * s32 attribute. Mandatory in response to CCA request.
  12115. * Maximum RSSI of Intra BSS traffic in the assessment cycle.
  12116. *
  12117. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
  12118. * s32 attribute. Mandatory in response to CCA request.
  12119. * Minimum RSSI of Intra BSS traffic in the assessment cycle.
  12120. *
  12121. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
  12122. * u8 attribute. Mandatory in congestion report request.
  12123. * 1-enable 0-disable.
  12124. *
  12125. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
  12126. * u8 attribute. Mandatory in congestion report enable request and will be
  12127. * ignored if present in congestion report disable request. Possible values are
  12128. * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
  12129. * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
  12130. * congestion percentage reaches the configured threshold.
  12131. *
  12132. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
  12133. * u8 attribute. Optional in congestion report enable request and will be
  12134. * ignored if present in congestion report disable request.
  12135. * Specify the interval of congestion report event in terms of seconds. Possible
  12136. * values are 1-255. Default value 1 will be used if this attribute is omitted
  12137. * or using invalid values.
  12138. *
  12139. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
  12140. * u8 attribute. Mandatory in congestion report event.
  12141. * Indicate the actual congestion percentage. Possible values are 0-100.
  12142. */
  12143. enum qca_wlan_vendor_attr_medium_assess {
  12144. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
  12145. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
  12146. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
  12147. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
  12148. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
  12149. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
  12150. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
  12151. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
  12152. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
  12153. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
  12154. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
  12155. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
  12156. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
  12157. /* keep last */
  12158. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
  12159. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
  12160. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
  12161. };
  12162. /**
  12163. * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
  12164. * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
  12165. *
  12166. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
  12167. * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
  12168. * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
  12169. * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
  12170. *
  12171. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
  12172. * u8 attribute, required. 1 means Tx VDEV up event.0 mean Tx VDEV down event.
  12173. *
  12174. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
  12175. * u8 attribute, required. indicates group id of Tx VDEV
  12176. *
  12177. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
  12178. * Nested attribute. This attribute shall be used by the driver to send
  12179. * group information. The attributes defined in enum
  12180. * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
  12181. * are nested in this attribute.
  12182. */
  12183. enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
  12184. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
  12185. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
  12186. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
  12187. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
  12188. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
  12189. /* keep last */
  12190. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
  12191. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
  12192. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
  12193. };
  12194. /**
  12195. * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
  12196. * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
  12197. *
  12198. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
  12199. * u32 attribute, required. contains interface index.
  12200. *
  12201. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
  12202. * u8 attribute, required. 0 - means vdev is in down state.
  12203. * 1- means vdev is in up state.
  12204. */
  12205. enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
  12206. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
  12207. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
  12208. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
  12209. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
  12210. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
  12211. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
  12212. };
  12213. /**
  12214. * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
  12215. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
  12216. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
  12217. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
  12218. * frame
  12219. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
  12220. * Request frame.
  12221. */
  12222. enum qca_wlan_vendor_oci_override_frame_type {
  12223. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
  12224. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
  12225. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
  12226. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
  12227. };
  12228. /**
  12229. * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
  12230. *
  12231. * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
  12232. * STA interface has to be given while selecting the connection policies
  12233. * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
  12234. * An interface is set as primary through the attribute
  12235. * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
  12236. * applicable if the primary interface has not been set earlier.
  12237. *
  12238. * The intention is not to downgrade the primary STA performance, such as:
  12239. * - Do not reduce the number of TX/RX chains of primary connection.
  12240. * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
  12241. * chains.
  12242. * - If using MCC, should set the MCC duty cycle of the primary connection to
  12243. * be higher than the secondary connection.
  12244. *
  12245. * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
  12246. * subsequent STA connection shall be chosen to balance with the existing
  12247. * concurrent STA's performance.
  12248. * Such as
  12249. * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
  12250. * capability.
  12251. * - If using MCC, set the MCC duty cycle of the primary connection to be equal
  12252. * to the secondary.
  12253. * - Prefer BSSID candidates which will help provide the best "overall"
  12254. * performance for all the STA connections.
  12255. */
  12256. enum qca_wlan_concurrent_sta_policy_config {
  12257. QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
  12258. QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
  12259. };
  12260. /**
  12261. * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies
  12262. *
  12263. * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP
  12264. * interface.
  12265. *
  12266. * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies
  12267. * to meet gaming audio latency requirements.
  12268. *
  12269. * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface
  12270. * concurrencies to meet lossless audio streaming requirements.
  12271. *
  12272. * @QCA_WLAN_CONCURRENT_AP_POLICY_XR: Select interface concurrencies to meet
  12273. * XR (eXtended Reality) requirements.
  12274. */
  12275. enum qca_wlan_concurrent_ap_policy_config {
  12276. QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0,
  12277. QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1,
  12278. QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2,
  12279. QCA_WLAN_CONCURRENT_AP_POLICY_XR = 3,
  12280. };
  12281. /**
  12282. * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes
  12283. * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command.
  12284. *
  12285. * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG:
  12286. * u8 attribute. Configures the concurrent STA policy configuration.
  12287. * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
  12288. * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG:
  12289. * u8 attribute. Configures the concurrent AP policy configuration.
  12290. * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config.
  12291. */
  12292. enum qca_wlan_vendor_attr_concurrent_policy {
  12293. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0,
  12294. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1,
  12295. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2,
  12296. /* keep last */
  12297. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST,
  12298. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX =
  12299. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1,
  12300. };
  12301. /* Compatibility defines for previously used enum
  12302. * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used
  12303. * in any new implementation.
  12304. */
  12305. #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \
  12306. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG
  12307. #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \
  12308. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX
  12309. #define qca_wlan_vendor_attr_concurrent_sta_policy \
  12310. qca_wlan_vendor_attr_concurrent_policy
  12311. /**
  12312. * enum qca_sta_connect_fail_reason_codes - Defines values carried
  12313. * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
  12314. * attribute.
  12315. * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No probe response frame received
  12316. * for unicast probe request.
  12317. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
  12318. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
  12319. * ath request.
  12320. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
  12321. * received from AP.
  12322. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send assoc
  12323. * request.
  12324. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
  12325. * assoc request.
  12326. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Assoc response is not
  12327. * received from AP.
  12328. */
  12329. enum qca_sta_connect_fail_reason_codes {
  12330. QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
  12331. QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
  12332. QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
  12333. QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
  12334. QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
  12335. QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
  12336. QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
  12337. };
  12338. /**
  12339. * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
  12340. * OCI override request. These attributes are used inside nested attribute
  12341. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
  12342. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  12343. *
  12344. * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
  12345. * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
  12346. * attribute to specify the frame type in which the OCI is to be overridden.
  12347. *
  12348. * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
  12349. * OCI frequency (in MHz) to override in the specified frame type.
  12350. */
  12351. enum qca_wlan_vendor_attr_oci_override {
  12352. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
  12353. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
  12354. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
  12355. /* keep last */
  12356. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
  12357. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
  12358. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
  12359. };
  12360. /**
  12361. * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
  12362. * filters defined in this enum are used in attribute
  12363. * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
  12364. *
  12365. * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
  12366. * shall filter the channels which are not usable because of coexistence with
  12367. * cellular radio.
  12368. * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
  12369. * shall filter the channels which are not usable because of existing active
  12370. * interfaces in the driver and will result in Multi Channel Concurrency, etc.
  12371. *
  12372. */
  12373. enum qca_wlan_vendor_usable_channels_filter {
  12374. QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
  12375. QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
  12376. };
  12377. /**
  12378. * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
  12379. * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
  12380. *
  12381. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
  12382. * u32 attribute, required. Indicates the center frequency of the primary
  12383. * channel in MHz.
  12384. *
  12385. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
  12386. * u32 attribute. Indicates the center frequency of the primary segment of the
  12387. * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
  12388. * 160 MHz, and 320 MHz channels.
  12389. *
  12390. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
  12391. * u32 attribute. Indicates the center frequency of the secondary segment of
  12392. * 80+80 channel in MHz. This attribute is required only when
  12393. * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
  12394. *
  12395. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
  12396. * u32 attribute, required. Indicates the bandwidth of the channel, possible
  12397. * values are defined in enum nl80211_chan_width.
  12398. *
  12399. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
  12400. * u32 attribute, required. Indicates all the interface types for which this
  12401. * channel is usable. This attribute encapsulates bitmasks of interface types
  12402. * defined in enum nl80211_iftype.
  12403. *
  12404. */
  12405. enum qca_wlan_vendor_attr_chan_info {
  12406. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
  12407. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
  12408. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
  12409. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
  12410. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
  12411. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
  12412. /* keep last */
  12413. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
  12414. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
  12415. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
  12416. };
  12417. /**
  12418. * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
  12419. * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
  12420. *
  12421. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
  12422. * u32 attribute. Indicates the bands from which the channels should be reported
  12423. * in response. This attribute encapsulates bit masks of bands defined in enum
  12424. * nl80211_band. Optional attribute, if not present in the request the driver
  12425. * shall return channels from all supported bands.
  12426. *
  12427. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
  12428. * u32 attribute. Indicates all the interface types for which the usable
  12429. * channels information is requested. This attribute encapsulates bitmasks of
  12430. * interface types defined in enum nl80211_iftype. Optional attribute, if not
  12431. * present in the request the driver shall send information of all supported
  12432. * interface modes.
  12433. *
  12434. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
  12435. * u32 attribute. This attribute carries information of all filters that shall
  12436. * be applied while populating usable channels information by the driver. This
  12437. * attribute carries bit masks of different filters defined in enum
  12438. * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
  12439. * in the request the driver shall send information of channels without applying
  12440. * any of the filters that can be configured through this attribute.
  12441. *
  12442. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
  12443. * Nested attribute. This attribute shall be used by the driver to send
  12444. * usability information of each channel. The attributes defined in enum
  12445. * qca_wlan_vendor_attr_chan_info are used inside this attribute.
  12446. */
  12447. enum qca_wlan_vendor_attr_usable_channels {
  12448. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
  12449. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
  12450. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
  12451. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
  12452. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
  12453. /* keep last */
  12454. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
  12455. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
  12456. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
  12457. };
  12458. /**
  12459. * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
  12460. * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
  12461. *
  12462. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
  12463. * the list of radar history entries.
  12464. * Each entry contains freq, timestamp, and radar signal detect flag.
  12465. * The driver shall add an entry when CAC has finished, or radar signal
  12466. * has been detected post AP beaconing. The driver shall maintain at least
  12467. * 8 entries in order to save CAC result for a 160 MHz channel.
  12468. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
  12469. * Channel frequency in MHz.
  12470. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
  12471. * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
  12472. * or radar detection.
  12473. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
  12474. * This flag indicates radar signal has been detected.
  12475. */
  12476. enum qca_wlan_vendor_attr_radar_history {
  12477. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
  12478. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
  12479. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
  12480. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
  12481. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
  12482. /* keep last */
  12483. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
  12484. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
  12485. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
  12486. };
  12487. /**
  12488. * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
  12489. *
  12490. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
  12491. * target exited MCC state and cleared the quota information. In the
  12492. * command it clears MCC quota setting and restores adaptive scheduling.
  12493. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
  12494. * will not be changed.
  12495. * This quota type is present in command/event.
  12496. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
  12497. * and the target may change the quota based on the data activity.
  12498. * This quota type is only present in event.
  12499. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY: Channel time quota is optimized
  12500. * by the target for low latency.
  12501. * This quota type is only present in command.
  12502. */
  12503. enum qca_wlan_vendor_mcc_quota_type {
  12504. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
  12505. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
  12506. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
  12507. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY = 3,
  12508. };
  12509. /**
  12510. * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
  12511. * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
  12512. * quota information or as a command to set the required MCC quota for an
  12513. * interface.
  12514. *
  12515. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
  12516. * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
  12517. * In a command this specifies the MCC quota type to be set for the interface.
  12518. * In an event this provides the current quota type in force.
  12519. * This is required in a command and an event.
  12520. *
  12521. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
  12522. * the list of channel quota entries.
  12523. * In an event each entry contains the frequency and respective time quota for
  12524. * all the MCC interfaces.
  12525. * In a command it specifies the interface index and respective time quota.
  12526. * In a command only one entry (ifindex, quota pair) may be specified.
  12527. *
  12528. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
  12529. * Channel frequency in MHz. This is present only in an event.
  12530. *
  12531. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
  12532. * Channel time quota expressed as percentage.
  12533. * This is present in an event and a command.
  12534. * In an command, the user shall specify the quota to be allocated for the
  12535. * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
  12536. * In an event this provides the existing quota for the channel.
  12537. *
  12538. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
  12539. * Specifies the interface index (netdev) for which the corresponding
  12540. * configurations are applied. This is required in a command only. Only one
  12541. * interface index may be specified. If not specified, the configuration is
  12542. * rejected.
  12543. *
  12544. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE
  12545. * 8-bit unsigned value to enable/disable Multi-Channel Concurrency
  12546. * low latency mode. The firmware will do optimization for low
  12547. * latency in Multi-Channel concurrency state if enabled. And all existing
  12548. * user quota setting will be overwritten by the target.
  12549. * 0 - disable(default), 1 - enable.
  12550. * It is only present in a command with quota type of
  12551. * QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY.
  12552. */
  12553. enum qca_wlan_vendor_attr_mcc_quota {
  12554. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
  12555. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
  12556. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
  12557. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
  12558. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
  12559. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
  12560. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE = 6,
  12561. /* keep last */
  12562. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
  12563. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
  12564. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
  12565. };
  12566. /**
  12567. * enum qca_wlan_roam_stats_invoke_reason - Roam invoke reason. These values
  12568. * are used by the attribute
  12569. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON.
  12570. *
  12571. * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED: Default value when target
  12572. * invoke roam.
  12573. * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE: Neighbor unreachable
  12574. * detection failed when the roam trigger.
  12575. * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE: Invoke from user space.
  12576. */
  12577. enum qca_wlan_roam_stats_invoke_reason {
  12578. QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED = 0,
  12579. QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE = 1,
  12580. QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE = 2,
  12581. };
  12582. /**
  12583. * enum qca_wlan_roam_stats_tx_failures_reason - Roam TX failures reason. These
  12584. * values are used by the attribute
  12585. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON.
  12586. *
  12587. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED: Default value when
  12588. * roam by kickout.
  12589. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY: Excessive retry when roam
  12590. * trigger by kickout.
  12591. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY: Station inactivity when
  12592. * roam trigger by kickout.
  12593. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT: IBSS disconnect when
  12594. * roam trigger by kickout.
  12595. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT: TDLS peer has
  12596. * disappeared, and all TX is failing when roam trigger by kickout.
  12597. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT: SA query process
  12598. * timeout when roam trigger by kickout.
  12599. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT: Directly connected
  12600. * peer has roamed to a repeater.
  12601. */
  12602. enum qca_wlan_roam_stats_tx_failures_reason {
  12603. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED = 0,
  12604. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY = 1,
  12605. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY = 2,
  12606. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT = 3,
  12607. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT = 4,
  12608. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT = 5,
  12609. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT = 6,
  12610. };
  12611. /**
  12612. * enum qca_wlan_roam_stats_abort_reason - Roam abort reason. These values
  12613. * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON.
  12614. *
  12615. * @QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED: Target did not specify the
  12616. * detailed reason for roam scan being aborted.
  12617. * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH: Roam scan is not
  12618. * started due to high data RSSI during LOW-RSSI roaming.
  12619. * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD: Roam scan is not
  12620. * started due to good link speed during LOW-RSSI roaming.
  12621. * @QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH: Roam scan is not started
  12622. * due to high data RSSI during background roaming.
  12623. * @QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD: Roam scan is not
  12624. * started due to high beacon RSSI during background roaming
  12625. */
  12626. enum qca_wlan_roam_stats_abort_reason {
  12627. QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED = 0,
  12628. QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH = 1,
  12629. QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD = 2,
  12630. QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH = 3,
  12631. QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD = 4,
  12632. };
  12633. /**
  12634. * enum qca_wlan_roam_stats_scan_type - Roam scan type define.
  12635. * These values are used by the attribute
  12636. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE.
  12637. *
  12638. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL: Partial channel scan
  12639. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL: Full channel scan
  12640. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN: No roam scan was triggered.
  12641. * This is generally used in BTM events to indicate BTM frame exchange logs.
  12642. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ: Higher band roam scan
  12643. * from 2.4 GHz to 5 GHz or 6 GHz
  12644. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ: Higher band roam scan from
  12645. * 5 GHz to 6 GHz
  12646. */
  12647. enum qca_wlan_roam_stats_scan_type {
  12648. QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL = 0,
  12649. QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL = 1,
  12650. QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN = 2,
  12651. QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ = 3,
  12652. QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ = 4,
  12653. };
  12654. /**
  12655. * enum qca_wlan_roam_stats_scan_dwell_type - Roam scan dwell type.
  12656. * These values are used by the attribute
  12657. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE.
  12658. *
  12659. * @QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED: Target did not specify the
  12660. * detailed roam scan type.
  12661. * @QCA_WLAN_ROAM_STATS_DWELL_ACTIVE_TYPE: Active scan during roam.
  12662. * @QCA_WLAN_ROAM_STATS_DWELL_PASSIVE_TYPE: Passive scan during roam.
  12663. */
  12664. enum qca_wlan_roam_stats_scan_dwell_type {
  12665. QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED = 0,
  12666. QCA_WLAN_ROAM_STATS_DWELL_TYPE_ACTIVE = 1,
  12667. QCA_WLAN_ROAM_STATS_DWELL_TYPE_PASSIVE = 2,
  12668. };
  12669. /**
  12670. * enum qca_wlan_vendor_attr_roam_stats_scan_chan_info - Attributes used inside
  12671. * the %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO nested attribute.
  12672. */
  12673. enum qca_wlan_vendor_attr_roam_stats_scan_chan_info {
  12674. /* 32-bit unsigned value to indicate center frequency of the primary
  12675. * channel in MHz for each roam scan channel.
  12676. */
  12677. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHANNEL_FREQ = 1,
  12678. /* 8-bit unsigned value to indicate channel scan type for each
  12679. * roam scan channel, values in qca_wlan_roam_stats_scan_dwell_type.
  12680. */
  12681. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE = 2,
  12682. /* 32-bit unsigned value to indicate maximum scan time in milliseconds
  12683. * for each roam scan channel.
  12684. */
  12685. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX_DWELL_TIME = 3,
  12686. /* keep last */
  12687. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST,
  12688. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_FRAME_MAX =
  12689. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST - 1,
  12690. };
  12691. /**
  12692. * enum qca_wlan_roam_stats_frame_subtype - Roam frame subtypes. These values
  12693. * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE.
  12694. *
  12695. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP: Authentication Response frame
  12696. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP: Reassociation Response frame
  12697. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1: EAPOL-Key M1 frame
  12698. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2: EAPOL-Key M2 frame
  12699. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3: EAPOL-Key M3 frame
  12700. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4: EAPOL-Key M4 frame
  12701. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1: EAPOL-Key GTK M1 frame
  12702. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2: EAPOL-Key GTK M2 frame
  12703. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_REQ: Authentication Request frame
  12704. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_REQ: Reassociation Request frame
  12705. */
  12706. enum qca_wlan_roam_stats_frame_subtype {
  12707. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP = 1,
  12708. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP = 2,
  12709. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1 = 3,
  12710. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2 = 4,
  12711. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3 = 5,
  12712. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4 = 6,
  12713. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1 = 7,
  12714. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2 = 8,
  12715. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_REQ = 9,
  12716. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_REQ = 10,
  12717. };
  12718. /* Compatibility defines for previously used names.
  12719. * These values should not be used in any new implementation.
  12720. */
  12721. #define QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH \
  12722. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP
  12723. #define QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC \
  12724. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP
  12725. /**
  12726. * enum roam_frame_status - Specifies the valid values the vendor roam frame
  12727. * attribute QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS can take.
  12728. *
  12729. * @QCA_WLAN_ROAM_FRAME_STATUS_SUCCESS: It indicates the roam frame was
  12730. * sent or received successfully.
  12731. * @QCA_WLAN_ROAM_FRAME_STATUS_FAIL: It indicates the roam frame sending or
  12732. * receiving failed.
  12733. */
  12734. enum qca_wlan_roam_stats_frame_status {
  12735. QCA_WLAN_ROAM_STATS_FRAME_STATUS_SUCCESS = 0,
  12736. QCA_WLAN_ROAM_STATS_FRAME_STATUS_FAIL = 1,
  12737. };
  12738. /**
  12739. * enum qca_wlan_vendor_attr_roam_stats_frame_info - Attributes used within the
  12740. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO nested attribute.
  12741. */
  12742. enum qca_wlan_vendor_attr_roam_stats_frame_info {
  12743. /* 8-bit unsigned value to indicate the frame subtype during
  12744. * roaming, one of the values in qca_wlan_roam_stats_frame_subtype.
  12745. */
  12746. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE = 1,
  12747. /* 8-bit unsigned value to indicate the frame is successful or failed
  12748. * during roaming, one of the values in
  12749. * qca_wlan_roam_stats_frame_status.
  12750. */
  12751. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS = 2,
  12752. /* 64-bit unsigned value to indicate the timestamp for frame of
  12753. * preauthentication/reassociation/EAPOL-M1/EAPOL-M2/EAPOL-M3/EAPOL-M4
  12754. * when sent or received during roaming, timestamp in milliseconds
  12755. * from system boot.
  12756. */
  12757. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3,
  12758. /* This attribute indicates a 6-byte MAC address representing
  12759. * the BSSID of the AP.
  12760. * For non-MLO scenario, it indicates the AP BSSID.
  12761. * For MLO scenario, it indicates the AP BSSID which may be the primary
  12762. * link BSSID or a nonprimary link BSSID.
  12763. */
  12764. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_BSSID = 5,
  12765. /* keep last */
  12766. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST,
  12767. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_MAX =
  12768. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST - 1,
  12769. };
  12770. /**
  12771. * enum qca_wlan_vendor_attr_roam_stats_info - Used by the attribute
  12772. * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO.
  12773. */
  12774. enum qca_wlan_vendor_attr_roam_stats_info {
  12775. /* 64-bit unsigned value to indicate the timestamp when roam was
  12776. * triggered by the firmware, timestamp in milliseconds from system
  12777. * boot.
  12778. */
  12779. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_TRIGGER_TIMESTAMP = 1,
  12780. /* 32-bit unsigned value to indicate the roam trigger reason for the
  12781. * last roaming attempted by the firmware. This can be queried either
  12782. * in a connected state or disconnected state. The values of this
  12783. * attribute represent the roam trigger reason codes, which
  12784. * are defined in enum qca_roam_reason.
  12785. */
  12786. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TRIGGER_REASON = 2,
  12787. /* 8-bit unsigned value to indicate percentage of packets for which
  12788. * the RX rate is lower than the RX rate threshold in total RX packets,
  12789. * used for roaming trigger by per.
  12790. */
  12791. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_RXRATE_THRESHOLD_PERCENT = 3,
  12792. /* 8-bit unsigned value to indicate percentage of packets for which
  12793. * the TX rate is lower than TX rate threshold in total TX packets,
  12794. * used for roaming trigger by per.
  12795. */
  12796. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_TXRATE_THRESHOLD_PERCENT = 4,
  12797. /* 32-bit unsigned value to indicate final beacon miss count for
  12798. * trigger reason of beacon miss.
  12799. */
  12800. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FINAL_BMISS_CNT = 5,
  12801. /* 32-bit unsigned value to indicate consecutive beacon miss count
  12802. * for trigger reason of beacon miss.
  12803. */
  12804. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONSECUTIVE_BMISS_CNT = 6,
  12805. /* 8-bit unsigned value to indicate QOS-NULL TX status for trigger
  12806. * reason of beacon miss, 0 - success, 1 - fail.
  12807. * If QOS-NULL TX status is successful, beacon miss final count and
  12808. * consecutive beacon miss count will be reset to zero, and roam will
  12809. * not be triggered. If QOS-NULL TX status is failed, beacon miss final
  12810. * count and consecutive beacon miss count continue to calculate until
  12811. * roaming trigger by beacon miss.
  12812. */
  12813. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BMISS_QOS_NULL_SUCCESS = 7,
  12814. /* 8-bit signed value to indicate connected AP RSSI in dBm
  12815. * for trigger reason of poor RSSI.
  12816. */
  12817. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_CURRENT_RSSI = 8,
  12818. /* 8-bit signed value to indicate RSSI threshold value in dBm
  12819. * for trigger reason of poor RSSI.
  12820. */
  12821. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_ROAM_RSSI_THRESHOLD = 9,
  12822. /* 8-bit unsigned value to indicate RX link speed status
  12823. * for trigger reason of poor RSSI, 0 - good link speed,
  12824. * 1 - bad link speed.
  12825. */
  12826. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_RX_LINKSPEED_STATUS = 10,
  12827. /* 8-bit signed value to indicate connected AP RSSI in dBm
  12828. * for trigger reason of better RSSI.
  12829. */
  12830. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_CURRENT_RSSI = 11,
  12831. /* 8-bit signed value to indicate RSSI threshold value in dBm
  12832. * for trigger reason of better RSSI.
  12833. */
  12834. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_HIGH_RSSI_THRESHOLD = 12,
  12835. /* 32-bit unsigned value to indicate RX throughput in bytes per second
  12836. * for trigger reason of congestion.
  12837. */
  12838. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_RX_TPUT = 13,
  12839. /* 32-bit unsigned value to indicate TX throughput in bytes per second
  12840. * for trigger reason of congestion.
  12841. */
  12842. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_TX_TPUT = 14,
  12843. /* 8-bit unsigned value to indicate roamable AP count
  12844. * for trigger reason of congestion.
  12845. */
  12846. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_ROAMABLE_CNT = 15,
  12847. /* 8-bit unsigned value to indicate invoke reason, one of the values
  12848. * defined in qca_wlan_roam_stats_invoke_reason.
  12849. */
  12850. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON = 16,
  12851. /* 8-bit unsigned value to indicate request mode for trigger reason
  12852. * of BTM, values are defined in IEEE Std 802.11-2020, 9.6.13.9.
  12853. */
  12854. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQUEST_MODE = 17,
  12855. /* 32-bit unsigned value to indicate disassociate time in milliseconds
  12856. * for trigger reason of BTM.
  12857. */
  12858. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_DISASSOC_IMMINENT_TIME = 18,
  12859. /* 32-bit unsigned value to indicate preferred candidate list valid
  12860. * interval in milliseconds for trigger reason of BTM.
  12861. */
  12862. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_VALID_INTERNAL = 19,
  12863. /* 8-bit unsigned value to indicate the number of preferred
  12864. * candidates for trigger reason of BTM.
  12865. */
  12866. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_CANDIDATE_LIST_CNT = 20,
  12867. /* 8-bit unsigned value to indicate response status for trigger
  12868. * reason of BTM, values are defined in IEEE Std 802.11-2020,
  12869. * Table 9-428 (BTM status code definitions).
  12870. */
  12871. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_RESPONSE_STATUS_CODE = 21,
  12872. /* 32-bit unsigned value to indicate BSS termination timeout value
  12873. * in milliseconds for trigger reason of BTM.
  12874. */
  12875. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_BSS_TERMINATION_TIMEOUT = 22,
  12876. /* 32-bit unsigned value to indicate MBO associate retry timeout
  12877. * value in milliseconds for trigger reason of BTM.
  12878. */
  12879. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_MBO_ASSOC_RETRY_TIMEOUT = 23,
  12880. /* 8-bit unsigned value to indicate dialog token number
  12881. * for trigger reason of BTM.
  12882. */
  12883. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQ_DIALOG_TOKEN = 24,
  12884. /* 8-bit unsigned value to indicate percentage of connected AP
  12885. * channel congestion utilization for trigger reason of BSS load.
  12886. */
  12887. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BSS_CU_LOAD = 25,
  12888. /* 8-bit unsigned value to indicate disconnection type
  12889. * for trigger reason of disconnection. 1 - Deauthentication,
  12890. * 2 - Disassociation.
  12891. */
  12892. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_TYPE = 26,
  12893. /* 16-bit unsigned value to indicate deauthentication or disassociation
  12894. * reason for trigger reason of disconnection, values are defined
  12895. * in IEEE Std 802.11-2020, Table 9-49 (Reason codes).
  12896. */
  12897. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_REASON = 27,
  12898. /* 32-bit unsigned value to indicate milliseconds of roam scan
  12899. * periodicity when needing to roam to find a better AP for trigger
  12900. * reason of periodic timer.
  12901. */
  12902. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PERIODIC_TIMER_MS = 28,
  12903. /* 8-bit signed value to indicate connected AP RSSI in dBm for
  12904. * trigger reason of background scan.
  12905. */
  12906. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_CURRENT_RSSI = 29,
  12907. /* 8-bit signed value to indicate data RSSI in dBm for trigger reason
  12908. * of background scan.
  12909. */
  12910. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI = 30,
  12911. /* 8-bit signed value to indicate data RSSI threshold in dBm
  12912. * for trigger reason of background scan.
  12913. */
  12914. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI_THRESH = 31,
  12915. /* 32-bit unsigned value to indicate consecutive TX failure threshold
  12916. * for trigger reason of TX failures.
  12917. */
  12918. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_THRESHOLD = 32,
  12919. /* 8-bit unsigned value to indicate TX failure reason for trigger
  12920. * reason of TX failures, one of the values defined in
  12921. * qca_wlan_roam_stats_tx_failures_reason.
  12922. */
  12923. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON = 33,
  12924. /* 8-bit unsigned value to indicate detail abort reason. One of the
  12925. * values in enum qca_wlan_roam_stats_abort_reason.
  12926. */
  12927. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON = 34,
  12928. /* 8-bit signed value to indicate data RSSI in dBm when aborting the
  12929. * roam scan.
  12930. */
  12931. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI = 35,
  12932. /* 8-bit signed value to indicate data RSSI threshold in dBm when
  12933. * aborting the roam scan.
  12934. */
  12935. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI_THRESHOLD = 36,
  12936. /* 8-bit unsigned value to indicate data RSSI threshold in RX link
  12937. * speed status when aborting the roam scan.
  12938. * 0 - good link speed, 1 - bad link speed
  12939. */
  12940. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RX_LINKSPEED_STATUS = 37,
  12941. /* 8-bit unsigned value to indicate roaming scan type.
  12942. * One of the values in enum qca_wlan_roam_stats_scan_type.
  12943. */
  12944. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE = 38,
  12945. /* 8-bit unsigned value to indicate roaming result, used in STA mode
  12946. * only.
  12947. * 0-Roaming is successful, 1-Roaming is failed
  12948. */
  12949. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS = 39,
  12950. /* 8-bit unsigned value to indicate the roam fail reason for the
  12951. * last failed roaming attempt by the firmware. Different roam failure
  12952. * reason codes are specified in enum qca_vendor_roam_fail_reasons.
  12953. * This can be queried either in connected state or disconnected state.
  12954. */
  12955. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FAIL_REASON = 40,
  12956. /* Nested attribute. Indicate roam scan info for each channel, the
  12957. * attributes defined in enum
  12958. * qca_wlan_vendor_attr_roam_stats_scan_chan_info are used inside
  12959. * this attribute.
  12960. */
  12961. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO = 41,
  12962. /* 32-bit unsigned value to indicate total scan time during roam scan
  12963. * all channels, time in milliseconds.
  12964. */
  12965. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TOTAL_SCAN_TIME = 42,
  12966. /* Nested attribute. This attribute shall be used by the driver to
  12967. * send roam information of each subtype. The attributes defined in
  12968. * enum qca_wlan_vendor_attr_roam_stats_frame_info are used inside
  12969. * this attribute.
  12970. */
  12971. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO = 43,
  12972. /* 6-byte MAC address used by the driver to send roam stats information
  12973. * of the original AP BSSID. The original AP is the connected AP before
  12974. * roam happens, regardless of the roam resulting in success or failure.
  12975. * This attribute is only present when
  12976. * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
  12977. * 0 (success) or 1 (failure).
  12978. * For non-MLO scenario, it indicates the original connected AP BSSID.
  12979. * For MLO scenario, it indicates the original BSSID of the link
  12980. * for which the reassociation occurred during the roam.
  12981. */
  12982. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ORIGINAL_BSSID = 45,
  12983. /* 6-byte MAC address used by the driver to send roam stats information
  12984. * of the roam candidate AP BSSID when roam failed. This is only present
  12985. * when QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
  12986. * 1 (failure). If the firmware updates more than one candidate AP BSSID
  12987. * to the driver, the driver only fills the last candidate AP BSSID and
  12988. * reports it to user space.
  12989. * For non-MLO scenario, it indicates the last candidate AP BSSID.
  12990. * For MLO scenario, it indicates the AP BSSID which may be the primary
  12991. * link BSSID or a nonprimary link BSSID.
  12992. */
  12993. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CANDIDATE_BSSID = 46,
  12994. /* 6-byte MAC address used by the driver to send roam stats information
  12995. * of the roamed AP BSSID when roam succeeds. This is only present when
  12996. * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
  12997. * 0 (success).
  12998. * For non-MLO scenario, it indicates the new AP BSSID to which has
  12999. * been successfully roamed.
  13000. * For MLO scenario, it indicates the new AP BSSID of the link on
  13001. * which the reassociation occurred during the roam.
  13002. */
  13003. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAMED_BSSID = 47,
  13004. /* keep last */
  13005. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST,
  13006. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX =
  13007. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST - 1,
  13008. };
  13009. /**
  13010. * enum qca_wlan_vendor_attr_roam_cached_stats - Vendor subcmd attributes to
  13011. * report cached roam info from the driver to user space, enum values are used
  13012. * for netlink attributes sent with the
  13013. * %QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS sub command.
  13014. */
  13015. enum qca_wlan_vendor_attr_roam_cached_stats {
  13016. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INVALID = 0,
  13017. /* Nested attribute, this attribute contains nested array roam info
  13018. * statistics defined in enum qca_wlan_vendor_attr_roam_stats_info.
  13019. */
  13020. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO = 1,
  13021. /* keep last */
  13022. QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST,
  13023. QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_MAX =
  13024. QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST - 1,
  13025. };
  13026. /**
  13027. * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
  13028. * radio configurations present in each radio combination.
  13029. *
  13030. * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
  13031. * the band info in the radio configuration. Uses the enum qca_set_band values.
  13032. *
  13033. * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
  13034. * the number of antennas info in the radio configuration.
  13035. */
  13036. enum qca_wlan_vendor_attr_supported_radio_cfg {
  13037. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
  13038. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
  13039. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
  13040. /* keep last */
  13041. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
  13042. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
  13043. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
  13044. };
  13045. /**
  13046. * enum qca_wlan_vendor_attr_radio_combination - Attributes for
  13047. * radio combinations supported by the device.
  13048. *
  13049. * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
  13050. * provides the radio configurations present in the radio combination.
  13051. * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
  13052. * This attribute provides the values for radio combination matrix.
  13053. * For standalone config, the number of config values is one and the config
  13054. * carries the band and antenna information for standalone configuration. For
  13055. * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
  13056. * configuration the number of config values is two and the config carries the
  13057. * band and antenna information for each simultaneous radio.
  13058. */
  13059. enum qca_wlan_vendor_attr_radio_combination {
  13060. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
  13061. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
  13062. /* keep last */
  13063. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
  13064. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
  13065. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
  13066. };
  13067. /**
  13068. * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
  13069. * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
  13070. *
  13071. * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
  13072. * provides the radio combinations supported by the device.
  13073. * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
  13074. * For example, in the radio combination matrix for a device which has two
  13075. * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
  13076. * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
  13077. * combinations is 5 and the radio combinations are
  13078. * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
  13079. * {{5 GHz 2X2}}, //Standalone 5 GHz
  13080. * {{6 GHz 2X2}}, //Standalone 6 GHz
  13081. * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
  13082. * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
  13083. * The band and antenna info together as nested data provides one radio config.
  13084. * Standalone configuration has one config with band and antenna nested data.
  13085. * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
  13086. * have two nested band and antenna info data.
  13087. */
  13088. enum qca_wlan_vendor_attr_radio_combination_matrix {
  13089. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
  13090. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
  13091. /* keep last */
  13092. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
  13093. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
  13094. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
  13095. };
  13096. /**
  13097. * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
  13098. * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
  13099. *
  13100. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
  13101. * Enable mDNS offload. This attribute is mandatory to enable
  13102. * mDNS offload feature. If this attribute is not present, mDNS offload
  13103. * is disabled.
  13104. *
  13105. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
  13106. * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
  13107. * attribute is mandatory when enabling the feature, and not required when
  13108. * disabling the feature.
  13109. *
  13110. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
  13111. * the following attributes:
  13112. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
  13113. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
  13114. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
  13115. *
  13116. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
  13117. * It consists of a hostname and ".local" as the domain name. The character
  13118. * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
  13119. * It is used to compare the domain the in the "QU" query. Only 1 FQDN is
  13120. * supported per vdev.
  13121. * For example: myphone.local
  13122. *
  13123. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
  13124. * u16 attribute. It specifies the total number of resource records present
  13125. * in the answer section of the answer payload. This attribute is needed by the
  13126. * firmware to populate the mDNS response frame for mNDS queries without having
  13127. * to parse the answer payload.
  13128. *
  13129. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required Binary blob
  13130. * attribute sent by the mdnsResponder from userspace. It contains resource
  13131. * records of various types (Eg: A, AAAA, PTR, TXT) and service list. This
  13132. * payload is passed down to firmware and is transmitted in response to
  13133. * mDNS queries.
  13134. * The maximum size of the answer payload supported is 512 bytes.
  13135. */
  13136. enum qca_wlan_vendor_attr_mdns_offload {
  13137. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
  13138. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
  13139. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
  13140. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
  13141. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
  13142. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
  13143. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
  13144. /* keep last */
  13145. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
  13146. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
  13147. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
  13148. };
  13149. /**
  13150. * enum qca_vendor_attr_diag_event_type - Attributes used by
  13151. * %QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute.
  13152. *
  13153. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING: Diag event sent from
  13154. * driver/firmware during Connection request from Userspace. Uses the
  13155. * following attributes of enum qca_wlan_vendor_attr_diag:
  13156. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13157. * QCA_WLAN_VENDOR_ATTR_DIAG_SSID,
  13158. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13159. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT,
  13160. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  13161. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT,
  13162. * QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE,
  13163. * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE,
  13164. * QCA_WLAN_VENDOR_ATTR_DIAG_AKM,
  13165. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  13166. * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE,
  13167. * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE,
  13168. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13169. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13170. *
  13171. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL: Diag event sent from
  13172. * driver/firmware when a connection is failed. Uses the
  13173. * following attributes of enum qca_wlan_vendor_attr_diag:
  13174. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13175. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13176. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  13177. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13178. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13179. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13180. *
  13181. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ: Diag event sent from
  13182. * driver/firmware during Authentication request from a device. Uses the
  13183. * following attributes of enum qca_wlan_vendor_attr_diag:
  13184. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13185. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13186. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13187. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  13188. * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
  13189. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13190. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  13191. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13192. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13193. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13194. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13195. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13196. *
  13197. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP: Diag event sent from
  13198. * driver/firmware when device receives an authentication response. Uses the
  13199. * following attributes of enum qca_wlan_vendor_attr_diag:
  13200. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13201. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13202. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  13203. * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
  13204. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13205. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  13206. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13207. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13208. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13209. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13210. *
  13211. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ: Diag event sent from
  13212. * driver/firmware when device sends an association request. Uses the
  13213. * following attributes of enum qca_wlan_vendor_attr_diag:
  13214. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13215. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13216. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13217. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13218. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13219. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13220. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13221. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13222. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13223. *
  13224. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP: Diag event sent from
  13225. * driver/firmware when device receives an association response. Uses the
  13226. * following attributes of enum qca_wlan_vendor_attr_diag:
  13227. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13228. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13229. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13230. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  13231. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13232. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13233. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13234. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  13235. * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID.
  13236. *
  13237. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX: Diag event sent from
  13238. * driver/userspace when device receives a deauthentication response. Uses the
  13239. * following attributes of enum qca_wlan_vendor_attr_diag:
  13240. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13241. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13242. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13243. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13244. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13245. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13246. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13247. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13248. *
  13249. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX: Diag event sent from
  13250. * driver/userspace when device sends a deauthentication request. Uses the
  13251. * following attributes of enum qca_wlan_vendor_attr_diag:
  13252. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13253. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13254. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13255. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13256. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13257. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13258. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13259. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13260. *
  13261. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX: Diag event sent from
  13262. * driver/firmware when device receives a disassociation response. Uses the
  13263. * following attributes of enum qca_wlan_vendor_attr_diag:
  13264. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13265. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13266. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13267. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13268. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13269. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13270. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13271. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13272. *
  13273. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX: Diag event sent from
  13274. * driver/firmware when device sends a disassociation request. Uses the
  13275. * following attributes of enum qca_wlan_vendor_attr_diag:
  13276. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13277. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13278. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13279. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13280. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13281. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13282. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13283. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13284. *
  13285. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN: Diag event sent from
  13286. * driver/firmware when device did not receive beacon packets during connection.
  13287. * Uses the following attributes of enum qca_wlan_vendor_attr_diag:
  13288. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13289. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13290. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13291. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13292. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13293. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13294. *
  13295. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START: Diag event sent from
  13296. * driver/firmware when Roaming scan is triggered. Uses the following
  13297. * attributes of enum qca_wlan_vendor_attr_diag:
  13298. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13299. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON,
  13300. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON,
  13301. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13302. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  13303. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE,
  13304. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD,
  13305. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13306. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13307. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13308. *
  13309. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE: Diag event sent from
  13310. * driver/firmware Roam scanning is processed. Uses the following
  13311. * attributes of enum qca_wlan_vendor_attr_diag:
  13312. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13313. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  13314. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST,
  13315. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT,
  13316. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  13317. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13318. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13319. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  13320. * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE.
  13321. *
  13322. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP: Diag event sent from
  13323. * driver/firmware to provide Roam information of the current AP. Uses the
  13324. * following attributes of enum qca_wlan_vendor_attr_diag:
  13325. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13326. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13327. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13328. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  13329. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  13330. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
  13331. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13332. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13333. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13334. *
  13335. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP: Diag event sent from
  13336. * driver/firmware to provide Roam information of the candid AP. Uses the
  13337. * following attributes of enum qca_wlan_vendor_attr_diag:
  13338. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13339. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13340. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13341. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  13342. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  13343. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
  13344. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP,
  13345. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  13346. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13347. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13348. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13349. *
  13350. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT: Diag event sent from
  13351. * driver/firmware to provide Roam result after selecting a candidate. Uses the
  13352. * following attributes of enum qca_wlan_vendor_attr_diag:
  13353. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13354. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL,
  13355. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13356. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13357. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13358. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13359. *
  13360. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL: Diag event sent from
  13361. * driver/firmware to indicate Roam Cancellation due to higher priority events.
  13362. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13363. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13364. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13365. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13366. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13367. *
  13368. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ: Diag event sent from driver
  13369. * /firmware when STA sends a BTM request frame. Uses the following attributes
  13370. * of enum qca_wlan_vendor_attr_diag:
  13371. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13372. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  13373. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE,
  13374. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER,
  13375. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL,
  13376. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT,
  13377. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13378. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13379. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13380. *
  13381. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY: Diag event sent from
  13382. * driver/firmware when STA queries about BTM transition. Uses the following
  13383. * attributes of enum qca_wlan_vendor_attr_diag:
  13384. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13385. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  13386. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON,
  13387. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13388. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13389. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13390. *
  13391. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP: Diag event sent from driver
  13392. * /firmware when STA receives BTM response frame. Uses the following
  13393. * attributes of enum qca_wlan_vendor_attr_diag:
  13394. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13395. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  13396. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE,
  13397. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY,
  13398. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID,
  13399. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13400. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13401. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13402. *
  13403. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI: Diag event sent from
  13404. * driver/firmware to provide BTM request candidate information. Uses the
  13405. * following attributes of enum qca_wlan_vendor_attr_diag:
  13406. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13407. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13408. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE,
  13409. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  13410. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13411. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13412. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13413. *
  13414. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC: Diag event sent from driver
  13415. * /firmware when ROAM WTC trigger happens. Uses the following attributes of
  13416. * enum qca_wlan_vendor_attr_diag:
  13417. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13418. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE,
  13419. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13420. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION,
  13421. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13422. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13423. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13424. *
  13425. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER: Diag event sent from
  13426. * driver/firmware to indicate DHCP discovery to AP. Uses the following
  13427. * attributes of enum qca_wlan_vendor_attr_diag:
  13428. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13429. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13430. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13431. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13432. *
  13433. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER: Diag event sent from
  13434. * driver/firmware to indicate DHCP offering to AP. Uses the following
  13435. * attributes of enum qca_wlan_vendor_attr_diag:
  13436. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13437. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13438. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13439. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13440. *
  13441. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST: Diag event sent from
  13442. * driver/firmware to indicate driver sent DHCP packets. Uses the following
  13443. * attributes of enum qca_wlan_vendor_attr_diag:
  13444. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13445. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13446. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13447. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13448. *
  13449. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK: Diag event sent from driver
  13450. * /firmware to indicate acknowledgement of DHCP packets. Uses the following
  13451. * attributes of enum qca_wlan_vendor_attr_diag:
  13452. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13453. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13454. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13455. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13456. *
  13457. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK: Diag event sent from driver
  13458. * /firmware to indicate negative acknowledgement of DHCP packets. Uses the
  13459. * following attributes of enum qca_wlan_vendor_attr_diag:
  13460. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13461. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13462. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13463. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13464. *
  13465. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1: Diag event sent from driver
  13466. * /firmware to indicate EAPOL M1 message. Uses the following attributes of
  13467. * enum qca_wlan_vendor_attr_diag:
  13468. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  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_EAPOL_M2: Diag event sent from driver
  13474. * /firmware to indicate EAPOL M2 message. 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_FRAME_TX_STATUS,
  13478. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13479. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13480. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13481. *
  13482. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3: Diag event sent from driver
  13483. * /firmware to indicate EAPOL M3 message. Uses the following attributes of
  13484. * enum qca_wlan_vendor_attr_diag:
  13485. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13486. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13487. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13488. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13489. *
  13490. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4: Diag event sent from driver
  13491. * /firmware to indicate EAPOL M4 message. Uses the following attributes of
  13492. * enum qca_wlan_vendor_attr_diag:
  13493. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13494. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13495. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13496. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13497. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13498. *
  13499. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1: Diag event sent from driver
  13500. * /firmware to indicate GTK rekey M1 frame. Uses the following attributes of
  13501. * enum qca_wlan_vendor_attr_diag:
  13502. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13503. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13504. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13505. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13506. *
  13507. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2: Diag event sent from driver
  13508. * /firmware to indicate GTK Rekey M2 frame. Uses the following attributes of
  13509. * enum qca_wlan_vendor_attr_diag:
  13510. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13511. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13512. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13513. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13514. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13515. *
  13516. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST: Diag event sent from driver
  13517. * /firmware to indicate device sent EAP request. Uses the following attributes
  13518. * of enum qca_wlan_vendor_attr_diag:
  13519. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13520. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
  13521. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
  13522. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13523. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13524. *
  13525. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE: Diag event sent from driver
  13526. * /firmware to indicate device received EAP response. Uses the following
  13527. * attributes of enum qca_wlan_vendor_attr_diag:
  13528. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13529. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
  13530. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
  13531. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13532. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13533. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13534. *
  13535. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS: Diag event sent from driver
  13536. * /firmware to indicate EAP frame transmission is success. Uses the following
  13537. * attributes of enum qca_wlan_vendor_attr_diag:
  13538. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13539. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13540. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13541. *
  13542. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE: Diag event sent from driver
  13543. * /firmware to indicate EAP frame transmission is failed. Uses the following
  13544. * attributes of enum qca_wlan_vendor_attr_diag:
  13545. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13546. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13547. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13548. *
  13549. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ: Diag event sent from driver
  13550. * /firmware to indicate Reassocation request. Uses the following attributes
  13551. * of enum qca_wlan_vendor_attr_diag:
  13552. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  13553. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13554. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13555. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13556. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13557. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13558. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13559. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  13560. *
  13561. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES: Diag event sent from driver
  13562. * /firmware to indicate Reassocation response. Uses the following attributes
  13563. * of enum qca_wlan_vendor_attr_diag:
  13564. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  13565. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13566. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13567. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  13568. * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID,
  13569. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13570. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13571. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  13572. */
  13573. enum qca_vendor_attr_diag_event_type {
  13574. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING = 0,
  13575. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL = 1,
  13576. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ = 2,
  13577. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP = 3,
  13578. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ = 4,
  13579. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP = 5,
  13580. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX = 6,
  13581. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX = 7,
  13582. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX = 8,
  13583. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX = 9,
  13584. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN = 10,
  13585. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START = 11,
  13586. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE = 12,
  13587. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP = 13,
  13588. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP = 14,
  13589. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT = 15,
  13590. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL = 16,
  13591. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ = 17,
  13592. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY = 18,
  13593. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP = 19,
  13594. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI = 20,
  13595. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC = 21,
  13596. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER = 22,
  13597. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER = 23,
  13598. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST = 24,
  13599. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK = 25,
  13600. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK = 26,
  13601. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1 = 27,
  13602. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2 = 28,
  13603. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3 = 29,
  13604. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4 = 30,
  13605. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1 = 31,
  13606. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2 = 32,
  13607. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST = 33,
  13608. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE = 34,
  13609. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS = 35,
  13610. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE = 36,
  13611. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ = 37,
  13612. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES = 38,
  13613. /* keep last */
  13614. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST,
  13615. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_MAX =
  13616. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST - 1,
  13617. };
  13618. /**
  13619. * enum qca_wlan_vendor_tx_status - Used by attribute
  13620. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS to indicate TX status.
  13621. * @QCA_WLAN_VENDOR_TX_STATUS_FAIL: Indicates frame is not sent over the air.
  13622. * @QCA_WLAN_VENDOR_TX_STATUS_NO_ACK: Indicates packet sent but acknowledgement
  13623. * is not received.
  13624. * @QCA_WLAN_VENDOR_TX_STATUS_ACK: Indicates the frame is successfully sent and
  13625. * acknowledged.
  13626. */
  13627. enum qca_wlan_vendor_tx_status {
  13628. QCA_WLAN_VENDOR_TX_STATUS_FAIL = 1,
  13629. QCA_WLAN_VENDOR_TX_STATUS_NO_ACK = 2,
  13630. QCA_WLAN_VENDOR_TX_STATUS_ACK = 3,
  13631. };
  13632. /**
  13633. * enum qca_roam_sub_reason - Used by attribute
  13634. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON
  13635. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER: Roam scan triggered due to periodic
  13636. * timer expiry
  13637. * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI: Roam scan trigger due
  13638. * to no candidate found during LOW RSSI trigger.
  13639. * @QCA_ROAM_SUB_REASON_BTM_DI_TIMER: Roam scan triggered due to BTM Disassoc
  13640. * Imminent timeout
  13641. * @QCA_ROAM_SUB_REASON_FULL_SCAN: Roam scan triggered due to partial scan
  13642. * failure
  13643. * @QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC: Roam trigger due to
  13644. * emergency like deauth/disassoc.
  13645. * @QCA_ROAM_SUB_REASON_CU_PERIODIC: Roam trigger due to
  13646. * BSS transition management request.
  13647. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI:
  13648. * Roam scan triggered due to Low RSSI periodic timer
  13649. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU:
  13650. * Roam trigger due to periodic timer after no candidate found during CU
  13651. * inactivity timer scan.
  13652. * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU: Roam trigger due to no candidate
  13653. * found in high CU roam trigger.
  13654. */
  13655. enum qca_roam_sub_reason {
  13656. QCA_ROAM_SUB_REASON_PERIODIC_TIMER = 1,
  13657. QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI = 2,
  13658. QCA_ROAM_SUB_REASON_BTM_DI_TIMER = 3,
  13659. QCA_ROAM_SUB_REASON_FULL_SCAN = 4,
  13660. QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC = 5,
  13661. QCA_ROAM_SUB_REASON_CU_PERIODIC = 6,
  13662. QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI = 7,
  13663. QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU = 8,
  13664. QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU = 9,
  13665. };
  13666. /*
  13667. * enum qca_wlan_vendor_attr_diag - Defines attributes used by the driver
  13668. * to send diag data to the userspace. The attributes defined in this enum are
  13669. * used with QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
  13670. *
  13671. * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT: Required Attribute. Nested attribute used
  13672. * by driver/firmware to send diag data. Each instance of this nested attribute
  13673. * contains one QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute and other
  13674. * attributes defined in enum qca_wlan_vendor_attr_diag that belong to the
  13675. * event type defined by QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE. Multiple of this
  13676. * nested attribute can be sent with one vendor command
  13677. * QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
  13678. *
  13679. * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE: Required u32 attribute. This
  13680. * attribute indicates the type of the diag event from driver/firmware. Uses
  13681. * values from enum qca_vendor_attr_diag_event_type.
  13682. *
  13683. * @QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP: Required u64 attribute. This
  13684. * attribute indicates the system timestamp. Driver uses ktime_get_real_ts64()
  13685. * API to send time of the day in microseconds to userspace.
  13686. *
  13687. * @QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP: Optional u64 attribute.
  13688. * This attribute indicates firmware timestamp in microseconds.
  13689. *
  13690. * @QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX: Optional u8 attribute. This attribute
  13691. * indicates wlan interface index.
  13692. *
  13693. * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID: Optional attribute. This attribute
  13694. * indicates 6-byte MAC address representing the BSSID of the AP.
  13695. *
  13696. * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT: Optional attribute. This attribute
  13697. * indicates the 6-byte MAC address representing the BSSID hint sent in
  13698. * the connect request.
  13699. *
  13700. * @QCA_WLAN_VENDOR_ATTR_DIAG_SSID: Optional attribute. This attribute
  13701. * indicates the SSID in u8 array with a maximum length of 32.
  13702. *
  13703. * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ: Optional u16 attribute. This attribute
  13704. * indicates the frequency of AP in MHz.
  13705. *
  13706. * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT: Optional u16 attribute. This attribute
  13707. * indicates frequency hint given in the connect request in MHz.
  13708. *
  13709. * @QCA_WLAN_VENDOR_ATTR_DIAG_RSSI: Optional signed 32 attribute.
  13710. * This attribute indicates RSSI of the 802.11 frame in dBm.
  13711. *
  13712. * @QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE: Optional u32 attribute.
  13713. * This attribute indicates Pairwise cipher suite defined in IEEE 802.11 2020
  13714. * Table 12-10—Integrity and key wrap algorithms.
  13715. *
  13716. * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE: Optional u32 attribute.
  13717. * This attribute indicates Group cipher suite defined in IEEE 802.11 2020
  13718. * Table 12-10—Integrity and key wrap algorithms.
  13719. *
  13720. * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE: Optional u32 attribute. This
  13721. * attribute indicates Group management cipher suite defined in IEEE Std
  13722. * 802.11‐2020 spec. Table 12-10—Integrity and key wrap algorithms.
  13723. *
  13724. * @QCA_WLAN_VENDOR_ATTR_DIAG_AKM: Optional u32 attribute. This attribute
  13725. * indicates Auth key management suite defined in IEEE Std 802.11‐2020
  13726. * Table 9-151—AKM suite selectors.
  13727. *
  13728. * @QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO: Optional u8 attribute. This attribute
  13729. * indicates authentication algorithm number defined in IEEE Std 802.11‐2020
  13730. * Section 9.4.1.1 Authentication Algorithm Number field.
  13731. *
  13732. * @QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE: Optional flag. This attribute
  13733. * indicates bluetooth COEX is active or not.
  13734. *
  13735. * @QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE: Optional u8 attribute. This
  13736. * attribute indicates SAE authentication frame type. The possible values are
  13737. * 1 - SAE commit frame
  13738. * 2 - SAE confirm frame
  13739. *
  13740. * @QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE: Optional u16 attribute. This
  13741. * attribute indicates the reason codes defined in IEEE Std 802.11‐2020
  13742. * Table 9-49—Reason codes.
  13743. *
  13744. * @QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER: Optional u16 attribute. This
  13745. * attribute indicates sequence number of the frame defined in IEEE Std
  13746. * 802.11‐2020 Section 9.4.1.2 Authentication Transaction Sequence Number
  13747. * field.
  13748. *
  13749. * @QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE: Optional u8 attribute. This
  13750. * attribute indicates the status codes defined in IEEE Std 802.11‐2020 Table
  13751. * 9-50—Status codes.
  13752. *
  13753. * @QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS: Optional u8 attribute.
  13754. * Uses enum qca_wlan_vendor_tx_status.
  13755. *
  13756. * @QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME: Optional flag. This attribute
  13757. * indicates if frame transmission is retried.
  13758. *
  13759. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON: Optional u8 attribute.
  13760. * Uses enum qca_roam_reason.
  13761. *
  13762. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON: Optional u8 attribute.
  13763. * Uses enum qca_roam_sub_reason.
  13764. *
  13765. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU: Optional u8 attribute. This attribute
  13766. * indicates channel utilization in percentage.
  13767. *
  13768. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE: Optional u8 attribute. This
  13769. * attribute indicates scan type used. Uses enum qca_roam_scan_scheme.
  13770. *
  13771. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD: Optional signed 32 attribute.
  13772. * This attribute indicates current RSSI threshold in dBm.
  13773. *
  13774. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST: Required Attribute.
  13775. * Nested attribute used by QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE
  13776. * to carry list of QCA_WLAN_VENDOR_ATTR_DIAG_FREQ.
  13777. *
  13778. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT: optional u8 attribute.
  13779. * This attribute indicates number of scanned candidate APs.
  13780. *
  13781. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK: Optional u8 attribute. This
  13782. * attribute indicates roam AP rank computed based on connection preference.
  13783. *
  13784. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP: Optional u32 attribute.
  13785. * This attribute indicates expected throughput in kbps.
  13786. *
  13787. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE: Optional u16 attribute.
  13788. * This attribute indicates the preference value of candidate AP / connected AP
  13789. * calculated in the firmware.
  13790. *
  13791. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL: Optional flag. This attribute
  13792. * indicates connection/roaming is successful or not.
  13793. *
  13794. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE: Optional u8 attribute.
  13795. * This attribute indicates BTM WTC sub reason code in the WTC vendor specific
  13796. * IE present in the BTM frame.
  13797. *
  13798. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION: Optional u32 attribute.
  13799. * This attribute indicates BTM WTC duration in milliseconds.
  13800. *
  13801. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN: Optional u8 attribute. This attribute
  13802. * indicates dialog token value of BTM query/request/response frames.
  13803. *
  13804. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON: Optional u8 attribute. This
  13805. * attribute indicates the Transition Reason field indicates the reason why
  13806. * a transition attempt occurred and contains one of the values defined in IEEE
  13807. * Std 802.11‐2020 Table 9-198—Transition and Transition Query reasons.
  13808. *
  13809. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE: Optional u8 attribute. This attribute
  13810. * indicates BTM mode defined in IEEE Std 802.11‐2020
  13811. * Figure 9-924—Request Mode field format.
  13812. *
  13813. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER: Optional u16 attribute.
  13814. * This attribute indicates the Disassociation Timer field which is the number
  13815. * of beacon transmission times (TBTTs) until the serving AP will send a
  13816. * Disassociation frame to this STA.
  13817. *
  13818. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL: Optional u8 attribute.
  13819. * This attribute indicates BTM validity interval field in TBTTs defined in
  13820. * IEEE Std 802.11‐2020 Figure 9-923—BSS Transition Management Request frame
  13821. * Action field format.
  13822. *
  13823. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT: Optional u8 attribute.
  13824. * This attribute indicates BTM candidate list entries.
  13825. *
  13826. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE: Optional u8 attribute.
  13827. * This attribute indicates network preference for BTM transition defined in
  13828. * IEEE Std 802.11‐2020 Table 9-174—Preference field values.
  13829. *
  13830. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE: Optional u8 attribute.
  13831. * This attribute indicates BTM transition status code defined in IEEE Std
  13832. * 802.11‐2020 Table 9-428—BTM status code definitions.
  13833. *
  13834. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY: Optional u8 attribute.
  13835. * This attribute indicates BSS termination delay defined in IEEE Std
  13836. * 802.11‐2020 Section 9.6.13.10 BSS Transition Management Response frame format.
  13837. *
  13838. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID: Optional attribute.
  13839. * This attribute indicates 6-byte MAC address representing the BSSID of the
  13840. * BSS that the non-AP STA transitions to.
  13841. *
  13842. * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE: Optional u8 attribute. This attribute
  13843. * indicates EAP frame type. The methods are enumerated by IANA at
  13844. * https://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml.
  13845. *
  13846. * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN: Optional u8 attribute. This attribute
  13847. * indicates EAP frame length.
  13848. *
  13849. * @QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP: Required u64 attribute. This
  13850. * attribute indicates the kernel timestamp. Driver uses ktime_get() API
  13851. * (Time from boot but not the time spent in suspend) to send in microseconds
  13852. * to userspace.
  13853. *
  13854. * @QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID: Optional u16 attribute. This attribute
  13855. * indicates the association id received in the (re)association response frame
  13856. * defined in IEEE Std 802.11-2020 Figure 9-91-AID field format.
  13857. */
  13858. enum qca_wlan_vendor_attr_diag {
  13859. QCA_WLAN_VENDOR_ATTR_DIAG_INVALID = 0,
  13860. QCA_WLAN_VENDOR_ATTR_DIAG_EVENT = 1,
  13861. QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE = 2,
  13862. QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP = 3,
  13863. QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP = 4,
  13864. QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX = 5,
  13865. QCA_WLAN_VENDOR_ATTR_DIAG_BSSID = 6,
  13866. QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT = 7,
  13867. QCA_WLAN_VENDOR_ATTR_DIAG_SSID = 8,
  13868. QCA_WLAN_VENDOR_ATTR_DIAG_FREQ = 9,
  13869. QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT = 10,
  13870. QCA_WLAN_VENDOR_ATTR_DIAG_RSSI = 11,
  13871. QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE = 12,
  13872. QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE = 13,
  13873. QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE = 14,
  13874. QCA_WLAN_VENDOR_ATTR_DIAG_AKM = 15,
  13875. QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO = 16,
  13876. QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE = 17,
  13877. QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE = 18,
  13878. QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE = 19,
  13879. QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER = 20,
  13880. QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE = 21,
  13881. QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS = 22,
  13882. QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME = 23,
  13883. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON = 24,
  13884. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON = 25,
  13885. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU = 26,
  13886. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE = 27,
  13887. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD = 28,
  13888. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST = 29,
  13889. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT = 30,
  13890. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK = 31,
  13891. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP = 32,
  13892. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE = 33,
  13893. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL = 34,
  13894. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE = 35,
  13895. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION = 36,
  13896. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN = 37,
  13897. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON = 38,
  13898. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE = 39,
  13899. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER = 40,
  13900. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL = 41,
  13901. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT = 42,
  13902. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE = 43,
  13903. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE = 44,
  13904. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY = 45,
  13905. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID = 46,
  13906. QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE = 47,
  13907. QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN = 48,
  13908. QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP = 49,
  13909. QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID = 50,
  13910. /* keep last */
  13911. QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST,
  13912. QCA_WLAN_VENDOR_ATTR_DIAG_MAX =
  13913. QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST - 1,
  13914. };
  13915. /**
  13916. * qca_wlan_vendor_monitor_data_frame_type - Represent the various
  13917. * data types to be sent over the monitor interface.
  13918. */
  13919. enum qca_wlan_vendor_monitor_data_frame_type {
  13920. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
  13921. /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is
  13922. not set */
  13923. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
  13924. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
  13925. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
  13926. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
  13927. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
  13928. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
  13929. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
  13930. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
  13931. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
  13932. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
  13933. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
  13934. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
  13935. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
  13936. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
  13937. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
  13938. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
  13939. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
  13940. };
  13941. /**
  13942. * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
  13943. * mgmt types to be sent over the monitor interface.
  13944. * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the MGMT Frames.
  13945. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the MGMT Frames
  13946. * except the Beacons. Valid only in the Connect state.
  13947. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
  13948. * BSSID Beacons. Valid only in the Connect state.
  13949. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
  13950. * the Beacons obtained during the scan (off channel and connected channel)
  13951. * when in connected state.
  13952. */
  13953. enum qca_wlan_vendor_monitor_mgmt_frame_type {
  13954. QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
  13955. /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set */
  13956. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON = BIT(1),
  13957. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
  13958. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
  13959. };
  13960. /**
  13961. * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
  13962. * ctrl types to be sent over the monitor interface.
  13963. * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the ctrl Frames.
  13964. * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger Frame.
  13965. */
  13966. enum qca_wlan_vendor_monitor_ctrl_frame_type {
  13967. QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
  13968. /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set */
  13969. QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
  13970. };
  13971. /**
  13972. * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
  13973. * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
  13974. * monitor mode.
  13975. *
  13976. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute,
  13977. * Represents the tx data packet type to be monitored (u32). These data packets
  13978. * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
  13979. *
  13980. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute,
  13981. * Represents the tx data packet type to be monitored (u32). These data packets
  13982. * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
  13983. *
  13984. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute,
  13985. * Represents the tx data packet type to be monitored (u32). These mgmt packets
  13986. * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
  13987. *
  13988. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute,
  13989. * Represents the tx data packet type to be monitored (u32). These mgmt packets
  13990. * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
  13991. *
  13992. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute,
  13993. * Represents the tx data packet type to be monitored (u32). These ctrl packets
  13994. * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
  13995. *
  13996. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute,
  13997. * Represents the tx data packet type to be monitored (u32). These ctrl packets
  13998. * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
  13999. *
  14000. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL:
  14001. * u32 attribute, An interval only for the connected beacon interval, which
  14002. * expects that the connected BSSID's beacons shall be sent on the monitor
  14003. * interface only on this specific interval.
  14004. */
  14005. enum qca_wlan_vendor_attr_set_monitor_mode {
  14006. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
  14007. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
  14008. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
  14009. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
  14010. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
  14011. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
  14012. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
  14013. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
  14014. /* keep last */
  14015. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
  14016. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
  14017. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
  14018. };
  14019. /**
  14020. * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
  14021. * Bits will be set to 1 if the corresponding state is enabled.
  14022. *
  14023. * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
  14024. * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
  14025. */
  14026. enum qca_wlan_vendor_roam_scan_state {
  14027. QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
  14028. QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
  14029. };
  14030. /**
  14031. * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
  14032. * Bits will be set to 1 if the corresponding event is notified.
  14033. *
  14034. * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
  14035. * carries the trigger reason. When set, it is expected that the roam event
  14036. * carries the respective reason via the attribute
  14037. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
  14038. * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
  14039. *
  14040. * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
  14041. * carries the roam fail reason. When set, it is expected that the roam event
  14042. * carries the respective reason via the attribute
  14043. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
  14044. * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
  14045. *
  14046. * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
  14047. * event carries the roam invoke fail reason. When set, it is expected that
  14048. * the roam event carries the respective reason via the attribute
  14049. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
  14050. *
  14051. * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
  14052. * carries the roam scan state. When set, it is expected that the roam event
  14053. * carries the respective scan state via the attribute
  14054. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
  14055. * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
  14056. */
  14057. enum qca_wlan_vendor_roam_event_type {
  14058. QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
  14059. QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
  14060. QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
  14061. QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
  14062. };
  14063. /**
  14064. * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
  14065. * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
  14066. *
  14067. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
  14068. * representing the BSSID of the AP to which the Roam is attempted.
  14069. *
  14070. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
  14071. * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
  14072. * attempted.
  14073. *
  14074. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, Frequency in MHz
  14075. * on which the roam is attempted.
  14076. *
  14077. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
  14078. * STA mode only. This represents the roam fail reason for the last failed
  14079. * roaming attempt by the firmware for the specific BSSID. Different roam
  14080. * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
  14081. */
  14082. enum qca_wlan_vendor_attr_roam_events_candidate_info {
  14083. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
  14084. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
  14085. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
  14086. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
  14087. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
  14088. /* keep last */
  14089. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
  14090. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
  14091. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
  14092. };
  14093. /**
  14094. * enum qca_wlan_vendor_attr_roam_events - Used by the
  14095. * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
  14096. * roam events to the driver or notify these events from the driver.
  14097. *
  14098. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
  14099. * driver/firmware to enable/disable the notification of roam events. It's a
  14100. * mandatory attribute and used only in the request from the userspace to the
  14101. * host driver. 1-Enable, 0-Disable.
  14102. * If the roaming is totally offloaded to the firmware, this request when
  14103. * enabled shall mandate the firmware to notify all the relevant roam events
  14104. * represented by the below attributes. If the host is in the suspend mode,
  14105. * the behavior of the firmware to notify these events is guided by
  14106. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
  14107. * these events in the suspend state, the firmware is expected to wake up the
  14108. * host before the respective events are notified. Please note that such a
  14109. * request to get the events in the suspend state will have a definite power
  14110. * implication.
  14111. *
  14112. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
  14113. * that the roam events need to be notified in the suspend state too. By
  14114. * default, these roam events are notified in the resume state. With this flag,
  14115. * the roam events are notified in both resume and suspend states.
  14116. * This attribute is used in the request from the userspace to the host driver.
  14117. *
  14118. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
  14119. * Represents the different roam event types, signified by the enum
  14120. * qca_wlan_vendor_roam_event_type.
  14121. * Each bit of this attribute represents the different roam even types reported
  14122. * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  14123. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  14124. *
  14125. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
  14126. * mode only. This represents the roam trigger reason for the last roaming
  14127. * attempted by the firmware. Each bit of this attribute represents the
  14128. * different roam trigger reason code which are defined in enum
  14129. * qca_vendor_roam_triggers.
  14130. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  14131. *
  14132. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
  14133. * STA mode only. This represents the roam invoke fail reason for the last
  14134. * failed roam invoke. Different roam invoke failure reason codes
  14135. * are specified in enum qca_vendor_roam_invoke_fail_reasons.
  14136. *
  14137. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
  14138. * for which the roam is attempted. Each entry is a nested attribute defined
  14139. * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
  14140. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  14141. *
  14142. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
  14143. * the scan state on which the roam events need to be notified. The values for
  14144. * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
  14145. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  14146. *
  14147. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
  14148. * u32 values. List of frequencies in MHz considered for a roam scan.
  14149. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  14150. */
  14151. enum qca_wlan_vendor_attr_roam_events {
  14152. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
  14153. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
  14154. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
  14155. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
  14156. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
  14157. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
  14158. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
  14159. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
  14160. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
  14161. /* keep last */
  14162. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
  14163. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
  14164. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1,
  14165. };
  14166. /*
  14167. * enum qca_wlan_ratemask_params_type - Rate mask config type.
  14168. *
  14169. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK_OFDM rate mask config
  14170. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
  14171. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
  14172. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
  14173. */
  14174. enum qca_wlan_ratemask_params_type {
  14175. QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
  14176. QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
  14177. QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
  14178. QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
  14179. };
  14180. /* enum qca_wlan_vendor_attr_ratemask_params - Used by the
  14181. * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
  14182. * This is used to set the rate mask value to be used in rate selection.
  14183. *
  14184. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
  14185. * Array of nested containing attributes
  14186. * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
  14187. * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
  14188. *
  14189. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
  14190. * the different phy types to which the rate mask config is to be applied.
  14191. * The values for this attribute are referred from enum
  14192. * qca_wlan_vendor_ratemask_params_type.
  14193. *
  14194. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
  14195. * A bit value of 1 represents rate is enabled and a value of 0
  14196. * represents rate is disabled.
  14197. * For HE targets, 12 bits correpond to one NSS setting.
  14198. * b0-13 => NSS1, MCS 0-13
  14199. * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
  14200. * For VHT targets, 10 bits correspond to one NSS setting.
  14201. * b0-9 => NSS1, MCS 0-9
  14202. * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
  14203. * For HT targets, 8 bits correspond to one NSS setting.
  14204. * b0-7 => NSS1, MCS 0-7
  14205. * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
  14206. * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
  14207. */
  14208. enum qca_wlan_vendor_attr_ratemask_params {
  14209. QCA_WLAN_VENDOR_ATTR_RATEMASK_INVALID = 0,
  14210. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
  14211. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
  14212. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
  14213. /* keep last */
  14214. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
  14215. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
  14216. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
  14217. };
  14218. /**
  14219. * enum qca_wlan_vendor_flush_pending_policy: Represents values for
  14220. * the policy to flush pending frames, configured via
  14221. * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
  14222. * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
  14223. *
  14224. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
  14225. * the flush policy configured before. This command basically disables the
  14226. * flush config set by the user.
  14227. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
  14228. * the flush policy to be immediate. All pending packets for the peer/TID are
  14229. * flushed when this command/policy is received.
  14230. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
  14231. * the flush policy to the end of TWT SP. All pending packets for the peer/TID
  14232. * are flushed when the end of TWT SP is reached.
  14233. */
  14234. enum qca_wlan_vendor_flush_pending_policy {
  14235. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
  14236. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
  14237. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
  14238. };
  14239. /**
  14240. * enum qca_wlan_vendor_attr_flush_pending - Attributes for
  14241. * flushing pending traffic in firmware.
  14242. *
  14243. * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
  14244. * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
  14245. * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
  14246. * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
  14247. * flush packets with access category. This is optional. See below.
  14248. * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
  14249. * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
  14250. * bit to 1 to act upon the TID. This is optional. Either this attribute or
  14251. * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
  14252. * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
  14253. * it is an error.
  14254. * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
  14255. * packets corresponding to the peer/TID provided. It is a u32 value,
  14256. * represented by %enum qca_wlan_vendor_flush_pending_policy. This
  14257. * value is honored only when TID mask is provided. This is not honored when AC
  14258. * mask is provided.
  14259. */
  14260. enum qca_wlan_vendor_attr_flush_pending {
  14261. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
  14262. QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
  14263. QCA_WLAN_VENDOR_ATTR_AC = 2,
  14264. QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
  14265. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
  14266. /* keep last */
  14267. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
  14268. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
  14269. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
  14270. };
  14271. /**
  14272. * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
  14273. * for) or drop existing PASN security association for the listed the
  14274. * peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
  14275. * to userspace.
  14276. *
  14277. * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
  14278. * devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
  14279. * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
  14280. * the driver to userspace to inform that the existing PASN keys of the
  14281. * peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
  14282. * not valid anymore.
  14283. */
  14284. enum qca_wlan_vendor_pasn_action {
  14285. QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
  14286. QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
  14287. };
  14288. /**
  14289. * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
  14290. * QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
  14291. *
  14292. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
  14293. * event from the driver to userspace and represents the local MAC address
  14294. * to be used for PASN handshake. When this attribute is present, userspace
  14295. * shall use the source address specified in this attribute by the driver
  14296. * for PASN handshake with peer device.
  14297. * This attribute is required in a command response from userspace to the
  14298. * driver and represents the MAC address that was used in PASN handshake
  14299. * with the peer device.
  14300. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
  14301. * peer device to which PASN handshake is requested in an event from the
  14302. * driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
  14303. * QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
  14304. * Indicates the MAC address of the peer device for which the keys are to
  14305. * be invalidated in an event from the driver to userspace when
  14306. * QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
  14307. * QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
  14308. * Indicates the MAC address of the peer device for which the status is
  14309. * being sent in a status report from userspace to the driver.
  14310. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
  14311. * in the event from the driver to userspace. When set, userspace is
  14312. * required to derive LTF key seed from KDK and set it to the driver.
  14313. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
  14314. * attribute is used in the command response from userspace to the driver.
  14315. * If present, it indicates the successful PASN handshake with the peer. If
  14316. * this flag is not present, it indicates that the PASN handshake with the
  14317. * peer device failed.
  14318. */
  14319. enum qca_wlan_vendor_attr_pasn_peer {
  14320. QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
  14321. QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
  14322. QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
  14323. QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
  14324. QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
  14325. /* keep last */
  14326. QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
  14327. QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
  14328. QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
  14329. };
  14330. /**
  14331. * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
  14332. * QCA_NL80211_VENDOR_SUBCMD_PASN command.
  14333. *
  14334. * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
  14335. * defined in enum qca_wlan_vendor_pasn_action and used only in an event
  14336. * from the driver to userspace.
  14337. * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
  14338. * details for each peer and used in both an event and a command response.
  14339. * The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
  14340. * defined in enum qca_wlan_vendor_attr_pasn_peer.
  14341. */
  14342. enum qca_wlan_vendor_attr_pasn {
  14343. QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
  14344. QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
  14345. QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
  14346. /* keep last */
  14347. QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
  14348. QCA_WLAN_VENDOR_ATTR_PASN_MAX =
  14349. QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
  14350. };
  14351. /**
  14352. * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
  14353. * the ranging security context derived from PASN for each peer. Used in
  14354. * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
  14355. *
  14356. * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
  14357. * context for the peer.
  14358. * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
  14359. * context for the peer.
  14360. */
  14361. enum qca_wlan_vendor_secure_ranging_ctx_action {
  14362. QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
  14363. QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
  14364. };
  14365. /**
  14366. * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
  14367. * used for deriving PASN keys to the driver. Used in
  14368. * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
  14369. * @QCA_WLAN_VENDOR_SHA_256: SHA-256
  14370. * @QCA_WLAN_VENDOR_SHA_384: SHA-384
  14371. */
  14372. enum qca_wlan_vendor_sha_type {
  14373. QCA_WLAN_VENDOR_SHA_256,
  14374. QCA_WLAN_VENDOR_SHA_384,
  14375. };
  14376. /**
  14377. * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
  14378. * to set security context for the PASN peer from userspace to the driver.
  14379. * Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
  14380. *
  14381. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
  14382. * values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
  14383. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
  14384. * was used during the PASN handshake.
  14385. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
  14386. * the peer device for which secure ranging context is being configured.
  14387. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
  14388. * hash algorithm to be used, possible values are defined in enum
  14389. * qca_wlan_vendor_sha_type.
  14390. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
  14391. * the temporal key generated from the PASN handshake. The length of this
  14392. * attribute is dependent on the value of
  14393. * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
  14394. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
  14395. * TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
  14396. * (e.g., 0x000FAC04).
  14397. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
  14398. * attribute, holds the LTF keyseed derived from KDK of PASN handshake.
  14399. * The length of this attribute is dependent on the value of
  14400. * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
  14401. *
  14402. */
  14403. enum qca_wlan_vendor_attr_secure_ranging_ctx {
  14404. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
  14405. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
  14406. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
  14407. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
  14408. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
  14409. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
  14410. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
  14411. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
  14412. /* keep last */
  14413. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
  14414. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
  14415. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
  14416. };
  14417. /**
  14418. * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used
  14419. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER
  14420. * nested attribute. The packets that match a filter will be replied with
  14421. * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY.
  14422. *
  14423. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4:
  14424. * u32 attribute. Destination IPv4 address in network byte order, the
  14425. * IPv4 packets with different address will be filtered out.
  14426. * This attribute is optional.
  14427. *
  14428. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC:
  14429. * Flag attribute. If it's present, indicates that
  14430. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast
  14431. * address; while if not, indicates that the address is a unicast/multicast
  14432. * address.
  14433. * This attribute is optional.
  14434. *
  14435. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6:
  14436. * NLA_BINARY attribute, length is 16 bytes.
  14437. * Destination IPv6 address in network byte order, the IPv6 packets
  14438. * with different destination address will be filtered out.
  14439. * This attribute is optional.
  14440. *
  14441. * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and
  14442. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured.
  14443. * Packets on both IPv4 and IPv6 will be processed if both are configured.
  14444. *
  14445. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT:
  14446. * u16 attribute. Destination UDP port, the packets with different destination
  14447. * UDP port will be filtered out.
  14448. * This attribute is mandatory.
  14449. *
  14450. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET:
  14451. * u32 attribute. Represents the offset (in UDP payload) of the data
  14452. * to be matched.
  14453. * This attribute is mandatory.
  14454. *
  14455. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA:
  14456. * NLA_BINARY attribute, the maximum allowed size is 16 bytes.
  14457. * Binary data that is compared bit-by-bit against the data (specified
  14458. * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP
  14459. * payload, the packets don't match will be filtered out.
  14460. * This attribute is mandatory.
  14461. */
  14462. enum qca_wlan_vendor_attr_coap_offload_filter {
  14463. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0,
  14464. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1,
  14465. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2,
  14466. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3,
  14467. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4,
  14468. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5,
  14469. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6,
  14470. /* keep last */
  14471. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST,
  14472. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX =
  14473. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1,
  14474. };
  14475. /**
  14476. * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used
  14477. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute.
  14478. *
  14479. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4:
  14480. * u32 attribute. Source address (in network byte order) for replying
  14481. * the matching broadcast/multicast IPv4 packets.
  14482. * This attribute is optional.
  14483. *
  14484. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6:
  14485. * NLA_BINARY attribute, length is 16 bytes.
  14486. * Source address (in network byte order) for replying the matching
  14487. * multicast IPv6 packets.
  14488. * This attribute is optional.
  14489. *
  14490. * For broadcast/multicast offload reply, one of
  14491. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and
  14492. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be
  14493. * configured according to version of the IP address(es) configured in
  14494. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER;
  14495. * while for unicast case, firmware will take the destination IP address
  14496. * in the received matching packet as the source address for replying.
  14497. *
  14498. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER:
  14499. * Nested attribute. Filter for the received UDP packets, only the matching
  14500. * packets will be replied and cached.
  14501. * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported
  14502. * attributes.
  14503. * This attribute is mandatory.
  14504. *
  14505. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG:
  14506. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  14507. * CoAP message (UDP payload) to be sent upon receiving matching packets.
  14508. * Firmware is responsible for adding any necessary protocol headers.
  14509. * This attribute is mandatory.
  14510. *
  14511. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME:
  14512. * u32 attribute. Expiration time in milliseconds of the cached CoAP messages.
  14513. * A cached message will be dropped by firmware if it's expired.
  14514. * This attribute is optional. A default value of 40000 will be used in the
  14515. * absence of it.
  14516. */
  14517. enum qca_wlan_vendor_attr_coap_offload_reply {
  14518. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0,
  14519. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1,
  14520. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2,
  14521. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3,
  14522. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4,
  14523. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5,
  14524. /* keep last */
  14525. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST,
  14526. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX =
  14527. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1,
  14528. };
  14529. /**
  14530. * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for
  14531. * CoAP message (UDP) transmitting on IPv4.
  14532. *
  14533. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR:
  14534. * u32 attribute. Source address (in network byte order) for transmitting
  14535. * packets on IPv4.
  14536. * This attribute is mandatory.
  14537. *
  14538. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT:
  14539. * u16 attribute. Source UDP port.
  14540. * This attribute is optional, a random port is taken if it's not present.
  14541. *
  14542. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR:
  14543. * u32 attribute. Destination IPv4 address (in network byte order).
  14544. * This attribute is mandatory.
  14545. *
  14546. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC:
  14547. * Flag attribute. If it's present, indicates that
  14548. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast
  14549. * address; while if not, indicates that the address is unicast/multicast
  14550. * address.
  14551. * This attribute is optional.
  14552. *
  14553. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT:
  14554. * u16 attribute. Destination UDP port.
  14555. * This attribute is mandatory.
  14556. */
  14557. enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 {
  14558. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0,
  14559. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1,
  14560. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2,
  14561. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3,
  14562. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4,
  14563. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5,
  14564. /* keep last */
  14565. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST,
  14566. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX =
  14567. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1,
  14568. };
  14569. /**
  14570. * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for
  14571. * CoAP message (UDP) transmitting on IPv6.
  14572. *
  14573. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR:
  14574. * NLA_BINARY attribute, length is 16 bytes.
  14575. * Source address (in network byte order) for transmitting packets on IPv6.
  14576. * This attribute is mandatory.
  14577. *
  14578. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT:
  14579. * u16 attribute. Source UDP port.
  14580. * This attribute is optional, a random port is taken if it's not present.
  14581. *
  14582. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR:
  14583. * NLA_BINARY attribute, length is 16 bytes.
  14584. * Destination IPv6 address (in network byte order).
  14585. * This attribute is mandatory.
  14586. *
  14587. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT:
  14588. * u16 attribute. Destination UDP port.
  14589. * This attribute is mandatory.
  14590. */
  14591. enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 {
  14592. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0,
  14593. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1,
  14594. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2,
  14595. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3,
  14596. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4,
  14597. /* keep last */
  14598. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST,
  14599. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX =
  14600. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1,
  14601. };
  14602. /**
  14603. * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used
  14604. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute.
  14605. *
  14606. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4:
  14607. * Nested attribute. The IPv4 source/destination address/port for offload
  14608. * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list
  14609. * of supported attributes.
  14610. * This attribute is optional.
  14611. *
  14612. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6:
  14613. * Nested attribute. The IPv6 source/destination address/port for offload
  14614. * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list
  14615. * of supported attributes.
  14616. * This attribute is optional.
  14617. *
  14618. * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and
  14619. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured.
  14620. * Firmware will transmit the packets on both IPv4 and IPv6 if both are
  14621. * configured.
  14622. *
  14623. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD:
  14624. * u32 attribute. Period in milliseconds for the periodic transmitting.
  14625. * This attribute is mandatory.
  14626. *
  14627. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG:
  14628. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  14629. * CoAP message (UDP payload) to be periodically transmitted. Firmware
  14630. * is responsible for adding any necessary protocol headers.
  14631. * This attribute is mandatory.
  14632. */
  14633. enum qca_wlan_vendor_attr_coap_offload_periodic_tx {
  14634. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0,
  14635. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1,
  14636. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2,
  14637. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3,
  14638. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4,
  14639. /* keep last */
  14640. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST,
  14641. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX =
  14642. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1,
  14643. };
  14644. /**
  14645. * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used
  14646. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute.
  14647. *
  14648. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS:
  14649. * u64 attribute. Received time (since system booted in microseconds) of
  14650. * the cached CoAP message.
  14651. * This attribute is mandatory.
  14652. *
  14653. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4:
  14654. * u32 attribute. Source IPv4 address (in network byte order) of the cached
  14655. * CoAP message.
  14656. * This attribute is optional.
  14657. *
  14658. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6:
  14659. * NLA_BINARY attribute, length is 16 bytes.
  14660. * Source IPv6 address (in network byte order) of the cached CoAP message.
  14661. * This attribute is optional.
  14662. *
  14663. * At most and at least one of
  14664. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and
  14665. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for
  14666. * an entry.
  14667. *
  14668. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG:
  14669. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  14670. * The cached CoAP message (UDP payload). If the actual message size is
  14671. * greater than the maximum size, it will be truncated and leaving only
  14672. * the first 1152 bytes.
  14673. * This attribute is mandatory.
  14674. */
  14675. enum qca_wlan_vendor_attr_coap_offload_cache_info {
  14676. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0,
  14677. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1,
  14678. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2,
  14679. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3,
  14680. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4,
  14681. /* keep last */
  14682. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST,
  14683. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX =
  14684. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1,
  14685. };
  14686. /**
  14687. * enum qca_wlan_vendor_coap_offload_action - Actions for
  14688. * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
  14689. *
  14690. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE:
  14691. * Enable CoAP offload reply.
  14692. * If it's enabled, firmware will start offload processing on each suspend
  14693. * and stop on each resume.
  14694. *
  14695. * Offload reply on match works as follows:
  14696. * Reply the packets that match the filter with the given CoAP
  14697. * message (with necessary protocol headers), increase the CoAP message
  14698. * ID in the given CoAP message by one for the next use after each successful
  14699. * transmission, and try to store the information of the received packet,
  14700. * including the received time, source IP address, and CoAP message (UDP
  14701. * payload).
  14702. *
  14703. * Firmware has a limit to the maximum stored entries, it takes the source IP
  14704. * address as the key of an entry, and keeps at most one entry for each key.
  14705. * A packet won't be stored if no entry for the same key is present and the
  14706. * total number of the existing unexpired entries reaches the maximum value.
  14707. *
  14708. * If any configured item is changed, user space should disable offload reply
  14709. * first and then issue a new enable request.
  14710. *
  14711. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE:
  14712. * Disable CoAP offload reply and return information of any cached CoAP
  14713. * messages.
  14714. *
  14715. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE:
  14716. * Enable CoAP offload periodic transmitting.
  14717. * If it's enabled, firmware will start offload periodic transmitting on
  14718. * each suspend and stop on each resume.
  14719. *
  14720. * Offload periodic transmitting works as follows:
  14721. * Send the given CoAP message (with necessary protocol headers) with the given
  14722. * source/destination IP address/UDP port periodically based on the given
  14723. * period and increase the CoAP message ID in the given CoAP message by one
  14724. * for the next use after each successful transmission.
  14725. *
  14726. * If any configured item is changed, user space should disable offload
  14727. * periodic transmitting first and then issue a new enable request.
  14728. *
  14729. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE:
  14730. * Disable CoAP offload periodic transmitting.
  14731. *
  14732. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET:
  14733. * Get information of the CoAP messages cached during offload reply
  14734. * processing. The cache is cleared after retrieval.
  14735. */
  14736. enum qca_wlan_vendor_coap_offload_action {
  14737. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0,
  14738. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1,
  14739. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2,
  14740. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3,
  14741. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4,
  14742. };
  14743. /**
  14744. * enum qca_wlan_vendor_attr_coap_offload - Used by the
  14745. * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
  14746. * This is used to set parameters for CoAP offload processing, or get
  14747. * cached CoAP messages from firmware.
  14748. *
  14749. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION:
  14750. * u32 attribute. Action to take in this vendor command.
  14751. * See enum qca_wlan_vendor_coap_offload_action for supported actions.
  14752. * This attribute is mandatory.
  14753. *
  14754. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID:
  14755. * u32 attribute. Represents the Request ID for the CoAP offload
  14756. * configuration, which can help to identify the user entity starting
  14757. * the CoAP offload processing and accordingly stop the respective
  14758. * ones/get the cached CoAP messages with the matching ID.
  14759. * This attribute is mandatory.
  14760. *
  14761. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY:
  14762. * Nested attribute. Parameters for offload reply.
  14763. * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of
  14764. * supported attributes.
  14765. * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
  14766. * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored
  14767. * otherwise.
  14768. *
  14769. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX:
  14770. * Nested attribute. Parameters for offload periodic transmitting.
  14771. * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of
  14772. * supported attributes.
  14773. * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is
  14774. * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored
  14775. * otherwise.
  14776. *
  14777. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES:
  14778. * Array of nested attributes. Information of the cached CoAP messages,
  14779. * where each entry is taken from
  14780. * enum qca_wlan_vendor_attr_coap_offload_cache_info.
  14781. * This attribute is used for reporting the cached CoAP messages
  14782. * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
  14783. * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or
  14784. * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no
  14785. * cached item if this attribute is not present.
  14786. */
  14787. enum qca_wlan_vendor_attr_coap_offload {
  14788. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0,
  14789. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1,
  14790. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2,
  14791. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3,
  14792. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4,
  14793. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5,
  14794. /* keep last */
  14795. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST,
  14796. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX =
  14797. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1,
  14798. };
  14799. /**
  14800. * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command
  14801. * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification
  14802. * Service (SCS) rule.
  14803. *
  14804. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute.
  14805. * Represents the unique id of SCS rule to be configured.
  14806. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute.
  14807. * Represents the request type: add, remove, or change.
  14808. * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request
  14809. * Type definitions).
  14810. *
  14811. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute
  14812. * in case of add/change request type.
  14813. * Represents the output traffic identifier (TID) to be assigned to the flow
  14814. * matching the rule.
  14815. *
  14816. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8
  14817. * attribute in case of add/change request type.
  14818. * Represents type of classifier parameters present in SCS rule.
  14819. * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type).
  14820. * Only classifier types 4 and 10 are supported for SCS.
  14821. *
  14822. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute
  14823. * in case of add/change request type when classifier type is TCLAS4.
  14824. * Represents the IP version (4: IPv4, 6: IPv6) of the rule.
  14825. *
  14826. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional
  14827. * attribute in case of add/change request type when classifier type is TCLAS4
  14828. * and version attribute is IPv4.
  14829. * Represents the source IPv4 address in the rule which is to be compared
  14830. * against the source IP address in the IPv4 header.
  14831. *
  14832. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional
  14833. * attribute in case of add/change request type when classifier type is TCLAS4
  14834. * and version attribute is IPv4.
  14835. * Represents the destination IPv4 address in the rule which is to be compared
  14836. * against the destination IP address in the IPv4 header.
  14837. *
  14838. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional
  14839. * attribute in case of add/change request type when classifier type is TCLAS4
  14840. * and version attribute is IPv6.
  14841. * Represents the source IPv6 address in the rule which is to be compared
  14842. * against the source IP address in the IPv6 header.
  14843. *
  14844. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional
  14845. * attribute in case of add/change request type when classifier type is TCLAS4
  14846. * and version attribute is IPv6.
  14847. * Represents the destination IPv6 address in the rule which is to be compared
  14848. * against the destination IP address in the IPv6 header.
  14849. *
  14850. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute
  14851. * in case of add/change request type when classifier type is TCLAS4.
  14852. * Represents the source port number in the rule which is to be compared against
  14853. * the source port number in the protocol header.
  14854. *
  14855. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute
  14856. * in case of add/change request type when classifier type is TCLAS4.
  14857. * Represents the destination port number in the rule which is to be compared
  14858. * against the destination port number in the protocol header.
  14859. *
  14860. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute
  14861. * in case of add/change request type when classifier type is TCLAS4.
  14862. * Represents the DSCP value in the rule which is to be compared against the
  14863. * DSCP field present in the IP header.
  14864. *
  14865. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8
  14866. * attribute in case of add/change request type when classifier type is TCLAS4.
  14867. * Represents the protocol/next header in the rule which is to be compared
  14868. * against the protocol/next header field present in the IPv4/IPv6 header.
  14869. *
  14870. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional
  14871. * attribute of size 3 bytes present in case of add/change request type
  14872. * when classifier type is TCLAS4 and version is IPv6.
  14873. * Represents the flow label value in the rule which is to be compared against
  14874. * the flow label field present in the IPv6 header.
  14875. *
  14876. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8
  14877. * attribute in case of add/change request type when classifier type is TCLAS10.
  14878. * Represents the protocol instance number in the rule.
  14879. *
  14880. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8
  14881. * attribute in case of add/change request type when classifier type is TCLAS10.
  14882. * Represents the protocol/next header in the rule which is to be compared
  14883. * against the protocol/next header field present in the IPv4/IPv6 header.
  14884. *
  14885. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional
  14886. * attribute of variable length present when request type is add/change and
  14887. * classifier type is TCLAS10.
  14888. * Represents the mask to be used for masking the header contents of the header
  14889. * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER
  14890. * attribute.
  14891. *
  14892. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional
  14893. * attribute of variable length present when request type is add/change and
  14894. * classifier type is TCLAS10.
  14895. * Represents the value to be compared against after masking the header contents
  14896. * of the header specified by the
  14897. * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the
  14898. * filter mask specified by the
  14899. * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute.
  14900. *
  14901. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16
  14902. * attribute.
  14903. * Represents the service class id of the configured SCS rule.
  14904. *
  14905. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR: Optional 6 bytes
  14906. * MAC address.
  14907. * Represents the destination MAC address in the rule.
  14908. *
  14909. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX: Optional u32 attribute
  14910. * Represents the netdevice interface index in the rule.
  14911. */
  14912. enum qca_wlan_vendor_attr_scs_rule_config {
  14913. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0,
  14914. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1,
  14915. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2,
  14916. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3,
  14917. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4,
  14918. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5,
  14919. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6,
  14920. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7,
  14921. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8,
  14922. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9,
  14923. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10,
  14924. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11,
  14925. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12,
  14926. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13,
  14927. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14,
  14928. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15,
  14929. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16,
  14930. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17,
  14931. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18,
  14932. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19,
  14933. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR = 20,
  14934. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX = 21,
  14935. /* Keep last */
  14936. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST,
  14937. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX =
  14938. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1,
  14939. };
  14940. /**
  14941. * enum qca_wlan_vendor_sar_version - This describes the current SAR version
  14942. * used in the firmware.
  14943. *
  14944. * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR.
  14945. * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits.
  14946. *
  14947. * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2,
  14948. * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for
  14949. * each CTL group. So user can select up to 6 SAR indexes from the current CTL
  14950. * groups.
  14951. *
  14952. * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3,
  14953. * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each
  14954. * CTL group but user can choose up to 3 SAR set index only, as the top half
  14955. * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of
  14956. * the SAR index (3 to 5) is used for DBS mode.
  14957. */
  14958. enum qca_wlan_vendor_sar_version {
  14959. QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0,
  14960. QCA_WLAN_VENDOR_SAR_VERSION_1 = 1,
  14961. QCA_WLAN_VENDOR_SAR_VERSION_2 = 2,
  14962. QCA_WLAN_VENDOR_SAR_VERSION_3 = 3,
  14963. };
  14964. /**
  14965. * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether
  14966. * CTL grouping is enabled or disabled in the firmware.
  14967. *
  14968. * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping
  14969. * is enabled in firmware.
  14970. *
  14971. * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping
  14972. * is disabled in firmware.
  14973. *
  14974. */
  14975. enum qca_wlan_vendor_sar_ctl_group_state {
  14976. QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0,
  14977. QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1,
  14978. QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2,
  14979. };
  14980. /**
  14981. * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command
  14982. * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities
  14983. * supported by the firmware.
  14984. * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION:
  14985. * u32 attribute. This field describes current SAR version supported by the
  14986. * firmware.
  14987. * See enum qca_wlan_vendor_sar_version for more information.
  14988. * This attribute is mandatory.
  14989. * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE:
  14990. * u32 attribute. This field describes whether CTL groups are enabled
  14991. * or disabled in the firmware.
  14992. * See enum qca_wlan_vendor_sar_ctl_group_state for more information.
  14993. * This attribute is optional.
  14994. */
  14995. enum qca_wlan_vendor_attr_sar_capability {
  14996. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0,
  14997. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1,
  14998. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2,
  14999. /* Keep last */
  15000. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST,
  15001. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX =
  15002. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1,
  15003. };
  15004. /**
  15005. * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics.
  15006. * These statistics are sent from the driver in a response when userspace
  15007. * queries to get the statistics using the operation
  15008. * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset
  15009. * by the driver when the SR feature is enabled, when the driver receives
  15010. * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected.
  15011. *
  15012. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
  15013. * Mandatory only when non-SRG is supported by the AP and optional otherwise.
  15014. * This represents the number of non-SRG TX opportunities.
  15015. *
  15016. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
  15017. * Mandatory only when non-SRG is supported by the AP and optional otherwise.
  15018. * This represents the number of non-SRG PPDUs tried to transmit.
  15019. *
  15020. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
  15021. * Mandatory only when non-SRG is supported by the AP and optional otherwise.
  15022. * This represents the number of non-SRG PPDUs successfully transmitted.
  15023. *
  15024. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
  15025. * Mandatory only when SRG is supported by the AP and optional otherwise.
  15026. * This represents the number of SRG TX opportunities.
  15027. *
  15028. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
  15029. * Mandatory only when SRG is supported by the AP and optional otherwise.
  15030. * This represents the number of SRG PPDUs tried to transmit.
  15031. *
  15032. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
  15033. * Mandatory only when SRG is supported by the AP and optional otherwise.
  15034. * This represents the number of SRG PPDUs successfully transmitted.
  15035. */
  15036. enum qca_wlan_vendor_attr_sr_stats {
  15037. QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0,
  15038. QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1,
  15039. QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2,
  15040. QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3,
  15041. QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4,
  15042. QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5,
  15043. QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6,
  15044. /* Keep last */
  15045. QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST,
  15046. QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX =
  15047. QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1,
  15048. };
  15049. /**
  15050. * enum qca_wlan_sr_reason_code - Defines the different reason codes used in
  15051. * Spatial Reuse feature.
  15052. *
  15053. * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to
  15054. * roaming to an AP that doesn't support/supports SR feature, respectively.
  15055. *
  15056. * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due
  15057. * to change in concurrent interfaces that are supported by the driver.
  15058. */
  15059. enum qca_wlan_sr_reason_code {
  15060. QCA_WLAN_SR_REASON_CODE_ROAMING = 0,
  15061. QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1,
  15062. };
  15063. /**
  15064. * enum qca_wlan_sr_operation - Defines the different types of SR operations.
  15065. * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION.
  15066. *
  15067. * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the
  15068. * driver to enable the Spatial Reuse feature. Attributes
  15069. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
  15070. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this
  15071. * operation.
  15072. *
  15073. * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the
  15074. * driver to disable the Spatial Reuse feature.
  15075. *
  15076. * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an
  15077. * asynchronous event sent to userspace when the SR feature is disabled.
  15078. * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE
  15079. * and sent along with the asynchronous event.
  15080. *
  15081. * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an
  15082. * asynchronous event when the SR feature is enabled again after the SR feature
  15083. * was suspended by the driver earlier. The enable reason is
  15084. * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are
  15085. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
  15086. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD.
  15087. *
  15088. * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is
  15089. * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial
  15090. * reuse transmissions. Userspace sends this operation to the driver.
  15091. * The driver/firmware upon receiving this operation shall prohibit PSR-based
  15092. * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
  15093. *
  15094. * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is
  15095. * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial
  15096. * reuse transmissions. Userspace sends this operation to the driver.
  15097. * The driver/firmware upon receiving this operation shall allow PSR-based
  15098. * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
  15099. *
  15100. * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the
  15101. * driver to get the SR statistics and the driver sends a synchronous response
  15102. * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the
  15103. * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS.
  15104. *
  15105. * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the
  15106. * driver to clear the SR statistics and upon receiving this operation
  15107. * the driver/firmware shall clear the SR statistics.
  15108. *
  15109. * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the
  15110. * driver to get the SR parameters and the driver sends the synchronous response
  15111. * with the following required attributes:
  15112. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
  15113. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
  15114. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
  15115. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
  15116. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
  15117. *
  15118. * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an
  15119. * asynchronous event to userspace to update any changes in SR parameters.
  15120. * The following attributes are used with this operation:
  15121. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
  15122. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
  15123. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
  15124. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
  15125. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
  15126. */
  15127. enum qca_wlan_sr_operation {
  15128. QCA_WLAN_SR_OPERATION_SR_ENABLE = 0,
  15129. QCA_WLAN_SR_OPERATION_SR_DISABLE = 1,
  15130. QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2,
  15131. QCA_WLAN_SR_OPERATION_SR_RESUME = 3,
  15132. QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4,
  15133. QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5,
  15134. QCA_WLAN_SR_OPERATION_GET_STATS = 6,
  15135. QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7,
  15136. QCA_WLAN_SR_OPERATION_GET_PARAMS = 8,
  15137. QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9,
  15138. };
  15139. /**
  15140. * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration
  15141. * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS.
  15142. *
  15143. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute.
  15144. * This attribute is optionally set in response to
  15145. * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to
  15146. * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std
  15147. * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more
  15148. * about HESIGA_Spatial_reuse_value15_allowed.
  15149. *
  15150. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute.
  15151. * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS
  15152. * operation. This indicates whether non-SRG OBSS PD SR transmissions are
  15153. * allowed or not at non-AP STAs that are associated with the AP. If present
  15154. * non-SRG OBSS PD SR transmissions are not allowed else are allowed.
  15155. *
  15156. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8
  15157. * attribute. This attribute is used in response to
  15158. * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
  15159. * Min Offset field which contains an unsigned integer that is added to -82 dBm
  15160. * to generate the value of the SRG OBSS PD Min parameter.
  15161. *
  15162. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8
  15163. * attribute. This attribute is used in response to
  15164. * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
  15165. * Max Offset field which contains an unsigned integer that is added to -82 dBm
  15166. * to generate the value of the SRG OBSS PD Max parameter.
  15167. *
  15168. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8
  15169. * attribute. This attribute is used in response to
  15170. * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS
  15171. * PD Max Offset field which contains an unsigned integer that is added to -82
  15172. * dBm to generate the value of the Non-SRG OBSS PD Max parameter.
  15173. *
  15174. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm).
  15175. * Userspace optionally sends this attribute with
  15176. * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
  15177. * preferred SRG PD threshold. The driver shall send this attribute to
  15178. * userspace in SR resume event to indicate the PD threshold being used for SR.
  15179. * When there is change in SRG PD threshold (for example, due to roaming, etc.)
  15180. * the driver shall indicate the userspace the newly configured SRG PD threshold
  15181. * using an asynchronous event.
  15182. *
  15183. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm).
  15184. * Userspace optionally sends this attribute with
  15185. * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
  15186. * preferred non-SRG PD threshold. The driver shall send this attribute to
  15187. * userspace in SR resume event to indicate the PD threshold being used for SR.
  15188. * When there is change in non-SRG PD threshold (for example, due to roaming,
  15189. * etc.) the driver shall indicate the userspace the newly configured non-SRG PD
  15190. * threshold using an asynchronous event.
  15191. *
  15192. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible
  15193. * values are defined in enum qca_wlan_sr_reason_code. This
  15194. * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and
  15195. * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations.
  15196. */
  15197. enum qca_wlan_vendor_attr_sr_params {
  15198. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0,
  15199. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1,
  15200. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2,
  15201. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3,
  15202. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4,
  15203. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5,
  15204. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6,
  15205. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7,
  15206. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8,
  15207. /* keep last */
  15208. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST,
  15209. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX =
  15210. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1,
  15211. };
  15212. /**
  15213. * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor
  15214. * command QCA_NL80211_VENDOR_SUBCMD_SR.
  15215. *
  15216. * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests
  15217. * from userspace to the driver. Possible values are defined in enum
  15218. * qca_wlan_sr_operation.
  15219. *
  15220. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR
  15221. * configuration parameters. The possible attributes inside this attribute are
  15222. * defined in enum qca_wlan_vendor_attr_sr_params.
  15223. * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
  15224. * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and
  15225. * also in response from the driver to userspace when the response is sent for
  15226. * %QCA_WLAN_SR_OPERATION_GET_PARAMS.
  15227. * The driver uses this attribute in asynchronous events in which the operation
  15228. * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME,
  15229. * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS.
  15230. *
  15231. * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR
  15232. * statistics. These attributes used inside this are defined in enum
  15233. * qca_wlan_vendor_attr_sr_stats.
  15234. * This attribute is used in response from the driver to a command in which
  15235. * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
  15236. * %QCA_WLAN_SR_OPERATION_GET_STATS.
  15237. */
  15238. enum qca_wlan_vendor_attr_sr {
  15239. QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0,
  15240. QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1,
  15241. QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2,
  15242. QCA_WLAN_VENDOR_ATTR_SR_STATS = 3,
  15243. /* Keep last */
  15244. QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST,
  15245. QCA_WLAN_VENDOR_ATTR_SR_MAX =
  15246. QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1,
  15247. };
  15248. /**
  15249. * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes
  15250. * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand.
  15251. *
  15252. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address
  15253. * used by the peer on the link that corresponds to the link used for sending
  15254. * the event notification.
  15255. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte
  15256. * MLD MAC address of the peer.
  15257. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute,
  15258. * used to pass ifindex of the primary netdev.
  15259. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX: u32 attribute,
  15260. * used to pass ifindex of the MLD netdev.
  15261. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS: u8 attribute,
  15262. * used to indicate the number of links that the non-AP MLD negotiated to be
  15263. * used in the ML connection.
  15264. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO: Nested
  15265. * attribute, contains information regarding links of the non-AP MLD.
  15266. * User applications need to know all the links of a non-AP MLD that are
  15267. * participating in the ML association. The possible attributes inside this
  15268. * attribute are defined in enum qca_wlan_vendor_attr_mlo_link_info.
  15269. */
  15270. enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event {
  15271. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0,
  15272. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1,
  15273. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2,
  15274. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3,
  15275. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX = 4,
  15276. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS = 5,
  15277. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO = 6,
  15278. /* keep last */
  15279. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST,
  15280. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX =
  15281. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1,
  15282. };
  15283. /**
  15284. * enum qca_wlan_vendor_attr_mlo_link_info - Defines attributes for
  15285. * non-AP MLD link parameters used by the attribute
  15286. * %QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO.
  15287. *
  15288. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX: u32 attribute, used
  15289. * to pass the netdev ifindex of the non-AP MLD link.
  15290. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR: 6 byte MAC address of
  15291. * the non-AP MLD link.
  15292. */
  15293. enum qca_wlan_vendor_attr_mlo_link_info {
  15294. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_INVALID = 0,
  15295. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX = 1,
  15296. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR = 2,
  15297. /* keep last */
  15298. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST,
  15299. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MAX =
  15300. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST - 1,
  15301. };
  15302. /**
  15303. * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with
  15304. * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and
  15305. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range
  15306. * and PSD information.
  15307. *
  15308. * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is
  15309. * u32. This attribute is used to indicate the start of the queried frequency
  15310. * range in MHz.
  15311. *
  15312. * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32.
  15313. * This attribute is used to indicate the end of the queried frequency range
  15314. * in MHz.
  15315. *
  15316. * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32.
  15317. * This attribute will contain the PSD information for a single range as
  15318. * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and
  15319. * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes.
  15320. *
  15321. * The PSD power info (dBm/MHz) from user space should be multiplied
  15322. * by a factor of 100 when sending to the driver to preserve granularity
  15323. * up to 2 decimal places.
  15324. * Example:
  15325. * PSD power value: 10.21 dBm/MHz
  15326. * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021.
  15327. *
  15328. * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only
  15329. * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with
  15330. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when
  15331. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15332. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
  15333. *
  15334. * The following set of attributes will be used to exchange frequency and
  15335. * corresponding PSD information for AFC between the user space and the driver.
  15336. */
  15337. enum qca_wlan_vendor_attr_afc_freq_psd_info {
  15338. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0,
  15339. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1,
  15340. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2,
  15341. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3,
  15342. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST,
  15343. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX =
  15344. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1,
  15345. };
  15346. /**
  15347. * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with
  15348. * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the
  15349. * channel list and corresponding EIRP information.
  15350. *
  15351. * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8.
  15352. * This attribute is used to indicate queried channel from
  15353. * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO.
  15354. *
  15355. * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32.
  15356. * This attribute is used to configure the EIRP power info corresponding
  15357. * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM.
  15358. * The EIRP power info(dBm) from user space should be multiplied
  15359. * by a factor of 100 when sending to Driver to preserve granularity up to
  15360. * 2 decimal places.
  15361. * Example:
  15362. * EIRP power value: 34.23 dBm
  15363. * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423.
  15364. *
  15365. * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with
  15366. * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
  15367. * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when
  15368. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15369. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE:
  15370. *
  15371. * The following set of attributes will be used to exchange Channel and
  15372. * corresponding EIRP information for AFC between the user space and Driver.
  15373. */
  15374. enum qca_wlan_vendor_attr_afc_chan_eirp_info {
  15375. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0,
  15376. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1,
  15377. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2,
  15378. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST,
  15379. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX =
  15380. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1,
  15381. };
  15382. /**
  15383. * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested
  15384. * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
  15385. * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class,
  15386. * channel, and EIRP related information.
  15387. *
  15388. * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8.
  15389. * This attribute is used to indicate the operating class, as listed under
  15390. * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list.
  15391. *
  15392. * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes
  15393. * for updating the channel number and EIRP power information.
  15394. * It uses the attributes defined in
  15395. * enum qca_wlan_vendor_attr_afc_chan_eirp_info.
  15396. *
  15397. * Operating class information packing format for
  15398. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
  15399. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15400. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY.
  15401. *
  15402. * m - Total number of operating classes.
  15403. * n, j - Number of queried channels for the corresponding operating class.
  15404. *
  15405. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
  15406. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
  15407. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  15408. * .....
  15409. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
  15410. * ....
  15411. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
  15412. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
  15413. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  15414. * ....
  15415. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
  15416. *
  15417. * Operating class information packing format for
  15418. * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
  15419. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
  15420. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15421. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
  15422. *
  15423. * m - Total number of operating classes.
  15424. * n, j - Number of channels for the corresponding operating class.
  15425. *
  15426. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
  15427. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
  15428. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  15429. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
  15430. * .....
  15431. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
  15432. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1]
  15433. * ....
  15434. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
  15435. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
  15436. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  15437. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
  15438. * ....
  15439. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
  15440. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1]
  15441. *
  15442. * The following set of attributes will be used to exchange operating class
  15443. * information for AFC between the user space and the driver.
  15444. */
  15445. enum qca_wlan_vendor_attr_afc_opclass_info {
  15446. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0,
  15447. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1,
  15448. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2,
  15449. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST,
  15450. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX =
  15451. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1,
  15452. };
  15453. /**
  15454. * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type.
  15455. * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute.
  15456. *
  15457. * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the
  15458. * driver to userspace in order to query the new AFC power values.
  15459. *
  15460. * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update
  15461. * complete event will be sent from the driver to userspace to indicate
  15462. * processing of the AFC response.
  15463. *
  15464. * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event
  15465. * will be sent from the driver to userspace to indicate last received
  15466. * AFC response data has been cleared on the AP due to invalid data
  15467. * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE.
  15468. *
  15469. * The following enum defines the different event types that will be
  15470. * used by the driver to help trigger corresponding AFC functionality in user
  15471. * space.
  15472. */
  15473. enum qca_wlan_vendor_afc_event_type {
  15474. QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0,
  15475. QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1,
  15476. QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2,
  15477. };
  15478. /**
  15479. * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP
  15480. * deployment type.
  15481. * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute.
  15482. *
  15483. * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment.
  15484. *
  15485. * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment.
  15486. *
  15487. * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment.
  15488. *
  15489. * The following enum defines different deployment modes that the AP might
  15490. * come up in. This information will be essential to retrieve deployment-type
  15491. * specific SP power values for AFC operation.
  15492. */
  15493. enum qca_wlan_vendor_afc_ap_deployment_type {
  15494. QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0,
  15495. QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1,
  15496. QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2,
  15497. };
  15498. /**
  15499. * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to
  15500. * indicate AFC response status.
  15501. * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute.
  15502. *
  15503. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success
  15504. *
  15505. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication
  15506. * command was not received within the expected time of the AFC expiry event
  15507. * being triggered.
  15508. *
  15509. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data
  15510. * parsing error by the driver.
  15511. *
  15512. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local
  15513. * error.
  15514. *
  15515. * The following enum defines the status codes that the driver will use to
  15516. * indicate whether the AFC data is valid or not.
  15517. */
  15518. enum qca_wlan_vendor_afc_evt_status_code {
  15519. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0,
  15520. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1,
  15521. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2,
  15522. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3,
  15523. };
  15524. /**
  15525. * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with
  15526. * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will
  15527. * support sending only a single request to the user space at a time.
  15528. *
  15529. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute.
  15530. * Used with event to notify the type of AFC event received.
  15531. * Valid values are defined in enum qca_wlan_vendor_afc_event_type.
  15532. *
  15533. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when
  15534. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
  15535. * otherwise unused.
  15536. *
  15537. * This attribute is used to indicate the AP deployment type in the AFC request.
  15538. * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type.
  15539. *
  15540. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute.
  15541. * Unique request identifier generated by the AFC client for every
  15542. * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID.
  15543. * The user space application is responsible for ensuring no duplicate values
  15544. * are in-flight with the server, e.g., by delaying a request, should the same
  15545. * value be received from different radios in parallel.
  15546. *
  15547. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional.
  15548. * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15549. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused.
  15550. *
  15551. * This attribute indicates the AFC spec version information. This will
  15552. * indicate the AFC version AFC client must use to query the AFC data.
  15553. * Bits 15:0 - Minor version
  15554. * Bits 31:16 - Major version
  15555. *
  15556. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when
  15557. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
  15558. * otherwise unused.
  15559. * This attribute indicates the minimum desired power (in dBm) for
  15560. * the queried spectrum.
  15561. *
  15562. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when
  15563. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15564. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15565. *
  15566. * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code.
  15567. * This attribute is used to indicate if there were any errors parsing the
  15568. * AFC response.
  15569. *
  15570. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required
  15571. * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15572. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15573. *
  15574. * This attribute indicates the AFC response code. The AFC response codes are
  15575. * in the following categories:
  15576. * -1: General Failure.
  15577. * 0: Success.
  15578. * 100 - 199: General errors related to protocol.
  15579. * 300 - 399: Error events specific to message exchange
  15580. * for the Available Spectrum Inquiry.
  15581. *
  15582. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when
  15583. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15584. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15585. *
  15586. * This attribute indicates the date until which the current response is
  15587. * valid for in UTC format.
  15588. * Date format: bits 7:0 - DD (Day 1-31)
  15589. * bits 15:8 - MM (Month 1-12)
  15590. * bits 31:16 - YYYY (Year)
  15591. *
  15592. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when
  15593. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15594. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15595. *
  15596. * This attribute indicates the time until which the current response is
  15597. * valid for in UTC format.
  15598. * Time format: bits 7:0 - SS (Seconds 0-59)
  15599. * bits 15:8 - MM (Minutes 0-59)
  15600. * bits 23:16 - HH (Hours 0-23)
  15601. * bits 31:24 - Reserved
  15602. *
  15603. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes
  15604. * for updating the list of frequency ranges to be queried.
  15605. * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15606. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
  15607. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15608. * It uses the attributes defined in
  15609. * enum qca_wlan_vendor_attr_afc_freq_psd_info.
  15610. *
  15611. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes
  15612. * for updating the list of operating classes and corresponding channels to be
  15613. * queried.
  15614. * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15615. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
  15616. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15617. * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info.
  15618. */
  15619. enum qca_wlan_vendor_attr_afc_event {
  15620. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0,
  15621. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1,
  15622. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2,
  15623. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3,
  15624. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4,
  15625. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5,
  15626. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6,
  15627. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7,
  15628. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8,
  15629. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9,
  15630. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10,
  15631. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11,
  15632. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST,
  15633. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX =
  15634. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1,
  15635. };
  15636. /**
  15637. * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used
  15638. * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes
  15639. * will support sending only a single AFC response to the driver at a time.
  15640. *
  15641. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute.
  15642. * This attribute will be used to send a single Spectrum Inquiry response object
  15643. * from the 'availableSpectrumInquiryResponses' array object from the response
  15644. * JSON.
  15645. *
  15646. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute.
  15647. *
  15648. * This attribute indicates the period (in seconds) for which the response
  15649. * data received is valid for.
  15650. *
  15651. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute.
  15652. *
  15653. * This attribute indicates the request ID for which the corresponding
  15654. * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID.
  15655. *
  15656. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute.
  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_RESP_EXP_TIME: Required u32 attribute.
  15665. *
  15666. * This attribute indicates the time until which the current response is
  15667. * valid for in UTC format.
  15668. * Time format: bits 7:0 - SS (Seconds 0-59)
  15669. * bits 15:8 - MM (Minutes 0-59)
  15670. * bits 23:16 - HH (Hours 0-23)
  15671. * bits 31:24 - Reserved
  15672. *
  15673. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute.
  15674. *
  15675. * This attribute indicates the AFC response code. The AFC response codes are
  15676. * in the following categories:
  15677. * -1: General Failure.
  15678. * 0: Success.
  15679. * 100 - 199: General errors related to protocol.
  15680. * 300 - 399: Error events specific to message exchange
  15681. * for the Available Spectrum Inquiry.
  15682. *
  15683. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes
  15684. * for PSD info of all the queried frequency ranges. It uses the attributes
  15685. * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute.
  15686. *
  15687. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested
  15688. * attributes for EIRP info of all queried operating class/channels. It uses
  15689. * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and
  15690. * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute.
  15691. *
  15692. */
  15693. enum qca_wlan_vendor_attr_afc_response {
  15694. QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0,
  15695. QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1,
  15696. QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2,
  15697. QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3,
  15698. QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4,
  15699. QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5,
  15700. QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6,
  15701. QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7,
  15702. QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8,
  15703. QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST,
  15704. QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX =
  15705. QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1,
  15706. };
  15707. /**
  15708. * enum qca_wlan_dozed_ap_state - Doze states for AP interface
  15709. *
  15710. * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface.
  15711. *
  15712. * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts
  15713. * beaconing at higher beacon interval with Rx disabled.
  15714. */
  15715. enum qca_wlan_dozed_ap_state {
  15716. QCA_WLAN_DOZED_AP_DISABLE = 0,
  15717. QCA_WLAN_DOZED_AP_ENABLE = 1,
  15718. };
  15719. /**
  15720. * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command
  15721. * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode
  15722. * configuration.
  15723. *
  15724. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute.
  15725. * Configures the doze state for an AP interface. Possible values are defined
  15726. * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event
  15727. * gets triggered asynchronously to provide updated AP interface configuration.
  15728. *
  15729. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by
  15730. * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP
  15731. * command, which is used later to maintain synchronization between commands
  15732. * and asynchronous events.
  15733. *
  15734. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute.
  15735. * Used in event to indicate the next TBTT TSF timer value after applying the
  15736. * doze mode configuration. Next TBTT TSF is the time at which the AP sends
  15737. * the first beacon after entering or exiting dozed mode.
  15738. *
  15739. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute.
  15740. * Used with event to inform the periodicity of beacon transmission that would
  15741. * be skipped at all TBTTs in between.
  15742. */
  15743. enum qca_wlan_vendor_attr_dozed_ap {
  15744. QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0,
  15745. QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1,
  15746. QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2,
  15747. QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3,
  15748. QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4,
  15749. /* Keep last */
  15750. QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST,
  15751. QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX =
  15752. QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1,
  15753. };
  15754. /**
  15755. * enum qca_wlan_vendor_monitor_mode_status - Represents the status codes
  15756. * used with QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE.
  15757. * @QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING: Used to indicate no
  15758. * capture running status.
  15759. * @QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING: Used to indicate
  15760. * capture running status.
  15761. **/
  15762. enum qca_wlan_vendor_monitor_mode_status {
  15763. QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING = 0,
  15764. QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING = 1,
  15765. };
  15766. /**
  15767. * enum qca_wlan_vendor_attr_get_monitor_mode - Used by the
  15768. * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE to report
  15769. * information regarding the local packet capture over the monitor mode.
  15770. *
  15771. * @QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS: u32 attribute. This attribute
  15772. * represents the status of the start capture commands. The values used with
  15773. * this attribute are defined in enum qca_wlan_vendor_monitor_mode_status. This
  15774. * is returned by the driver in the response to the command.
  15775. */
  15776. enum qca_wlan_vendor_attr_get_monitor_mode {
  15777. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_INVALID = 0,
  15778. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS = 1,
  15779. /* Keep last */
  15780. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST,
  15781. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_MAX =
  15782. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST - 1,
  15783. };
  15784. /**
  15785. * enum qca_wlan_vendor_link_state_op_types - Defines different types of
  15786. * operations for which %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE can be used.
  15787. * Will be used with %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE attribute.
  15788. *
  15789. * @QCA_WLAN_VENDOR_LINK_STATE_OP_GET - Get the MLO links state information.
  15790. * @QCA_WLAN_VENDOR_LINK_STATE_OP_SET - Set the MLO links state information.
  15791. */
  15792. enum qca_wlan_vendor_link_state_op_types {
  15793. QCA_WLAN_VENDOR_LINK_STATE_OP_GET = 0,
  15794. QCA_WLAN_VENDOR_LINK_STATE_OP_SET = 1,
  15795. };
  15796. /**
  15797. * enum qca_wlan_vendor_link_state_control_modes - Represents the types of MLO
  15798. * links state control modes. This enum is used by
  15799. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE attribute.
  15800. *
  15801. * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT: MLO links state controlled
  15802. * by the driver.
  15803. * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER: MLO links state controlled by
  15804. * user space.
  15805. * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED: User space provides the
  15806. * desired number of MLO links to operate in active state at any given time.
  15807. * The driver will choose which MLO links should operate in the active state.
  15808. * See enum qca_wlan_vendor_link_state for active state definition.
  15809. */
  15810. enum qca_wlan_vendor_link_state_control_modes {
  15811. QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT = 0,
  15812. QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER = 1,
  15813. QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED = 2,
  15814. };
  15815. /**
  15816. * enum qca_wlan_vendor_link_state_operation_modes - Represents the types of MLO
  15817. * links state operation modes. This enum is used by
  15818. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE attribute.
  15819. *
  15820. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT: In the default operation
  15821. * mode, the driver selects the operating mode of the links, without any
  15822. * guidance from the user space.
  15823. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY: In the low latency
  15824. * operation mode the driver should select MLO links that will achieve low
  15825. * latency.
  15826. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT: In the high
  15827. * throughput operation mode the driver should select MLO links that will
  15828. * achieve higher throughput.
  15829. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER: In the low power
  15830. * operation mode the driver should select MLO links that will achieve low
  15831. * power.
  15832. */
  15833. enum qca_wlan_vendor_link_state_operation_modes {
  15834. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT = 0,
  15835. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY = 1,
  15836. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT = 2,
  15837. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER = 3,
  15838. };
  15839. /**
  15840. * enum qca_wlan_vendor_link_state - Represents the possible link states of an
  15841. * MLO link.
  15842. *
  15843. * @QCA_WLAN_VENDOR_LINK_STATE_INACTIVE: In this state, the link will not
  15844. * be used for data transmission but it can have TIDs mapped to it. It will be
  15845. * in doze state always and does not monitor the beacons.
  15846. * @QCA_WLAN_VENDOR_LINK_STATE_ACTIVE: In this state, the link will be
  15847. * used for data TX/RX and monitors the beacons to check TIM bit indication.
  15848. * It may enter doze state and comes out based on the transmit data traffic and
  15849. * TIM bit indication in the beacon.
  15850. */
  15851. enum qca_wlan_vendor_link_state {
  15852. QCA_WLAN_VENDOR_LINK_STATE_INACTIVE = 0,
  15853. QCA_WLAN_VENDOR_LINK_STATE_ACTIVE = 1,
  15854. };
  15855. /**
  15856. * enum qca_wlan_vendor_attr_link_state_config - Definition of attributes used
  15857. * inside nested attribute %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG.
  15858. *
  15859. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID: u8 attribute, link ID of the
  15860. * MLO link.
  15861. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE: u32 attribute. See
  15862. * enum qca_wlan_vendor_link_state for possible MLO link states.
  15863. */
  15864. enum qca_wlan_vendor_attr_link_state_config {
  15865. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_INVALID = 0,
  15866. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID = 1,
  15867. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE = 2,
  15868. /* Keep last */
  15869. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST,
  15870. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_MAX =
  15871. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST - 1,
  15872. };
  15873. /**
  15874. * enum qca_wlan_vendor_attr_mlo_link_state - Attributes used by
  15875. * %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE vendor command.
  15876. *
  15877. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE: u32 attribute. Indicates the type
  15878. * of the operation %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE intended for.
  15879. * Required only in a command. Possible values for this attribute are defined in
  15880. * enum qca_wlan_vendor_link_state_op_types.
  15881. *
  15882. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE: u32 attribute. Indicates MLO
  15883. * links control mode type. Optional attribute in a command when
  15884. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15885. * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
  15886. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15887. * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
  15888. * See enum qca_wlan_vendor_link_state_control_modes for possible control modes.
  15889. *
  15890. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG: Array of nested attributes.
  15891. * Indicates the state of the each MLO link affiliated with the interface.
  15892. * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
  15893. * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
  15894. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
  15895. * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER. Required attribute in a
  15896. * response when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15897. * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
  15898. * See enum qca_wlan_vendor_attr_link_state_config for the nested attributes.
  15899. *
  15900. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS: u8 attribute.
  15901. * Represents the number of active state links. See enum
  15902. * qca_wlan_vendor_link_state for active state definition.
  15903. * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
  15904. * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
  15905. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
  15906. * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED.
  15907. *
  15908. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE: u32 attribute. Indicates MLO
  15909. * links operation mode type. Optional attribute in a command when
  15910. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15911. * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
  15912. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15913. * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
  15914. * See enum qca_wlan_vendor_link_state_operation_modes for possible operation
  15915. * modes.
  15916. */
  15917. enum qca_wlan_vendor_attr_mlo_link_state {
  15918. QCA_WLAN_VENDOR_ATTR_LINK_STATE_INVALID = 0,
  15919. QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE = 1,
  15920. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE = 2,
  15921. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG = 3,
  15922. QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS = 4,
  15923. QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE = 5,
  15924. /* keep last */
  15925. QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST,
  15926. QCA_WLAN_VENDOR_ATTR_LINK_STATE_MAX =
  15927. QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST - 1,
  15928. };
  15929. /**
  15930. * enum qca_wlan_vendor_attr_tid_link_map_status - Definition of attributes used
  15931. * inside nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
  15932. *
  15933. * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK: Required u16 attribute
  15934. * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
  15935. * Indicates the link mapping bitmap of a TID for uplink traffic. It is a
  15936. * bitmask of the link IDs in which a bit set means that the TID is mapped with
  15937. * that link ID in uplink traffic. Otherwise, the TID is not mapped to uplink
  15938. * traffic for that link.
  15939. *
  15940. * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK: Required u16 attribute
  15941. * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
  15942. * Indicates the link mapping bitmap of a TID for downlink traffic. It is a
  15943. * bitmask of the link IDs in which a bit set means that the TID is mapped with
  15944. * that link ID in downlink traffic. Otherwise, the TID is not mapped to
  15945. * downlink traffic for that link.
  15946. */
  15947. enum qca_wlan_vendor_attr_tid_link_map_status {
  15948. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_INVALID = 0,
  15949. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK = 1,
  15950. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK = 2,
  15951. /* keep last */
  15952. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST,
  15953. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_MAX =
  15954. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST - 1,
  15955. };
  15956. /*
  15957. * enum qca_wlan_vendor_attr_tid_to_link_map: Definition of attributes used with
  15958. * %QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP event.
  15959. *
  15960. * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR: Required attribute. 6-byte
  15961. * AP MLD address with which this TID-to-link negotiation mapping is
  15962. * established/updated.
  15963. *
  15964. * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS: Optional attribute. Array of
  15965. * nested attributes containing TID-to-links mapping information. This will have
  15966. * TID-to-link mapping for TID0 to TID7, each containing the uplink and downlink
  15967. * map information. If this attribute is not present the default TID-to-link
  15968. * mapping is in use, i.e., all TIDs are mapped to all links for both uplink and
  15969. * downlink traffic.
  15970. * See enum qca_wlan_vendor_attr_tid_link_map_status for the nested attributes.
  15971. */
  15972. enum qca_wlan_vendor_attr_tid_to_link_map {
  15973. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_INVALID = 0,
  15974. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR = 1,
  15975. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS = 2,
  15976. /* keep last */
  15977. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST,
  15978. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_MAX =
  15979. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST - 1,
  15980. };
  15981. /**
  15982. * enum qca_wlan_vendor_attr_link_reconfig: Definition of attributes used
  15983. * with %QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG event.
  15984. *
  15985. * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR: Required attribute.
  15986. * 6-byte AP MLD address of the AP which indicated the link reconfiguration.
  15987. *
  15988. * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS: Required u16 attribute.
  15989. * A bitmap of the removed setup links link IDs.
  15990. */
  15991. enum qca_wlan_vendor_attr_link_reconfig {
  15992. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_INVALID = 0,
  15993. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR = 1,
  15994. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS = 2,
  15995. /* keep last */
  15996. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST,
  15997. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_MAX =
  15998. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST - 1,
  15999. };
  16000. /**
  16001. * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext - Attributes used by
  16002. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT vendor command.
  16003. *
  16004. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK: u8 attribute.
  16005. * Indicates the MLO link id on which the TDLS discovery response
  16006. * frame is to be transmitted.
  16007. */
  16008. enum qca_wlan_vendor_attr_tdls_disc_rsp_ext {
  16009. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_INVALID = 0,
  16010. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK = 1,
  16011. /* Keep last */
  16012. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST,
  16013. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_MAX =
  16014. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST - 1,
  16015. };
  16016. /**
  16017. * enum qca_wlan_vendor_tdls_state - Represents the possible TDLS states.
  16018. *
  16019. * @QCA_WLAN_VENDOR_TDLS_STATE_DISABLED: TDLS is not enabled, default status
  16020. * for all stations.
  16021. *
  16022. * @QCA_WLAN_VENDOR_TDLS_STATE_ENABLED: TDLS is enabled, but not yet tried to
  16023. * establish the session.
  16024. *
  16025. * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED: Direct link TDLS session is
  16026. * established.
  16027. *
  16028. * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL: Direct link TDLS
  16029. * session is established using MCC.
  16030. *
  16031. * @QCA_WLAN_VENDOR_TDLS_STATE_DROPPED: Direct link TDLS session was
  16032. * established, but is temporarily dropped currently.
  16033. *
  16034. * @QCA_WLAN_VENDOR_TDLS_STATE_FAILED: TDLS session is failed to establish.
  16035. */
  16036. enum qca_wlan_vendor_tdls_state {
  16037. QCA_WLAN_VENDOR_TDLS_STATE_DISABLED = 1,
  16038. QCA_WLAN_VENDOR_TDLS_STATE_ENABLED = 2,
  16039. QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED = 3,
  16040. QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL = 4,
  16041. QCA_WLAN_VENDOR_TDLS_STATE_DROPPED = 5,
  16042. QCA_WLAN_VENDOR_TDLS_STATE_FAILED = 6,
  16043. };
  16044. /**
  16045. * enum qca_wlan_vendor_tdls_reason - Represents the possible TDLS reasons.
  16046. *
  16047. * @QCA_WLAN_TDLS_REASON_SUCCESS: TDLS session is successfully established.
  16048. *
  16049. * @QCA_WLAN_TDLS_REASON_UNSPECIFIED: Unspecified reason.
  16050. *
  16051. * @QCA_WLAN_TDLS_REASON_NOT_SUPPORTED: TDLS is not supported.
  16052. *
  16053. * @QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND: The specified band is not supported.
  16054. *
  16055. * @QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL: Packets going through AP is better
  16056. * than through direct link.
  16057. *
  16058. * @QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE: Peer station doesn't want the TDLS
  16059. * session anymore.
  16060. */
  16061. enum qca_wlan_vendor_tdls_reason {
  16062. QCA_WLAN_TDLS_REASON_SUCCESS = 0,
  16063. QCA_WLAN_TDLS_REASON_UNSPECIFIED = -1,
  16064. QCA_WLAN_TDLS_REASON_NOT_SUPPORTED = -2,
  16065. QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND = -3,
  16066. QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL = -4,
  16067. QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE = -5,
  16068. };
  16069. /**
  16070. * enum qca_wlan_vendor_attr_tdls_enable - Attributes used by
  16071. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE vendor command.
  16072. *
  16073. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: 6-byte MAC address of the peer
  16074. * station to enable the TDLS session. Optional attribute. The driver sends the
  16075. * TDLS session result as an asynchronous response using the command
  16076. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE when this peer MAC is provided in
  16077. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE command.
  16078. *
  16079. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: u32 attribute. Indicates the
  16080. * channel on which the TDLS session to be established. Required only when
  16081. * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
  16082. *
  16083. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: u32 attribute.
  16084. * Indicates the global operating class of the TDLS session to be established.
  16085. * Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
  16086. *
  16087. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: u32 attribute. Indicates
  16088. * the maximum latency of the WLAN packets to be transmitted/received in
  16089. * milliseconds on TDLS session. Required only when
  16090. * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
  16091. *
  16092. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: u32 attribute.
  16093. * Indicates the minimum bandwidth to be used to establish the TDLS session
  16094. * in kbps. Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is
  16095. * present.
  16096. */
  16097. enum qca_wlan_vendor_attr_tdls_enable {
  16098. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
  16099. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR = 1,
  16100. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL = 2,
  16101. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS = 3,
  16102. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS = 4,
  16103. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS = 5,
  16104. /* keep last */
  16105. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
  16106. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
  16107. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
  16108. };
  16109. /**
  16110. * enum qca_wlan_vendor_attr_tdls_disable - Attributes used by
  16111. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE vendor command.
  16112. *
  16113. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: 6-byte MAC address of the peer
  16114. * station to disable the TDLS session. Optional attribute.
  16115. */
  16116. enum qca_wlan_vendor_attr_tdls_disable {
  16117. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
  16118. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR = 1,
  16119. /* keep last */
  16120. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
  16121. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
  16122. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
  16123. };
  16124. /**
  16125. * enum qca_wlan_vendor_attr_tdls_get_status - Attributes used by
  16126. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS vendor command.
  16127. *
  16128. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: 6-byte MAC address of the
  16129. * peer station. Optional attribute. Used in
  16130. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS request and response.
  16131. *
  16132. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: u32 attribute. Indicates the
  16133. * TDLS session state with the peer specified in
  16134. * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Uses the values from
  16135. * enum qca_wlan_vendor_tdls_state. Used in
  16136. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
  16137. *
  16138. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: s32 attribute. Indicates the
  16139. * reason for the TDLS session state indicated in
  16140. * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE. Uses the values from enum
  16141. * qca_wlan_vendor_tdls_reason. Used in
  16142. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
  16143. *
  16144. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: u32 attribute. Indicates the
  16145. * channel of the TDLS session established with
  16146. * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in
  16147. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
  16148. *
  16149. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: u32 attribute.
  16150. * Indicates the global operating class of the TDLS session established with
  16151. * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in
  16152. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
  16153. *
  16154. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS: u32 attribute. Indicates
  16155. * the current number of active TDLS sessions. This is indicated in the response
  16156. * when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with
  16157. * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute.
  16158. *
  16159. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE: Flag attribute. Indicates
  16160. * whether the driver can initiate new TDLS session. This is indicated in the
  16161. * response when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with
  16162. * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute.
  16163. */
  16164. enum qca_wlan_vendor_attr_tdls_get_status {
  16165. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
  16166. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR = 1,
  16167. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE = 2,
  16168. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON = 3,
  16169. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL = 4,
  16170. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS = 5,
  16171. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS = 6,
  16172. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE = 7,
  16173. /* keep last */
  16174. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
  16175. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
  16176. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
  16177. };
  16178. /**
  16179. * enum qca_wlan_vendor_attr_tdls_state - Attributes used by
  16180. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE vendor command.
  16181. *
  16182. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: 6-byte MAC address of the
  16183. * peer station. Required attribute.
  16184. *
  16185. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CURRENT_STATE: u32 attribute. Indicates
  16186. * the current TDLS state. Required attribute. Uses the values from
  16187. * enum qca_wlan_vendor_tdls_state.
  16188. *
  16189. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: s32 attribute. Indicates the
  16190. * reason of the current TDLS session state. Required attribute. Uses the values
  16191. * from enum qca_wlan_vendor_tdls_reason.
  16192. *
  16193. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: u32 attribute. Indicates the
  16194. * TDLS session channel. Required attribute.
  16195. *
  16196. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: u32 attribute.
  16197. * Indicates the TDLS session global operating class. Required attribute.
  16198. */
  16199. enum qca_wlan_vendor_attr_tdls_state {
  16200. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
  16201. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR = 1,
  16202. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_NEW_STATE = 2,
  16203. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON = 3,
  16204. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL = 4,
  16205. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS = 5,
  16206. /* keep last */
  16207. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
  16208. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
  16209. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
  16210. };
  16211. /*
  16212. * enum qca_wlan_vendor_opm_mode - Modes supported by
  16213. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT vendor attribute.
  16214. *
  16215. * @QCA_WLAN_VENDOR_OPM_MODE_DISABLE: OPM Disabled
  16216. * @QCA_WLAN_VENDOR_OPM_MODE_ENABLE: OPM Enabled
  16217. * @QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED: User defined mode which allows user
  16218. * to configure power save inactivity timeout and speculative wake up
  16219. * interval through %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
  16220. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes.
  16221. */
  16222. enum qca_wlan_vendor_opm_mode {
  16223. QCA_WLAN_VENDOR_OPM_MODE_DISABLE = 0,
  16224. QCA_WLAN_VENDOR_OPM_MODE_ENABLE = 1,
  16225. QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED = 2,
  16226. };
  16227. /* enum qca_wlan_audio_transport_switch_type - Represents the possible transport
  16228. * switch types.
  16229. *
  16230. * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_NON_WLAN: Request to route audio data
  16231. * via non-WLAN transport (ex: bluetooth).
  16232. *
  16233. * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_WLAN: Request to route audio data via
  16234. * WLAN transport.
  16235. */
  16236. enum qca_wlan_audio_transport_switch_type {
  16237. QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_NON_WLAN = 0,
  16238. QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_WLAN = 1,
  16239. };
  16240. /**
  16241. * enum qca_wlan_audio_transport_switch_status - Represents the status of audio
  16242. * transport switch request.
  16243. *
  16244. * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_REJECTED: Request to switch transport
  16245. * has been rejected. For ex: when transport switch is requested from WLAN
  16246. * to non-WLAN transport, user space modules and peers would evaluate the switch
  16247. * request and may not be ready for switch and hence switch to non-WLAN transport
  16248. * gets rejected.
  16249. *
  16250. * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_COMPLETED: Request to switch transport
  16251. * has been completed. This is sent only in command path. Ex: when host driver
  16252. * had requested for audio transport switch and userspace modules as well as
  16253. * peers are ready for the switch, userspace module switches the transport and
  16254. * sends subcommand with status completed to host driver.
  16255. */
  16256. enum qca_wlan_audio_transport_switch_status {
  16257. QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_REJECTED = 0,
  16258. QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_COMPLETED = 1,
  16259. };
  16260. /**
  16261. * enum qca_wlan_vendor_attr_audio_transport_switch - Attributes used by
  16262. * %QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH vendor command.
  16263. *
  16264. * @QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_TYPE: u8 attribute. Indicates
  16265. * the transport switch type from one of the values in enum
  16266. * qca_wlan_audio_transport_switch_type. This is mandatory param in both
  16267. * command and event path. This attribute is included in both requests and
  16268. * responses.
  16269. *
  16270. * @QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_STATUS: u8 attribute. Indicates
  16271. * the transport switch status from one of the values in enum
  16272. * qca_wlan_audio_transport_switch_status. This is optional param and used in
  16273. * both command and event path. This attribute must not be included in requests.
  16274. */
  16275. enum qca_wlan_vendor_attr_audio_transport_switch {
  16276. QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_INVALID = 0,
  16277. QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_TYPE = 1,
  16278. QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_STATUS = 2,
  16279. /* keep last */
  16280. QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_AFTER_LAST,
  16281. QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_MAX =
  16282. QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_AFTER_LAST - 1,
  16283. };
  16284. /*
  16285. * enum qca_wlan_vendor_tx_latency_type - Represents the possible latency
  16286. * types.
  16287. *
  16288. * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER: Per MSDU latency
  16289. * from: An MSDU is presented to the driver
  16290. * to: the MSDU is queued into TCL SRNG
  16291. *
  16292. * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING: Per MSDU latency
  16293. * from: the MSDU is queued into TCL SRNG
  16294. * to: the MSDU is released by the driver
  16295. *
  16296. * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW: Per MSDU latency
  16297. * from: the MSDU is presented to the hardware
  16298. * to: the MSDU is released by the hardware
  16299. *
  16300. * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA: Per PPDU latency
  16301. * The time spent on Clear Channel Assessment, the maximum value is 50000 (us)
  16302. * from: A PPDU is presented to the hardware LMAC
  16303. * to: over-the-air transmission is started for the PPDU
  16304. */
  16305. enum qca_wlan_vendor_tx_latency_type {
  16306. QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER = 0,
  16307. QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING = 1,
  16308. QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW = 2,
  16309. QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA = 3,
  16310. };
  16311. /**
  16312. * enum qca_wlan_vendor_attr_tx_latency_bucket - Definition of attributes
  16313. * used inside nested attributes
  16314. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS and
  16315. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS.
  16316. *
  16317. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE: u8 attribute.
  16318. * Indicates the latency type.
  16319. * See enum qca_wlan_vendor_tx_latency_type for the supported types.
  16320. *
  16321. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY: u32 attribute.
  16322. * Indicates the granularity (in microseconds) of the distribution for the
  16323. * type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE), the value
  16324. * must be positive.
  16325. * If %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE is
  16326. * %QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA, the value must be an integer multiple
  16327. * of 1000, and the maximum allowed value is 15000 (us).
  16328. *
  16329. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE: u32 attribute.
  16330. * Indicates the average of the latency (in microseconds) for the type
  16331. * (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE) within a cycle.
  16332. * If there is no transmitted MSDUs/MPDUs during a cycle, this average is 0;
  16333. * otherwise, it represents the quotient of <accumulated latency of the
  16334. * transmitted MSDUs/MPDUs in a cycle> divided by <the number of the transmitted
  16335. * MSDUs/MPDUs in a cycle>.
  16336. *
  16337. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION:
  16338. * Array of u32, 4 elements in total, represents the latency distribution for
  16339. * the type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE).
  16340. * Each element holds the count of MSDUs/PPDUs (according to the latency type)
  16341. * within a range:
  16342. * element[0]: latency >= 0 && latency < granularity
  16343. * element[1]: latency >= granularity && latency < granularity * 2
  16344. * element[2]: latency >= granularity * 2 && latency < granularity * 3
  16345. * element[3]: latency >= granularity * 3
  16346. */
  16347. enum qca_wlan_vendor_attr_tx_latency_bucket {
  16348. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_INVALID = 0,
  16349. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE = 1,
  16350. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY = 2,
  16351. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE = 3,
  16352. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION = 4,
  16353. /* keep last */
  16354. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST,
  16355. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_MAX =
  16356. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST - 1,
  16357. };
  16358. /**
  16359. * enum qca_wlan_vendor_attr_tx_latency_link - Definition of attributes
  16360. * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS.
  16361. *
  16362. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE: 6-byte MAC address.
  16363. * Indicates link MAC address of the remote peer. For example, when running
  16364. * in station mode, it's the BSSID of the link; while when running in AP
  16365. * mode, it's the link MAC address of the remote station.
  16366. *
  16367. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS:
  16368. * Array of nested attribute.
  16369. * Represents the transmit latency statistics for the link specified by
  16370. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE.
  16371. * Each entry represents the statistics for one of the types defined in
  16372. * enum qca_wlan_vendor_tx_latency_type.
  16373. * Each defined type has and must have one entry.
  16374. * See enum qca_wlan_vendor_attr_tx_latency_bucket for nested attributes.
  16375. */
  16376. enum qca_wlan_vendor_attr_tx_latency_link {
  16377. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_INVALID = 0,
  16378. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE = 1,
  16379. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS = 2,
  16380. /* keep last */
  16381. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST,
  16382. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAX =
  16383. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST - 1,
  16384. };
  16385. /**
  16386. * enum qca_wlan_vendor_tx_latency_action - Represents the possible actions
  16387. * for %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY.
  16388. *
  16389. * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE:
  16390. * Disable transmit latency monitoring.
  16391. *
  16392. * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE:
  16393. * Enable transmit latency monitoring.
  16394. *
  16395. * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET:
  16396. * Get transmit latency statistics of the last cycle (period is specified by
  16397. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD).
  16398. */
  16399. enum qca_wlan_vendor_tx_latency_action {
  16400. QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE = 0,
  16401. QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE = 1,
  16402. QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET = 2,
  16403. };
  16404. /**
  16405. * enum qca_wlan_vendor_attr_tx_latency - Definition of attributes used by
  16406. * %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY to configure, retrieve, and report
  16407. * per-link transmit latency statistics.
  16408. *
  16409. * There are 6 uses of %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY:
  16410. * 1) used as a command to enable the feature
  16411. * Precondition(s):
  16412. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
  16413. * %QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE
  16414. * Mandatory attribute(s):
  16415. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION,
  16416. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD,
  16417. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS with nested attributes
  16418. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE,
  16419. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY.
  16420. * Notes:
  16421. * The driver will monitor the transmit latency for the active links
  16422. * and save the statistics for each cycle (period is set by
  16423. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD) when the feature is enabled.
  16424. * Set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT if periodical
  16425. * report is required.
  16426. *
  16427. * 2) used as a command to disable the feature
  16428. * Precondition(s):
  16429. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
  16430. * %QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE
  16431. * Mandatory attribute(s):
  16432. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION
  16433. *
  16434. * 3) used as a command to retrieve the statistics for all the active links on
  16435. * the requested interface
  16436. * Precondition(s):
  16437. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
  16438. * QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and
  16439. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is NOT present.
  16440. * Mandatory attribute(s):
  16441. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION
  16442. * Notes:
  16443. * The driver returns failure directly if the feature is not enabled or
  16444. * there is no active link.
  16445. * The driver returns the statistics of the last cycle in the case of
  16446. * success.
  16447. *
  16448. * 4) used as a command to retrieve the statistics for the specified links
  16449. * Precondition(s):
  16450. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
  16451. * QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and
  16452. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is present.
  16453. * Mandatory attribute(s):
  16454. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION,
  16455. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attribute
  16456. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE.
  16457. * Notes:
  16458. * The driver returns failure directly if the feature is not enabled or
  16459. * any of the links (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS)
  16460. * does not exist or is not in active state.
  16461. *
  16462. * 5) used as a command response for #3 or #4
  16463. * Precondition(s):
  16464. * Userspace issues command #3 or #4, and the driver gets corresponding
  16465. * statistics successfully.
  16466. * Mandatory attribute(s):
  16467. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes
  16468. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE,
  16469. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested
  16470. * attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE,
  16471. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY,
  16472. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and
  16473. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION.
  16474. *
  16475. * 6) used as an asynchronous event to report the statistics periodically
  16476. * Precondition(s):
  16477. * Userspace set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT in
  16478. * #1.
  16479. * One or more links are in active state.
  16480. * Mandatory attribute(s):
  16481. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes
  16482. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE,
  16483. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested
  16484. * attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE,
  16485. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY,
  16486. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and
  16487. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION.
  16488. *
  16489. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID: Invalid attribute
  16490. *
  16491. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION: u32 attribute.
  16492. * Action to take in this vendor command.
  16493. * See enum qca_wlan_vendor_tx_latency_action for supported actions.
  16494. *
  16495. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT: Flag attribute.
  16496. * Enable (flag attribute present) - The driver needs to report transmit latency
  16497. * statistics at the end of each statistical period.
  16498. * Disable (flag attribute not present) - The driver doesn't need to report
  16499. * transmit latency statistics periodically.
  16500. *
  16501. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD: u32 attribute.
  16502. * Indicates statistical period for transmit latency in terms of milliseconds,
  16503. * the minimal allowed value is 100 and the maximum allowed value is 60000.
  16504. *
  16505. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS: Array of nested attribute.
  16506. * Each entry represents the latency buckets configuration for one of the types
  16507. * defined in enum qca_wlan_vendor_tx_latency_type.
  16508. * Each defined type has and must have one entry.
  16509. * See enum qca_wlan_vendor_attr_tx_latency_bucket for the list of
  16510. * supported attributes.
  16511. *
  16512. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS: Array of nested attribute.
  16513. * Information of the links, each entry represents for one link.
  16514. * See enum qca_wlan_vendor_attr_tx_latency_link for the list of
  16515. * supported attributes for each entry.
  16516. */
  16517. enum qca_wlan_vendor_attr_tx_latency {
  16518. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID = 0,
  16519. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION = 1,
  16520. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT = 2,
  16521. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD = 3,
  16522. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS = 4,
  16523. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS = 5,
  16524. /* keep last */
  16525. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST,
  16526. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_MAX =
  16527. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST - 1,
  16528. };
  16529. /**
  16530. * qca_wlan_vendor_attr_RECONFIG_REMOVE_COMPLETE_EVENT - Defines attributes for
  16531. * ML Reconfig (Mlo Link removal) parameters used by the attribute
  16532. * @QCA_WLAN_VENDOR_ATTR_RECONFIG_REMOVE_COMPLETE_EVENT_IFINDEX: u32 attribute
  16533. * used to pass the netdev ifindex of the MLO Reconfiguration link.
  16534. */
  16535. enum qca_wlan_vendor_attr_reconfig_remove_complete_EVENT {
  16536. QCA_WLAN_VENDOR_ATTR_RECONFIG_REMOVE_COMPLETE_EVENT_IFINDEX = 0,
  16537. /* keep last */
  16538. QCA_WLAN_VENDOR_ATTR_RECONFIG_REMOVE_COMPLETE_EVENT_AFTER_LAST,
  16539. QCA_WLAN_VENDOR_ATTR_RECONFIG_REMOVE_COMPLETE_EVENT_MAX =
  16540. QCA_WLAN_VENDOR_ATTR_RECONFIG_REMOVE_COMPLETE_EVENT_AFTER_LAST - 1,
  16541. };
  16542. #endif