qca_vendor.h 753 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280
  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. enum qca_nl80211_vendor_subcmds {
  829. QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
  830. QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
  831. QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
  832. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
  833. QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
  834. QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
  835. QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
  836. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
  837. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
  838. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
  839. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
  840. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
  841. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
  842. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20,
  843. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21,
  844. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22,
  845. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23,
  846. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24,
  847. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25,
  848. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26,
  849. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27,
  850. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28,
  851. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29,
  852. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30,
  853. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31,
  854. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32,
  855. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33,
  856. QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
  857. QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
  858. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
  859. QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
  860. QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
  861. QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
  862. QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
  863. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41,
  864. /* Get Concurrency Matrix */
  865. QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
  866. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
  867. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
  868. QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
  869. /* Deprecated */
  870. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53,
  871. QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
  872. QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
  873. /* Off loaded DFS events */
  874. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
  875. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
  876. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
  877. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
  878. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
  879. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
  880. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
  881. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
  882. QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
  883. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65,
  884. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66,
  885. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67,
  886. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68,
  887. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69,
  888. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70,
  889. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71,
  890. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72,
  891. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73,
  892. /* Wi-Fi Configuration subcommands */
  893. QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
  894. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
  895. QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
  896. QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
  897. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
  898. QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
  899. QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
  900. QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
  901. /* NS Offload enable/disable cmd */
  902. QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
  903. QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
  904. QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
  905. QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
  906. QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
  907. /* OCB commands */
  908. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
  909. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
  910. QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
  911. QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
  912. QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
  913. QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
  914. QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
  915. QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
  916. QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
  917. /* subcommand to get link properties */
  918. QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
  919. /* LFR Subnet Detection */
  920. QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
  921. /* DBS subcommands */
  922. QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
  923. QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
  924. /* Vendor setband command */
  925. QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
  926. /* Vendor scan commands */
  927. QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
  928. QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
  929. /* OTA test subcommand */
  930. QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
  931. /* Tx power scaling subcommands */
  932. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
  933. /* Tx power scaling in db subcommands */
  934. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115,
  935. QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
  936. QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117,
  937. QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
  938. QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
  939. QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
  940. QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121,
  941. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
  942. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
  943. QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
  944. QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
  945. QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
  946. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
  947. /* FTM/indoor location subcommands */
  948. QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
  949. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
  950. QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
  951. QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
  952. QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
  953. QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
  954. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
  955. QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
  956. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
  957. /* Encrypt/Decrypt command */
  958. QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
  959. QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
  960. /* DMG low level RF sector operations */
  961. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
  962. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
  963. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
  964. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
  965. /* Configure the TDLS mode from user space */
  966. QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
  967. QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
  968. /* Vendor abort scan command */
  969. QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
  970. /* Set Specific Absorption Rate(SAR) Power Limits */
  971. QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
  972. /* External Auto channel configuration setting */
  973. QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
  974. QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
  975. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
  976. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
  977. QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
  978. /* Set the trace level for QDF */
  979. QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
  980. QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
  981. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
  982. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
  983. QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
  984. QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
  985. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
  986. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
  987. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
  988. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
  989. QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
  990. QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
  991. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
  992. QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
  993. QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
  994. QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
  995. QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
  996. /* Wi-Fi test configuration subcommand */
  997. QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
  998. QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
  999. QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
  1000. QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
  1001. QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
  1002. QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
  1003. QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
  1004. QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
  1005. QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
  1006. QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
  1007. QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
  1008. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
  1009. QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
  1010. QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
  1011. QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
  1012. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
  1013. QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
  1014. QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
  1015. QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
  1016. QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
  1017. QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
  1018. QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
  1019. QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
  1020. QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
  1021. QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
  1022. QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197,
  1023. QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
  1024. QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
  1025. QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
  1026. QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA = 201,
  1027. QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
  1028. QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
  1029. QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
  1030. QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
  1031. /* 206..212 - reserved for QCA */
  1032. QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
  1033. QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
  1034. QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
  1035. QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
  1036. QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217,
  1037. QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218,
  1038. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219,
  1039. QCA_NL80211_VENDOR_SUBCMD_SR = 220,
  1040. QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221,
  1041. QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222,
  1042. QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223,
  1043. QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224,
  1044. QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE = 225,
  1045. QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS = 226,
  1046. QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE = 227,
  1047. QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS = 228,
  1048. QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP = 229,
  1049. QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG = 230,
  1050. QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT = 231,
  1051. QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH = 232,
  1052. QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY = 233,
  1053. };
  1054. enum qca_wlan_vendor_tos {
  1055. QCA_WLAN_VENDOR_TOS_BK = 0,
  1056. QCA_WLAN_VENDOR_TOS_BE = 1,
  1057. QCA_WLAN_VENDOR_TOS_VI = 2,
  1058. QCA_WLAN_VENDOR_TOS_VO = 3,
  1059. };
  1060. /**
  1061. * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
  1062. * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
  1063. */
  1064. enum qca_wlan_vendor_attr_active_tos {
  1065. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
  1066. /* Type Of Service - Represented by qca_wlan_vendor_tos */
  1067. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
  1068. /* Flag attribute representing the start (attribute included) or stop
  1069. * (attribute not included) of the respective TOS.
  1070. */
  1071. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
  1072. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3,
  1073. };
  1074. enum qca_wlan_vendor_hang_reason {
  1075. /* Unspecified reason */
  1076. QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
  1077. /* No Map for the MAC entry for the received frame */
  1078. QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
  1079. /* peer deletion timeout happened */
  1080. QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
  1081. /* peer unmap timeout */
  1082. QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
  1083. /* Scan request timed out */
  1084. QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
  1085. /* Consecutive Scan attempt failures */
  1086. QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
  1087. /* Unable to get the message buffer */
  1088. QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
  1089. /* Current command processing is timedout */
  1090. QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
  1091. /* Timeout for an ACK from FW for suspend request */
  1092. QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
  1093. /* Timeout for an ACK from FW for resume request */
  1094. QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
  1095. /* Transmission timeout for consecutive data frames */
  1096. QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
  1097. /* Timeout for the TX completion status of data frame */
  1098. QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
  1099. /* DXE failure for tx/Rx, DXE resource unavailability */
  1100. QCA_WLAN_HANG_DXE_FAILURE = 12,
  1101. /* WMI pending commands exceed the maximum count */
  1102. QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
  1103. /* Timeout for peer STA connection accept command's response from the
  1104. * FW in AP mode. This command is triggered when a STA (peer) connects
  1105. * to AP (DUT).
  1106. */
  1107. QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
  1108. /* Timeout for the AP connection accept command's response from the FW
  1109. * in STA mode. This command is triggered when the STA (DUT) connects
  1110. * to an AP (peer).
  1111. */
  1112. QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
  1113. /* Timeout waiting for the response to the MAC HW mode change command
  1114. * sent to FW as a part of MAC mode switch among DBS (Dual Band
  1115. * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
  1116. * Channel Concurrency) mode.
  1117. */
  1118. QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
  1119. /* Timeout waiting for the response from FW to configure the MAC HW's
  1120. * mode. This operation is to configure the single/two MACs in either
  1121. * SCC/MCC/DBS mode.
  1122. */
  1123. QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
  1124. /* Timeout waiting for response of VDEV start command from the FW */
  1125. QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
  1126. /* Timeout waiting for response of VDEV restart command from the FW */
  1127. QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
  1128. /* Timeout waiting for response of VDEV stop command from the FW */
  1129. QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
  1130. /* Timeout waiting for response of VDEV delete command from the FW */
  1131. QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
  1132. /* Timeout waiting for response of peer all delete request command to
  1133. * the FW on a specific VDEV.
  1134. */
  1135. QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
  1136. /* WMI sequence mismatch between WMI command and Tx completion */
  1137. QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
  1138. /* Write to Device HAL register failed */
  1139. QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
  1140. /* No credit left to send the wow_wakeup_from_sleep to firmware */
  1141. QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
  1142. /* Bus failure */
  1143. QCA_WLAN_HANG_BUS_FAILURE = 26,
  1144. /* tasklet/credit latency found */
  1145. QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
  1146. /* MSDU buffers received in REO error ring, exceeding certain
  1147. * threshold
  1148. */
  1149. QCA_WLAN_HANG_RX_MSDU_BUF_RCVD_IN_ERR_RING = 28,
  1150. /* Vdev SM is out of sync and connect req received
  1151. * when already connected
  1152. */
  1153. QCA_WLAN_HANG_VDEV_SM_OUT_OF_SYNC = 29,
  1154. /* Stats request timeout */
  1155. QCA_WLAN_HANG_STATS_REQ_TIMEOUT = 30,
  1156. /* Leak in TX descriptor for a packet */
  1157. QCA_WLAN_HANG_TX_DESC_LEAK = 31,
  1158. /* Scheduler watchdog timeout */
  1159. QCA_WLAN_HANG_SCHED_TIMEOUT = 32,
  1160. /* Failed to send self peer deletion cmd to firmware */
  1161. QCA_WLAN_HANG_SELF_PEER_DEL_FAIL = 33,
  1162. /* Received del self sta without del bss */
  1163. QCA_WLAN_HANG_DEL_SELF_STA_FAIL = 34,
  1164. /* Recovery needed when sending flush completion to userspace */
  1165. QCA_WLAN_HANG_FLUSH_LOGS = 35,
  1166. /* Host wakeup because of page fault */
  1167. QCA_WLAN_HANG_HOST_WAKEUP_REASON_PAGE_FAULT = 36,
  1168. };
  1169. /**
  1170. * enum qca_wlan_vendor_attr_hang - Used by the vendor command
  1171. * QCA_NL80211_VENDOR_SUBCMD_HANG.
  1172. */
  1173. enum qca_wlan_vendor_attr_hang {
  1174. QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
  1175. /*
  1176. * Reason for the Hang - Represented by enum
  1177. * qca_wlan_vendor_hang_reason.
  1178. */
  1179. QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
  1180. /* The binary blob data associated with the hang reason specified by
  1181. * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
  1182. * contain the required dump to analyze the reason for the hang.
  1183. * NLA_BINARY attribute, the max size is 1024 bytes.
  1184. */
  1185. QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
  1186. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
  1187. QCA_WLAN_VENDOR_ATTR_HANG_MAX =
  1188. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
  1189. };
  1190. /**
  1191. * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level
  1192. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level
  1193. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters
  1194. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace
  1195. level needs to be updated.
  1196. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need
  1197. * to be set.
  1198. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last.
  1199. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute.
  1200. */
  1201. enum qca_vendor_attr_set_trace_level {
  1202. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0,
  1203. /*
  1204. * Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM
  1205. * attributes.
  1206. */
  1207. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1,
  1208. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2,
  1209. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3,
  1210. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST,
  1211. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX =
  1212. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1,
  1213. };
  1214. /**
  1215. * enum qca_wlan_vendor_attr_get_station - Sub commands used by
  1216. * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding
  1217. * station information. The information obtained through these
  1218. * commands signify the current info in connected state and
  1219. * latest cached information during the connected state , if queried
  1220. * when in disconnected state.
  1221. *
  1222. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute
  1223. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info
  1224. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason
  1225. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info
  1226. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last
  1227. */
  1228. enum qca_wlan_vendor_attr_get_station {
  1229. QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0,
  1230. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO,
  1231. QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON,
  1232. QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE,
  1233. /* keep last */
  1234. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST,
  1235. QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX =
  1236. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1,
  1237. };
  1238. /**
  1239. * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
  1240. * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
  1241. *
  1242. * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
  1243. * Used in STA mode. This attribute represents the list of channel center
  1244. * frequencies in MHz (u32) the station has learnt during the last connection
  1245. * or roaming attempt. This information shall not signify the channels for
  1246. * an explicit scan request from the user space. Host drivers can update this
  1247. * information to the user space in both connected and disconnected state.
  1248. * In the disconnected state this information shall signify the channels
  1249. * scanned in the last connection/roam attempt that lead to the disconnection.
  1250. */
  1251. enum qca_wlan_vendor_attr_update_sta_info {
  1252. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
  1253. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
  1254. /* keep last */
  1255. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
  1256. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
  1257. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
  1258. };
  1259. /**
  1260. * enum qca_wlan_802_11_mode - dot11 mode
  1261. * @QCA_WLAN_802_11_MODE_11B: mode B
  1262. * @QCA_WLAN_802_11_MODE_11G: mode G
  1263. * @QCA_WLAN_802_11_MODE_11N: mode N
  1264. * @QCA_WLAN_802_11_MODE_11A: mode A
  1265. * @QCA_WLAN_802_11_MODE_11AC: mode AC
  1266. * @QCA_WLAN_802_11_MODE_11AX: mode AX
  1267. * @QCA_WLAN_802_11_MODE_11BE: mode BE
  1268. * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode
  1269. */
  1270. enum qca_wlan_802_11_mode {
  1271. QCA_WLAN_802_11_MODE_11B,
  1272. QCA_WLAN_802_11_MODE_11G,
  1273. QCA_WLAN_802_11_MODE_11N,
  1274. QCA_WLAN_802_11_MODE_11A,
  1275. QCA_WLAN_802_11_MODE_11AC,
  1276. QCA_WLAN_802_11_MODE_11AX,
  1277. QCA_WLAN_802_11_MODE_11BE,
  1278. QCA_WLAN_802_11_MODE_INVALID,
  1279. };
  1280. /**
  1281. * enum qca_wlan_auth_type - Authentication key management type
  1282. * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type
  1283. * @QCA_WLAN_AUTH_TYPE_OPEN: Open key
  1284. * @QCA_WLAN_AUTH_TYPE_SHARED: shared key
  1285. * @QCA_WLAN_AUTH_TYPE_WPA: wpa key
  1286. * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key
  1287. * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key
  1288. * @QCA_WLAN_AUTH_TYPE_RSN: rsn key
  1289. * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key
  1290. * @QCA_WLAN_AUTH_TYPE_FT: ft key
  1291. * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key
  1292. * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key
  1293. * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk
  1294. * @QCA_WLAN_AUTH_TYPE_WAI: wai key
  1295. * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key
  1296. * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key
  1297. * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key
  1298. * @QCA_WLAN_AUTH_TYPE_AUTOSWITCH: Autoswitch key
  1299. * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm
  1300. * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384
  1301. * @QCA_WLAN_AUTH_TYPE_SAE: SAE key
  1302. * @QCA_WLAN_AUTH_TYPE_FILS_SHA256: FILS SHA 256 key
  1303. * @QCA_WLAN_AUTH_TYPE_FILS_SHA384: FILS SAH 384 key
  1304. * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256: FT FILS SHA 256 key
  1305. * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384: FT FILS SHA 384 key
  1306. * @QCA_WLAN_AUTH_TYPE_DPP_RSN: DPP RSN key
  1307. * @QCA_WLAN_AUTH_TYPE_OWE: owe key
  1308. * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256 : EAP SHA 256 key
  1309. * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384 : EAP SHA 384 key
  1310. */
  1311. enum qca_wlan_auth_type {
  1312. QCA_WLAN_AUTH_TYPE_INVALID,
  1313. QCA_WLAN_AUTH_TYPE_OPEN,
  1314. QCA_WLAN_AUTH_TYPE_SHARED,
  1315. QCA_WLAN_AUTH_TYPE_WPA,
  1316. QCA_WLAN_AUTH_TYPE_WPA_PSK,
  1317. QCA_WLAN_AUTH_TYPE_WPA_NONE,
  1318. QCA_WLAN_AUTH_TYPE_RSN,
  1319. QCA_WLAN_AUTH_TYPE_RSN_PSK,
  1320. QCA_WLAN_AUTH_TYPE_FT,
  1321. QCA_WLAN_AUTH_TYPE_FT_PSK,
  1322. QCA_WLAN_AUTH_TYPE_SHA256,
  1323. QCA_WLAN_AUTH_TYPE_SHA256_PSK,
  1324. QCA_WLAN_AUTH_TYPE_WAI,
  1325. QCA_WLAN_AUTH_TYPE_WAI_PSK,
  1326. QCA_WLAN_AUTH_TYPE_CCKM_WPA,
  1327. QCA_WLAN_AUTH_TYPE_CCKM_RSN,
  1328. QCA_WLAN_AUTH_TYPE_AUTOSWITCH,
  1329. QCA_WLAN_AUTH_TYPE_FT_SAE,
  1330. QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384,
  1331. QCA_WLAN_AUTH_TYPE_SAE,
  1332. QCA_WLAN_AUTH_TYPE_FILS_SHA256,
  1333. QCA_WLAN_AUTH_TYPE_FILS_SHA384,
  1334. QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256,
  1335. QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384,
  1336. QCA_WLAN_AUTH_TYPE_DPP_RSN,
  1337. QCA_WLAN_AUTH_TYPE_OWE,
  1338. QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256,
  1339. QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384,
  1340. };
  1341. /**
  1342. * enum qca_wlan_vendor_attr_get_station_info - Station Info queried
  1343. * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION.
  1344. *
  1345. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute
  1346. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR:
  1347. * Get the standard NL attributes Nested with this attribute.
  1348. * Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link -
  1349. * NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) /
  1350. * NL80211_ATTR_STA_INFO
  1351. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR:
  1352. * Get the standard NL attributes Nested with this attribute.
  1353. * Ex : Query HT/VHT Capability advertised by the AP.
  1354. * NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY
  1355. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT:
  1356. * Number of successful Roam attempts before a
  1357. * disconnect, Unsigned 32 bit value
  1358. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM:
  1359. * Authentication Key Management Type used for the connected session.
  1360. * Signified by enum qca_wlan_auth_type
  1361. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the
  1362. * connected Session, signified by enum qca_wlan_802_11_mode
  1363. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION:
  1364. * HS20 Indication Element
  1365. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON:
  1366. * Status Code Corresponding to the Association Failure.
  1367. * Unsigned 32 bit value.
  1368. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE:
  1369. * Max phy rate of remote station
  1370. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS:
  1371. * TX packets to remote station
  1372. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES:
  1373. * TX bytes to remote station
  1374. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS:
  1375. * RX packets from remote station
  1376. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES:
  1377. * RX bytes from remote station
  1378. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE:
  1379. * Last TX rate with remote station
  1380. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE:
  1381. * Last RX rate with remote station
  1382. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM:
  1383. * Remote station enable/disable WMM
  1384. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE:
  1385. * Remote station connection mode
  1386. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU:
  1387. * Remote station AMPDU enable/disable
  1388. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC:
  1389. * Remote station TX Space-time block coding enable/disable
  1390. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC:
  1391. * Remote station RX Space-time block coding enable/disable
  1392. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH:
  1393. * Remote station channel width
  1394. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE:
  1395. * Remote station short GI enable/disable
  1396. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding
  1397. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES: Binary attribute
  1398. * containing the raw information elements from Beacon frames. Represents
  1399. * the Beacon frames of the current BSS in the connected state. When queried
  1400. * in the disconnected state, these IEs correspond to the last connected BSSID.
  1401. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON: u32, Driver
  1402. * disconnect reason for the last disconnection if the disconnection is
  1403. * triggered from the host driver. The values are referred from
  1404. * enum qca_disconnect_reason_codes. If the disconnect is from
  1405. * peer/userspace this value is QCA_DISCONNECT_REASON_UNSPECIFIED.
  1406. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES: Binary attribute
  1407. * Applicable in AP mode only. It contains the raw information elements
  1408. * from assoc request frame of the given peer station. User queries with the
  1409. * mac address of peer station when it disconnects. Host driver sends
  1410. * assoc request frame of the given station. Host driver doesn't provide
  1411. * the IEs when the peer station is still in connected state.
  1412. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION: Attribute type for
  1413. * sending HE operation info.
  1414. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH_V2: Attribute
  1415. * type for remote channel width greater than 160 MHz.
  1416. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_EHT_OPERATION: Attribute type for
  1417. * sending EHT operation info.
  1418. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last
  1419. *
  1420. */
  1421. enum qca_wlan_vendor_attr_get_station_info {
  1422. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0,
  1423. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR,
  1424. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR,
  1425. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT,
  1426. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM,
  1427. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE,
  1428. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION,
  1429. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION,
  1430. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION,
  1431. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON,
  1432. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE,
  1433. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS,
  1434. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES,
  1435. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS,
  1436. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES,
  1437. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE,
  1438. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE,
  1439. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM,
  1440. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE,
  1441. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU,
  1442. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC,
  1443. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC,
  1444. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH,
  1445. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE,
  1446. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD,
  1447. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT,
  1448. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT,
  1449. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_FAILURE,
  1450. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AVG_RSSI_PER_CHAIN,
  1451. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_SUCCEED,
  1452. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_LAST_PKT_RSSI,
  1453. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY,
  1454. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST,
  1455. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_TOTAL_FW,
  1456. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_FW,
  1457. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST_FW,
  1458. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES,
  1459. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON,
  1460. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES,
  1461. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION,
  1462. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH_V2,
  1463. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_EHT_OPERATION,
  1464. /* keep last */
  1465. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST,
  1466. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX =
  1467. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1,
  1468. };
  1469. /**
  1470. * qca_chip_power_save_failure_reason: Power save failure reason
  1471. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure
  1472. * due to protocol/module.
  1473. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure
  1474. * due to hardware
  1475. */
  1476. enum qca_chip_power_save_failure_reason {
  1477. QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
  1478. QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
  1479. };
  1480. /**
  1481. * qca_attr_chip_power_save_failure: attributes to vendor subcmd
  1482. * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite
  1483. * information leading to the power save failure.
  1484. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid
  1485. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason
  1486. * represented by enum qca_chip_power_save_failure_reason
  1487. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last
  1488. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value
  1489. */
  1490. enum qca_attr_chip_power_save_failure {
  1491. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
  1492. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
  1493. /* keep last */
  1494. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
  1495. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
  1496. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
  1497. };
  1498. /* enum's to provide TDLS capabilities */
  1499. enum qca_wlan_vendor_attr_get_tdls_capabilities {
  1500. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
  1501. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1,
  1502. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2,
  1503. /* keep last */
  1504. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
  1505. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
  1506. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
  1507. };
  1508. /* Compatibility defines for previously used subcmd names.
  1509. * These values should not be used in any new implementation.
  1510. */
  1511. #define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \
  1512. QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY
  1513. enum qca_wlan_vendor_attr {
  1514. QCA_WLAN_VENDOR_ATTR_INVALID = 0,
  1515. /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
  1516. QCA_WLAN_VENDOR_ATTR_DFS = 1,
  1517. /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
  1518. QCA_WLAN_VENDOR_ATTR_NAN = 2,
  1519. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  1520. QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
  1521. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  1522. QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
  1523. /*
  1524. * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
  1525. * by enum qca_roaming_policy.
  1526. */
  1527. QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
  1528. QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
  1529. /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
  1530. QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
  1531. QCA_WLAN_VENDOR_ATTR_TEST = 8,
  1532. /*
  1533. * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES
  1534. * Unsigned 32-bit value.
  1535. */
  1536. QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
  1537. /* Unsigned 32-bit value */
  1538. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
  1539. /* Unsigned 32-bit value */
  1540. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
  1541. /* Unsigned 32-bit value from enum qca_set_band. Also, the acceptable
  1542. * value for this attribute are only till QCA_SETBAND_2G. This attribute
  1543. * is deprecated. Recommendation is to use
  1544. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. If the band is configured
  1545. * using both the attributes, the ones configured through
  1546. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK take the precedence.
  1547. */
  1548. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
  1549. /* Dummy (NOP) attribute for 64 bit padding */
  1550. QCA_WLAN_VENDOR_ATTR_PAD = 13,
  1551. /*
  1552. * Unique FTM session cookie (Unsigned 64 bit). Specified in
  1553. * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
  1554. * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
  1555. * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
  1556. */
  1557. QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
  1558. /*
  1559. * Indoor location capabilities, returned by
  1560. * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
  1561. * see enum qca_wlan_vendor_attr_loc_capa.
  1562. */
  1563. QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
  1564. /*
  1565. * Array of nested attributes containing information about each peer
  1566. * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
  1567. * for supported attributes for each peer.
  1568. */
  1569. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
  1570. /*
  1571. * Array of nested attributes containing measurement results for
  1572. * one or more peers, reported by the
  1573. * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
  1574. * See enum qca_wlan_vendor_attr_peer_result for list of supported
  1575. * attributes.
  1576. */
  1577. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
  1578. /* Flag attribute for enabling or disabling responder functionality. */
  1579. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
  1580. /*
  1581. * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  1582. * command to specify the LCI report that will be sent by
  1583. * the responder during a measurement exchange. The format is
  1584. * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
  1585. */
  1586. QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
  1587. /*
  1588. * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  1589. * command to specify the location civic report that will
  1590. * be sent by the responder during a measurement exchange.
  1591. * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
  1592. */
  1593. QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
  1594. /*
  1595. * Session/measurement completion status code,
  1596. * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
  1597. * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
  1598. * see enum qca_vendor_attr_loc_session_status.
  1599. */
  1600. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
  1601. /*
  1602. * Initial dialog token used by responder (0 if not specified),
  1603. * unsigned 8 bit value.
  1604. */
  1605. QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
  1606. /*
  1607. * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
  1608. * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
  1609. * AOA measurements are needed as part of an FTM session.
  1610. * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
  1611. * enum qca_wlan_vendor_attr_aoa_type.
  1612. */
  1613. QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
  1614. /*
  1615. * A bit mask (unsigned 32 bit value) of antenna arrays used
  1616. * by indoor location measurements. Refers to the antenna
  1617. * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
  1618. */
  1619. QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
  1620. /*
  1621. * AOA measurement data. Its contents depends on the AOA measurement
  1622. * type and antenna array mask:
  1623. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
  1624. * phase of the strongest CIR path for each antenna in the measured
  1625. * array(s).
  1626. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
  1627. * values, phase and amplitude of the strongest CIR path for each
  1628. * antenna in the measured array(s).
  1629. */
  1630. QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
  1631. /*
  1632. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1633. * to specify the chain number (unsigned 32 bit value) to inquire
  1634. * the corresponding antenna RSSI value */
  1635. QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
  1636. /*
  1637. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1638. * to report the specific antenna RSSI value (unsigned 32 bit value) */
  1639. QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
  1640. /* Frequency in MHz, various uses. Unsigned 32 bit value */
  1641. QCA_WLAN_VENDOR_ATTR_FREQ = 28,
  1642. /*
  1643. * TSF timer value, unsigned 64 bit value.
  1644. * May be returned by various commands.
  1645. */
  1646. QCA_WLAN_VENDOR_ATTR_TSF = 29,
  1647. /*
  1648. * DMG RF sector index, unsigned 16 bit number. Valid values are
  1649. * 0..127 for sector indices or 65535 as special value used to
  1650. * unlock sector selection in
  1651. * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
  1652. */
  1653. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
  1654. /*
  1655. * DMG RF sector type, unsigned 8 bit value. One of the values
  1656. * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
  1657. */
  1658. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
  1659. /*
  1660. * Bitmask of DMG RF modules for which information is requested. Each
  1661. * bit corresponds to an RF module with the same index as the bit
  1662. * number. Unsigned 32 bit number but only low 8 bits can be set since
  1663. * all DMG chips currently have up to 8 RF modules.
  1664. */
  1665. QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
  1666. /*
  1667. * Array of nested attributes where each entry is DMG RF sector
  1668. * configuration for a single RF module.
  1669. * Attributes for each entry are taken from enum
  1670. * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
  1671. * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
  1672. * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
  1673. */
  1674. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
  1675. /*
  1676. * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
  1677. * to report frame aggregation statistics to userspace.
  1678. */
  1679. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
  1680. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
  1681. /*
  1682. * Unsigned 8-bit value representing MBO transition reason code as
  1683. * provided by the AP used by subcommand
  1684. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
  1685. * specified by the userspace in the request to the driver.
  1686. */
  1687. QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
  1688. /*
  1689. * Array of nested attributes, BSSID and status code, used by subcommand
  1690. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
  1691. * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
  1692. * The userspace space specifies the list/array of candidate BSSIDs in
  1693. * the order of preference in the request. The driver specifies the
  1694. * status code, for each BSSID in the list, in the response. The
  1695. * acceptable candidates are listed in the order preferred by the
  1696. * driver.
  1697. */
  1698. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
  1699. /*
  1700. * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
  1701. * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
  1702. */
  1703. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
  1704. /*
  1705. * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
  1706. * to define the number of antennas to use for BRP.
  1707. * different purpose in each ANT_LIMIT_MODE:
  1708. * DISABLE - ignored
  1709. * EFFECTIVE - upper limit to number of antennas to be used
  1710. * FORCE - exact number of antennas to be used
  1711. * unsigned 8 bit value
  1712. */
  1713. QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
  1714. /*
  1715. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1716. * to report the corresponding antenna index to the chain RSSI value
  1717. */
  1718. QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
  1719. /*
  1720. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1721. * to report the specific antenna EVM value (unsigned 32 bit value).
  1722. * With a determinate group of antennas, the driver specifies the
  1723. * EVM value for each antenna ID, and application extract them
  1724. * in user space.
  1725. */
  1726. QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
  1727. /*
  1728. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
  1729. * wlan firmware current state. FW state is an unsigned 8 bit value,
  1730. * one of the values in enum qca_wlan_vendor_attr_fw_state.
  1731. */
  1732. QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
  1733. /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
  1734. * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only the
  1735. * integer values of enum qca_set_band till QCA_SETBAND_2G are valid.
  1736. * This attribute shall consider the bitmask combinations to define
  1737. * the respective Band combinations and always takes precedence over
  1738. * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE.
  1739. */
  1740. QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
  1741. /* keep last */
  1742. QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
  1743. QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1
  1744. };
  1745. enum qca_wlan_vendor_attr_extscan_config_params {
  1746. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
  1747. /* Unsigned 32-bit value */
  1748. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
  1749. /*
  1750. * Attributes for data used by
  1751. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command.
  1752. */
  1753. /* Unsigned 32-bit value */
  1754. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
  1755. = 2,
  1756. /* Unsigned 32-bit value */
  1757. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
  1758. = 3,
  1759. /*
  1760. * Attributes for input params used by
  1761. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command.
  1762. */
  1763. /* Unsigned 32-bit value; channel frequency */
  1764. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4,
  1765. /* Unsigned 32-bit value; dwell time in ms. */
  1766. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
  1767. /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
  1768. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6,
  1769. /* Unsigned 8-bit value; channel class */
  1770. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7,
  1771. /* Unsigned 8-bit value; bucket index, 0 based */
  1772. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8,
  1773. /* Unsigned 8-bit value; band. */
  1774. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9,
  1775. /* Unsigned 32-bit value; desired period, in ms. */
  1776. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10,
  1777. /* Unsigned 8-bit value; report events semantics. */
  1778. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
  1779. /*
  1780. * Unsigned 32-bit value. Followed by a nested array of
  1781. * EXTSCAN_CHANNEL_SPEC_* attributes.
  1782. */
  1783. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
  1784. /*
  1785. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes.
  1786. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  1787. */
  1788. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13,
  1789. /* Unsigned 32-bit value; base timer period in ms. */
  1790. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
  1791. /*
  1792. * Unsigned 32-bit value; number of APs to store in each scan in the
  1793. * BSSID/RSSI history buffer (keep the highest RSSI APs).
  1794. */
  1795. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
  1796. /*
  1797. * Unsigned 8-bit value; in %, when scan buffer is this much full, wake
  1798. * up AP.
  1799. */
  1800. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
  1801. = 16,
  1802. /*
  1803. * Unsigned 8-bit value; number of scan bucket specs; followed by a
  1804. * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size
  1805. * of the array is determined by NUM_BUCKETS.
  1806. */
  1807. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
  1808. /*
  1809. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes.
  1810. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
  1811. */
  1812. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18,
  1813. /* Unsigned 8-bit value */
  1814. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
  1815. = 19,
  1816. /* Unsigned 32-bit value; maximum number of results to be returned. */
  1817. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
  1818. = 20,
  1819. /* An array of 6 x unsigned 8-bit value */
  1820. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
  1821. /* Signed 32-bit value */
  1822. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
  1823. /* Signed 32-bit value */
  1824. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
  1825. /* Unsigned 32-bit value */
  1826. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
  1827. /*
  1828. * Number of hotlist APs as unsigned 32-bit value, followed by a nested
  1829. * array of AP_THRESHOLD_PARAM attributes and values. The size of the
  1830. * array is determined by NUM_AP.
  1831. */
  1832. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
  1833. /*
  1834. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes.
  1835. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  1836. */
  1837. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26,
  1838. /* Unsigned 32-bit value; number of samples for averaging RSSI. */
  1839. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
  1840. = 27,
  1841. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  1842. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
  1843. = 28,
  1844. /* Unsigned 32-bit value; number of APs breaching threshold. */
  1845. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
  1846. /*
  1847. * Unsigned 32-bit value; number of APs. Followed by an array of
  1848. * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
  1849. */
  1850. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
  1851. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  1852. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
  1853. = 31,
  1854. /*
  1855. * Unsigned 32-bit value. If max_period is non zero or different than
  1856. * period, then this bucket is an exponential backoff bucket.
  1857. */
  1858. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
  1859. /* Unsigned 32-bit value. */
  1860. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33,
  1861. /*
  1862. * Unsigned 32-bit value. For exponential back off bucket, number of
  1863. * scans to perform for a given period.
  1864. */
  1865. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34,
  1866. /*
  1867. * Unsigned 8-bit value; in number of scans, wake up AP after these
  1868. * many scans.
  1869. */
  1870. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
  1871. = 35,
  1872. /*
  1873. * Attributes for data used by
  1874. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command.
  1875. */
  1876. /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
  1877. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
  1878. = 36,
  1879. /*
  1880. * Number of hotlist SSIDs as unsigned 32-bit value, followed by a
  1881. * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
  1882. * size of the array is determined by NUM_SSID.
  1883. */
  1884. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
  1885. /*
  1886. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_*
  1887. * attributes.
  1888. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
  1889. */
  1890. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38,
  1891. /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
  1892. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
  1893. /* Unsigned 8-bit value */
  1894. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
  1895. /* Signed 32-bit value */
  1896. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
  1897. /* Signed 32-bit value */
  1898. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
  1899. /* Unsigned 32-bit value; a bitmask with additional extscan config flag.
  1900. */
  1901. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43,
  1902. /* keep last */
  1903. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
  1904. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX =
  1905. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
  1906. };
  1907. enum qca_wlan_vendor_attr_extscan_results {
  1908. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0,
  1909. /*
  1910. * Unsigned 32-bit value; must match the request Id supplied by
  1911. * Wi-Fi HAL in the corresponding subcmd NL msg.
  1912. */
  1913. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1,
  1914. /*
  1915. * Unsigned 32-bit value; used to indicate the status response from
  1916. * firmware/driver for the vendor sub-command.
  1917. */
  1918. QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2,
  1919. /*
  1920. * EXTSCAN Valid Channels attributes */
  1921. /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
  1922. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3,
  1923. /*
  1924. * An array of NUM_CHANNELS x unsigned 32-bit value integers
  1925. * representing channel numbers.
  1926. */
  1927. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4,
  1928. /* EXTSCAN Capabilities attributes */
  1929. /* Unsigned 32-bit value */
  1930. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
  1931. /* Unsigned 32-bit value */
  1932. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
  1933. /* Unsigned 32-bit value */
  1934. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
  1935. = 7,
  1936. /* Unsigned 32-bit value */
  1937. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
  1938. = 8,
  1939. /* Signed 32-bit value */
  1940. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
  1941. = 9,
  1942. /* Unsigned 32-bit value */
  1943. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
  1944. /* Unsigned 32-bit value */
  1945. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
  1946. = 11,
  1947. /* Unsigned 32-bit value */
  1948. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
  1949. = 12,
  1950. /*
  1951. * EXTSCAN Attributes used with
  1952. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command.
  1953. */
  1954. /* Unsigned 32-bit value */
  1955. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
  1956. /*
  1957. * EXTSCAN attributes used with
  1958. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command.
  1959. */
  1960. /*
  1961. * An array of NUM_RESULTS_AVAILABLE x
  1962. * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_*
  1963. */
  1964. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14,
  1965. /* Unsigned 64-bit value; age of sample at the time of retrieval */
  1966. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
  1967. /* 33 x unsigned 8-bit value; NULL terminated SSID */
  1968. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16,
  1969. /* An array of 6 x unsigned 8-bit value */
  1970. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
  1971. /* Unsigned 32-bit value; channel frequency in MHz */
  1972. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
  1973. /* Signed 32-bit value */
  1974. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
  1975. /* Unsigned 32-bit value */
  1976. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20,
  1977. /* Unsigned 32-bit value */
  1978. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
  1979. /* Unsigned 16-bit value */
  1980. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
  1981. /* Unsigned 16-bit value */
  1982. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
  1983. /* Unsigned 32-bit value; size of the IE DATA blob */
  1984. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
  1985. /*
  1986. * An array of IE_LENGTH x unsigned 8-bit value; blob of all the
  1987. * information elements found in the beacon; this data should be a
  1988. * packed list of wifi_information_element objects, one after the
  1989. * other.
  1990. */
  1991. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
  1992. /*
  1993. * Unsigned 8-bit value; set by driver to indicate more scan results are
  1994. * available.
  1995. */
  1996. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
  1997. /*
  1998. * EXTSCAN attributes for
  1999. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command.
  2000. */
  2001. /* Unsigned 8-bit value */
  2002. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
  2003. /* Unsigned 32-bit value */
  2004. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
  2005. /*
  2006. * EXTSCAN attributes for
  2007. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command.
  2008. */
  2009. /*
  2010. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  2011. * to indicate number of results.
  2012. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
  2013. * list of results.
  2014. */
  2015. /*
  2016. * EXTSCAN attributes for
  2017. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command.
  2018. */
  2019. /* An array of 6 x unsigned 8-bit value */
  2020. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
  2021. /* Unsigned 32-bit value */
  2022. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
  2023. = 30,
  2024. /* Unsigned 32-bit value. */
  2025. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
  2026. = 31,
  2027. /*
  2028. * A nested array of signed 32-bit RSSI values. Size of the array is
  2029. * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
  2030. */
  2031. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
  2032. = 32,
  2033. /*
  2034. * EXTSCAN attributes used with
  2035. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command.
  2036. */
  2037. /*
  2038. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  2039. * to indicate number of extscan cached results returned.
  2040. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate
  2041. * the list of extscan cached results.
  2042. */
  2043. /*
  2044. * An array of NUM_RESULTS_AVAILABLE x
  2045. * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_*
  2046. */
  2047. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33,
  2048. /* Unsigned 32-bit value; a unique identifier for the scan unit. */
  2049. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34,
  2050. /*
  2051. * Unsigned 32-bit value; a bitmask w/additional information about scan.
  2052. */
  2053. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35,
  2054. /*
  2055. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  2056. * to indicate number of wifi scan results/bssids retrieved by the scan.
  2057. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
  2058. * list of wifi scan results returned for each cached result block.
  2059. */
  2060. /*
  2061. * EXTSCAN attributes for
  2062. * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
  2063. */
  2064. /*
  2065. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
  2066. * number of results.
  2067. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
  2068. * list of wifi scan results returned for each
  2069. * wifi_passpoint_match_result block.
  2070. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
  2071. */
  2072. /*
  2073. * EXTSCAN attributes for
  2074. * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
  2075. */
  2076. /* Unsigned 32-bit value */
  2077. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
  2078. = 36,
  2079. /*
  2080. * A nested array of
  2081. * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
  2082. * attributes. Array size =
  2083. * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
  2084. */
  2085. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
  2086. /* Unsigned 32-bit value; network block id for the matched network */
  2087. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
  2088. /*
  2089. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
  2090. * list of wifi scan results returned for each
  2091. * wifi_passpoint_match_result block.
  2092. */
  2093. /* Unsigned 32-bit value */
  2094. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
  2095. /*
  2096. * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
  2097. * ANQP data in the information_element format.
  2098. */
  2099. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
  2100. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2101. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
  2102. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2103. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
  2104. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2105. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
  2106. = 43,
  2107. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2108. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
  2109. = 44,
  2110. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45,
  2111. QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
  2112. /* keep last */
  2113. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST,
  2114. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX =
  2115. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1,
  2116. };
  2117. /**
  2118. * enum qca_vendor_interop_issues_ap_type - interop issues type
  2119. * This enum defines the valid set of values of interop issues type. These
  2120. * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
  2121. *
  2122. * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue
  2123. * when the STA's Qpower feature is enabled.
  2124. */
  2125. enum qca_vendor_interop_issues_ap_type {
  2126. QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
  2127. QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
  2128. };
  2129. /**
  2130. * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues
  2131. * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
  2132. *
  2133. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value
  2134. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type
  2135. * 32-bit unsigned value, The type defined in enum
  2136. * qca_vendor_interop_issues_ap_type are used.
  2137. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container
  2138. * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes,
  2139. * it is present and mandatory for the command but is not used for
  2140. * the event since only a single BSSID is reported in an event.
  2141. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid
  2142. * 6-byte MAC address. It is used within the nested
  2143. * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case
  2144. * and without such encapsulation in the event case.
  2145. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
  2146. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
  2147. */
  2148. enum qca_vendor_attr_interop_issues_ap {
  2149. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
  2150. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
  2151. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
  2152. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
  2153. /* keep last */
  2154. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
  2155. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
  2156. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
  2157. };
  2158. #ifdef WLAN_FEATURE_LINK_LAYER_STATS
  2159. enum qca_wlan_vendor_attr_ll_stats_set {
  2160. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
  2161. /* Unsigned 32-bit value */
  2162. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
  2163. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
  2164. /* keep last */
  2165. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
  2166. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
  2167. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
  2168. };
  2169. /**
  2170. * qca_wlan_ll_stats_clr_req_bitmap - Represents the bitmap to clear LL STATS
  2171. * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK.
  2172. *
  2173. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO: Clear all radio statistics.
  2174. *
  2175. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA: Clear cca_busy_time within
  2176. * radio statistics.
  2177. *
  2178. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNEL: Clear all channel
  2179. * statistics within radio statistics.
  2180. *
  2181. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_SCAN: Clear all scan statistics within
  2182. * radio statistics.
  2183. *
  2184. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE: Clear all interface statistics.
  2185. *
  2186. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE: Clear all TX rate statistics
  2187. * within interface statistics.
  2188. *
  2189. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC: Clear all AC statistics within
  2190. * interface statistics.
  2191. *
  2192. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION: Clear all contention
  2193. * (min, max, avg) statistics within AC statistics.
  2194. *
  2195. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER: Clear all peer statistics
  2196. * on this interface.
  2197. *
  2198. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER: Clear particular peer
  2199. * statistics depending on the peer_mac.
  2200. */
  2201. enum qca_wlan_ll_stats_clr_req_bitmap {
  2202. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO = BIT(0),
  2203. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA = BIT(1),
  2204. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNELS = BIT(2),
  2205. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_SCAN = BIT(3),
  2206. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE = BIT(4),
  2207. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE = BIT(5),
  2208. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC = BIT(6),
  2209. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION = BIT(7),
  2210. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER = BIT(8),
  2211. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER = BIT(9),
  2212. };
  2213. enum qca_wlan_vendor_attr_ll_stats_clr {
  2214. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
  2215. /* Unsigned 32bit bitmap for clearing statistics, specified
  2216. * in the enum qca_wlan_ll_stats_clr_req_bitmap.
  2217. */
  2218. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
  2219. /* Unsigned 8 bit value: Request to stop statistics collection */
  2220. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
  2221. /* Unsigned 32 bit bitmap: Response from the driver
  2222. * for the cleared statistics
  2223. */
  2224. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
  2225. /* Unsigned 8 bit value: Response from driver/firmware
  2226. * for the stop request
  2227. */
  2228. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
  2229. /* keep last */
  2230. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
  2231. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
  2232. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
  2233. };
  2234. /**
  2235. * qca_wlan_ll_stats_get_req_bitmap - Represents the bitmap to request LL STATS
  2236. * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK.
  2237. *
  2238. * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO: Request all radio statistics.
  2239. *
  2240. * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE: Request interface statistics.
  2241. *
  2242. * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER: Request all peer statistics.
  2243. *
  2244. * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER: Request per peer statistics.
  2245. */
  2246. enum qca_wlan_ll_stats_get_req_bitmap {
  2247. QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO = BIT(0),
  2248. QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE = BIT(1),
  2249. QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER = BIT(2),
  2250. QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER = BIT(3),
  2251. };
  2252. enum qca_wlan_vendor_attr_ll_stats_get {
  2253. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
  2254. /* Unsigned 32 bit value provided by the caller issuing the GET stats
  2255. * command. When reporting the stats results, the driver uses the same
  2256. * value to indicate which GET request the results correspond to.
  2257. */
  2258. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
  2259. /* Unsigned 32 bit value - bit mask to identify what statistics are
  2260. * requested for retrieval specified in the enum
  2261. * qca_wlan_ll_stats_get_req_bitmap
  2262. */
  2263. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
  2264. /* keep last */
  2265. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
  2266. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
  2267. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
  2268. };
  2269. enum qca_wlan_vendor_attr_ll_stats_results {
  2270. QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
  2271. /*
  2272. * For Multi Link Operation (MLO) connection, per-link statistics will
  2273. * be sent inside of %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and
  2274. * cumulative statistics will be sent outside of
  2275. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to maintain backward
  2276. * compatibility with legacy user space. Attributes which don't have
  2277. * explicit documentation for MLO will be sent only outside of
  2278. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK, such attributes values
  2279. * don't depend on whether the connection is MLO capable or not, e.g.,
  2280. * radio and channel specific attributes.
  2281. */
  2282. /* Unsigned 32bit value. Used by the driver; must match the request id
  2283. * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
  2284. */
  2285. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
  2286. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2287. * the link with the best RSSI outside
  2288. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2289. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2290. */
  2291. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
  2292. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2293. * the link with the best RSSI outside
  2294. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2295. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2296. */
  2297. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
  2298. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2299. * the link with the best RSSI outside
  2300. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2301. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2302. */
  2303. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
  2304. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2305. * the link with the best RSSI outside
  2306. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2307. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2308. */
  2309. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
  2310. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2311. * the link with the best RSSI outside
  2312. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2313. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2314. */
  2315. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
  2316. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2317. * the link with the best RSSI outside
  2318. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2319. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2320. */
  2321. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
  2322. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2323. * the link with the best RSSI outside
  2324. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2325. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2326. */
  2327. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
  2328. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
  2329. * nested within the interface stats.
  2330. */
  2331. /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
  2332. * Type = enum wifi_interface_mode.
  2333. */
  2334. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
  2335. /* Interface MAC address. An array of 6 Unsigned int8 */
  2336. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
  2337. /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
  2338. * AUTHENTICATING, etc. valid for STA, CLI only.
  2339. */
  2340. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
  2341. /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
  2342. */
  2343. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
  2344. /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
  2345. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
  2346. /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
  2347. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
  2348. /* For non-MLO connection, BSSID of the AP. For MLO connection, MLD
  2349. * address of the AP. An array of 6 unsigned 8 bit values
  2350. */
  2351. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
  2352. /* Country string advertised by AP. An array of 3 unsigned 8 bit
  2353. * values.
  2354. */
  2355. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
  2356. /* Country string for this association. An array of 3 unsigned 8 bit
  2357. * values.
  2358. */
  2359. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
  2360. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
  2361. * be nested within the interface stats.
  2362. * For an MLO connection, all %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
  2363. * attributes except %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_*
  2364. * indicate the aggregate of all links outside
  2365. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2366. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_* attributes
  2367. * indicate value of the MLO link with the best RSSI outside
  2368. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2369. * These attributes indicate the link specific value inside
  2370. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2371. */
  2372. /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
  2373. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
  2374. /* Unsigned int 32 value corresponding to respective AC */
  2375. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
  2376. /* Unsigned int 32 value corresponding to respective AC */
  2377. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
  2378. /* Unsigned int 32 value corresponding to respective AC */
  2379. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
  2380. /* Unsigned int 32 value corresponding to respective AC */
  2381. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
  2382. /* Unsigned int 32 value corresponding to respective AC */
  2383. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
  2384. /* Unsigned int 32 value corresponding to respective AC */
  2385. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
  2386. /* Unsigned int 32 value corresponding to respective AC */
  2387. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
  2388. /* Unsigned int 32 value corresponding to respective AC */
  2389. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
  2390. /* Unsigned int 32 value corresponding to respective AC */
  2391. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
  2392. /* Unsigned int 32 values corresponding to respective AC */
  2393. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
  2394. /* Unsigned int 32 values corresponding to respective AC */
  2395. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
  2396. /* Unsigned int 32 values corresponding to respective AC */
  2397. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
  2398. /* Unsigned int 32 values corresponding to respective AC */
  2399. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
  2400. /* Unsigned int 32 values corresponding to respective AC */
  2401. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
  2402. /* Unsigned 32 bit value. Number of peers */
  2403. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
  2404. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
  2405. * nested within the interface stats.
  2406. */
  2407. /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
  2408. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
  2409. /* MAC addr corresponding to respective peer. An array of 6 unsigned
  2410. * 8 bit values.
  2411. */
  2412. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
  2413. /* Unsigned int 32 bit value representing capabilities corresponding
  2414. * to respective peer.
  2415. */
  2416. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
  2417. /* Unsigned 32 bit value. Number of rates */
  2418. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
  2419. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
  2420. * are nested within the rate stat.
  2421. */
  2422. /* Wi-Fi Rate - separate attributes defined for individual fields */
  2423. /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
  2424. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
  2425. /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
  2426. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
  2427. /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
  2428. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
  2429. /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
  2430. * in the units of 0.5 Mbps HT/VHT it would be MCS index
  2431. */
  2432. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
  2433. /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
  2434. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
  2435. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
  2436. * nested within the peer info stats.
  2437. */
  2438. /* Unsigned int 32 bit value. Number of successfully transmitted data
  2439. * packets, i.e., with ACK received corresponding to the respective
  2440. * rate.
  2441. */
  2442. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
  2443. /* Unsigned int 32 bit value. Number of received data packets
  2444. * corresponding to the respective rate.
  2445. */
  2446. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
  2447. /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
  2448. * received corresponding to the respective rate.
  2449. */
  2450. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
  2451. /* Unsigned int 32 bit value. Total number of data packet retries for
  2452. * the respective rate.
  2453. */
  2454. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
  2455. /* Unsigned int 32 bit value. Total number of short data packet retries
  2456. * for the respective rate.
  2457. */
  2458. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
  2459. /* Unsigned int 32 bit value. Total number of long data packet retries
  2460. * for the respective rate.
  2461. */
  2462. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
  2463. /* Unsigned 32 bit value. This is used to indicate radio ID of the radio
  2464. * statistics when %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
  2465. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used
  2466. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate radio ID
  2467. * of the MLO link.
  2468. */
  2469. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
  2470. /* Unsigned 32 bit value. Total number of msecs the radio is awake
  2471. * accruing over time.
  2472. */
  2473. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
  2474. /* Unsigned 32 bit value. Total number of msecs the radio is
  2475. * transmitting accruing over time.
  2476. */
  2477. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
  2478. /* Unsigned 32 bit value. Total number of msecs the radio is in active
  2479. * receive accruing over time.
  2480. */
  2481. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
  2482. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2483. * to all scan accruing over time.
  2484. */
  2485. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
  2486. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2487. * to NAN accruing over time.
  2488. */
  2489. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
  2490. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2491. * to GSCAN accruing over time.
  2492. */
  2493. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
  2494. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2495. * to roam scan accruing over time.
  2496. */
  2497. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
  2498. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2499. * to PNO scan accruing over time.
  2500. */
  2501. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
  2502. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2503. * to Hotspot 2.0 scans and GAS exchange accruing over time.
  2504. */
  2505. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
  2506. /* Unsigned 32 bit value. Number of channels. */
  2507. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
  2508. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
  2509. * be nested within the channel stats.
  2510. */
  2511. /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
  2512. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
  2513. /* Unsigned 32 bit value. Primary 20 MHz channel. This is used to
  2514. * indicate the primary frequency of the channel when
  2515. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
  2516. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used inside
  2517. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate the frequency
  2518. * on which the MLO link is operating.
  2519. */
  2520. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
  2521. /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
  2522. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
  2523. /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
  2524. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
  2525. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
  2526. * nested within the radio stats.
  2527. */
  2528. /* Unsigned int 32 bit value representing total number of msecs the
  2529. * radio is awake on that channel accruing over time, corresponding to
  2530. * the respective channel.
  2531. */
  2532. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
  2533. /* Unsigned int 32 bit value representing total number of msecs the CCA
  2534. * register is busy accruing over time corresponding to the respective
  2535. * channel.
  2536. */
  2537. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
  2538. QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
  2539. /* Signifies the nested list of channel attributes
  2540. * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
  2541. */
  2542. QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
  2543. /* Signifies the nested list of peer info attributes
  2544. * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*. For MLO connection,
  2545. * this also contains %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID to
  2546. * indicate on which link the peer is connected.
  2547. */
  2548. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
  2549. /* Signifies the nested list of rate info attributes
  2550. * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
  2551. */
  2552. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
  2553. /* Signifies the nested list of wmm info attributes
  2554. * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
  2555. */
  2556. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
  2557. /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
  2558. * that more stats, e.g., peers or radio, are to follow in the next
  2559. * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
  2560. * Otherwise, it is set to 0.
  2561. */
  2562. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
  2563. /* Unsigned 64 bit value. For an MLO connection, indicates the value of
  2564. * the link with the best RSSI outside
  2565. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2566. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2567. */
  2568. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
  2569. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2570. * the link with the best RSSI outside
  2571. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2572. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2573. */
  2574. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
  2575. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2576. * the link with the best RSSI outside
  2577. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2578. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2579. */
  2580. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
  2581. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2582. * the link with the best RSSI outside
  2583. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2584. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2585. */
  2586. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
  2587. /* Unsigned 32 bit value */
  2588. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
  2589. /* Unsigned 32 bit value */
  2590. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
  2591. /* Number of msecs the radio spent in transmitting for each power level
  2592. */
  2593. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
  2594. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2595. * the link with the best RSSI outside
  2596. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2597. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2598. */
  2599. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
  2600. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2601. * the link with the best RSSI outside
  2602. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2603. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2604. */
  2605. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
  2606. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2607. * the link with the best RSSI outside
  2608. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2609. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2610. */
  2611. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
  2612. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2613. * the link with the best RSSI outside
  2614. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2615. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2616. */
  2617. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
  2618. /* Unsigned int 32 value.
  2619. * Pending MSDUs corresponding to respective AC.
  2620. */
  2621. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
  2622. /* u32 value representing total time in milliseconds for which the radio
  2623. * is transmitting on this channel. This attribute will be nested
  2624. * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
  2625. */
  2626. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
  2627. /* u32 value representing total time in milliseconds for which the radio
  2628. * is receiving all 802.11 frames intended for this device on this
  2629. * channel. This attribute will be nested within
  2630. * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
  2631. */
  2632. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
  2633. /* u8 value representing the channel load percentage. Possible values
  2634. * are 0-100.
  2635. */
  2636. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
  2637. /* u8 value representing the time slicing duty cycle percentage.
  2638. * Possible values are 0-100. For an MLO connection, indicates the value
  2639. * of the link with the best RSSI outside
  2640. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2641. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2642. */
  2643. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
  2644. /* Unsigned 32 bit value. The number of Beacon frames which are received
  2645. * from the associated AP and indicate buffered unicast frame(s) for us
  2646. * in the TIM element. For an MLO connection, indicates the value of the
  2647. * link with the best RSSI outside
  2648. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2649. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2650. */
  2651. QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88,
  2652. /* Unsigned 32 bit value. The total number of Beacon frames received
  2653. * from the associated AP that have wrongly indicated buffered unicast
  2654. * traffic in the TIM element for us.
  2655. * Below scenarios will be considered as wrong TIM element beacon:
  2656. * 1) The related TIM element is set in the beacon for STA but STA
  2657. * doesn’t receive any unicast data after this beacon.
  2658. * 2) The related TIM element is still set in the beacon for STA
  2659. * after STA has indicated power save exit by QoS Null Data frame.
  2660. * For an MLO connection, indicates the value of the link with the best
  2661. * RSSI outside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link
  2662. * specific value inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2663. */
  2664. QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89,
  2665. /* Signed 32 bit value. It represents the noise floor calibration value.
  2666. * Possible values are -120~-50 dBm. For an MLO connection, indicates
  2667. * the value of the link with the best RSSI outside
  2668. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2669. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2670. */
  2671. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NF_CAL_VAL = 90,
  2672. /* Attribute used for padding for 64-bit alignment */
  2673. QCA_WLAN_VENDOR_ATTR_LL_STATS_PAD = 91,
  2674. /* Unsigned u8 value, link ID of an MLO link. Used inside nested
  2675. * attribute %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to represent the
  2676. * link ID of the MLO link for which the statistics are embedded in the
  2677. * nested attribute. Used inside nested attribute
  2678. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO to represent the connected
  2679. * link ID of the peer.
  2680. */
  2681. QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID = 92,
  2682. /* A nested array of attributes for each MLO link, each containing
  2683. * per-link statistics of a multi link connection. The attributes used
  2684. * inside this nested attribute are defined in enum
  2685. * qca_wlan_vendor_attr_ll_stats_results.
  2686. *
  2687. * For non-MLO connection, this attribute is not present and the
  2688. * statistics will be sent outside this attribute (without nesting).
  2689. *
  2690. * For MLO connection, this attribute is present and also cumulative
  2691. * statistics of all the links will be sent outside of this attribute
  2692. * to be compatible with legacy user space.
  2693. */
  2694. QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK = 93,
  2695. /* keep last */
  2696. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
  2697. QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
  2698. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
  2699. };
  2700. enum qca_wlan_vendor_attr_ll_stats_type {
  2701. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
  2702. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
  2703. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
  2704. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
  2705. /* keep last */
  2706. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
  2707. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
  2708. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
  2709. };
  2710. #endif /* WLAN_FEATURE_LINK_LAYER_STATS */
  2711. /**
  2712. * enum qca_wlan_vendor_attr_get_supported_features - get supported feature
  2713. *
  2714. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value
  2715. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value
  2716. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last
  2717. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
  2718. */
  2719. enum qca_wlan_vendor_attr_get_supported_features {
  2720. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0,
  2721. QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1,
  2722. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST,
  2723. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX =
  2724. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1,
  2725. };
  2726. /**
  2727. * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui
  2728. *
  2729. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value
  2730. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit
  2731. * value
  2732. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last
  2733. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value
  2734. */
  2735. enum qca_wlan_vendor_attr_set_scanning_mac_oui {
  2736. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0,
  2737. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1,
  2738. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST,
  2739. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX =
  2740. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1,
  2741. };
  2742. /**
  2743. * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
  2744. * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
  2745. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
  2746. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
  2747. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
  2748. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
  2749. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
  2750. */
  2751. enum qca_wlan_vendor_scan_priority {
  2752. QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
  2753. QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
  2754. QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
  2755. QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
  2756. QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
  2757. };
  2758. /**
  2759. * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
  2760. *
  2761. * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
  2762. * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
  2763. * with frequencies to be scanned (in MHz)
  2764. * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
  2765. * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
  2766. * rates to be included
  2767. * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
  2768. * at non CCK rate in 2GHz band
  2769. * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
  2770. * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
  2771. * driver for the specific scan request
  2772. * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
  2773. * request decoded as in enum scan_status
  2774. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
  2775. * scan flag is set
  2776. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
  2777. * randomisation
  2778. * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
  2779. * specific BSSID to scan for.
  2780. * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
  2781. * microseconds. This is a common value which applies across all
  2782. * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
  2783. * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
  2784. * other scan requests. It is a u32 attribute and takes values from enum
  2785. * qca_wlan_vendor_scan_priority. This is an optional attribute.
  2786. * If this attribute is not configured, the driver shall use
  2787. * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
  2788. */
  2789. enum qca_wlan_vendor_attr_scan {
  2790. QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
  2791. QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
  2792. QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
  2793. QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
  2794. QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
  2795. QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
  2796. QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
  2797. QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
  2798. QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
  2799. QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
  2800. QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
  2801. QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
  2802. QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
  2803. QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
  2804. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
  2805. QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
  2806. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
  2807. };
  2808. /**
  2809. * enum scan_status - Specifies the valid values the vendor scan attribute
  2810. * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
  2811. * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
  2812. * new scan results
  2813. * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
  2814. */
  2815. enum scan_status {
  2816. VENDOR_SCAN_STATUS_NEW_RESULTS,
  2817. VENDOR_SCAN_STATUS_ABORTED,
  2818. VENDOR_SCAN_STATUS_MAX,
  2819. };
  2820. /**
  2821. * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix
  2822. *
  2823. * NL attributes for data used by
  2824. * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command.
  2825. *
  2826. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value
  2827. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX:
  2828. * Unsigned 32-bit value
  2829. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE:
  2830. * Unsigned 32-bit value
  2831. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An
  2832. * array of SET_SIZE x Unsigned 32bit values representing concurrency
  2833. * combinations
  2834. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last
  2835. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value
  2836. */
  2837. enum qca_wlan_vendor_attr_get_concurrency_matrix {
  2838. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0,
  2839. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX
  2840. = 1,
  2841. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2,
  2842. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3,
  2843. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST,
  2844. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX =
  2845. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1,
  2846. };
  2847. /**
  2848. * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag
  2849. *
  2850. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value
  2851. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value
  2852. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last
  2853. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value
  2854. */
  2855. enum qca_wlan_vendor_attr_set_no_dfs_flag {
  2856. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0,
  2857. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1,
  2858. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST,
  2859. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX =
  2860. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1,
  2861. };
  2862. /**
  2863. * enum qca_vendor_attr_wisa_cmd
  2864. * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr
  2865. * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32)
  2866. * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last
  2867. * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value
  2868. * WISA setup vendor commands
  2869. */
  2870. enum qca_vendor_attr_wisa_cmd {
  2871. QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
  2872. QCA_WLAN_VENDOR_ATTR_WISA_MODE,
  2873. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
  2874. QCA_WLAN_VENDOR_ATTR_WISA_MAX =
  2875. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
  2876. };
  2877. enum qca_roaming_policy {
  2878. QCA_ROAMING_NOT_ALLOWED,
  2879. QCA_ROAMING_ALLOWED_WITHIN_ESS,
  2880. };
  2881. /**
  2882. * enum qca_roam_reason - Represents the reason codes for roaming. Used by
  2883. * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
  2884. *
  2885. * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
  2886. * reasons.
  2887. *
  2888. * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached
  2889. * the configured threshold.
  2890. *
  2891. * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
  2892. * beacon misses from the then connected AP.
  2893. *
  2894. * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
  2895. * by the connected AP.
  2896. *
  2897. * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a
  2898. * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is
  2899. * not poor.
  2900. *
  2901. * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
  2902. * or environment being very noisy / congested.
  2903. *
  2904. * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
  2905. * from the user (user space).
  2906. *
  2907. * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from
  2908. * connected AP.
  2909. *
  2910. * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
  2911. * breaching out the configured threshold.
  2912. *
  2913. * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
  2914. * transition request.
  2915. *
  2916. * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended,
  2917. * there is no data activity with the AP and the current rssi falls below a
  2918. * certain threshold.
  2919. *
  2920. * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to
  2921. * deauthentication or disassociation frames received from the connected AP.
  2922. *
  2923. * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic
  2924. * scan that happens when there is no candidate AP found during the poor
  2925. * RSSI scan trigger.
  2926. *
  2927. * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan
  2928. * results obtained from an external scan (not aimed at roaming).
  2929. *
  2930. * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to bluetooth
  2931. * connection is established when the station is connected in 2.4 Ghz band.
  2932. *
  2933. * @QCA_ROAM_REASON_STA_KICKOUT: Roam triggered due to continuous TX Data frame
  2934. * failures to the connected AP.
  2935. */
  2936. enum qca_roam_reason {
  2937. QCA_ROAM_REASON_UNKNOWN,
  2938. QCA_ROAM_REASON_PER,
  2939. QCA_ROAM_REASON_BEACON_MISS,
  2940. QCA_ROAM_REASON_POOR_RSSI,
  2941. QCA_ROAM_REASON_BETTER_RSSI,
  2942. QCA_ROAM_REASON_CONGESTION,
  2943. QCA_ROAM_REASON_USER_TRIGGER,
  2944. QCA_ROAM_REASON_BTM,
  2945. QCA_ROAM_REASON_BSS_LOAD,
  2946. QCA_ROAM_REASON_WTC,
  2947. QCA_ROAM_REASON_IDLE,
  2948. QCA_ROAM_REASON_DISCONNECTION,
  2949. QCA_ROAM_REASON_PERIODIC_TIMER,
  2950. QCA_ROAM_REASON_BACKGROUND_SCAN,
  2951. QCA_ROAM_REASON_BT_ACTIVITY,
  2952. QCA_ROAM_REASON_STA_KICKOUT,
  2953. };
  2954. /**
  2955. * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming
  2956. *
  2957. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE
  2958. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE
  2959. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status
  2960. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter
  2961. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK
  2962. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK
  2963. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status
  2964. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS:
  2965. * Indicates the status of re-association requested by user space for
  2966. * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
  2967. * Type u16.
  2968. * Represents the status code from AP. Use
  2969. * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
  2970. * real status code for failures.
  2971. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION:
  2972. * This attribute indicates that the old association was maintained when
  2973. * a re-association is requested by user space and that re-association
  2974. * attempt fails (i.e., cannot connect to the requested BSS, but can
  2975. * remain associated with the BSS with which the association was in
  2976. * place when being requested to roam). Used along with
  2977. * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
  2978. * re-association status. Type flag.
  2979. * This attribute is applicable only for re-association failure cases.
  2980. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK
  2981. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID
  2982. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next
  2983. * seq number
  2984. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value
  2985. * representing the reasons for the roaming. Defined by enum
  2986. * qca_roam_reason.
  2987. */
  2988. enum qca_wlan_vendor_attr_roam_auth {
  2989. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
  2990. /* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address
  2991. * of the roamed AP for MLO roaming.
  2992. */
  2993. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
  2994. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
  2995. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
  2996. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
  2997. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
  2998. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
  2999. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
  3000. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
  3001. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
  3002. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
  3003. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK,
  3004. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID,
  3005. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM,
  3006. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON,
  3007. /* A nested attribute containing per-link information of all the links
  3008. * of MLO connection done while roaming. The attributes used inside this
  3009. * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links.
  3010. */
  3011. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15,
  3012. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
  3013. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
  3014. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
  3015. };
  3016. /**
  3017. * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside
  3018. * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS.
  3019. *
  3020. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link.
  3021. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link.
  3022. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link.
  3023. */
  3024. enum qca_wlan_vendor_attr_mlo_links {
  3025. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0,
  3026. QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1,
  3027. QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2,
  3028. QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3,
  3029. /* Keep last */
  3030. QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST,
  3031. QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX =
  3032. QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1,
  3033. };
  3034. /**
  3035. * enum qca_wlan_vendor_attr_wifi_config - wifi config
  3036. *
  3037. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value
  3038. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM
  3039. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor
  3040. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time
  3041. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last
  3042. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value
  3043. */
  3044. enum qca_wlan_vendor_attr_wifi_config {
  3045. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0,
  3046. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1,
  3047. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2,
  3048. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3,
  3049. /* keep last */
  3050. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST,
  3051. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX =
  3052. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1,
  3053. };
  3054. /**
  3055. * enum qca_wlan_epno_type - the type of request to the EPNO command
  3056. * @QCA_WLAN_EPNO: epno type request
  3057. * @QCA_WLAN_PNO: pno type request
  3058. */
  3059. enum qca_wlan_epno_type {
  3060. QCA_WLAN_EPNO,
  3061. QCA_WLAN_PNO
  3062. };
  3063. /**
  3064. * enum qca_wlan_vendor_attr_pno_config_params - pno config params
  3065. *
  3066. * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value
  3067. *
  3068. * NL attributes for data used by
  3069. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
  3070. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM:
  3071. * Unsigned 32-bit value; pno passpoint number of networks
  3072. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY:
  3073. * Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
  3074. * attributes. Array size =
  3075. * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
  3076. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID:
  3077. * Unsigned 32-bit value; network id
  3078. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM:
  3079. * An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded
  3080. * realm, 0 if unspecified.
  3081. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID:
  3082. * An array of 16 x Unsigned 32-bit value; roaming consortium ids
  3083. * to match, 0 if unspecified.
  3084. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN:
  3085. * An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if
  3086. * unspecified.
  3087. *
  3088. * NL attributes for data used by
  3089. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
  3090. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS:
  3091. * Unsigned 32-bit value; set pno number of networks
  3092. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST:
  3093. * Array of nested
  3094. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
  3095. * attributes. Array size =
  3096. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS
  3097. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID:
  3098. * An array of 33 x Unsigned 8-bit value; NULL terminated SSID
  3099. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD:
  3100. * Signed 8-bit value; threshold for considering this SSID as found,
  3101. * required granularity for this threshold is 4dBm to 8dBm
  3102. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS:
  3103. * Unsigned 8-bit value; WIFI_PNO_FLAG_XXX
  3104. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT:
  3105. * Unsigned 8-bit value; auth bit field for matching WPA IE
  3106. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE
  3107. * Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type
  3108. *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST
  3109. * Nested attribute to send the channel list
  3110. *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL
  3111. * Unsigned 32-bit value; indicates the Interval between PNO scan
  3112. * cycles in msec
  3113. *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI
  3114. * Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered
  3115. *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI
  3116. * Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered
  3117. * This attribute is obsolete now.
  3118. *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX
  3119. * Signed 32-bit value; the maximum score that a network
  3120. * can have before bonuses
  3121. *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS
  3122. * Signed 32-bit value; only report when there is a network's
  3123. * score this much higher han the current connection
  3124. *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS
  3125. * Signed 32-bit value; score bonus for all networks with
  3126. * the same network flag
  3127. *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS
  3128. * Signed 32-bit value; score bonus for networks that are not open
  3129. *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS
  3130. * Signed 32-bit value; 5GHz RSSI score bonus applied to all
  3131. * 5GHz networks
  3132. *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID
  3133. * Unsigned 32-bit value, representing the PNO Request ID
  3134. * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last
  3135. * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max
  3136. */
  3137. enum qca_wlan_vendor_attr_pno_config_params {
  3138. QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
  3139. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
  3140. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
  3141. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
  3142. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
  3143. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
  3144. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
  3145. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
  3146. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
  3147. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
  3148. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10,
  3149. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
  3150. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
  3151. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
  3152. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
  3153. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
  3154. QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
  3155. QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
  3156. QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
  3157. QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
  3158. QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
  3159. QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
  3160. QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
  3161. QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
  3162. /* keep last */
  3163. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
  3164. QCA_WLAN_VENDOR_ATTR_PNO_MAX =
  3165. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
  3166. };
  3167. /**
  3168. * enum qca_scan_freq_list_type: Frequency list types
  3169. *
  3170. * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
  3171. * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
  3172. * a preferred frequency list for roaming.
  3173. *
  3174. * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
  3175. * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
  3176. * a specific frequency list for roaming.
  3177. */
  3178. enum qca_scan_freq_list_type {
  3179. QCA_PREFERRED_SCAN_FREQ_LIST = 1,
  3180. QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
  3181. };
  3182. /**
  3183. * enum qca_roam_scan_scheme: scan scheme
  3184. *
  3185. * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No Frequencies specified to scan.
  3186. * Indicates the driver to not scan on a Roam Trigger scenario, but
  3187. * Disconnect.e.g., On a BTM request from the AP driver/firmware shall
  3188. * disconnect from the current connected AP by notifying a failure
  3189. * code in the BTM response.
  3190. *
  3191. * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
  3192. * trigger partial frequency scans. These frequencies are the ones learnt
  3193. * or maintained by the driver based on the probability of finding the
  3194. * BSSID's in the ESS for which the roaming is triggered.
  3195. *
  3196. * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
  3197. * trigger the scan on all the valid frequencies to find the better
  3198. * candidates to roam.
  3199. */
  3200. enum qca_roam_scan_scheme {
  3201. QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
  3202. QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
  3203. QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
  3204. };
  3205. /**
  3206. * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
  3207. *
  3208. * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values.
  3209. * List of frequencies in MHz to be considered for a roam scan.
  3210. *
  3211. * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
  3212. * Type of frequency list scheme being configured/gotten as defined by the
  3213. * enum qca_scan_freq_list_type.
  3214. */
  3215. enum qca_vendor_attr_scan_freq_list_scheme {
  3216. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
  3217. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
  3218. /* keep last */
  3219. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
  3220. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
  3221. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
  3222. };
  3223. /*
  3224. * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
  3225. *
  3226. * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
  3227. * a bad packet error rates (PER).
  3228. * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
  3229. * based on beacon misses from the connected AP.
  3230. * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
  3231. * due to poor RSSI of the connected AP.
  3232. * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
  3233. * upon finding a BSSID with a better RSSI than the connected BSSID.
  3234. * Also, set if the roam has to be triggered due to the high RSSI of the
  3235. * current connected AP (better than
  3236. * QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET). Here the RSSI of
  3237. * the current BSSID need not be poor.
  3238. * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
  3239. * by triggering a periodic scan to find a better AP to roam.
  3240. * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
  3241. * when the connected channel environment is too noisy/congested.
  3242. * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
  3243. * when BTM Request frame is received from the connected AP.
  3244. * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
  3245. * when the channel utilization is goes above the configured threshold.
  3246. * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
  3247. * based on the request from the user (space).
  3248. * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
  3249. * device receives Deauthentication/Disassociation frame from connected
  3250. * AP.
  3251. * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
  3252. * DUT is in idle state (no tx/rx) and suspend mode, if the current RSSI
  3253. * is determined to be a poor one.
  3254. * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
  3255. * based on continuous TX Data Frame failures to the connected AP.
  3256. * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
  3257. * based on the scan results obtained from an external scan (not
  3258. * triggered to aim roaming)
  3259. *
  3260. * Set the corresponding roam trigger reason bit to consider it for roam
  3261. * trigger.
  3262. * Userspace can set multiple bits and send to the driver. The driver shall
  3263. * consider all of them to trigger/initiate a roam scan.
  3264. */
  3265. enum qca_vendor_roam_triggers {
  3266. QCA_ROAM_TRIGGER_REASON_PER = 1 << 0,
  3267. QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1,
  3268. QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2,
  3269. QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3,
  3270. QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4,
  3271. QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5,
  3272. QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6,
  3273. QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7,
  3274. QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8,
  3275. QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9,
  3276. QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10,
  3277. QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11,
  3278. QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12,
  3279. };
  3280. /*
  3281. * enum qca_vendor_roam_fail_reasons: Defines the various roam
  3282. * fail reasons. This enum value is used in
  3283. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
  3284. *
  3285. * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
  3286. * able to trigger the scan.
  3287. * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
  3288. * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
  3289. * scan.
  3290. * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
  3291. * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
  3292. * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
  3293. * status code.
  3294. * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
  3295. * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
  3296. * frame.
  3297. * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
  3298. * with error status code.
  3299. * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
  3300. * received.
  3301. * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
  3302. * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
  3303. * frame.
  3304. * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
  3305. * internally before transmission.
  3306. * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
  3307. * Request frame.
  3308. * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
  3309. * dropped internally.
  3310. * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
  3311. * times out.
  3312. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
  3313. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
  3314. * internally.
  3315. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
  3316. * M2 frame.
  3317. * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
  3318. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
  3319. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
  3320. * internally.
  3321. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
  3322. * frame.
  3323. * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
  3324. * started for final beacon miss case.
  3325. * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
  3326. * received from the AP during roaming handoff.
  3327. * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
  3328. * or host is suspended and gives the indication of the last roamed AP only
  3329. * when the Apps is resumed. If the Apps is resumed while the roaming is in
  3330. * progress, this ongoing roaming is aborted and the last roamed AP is
  3331. * indicated to host.
  3332. * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
  3333. * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
  3334. * out.
  3335. * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
  3336. * @QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK: Roam scan did not happen since the
  3337. * current network conditions are fine.
  3338. */
  3339. enum qca_vendor_roam_fail_reasons {
  3340. QCA_ROAM_FAIL_REASON_NONE = 0,
  3341. QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
  3342. QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
  3343. QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
  3344. QCA_ROAM_FAIL_REASON_HOST = 4,
  3345. QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
  3346. QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
  3347. QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
  3348. QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
  3349. QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
  3350. QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
  3351. QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
  3352. QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
  3353. QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
  3354. QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
  3355. QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
  3356. QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
  3357. QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
  3358. QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
  3359. QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
  3360. QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
  3361. QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
  3362. QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
  3363. QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
  3364. QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
  3365. QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
  3366. QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
  3367. QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
  3368. QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
  3369. QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
  3370. QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK = 30,
  3371. };
  3372. /*
  3373. * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
  3374. * invoke fail reasons. This enum value is used in
  3375. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
  3376. *
  3377. * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
  3378. * in roam invoke command.
  3379. * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
  3380. * enabled.
  3381. * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
  3382. * length is invalid.
  3383. * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
  3384. * in progress.
  3385. * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
  3386. * of the AP in the roam invoke command to firmware. This reason is sent by the
  3387. * firmware when the given AP is configured to be ignored or SSID/security
  3388. * does not match.
  3389. * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
  3390. * firmware internal reasons.
  3391. * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
  3392. * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
  3393. * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
  3394. * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
  3395. * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
  3396. * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
  3397. */
  3398. enum qca_vendor_roam_invoke_fail_reasons {
  3399. QCA_ROAM_INVOKE_STATUS_NONE = 0,
  3400. QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
  3401. QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
  3402. QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
  3403. QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
  3404. QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
  3405. QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
  3406. QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
  3407. QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
  3408. QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
  3409. QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
  3410. QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
  3411. QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
  3412. };
  3413. /**
  3414. * enum qca_vendor_attr_roam_candidate_selection_criteria:
  3415. *
  3416. * Each attribute carries a weightage in percentage (%).
  3417. *
  3418. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
  3419. * Represents the weightage to be given for the RSSI selection
  3420. * criteria among other parameters.
  3421. *
  3422. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
  3423. * Represents the weightage to be given for the rate selection
  3424. * criteria among other parameters.
  3425. *
  3426. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
  3427. * Represents the weightage to be given for the band width selection
  3428. * criteria among other parameters.
  3429. *
  3430. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
  3431. * Represents the weightage to be given for the band selection
  3432. * criteria among other parameters.
  3433. *
  3434. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
  3435. * Represents the weightage to be given for the NSS selection
  3436. * criteria among other parameters.
  3437. *
  3438. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
  3439. * Represents the weightage to be given for the channel congestion
  3440. * selection criteria among other parameters.
  3441. *
  3442. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
  3443. * Represents the weightage to be given for the beamforming selection
  3444. * criteria among other parameters.
  3445. *
  3446. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
  3447. * Represents the weightage to be given for the OCE selection
  3448. * criteria among other parameters.
  3449. */
  3450. enum qca_vendor_attr_roam_candidate_selection_criteria {
  3451. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
  3452. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
  3453. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
  3454. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
  3455. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
  3456. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
  3457. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
  3458. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
  3459. /* keep last */
  3460. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
  3461. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
  3462. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
  3463. };
  3464. /**
  3465. * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
  3466. * The following attributes are used to set/get/clear the respective
  3467. * configurations to/from the driver.
  3468. * For the get, the attribute for the configuration to be queried shall
  3469. * carry any of its acceptable values to the driver. In return, the driver
  3470. * shall send the configured values within the same attribute to the user
  3471. * space.
  3472. *
  3473. * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
  3474. * Signifies to enable/disable roam control in driver.
  3475. * 1-enable, 0-disable
  3476. * Enable: Mandates the driver to do the further roams using the
  3477. * configuration parameters set through
  3478. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
  3479. * Disable: Disables the driver/firmware roaming triggered through
  3480. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
  3481. * expected to continue with the default configurations.
  3482. *
  3483. * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
  3484. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
  3485. * Roam control status is obtained through this attribute.
  3486. *
  3487. * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
  3488. * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
  3489. * is to be cleared in the driver.
  3490. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
  3491. * and shall be ignored if used with other sub commands.
  3492. * If this attribute is specified along with subcmd
  3493. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
  3494. * all other attributes, if there are any.
  3495. * If this attribute is not specified when the subcmd
  3496. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
  3497. * clear the data corresponding to the attributes specified.
  3498. *
  3499. * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
  3500. * list of frequencies and its type, represented by
  3501. * enum qca_vendor_attr_scan_freq_list_scheme.
  3502. * Frequency list and its type are mandatory for this attribute to set
  3503. * the frequencies.
  3504. * Frequency type is mandatory for this attribute to get the frequencies
  3505. * and the frequency list is obtained through
  3506. * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
  3507. * Frequency list type is mandatory for this attribute to clear the
  3508. * frequencies.
  3509. *
  3510. * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
  3511. * Carries the value of scan period in seconds to set.
  3512. * The value of scan period is obtained with the same attribute for get.
  3513. * Clears the scan period in the driver when specified with clear command.
  3514. * Scan period is the idle time in seconds between each subsequent
  3515. * channel scans.
  3516. *
  3517. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
  3518. * Carries the value of full scan period in seconds to set.
  3519. * The value of full scan period is obtained with the same attribute for
  3520. * get.
  3521. * Clears the full scan period in the driver when specified with clear
  3522. * command. Full scan period is the idle period in seconds between two
  3523. * successive full channel roam scans.
  3524. *
  3525. * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
  3526. * Carries a bitmap of the roam triggers specified in
  3527. * enum qca_vendor_roam_triggers.
  3528. * The driver shall enable roaming by enabling corresponding roam triggers
  3529. * based on the trigger bits sent with this attribute.
  3530. * If this attribute is not configured, the driver shall proceed with
  3531. * default behavior.
  3532. * The bitmap configured is obtained with the same attribute for get.
  3533. * Clears the bitmap configured in driver when specified with clear
  3534. * command.
  3535. *
  3536. * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
  3537. * weightage in percentage (%) to be given for each selection criteria.
  3538. * Different roam candidate selection criteria are represented by
  3539. * enum qca_vendor_attr_roam_candidate_selection_criteria.
  3540. * The driver shall select the roam candidate based on corresponding
  3541. * candidate selection scores sent.
  3542. *
  3543. * An empty nested attribute is used to indicate that no specific
  3544. * preference score/criteria is configured (i.e., to disable this mechanism
  3545. * in the set case and to show that the mechanism is disabled in the get
  3546. * case).
  3547. *
  3548. * Userspace can send multiple attributes out of this enum to the driver.
  3549. * Since this attribute represents the weight/percentage of preference for
  3550. * the respective selection criteria, it is preferred to configure 100%
  3551. * total weightage. The value in each attribute or cumulative weight of the
  3552. * values in all the nested attributes should not exceed 100%. The driver
  3553. * shall reject such configuration.
  3554. *
  3555. * If the weights configured through this attribute are less than 100%,
  3556. * the driver shall honor the weights (x%) passed for the corresponding
  3557. * selection criteria and choose/distribute rest of the weight (100-x)%
  3558. * for the other selection criteria, based on its internal logic.
  3559. *
  3560. * The selection criteria configured is obtained with the same
  3561. * attribute for get.
  3562. *
  3563. * Clears the selection criteria configured in the driver when specified
  3564. * with clear command.
  3565. *
  3566. * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
  3567. * Represents value of scan frequency scheme from
  3568. * enum qca_roam_scan_scheme.
  3569. *
  3570. * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
  3571. * signifying the RSSI threshold of the current connected AP, indicating
  3572. * the driver to trigger roam only when the current connected AP's RSSI
  3573. * is lesser than this threshold.
  3574. *
  3575. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
  3576. * signifying the RSSI threshold of the candidate AP, indicating
  3577. * the driver to trigger roam only to the candidate AP with RSSI
  3578. * better than this threshold. If RSSI thresholds for candidate APs found
  3579. * in the 2.4GHz, 5GHz and 6Ghz bands are configured separately using
  3580. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
  3581. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
  3582. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, then those values
  3583. * will take precedence over the value configured using
  3584. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
  3585. *
  3586. * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
  3587. * user triggered reason code to be sent to the AP in response to AP's
  3588. * request to trigger the roam if the roaming cannot be triggered.
  3589. * Applies to all the scenarios of AP assisted roaming (e.g., BTM).
  3590. *
  3591. * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
  3592. * Carries a bitmap of the roam triggers specified in
  3593. * enum qca_vendor_roam_triggers.
  3594. * Represents the roam triggers for which the specific scan scheme from
  3595. * enum qca_roam_scan_scheme has to be applied.
  3596. * It's an optional attribute. If this attribute is not configured, but
  3597. * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, then the scan scheme
  3598. * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
  3599. * all the roams.
  3600. * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
  3601. * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
  3602. * driver shall proceed with the default behavior.
  3603. *
  3604. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
  3605. * in dBm, signifying the RSSI threshold of the candidate AP found in
  3606. * 2.4GHz band. The driver/firmware shall trigger roaming to the candidate
  3607. * AP found in 2.4GHz band only if it's RSSI value is better than this
  3608. * threshold. Optional attribute. If this attribute is not included, then
  3609. * threshold value specified by the
  3610. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3611. *
  3612. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
  3613. * dBm, signifying the RSSI threshold of the candidate AP found in 5GHz
  3614. * band. The driver/firmware shall trigger roaming to the candidate AP
  3615. * found in 5GHz band only if it's RSSI value is better than this
  3616. * threshold. Optional attribute. If this attribute is not included, then
  3617. * threshold value specified by the
  3618. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3619. *
  3620. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
  3621. * dBm, signifying the RSSI threshold of the candidate AP found in 6GHz
  3622. * band. The driver/firmware shall trigger roaming to the candidate AP
  3623. * found in 6GHz band only if it's RSSI value is better than this
  3624. * threshold. Optional attribute. If this attribute is not included, then
  3625. * threshold value specified by the
  3626. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3627. *
  3628. * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
  3629. * Carries bitmask value of bits from &enum qca_set_band and represents
  3630. * all the bands in which roaming is allowed. The configuration is valid
  3631. * until next disconnection. If this attribute is not present, the
  3632. * existing configuration shall be used. By default, roaming is allowed
  3633. * on all bands supported by local device. When the value is set to
  3634. * %QCA_SETBAND_AUTO, all supported bands shall be enabled.
  3635. *
  3636. * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps.
  3637. * Optional parameter. RX link speed threshold to disable roaming.
  3638. * If the current RX link speed is above the threshold, roaming is not
  3639. * needed. If this attribute is not configured, or if it is set to 0, the
  3640. * driver will not consider the RX link speed in the roaming decision.
  3641. *
  3642. * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds.
  3643. * Optional parameter. This configuration delays hand-off (in msec) by the
  3644. * specified duration to receive pending rx frames from current BSS.
  3645. *
  3646. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit
  3647. * value.
  3648. * During the roam scan, if there are no desired APs found in the partial
  3649. * frequency list, an immediate full scan on all the supported frequencies
  3650. * is initiated as a fallback. This flag controls the frequency list
  3651. * creation for the full scan on the following lines.
  3652. * 1 - Full scan to exclude the frequencies that were already scanned by
  3653. * the previous partial scan.
  3654. * 0 - Full scan to include all the supported frequencies irrespective of
  3655. * the ones part of the earlier partial scan.
  3656. * If this flag is not specified, a full scan shall include all the
  3657. * supported frequencies irrespective of the ones part of an earlier
  3658. * partial scan.
  3659. *
  3660. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit
  3661. * value.
  3662. * During the roam scan, if there are no desired APs found in the partial
  3663. * frequency list, an immediate full scan on all the supported frequencies
  3664. * is initiated as a fallback. This full scan would add the 2.4/5/6 GHz
  3665. * frequencies, including all PSC frequencies by default. This attribute
  3666. * controls the inclusion of the 6 GHz PSC frequencies for the full scan
  3667. * as following.
  3668. * 1 - Full scan to include the supported 6 GHz PSC frequencies only on the
  3669. * prior discovery of any 6 GHz frequency support in the environment.
  3670. * This discovery can happen through a prior RNR, 11k neighbor
  3671. * request, 11v BTM request, host scan, etc.
  3672. * 0 - Default behavior. Full scan to include all the supported 6 GHz
  3673. * PSC frequencies regardless of whether 6 GHz BSSs have been
  3674. * discovered.
  3675. * The default behavior if this flag is not specified is to include all
  3676. * the supported 6 GHz PSC frequencies in the roam full scan.
  3677. *
  3678. * @QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET: Unsigned 8-bit value.
  3679. * This attribute signifies the RSSI offset that is added to low RSSI
  3680. * threshold (QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD) to imply
  3681. * high RSSI threshold. STA is expected to trigger roam if the current
  3682. * connected AP's RSSI gets above this high RSSI threshold. STA's roam
  3683. * attempt on high RSSI threshold aims to find candidates from other
  3684. * better Wi-Fi bands. E.g., STA would initially connect to a 2.4 GHz BSSID
  3685. * and would migrate to 5/6 GHz when it comes closer to the AP (high RSSI
  3686. * for 2.4 GHz BSS).
  3687. */
  3688. enum qca_vendor_attr_roam_control {
  3689. QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
  3690. QCA_ATTR_ROAM_CONTROL_STATUS = 2,
  3691. QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
  3692. QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
  3693. QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
  3694. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
  3695. QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
  3696. QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
  3697. QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
  3698. QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
  3699. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
  3700. QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
  3701. QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
  3702. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
  3703. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
  3704. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
  3705. QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
  3706. QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD = 24,
  3707. QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25,
  3708. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26,
  3709. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27,
  3710. QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET = 31,
  3711. /* keep last */
  3712. QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
  3713. QCA_ATTR_ROAM_CONTROL_MAX =
  3714. QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
  3715. };
  3716. /**
  3717. * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
  3718. * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
  3719. *
  3720. * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
  3721. * Represents the different roam sub commands referred by
  3722. * enum qca_wlan_vendor_roaming_subcmd.
  3723. *
  3724. * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
  3725. * Represents the Request ID for the specific set of commands.
  3726. * This also helps to map specific set of commands to the respective
  3727. * ID / client. e.g., helps to identify the user entity configuring the
  3728. * Blacklist BSSID and accordingly clear the respective ones with the
  3729. * matching ID.
  3730. *
  3731. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
  3732. * 32-bit value.Represents the number of whitelist SSIDs configured.
  3733. *
  3734. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
  3735. * to carry the list of Whitelist SSIDs.
  3736. *
  3737. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
  3738. * 0..32 octets). Represents the white list SSID. Whitelist SSIDs
  3739. * represent the list of SSIDs to which the firmware/driver can consider
  3740. * to roam to.
  3741. *
  3742. * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
  3743. * comparing with a 2.4GHz BSSID. They are not applied when comparing two
  3744. * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
  3745. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS.
  3746. *
  3747. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
  3748. * value, RSSI threshold above which 5GHz RSSI is favored.
  3749. *
  3750. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
  3751. * value, RSSI threshold below which 5GHz RSSI is penalized.
  3752. *
  3753. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
  3754. * value, factor by which 5GHz RSSI is boosted.
  3755. * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
  3756. *
  3757. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
  3758. * value, factor by which 5GHz RSSI is penalized.
  3759. * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
  3760. *
  3761. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
  3762. * value, maximum boost that can be applied to a 5GHz RSSI.
  3763. *
  3764. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
  3765. * value, boost applied to current BSSID to ensure the currently
  3766. * associated BSSID is favored so as to prevent ping-pong situations.
  3767. *
  3768. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
  3769. * value, RSSI below which "Alert" roam is enabled.
  3770. * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID
  3771. * because the RSSI is low, or because many successive beacons have been
  3772. * lost or other bad link conditions.
  3773. *
  3774. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
  3775. * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
  3776. * firmware is hunting for a better BSSID or white listed SSID even though
  3777. * the RSSI of the link is good. The parameters enabling the roaming are
  3778. * configured through the PARAM_A_BAND_XX attrbutes.
  3779. *
  3780. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
  3781. * represents the BSSIDs preferred over others while evaluating them
  3782. * for the roaming.
  3783. *
  3784. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
  3785. * 32-bit value. Represents the number of preferred BSSIDs set.
  3786. *
  3787. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
  3788. * address representing the BSSID to be preferred.
  3789. *
  3790. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
  3791. * 32-bit value, representing the modifier to be applied to the RSSI of
  3792. * the BSSID for the purpose of comparing it with other roam candidate.
  3793. *
  3794. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
  3795. * represents the BSSIDs to get blacklisted for roaming.
  3796. *
  3797. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
  3798. * 32-bit value, represents the number of blacklisted BSSIDs.
  3799. *
  3800. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
  3801. * address representing the Blacklisted BSSID.
  3802. *
  3803. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
  3804. * indicates this BSSID blacklist as a hint to the driver. The driver can
  3805. * select this BSSID in the worst case (when no other BSSIDs are better).
  3806. *
  3807. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
  3808. * set/get/clear the roam control config as
  3809. * defined @enum qca_vendor_attr_roam_control.
  3810. *
  3811. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last
  3812. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max
  3813. */
  3814. enum qca_wlan_vendor_attr_roaming_config_params {
  3815. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
  3816. QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
  3817. QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
  3818. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
  3819. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
  3820. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
  3821. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
  3822. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
  3823. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
  3824. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
  3825. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
  3826. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
  3827. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
  3828. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
  3829. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
  3830. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
  3831. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
  3832. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
  3833. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
  3834. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
  3835. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
  3836. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
  3837. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
  3838. /* keep last */
  3839. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
  3840. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
  3841. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
  3842. };
  3843. /**
  3844. * enum qca_wlan_vendor_roaming_subcmd: Referred by
  3845. * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
  3846. *
  3847. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
  3848. * configure the white list SSIDs. These are configured through
  3849. * the following attributes.
  3850. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
  3851. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
  3852. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
  3853. *
  3854. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to
  3855. * configure the Roam params. These parameters are evaluated on the extscan
  3856. * results. Refers the attributes PARAM_A_BAND_XX above to configure the
  3857. * params.
  3858. *
  3859. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
  3860. * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
  3861. * to enable/disable Lazy roam.
  3862. *
  3863. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
  3864. * preference. Contains the attribute
  3865. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
  3866. * preference.
  3867. *
  3868. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params
  3869. *
  3870. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist
  3871. * BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to
  3872. * set the same.
  3873. *
  3874. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
  3875. * roam control config to the driver with the attribute
  3876. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3877. *
  3878. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
  3879. * roam control config from driver with the attribute
  3880. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3881. * For the get, the attribute for the configuration to be queried shall
  3882. * carry any of its acceptable value to the driver. In return, the driver
  3883. * shall send the configured values within the same attribute to the user
  3884. * space.
  3885. *
  3886. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
  3887. * roam control config in the driver with the attribute
  3888. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3889. * The driver shall continue with its default roaming behavior when data
  3890. * corresponding to an attribute is cleared.
  3891. */
  3892. enum qca_wlan_vendor_roaming_subcmd {
  3893. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
  3894. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2,
  3895. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
  3896. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
  3897. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
  3898. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
  3899. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
  3900. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
  3901. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
  3902. };
  3903. /**
  3904. * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information
  3905. *
  3906. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value
  3907. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version
  3908. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version
  3909. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index
  3910. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last
  3911. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max
  3912. */
  3913. enum qca_wlan_vendor_attr_get_wifi_info {
  3914. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
  3915. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
  3916. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
  3917. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
  3918. /* KEEP LAST */
  3919. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
  3920. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
  3921. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
  3922. };
  3923. enum qca_wlan_vendor_attr_logger_results {
  3924. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
  3925. /*
  3926. * Unsigned 32-bit value; must match the request Id supplied by
  3927. * Wi-Fi HAL in the corresponding subcmd NL msg.
  3928. */
  3929. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
  3930. /*
  3931. * Unsigned 32-bit value; used to indicate the size of memory
  3932. * dump to be allocated.
  3933. */
  3934. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
  3935. /* keep last */
  3936. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
  3937. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
  3938. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
  3939. };
  3940. /**
  3941. * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
  3942. * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
  3943. */
  3944. enum qca_wlan_vendor_channel_prop_flags {
  3945. /* Bits 0, 1, 2, and 3 are reserved */
  3946. /* Turbo channel */
  3947. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
  3948. /* CCK channel */
  3949. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
  3950. /* OFDM channel */
  3951. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
  3952. /* 2.4 GHz spectrum channel. */
  3953. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
  3954. /* 5 GHz spectrum channel */
  3955. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
  3956. /* Only passive scan allowed */
  3957. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
  3958. /* Dynamic CCK-OFDM channel */
  3959. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
  3960. /* GFSK channel (FHSS PHY) */
  3961. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
  3962. /* Radar found on channel */
  3963. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
  3964. /* 11a static turbo channel only */
  3965. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
  3966. /* Half rate channel */
  3967. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
  3968. /* Quarter rate channel */
  3969. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
  3970. /* HT 20 channel */
  3971. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
  3972. /* HT 40 with extension channel above */
  3973. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
  3974. /* HT 40 with extension channel below */
  3975. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
  3976. /* HT 40 intolerant */
  3977. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
  3978. /* VHT 20 channel */
  3979. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
  3980. /* VHT 40 with extension channel above */
  3981. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
  3982. /* VHT 40 with extension channel below */
  3983. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
  3984. /* VHT 80 channel */
  3985. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
  3986. /* HT 40 intolerant mark bit for ACS use */
  3987. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
  3988. /* Channel temporarily blocked due to noise */
  3989. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
  3990. /* VHT 160 channel */
  3991. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
  3992. /* VHT 80+80 channel */
  3993. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
  3994. /* HE 20 channel */
  3995. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
  3996. /* HE 40 with extension channel above */
  3997. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
  3998. /* HE 40 with extension channel below */
  3999. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
  4000. /* HE 40 intolerant */
  4001. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1U << 31,
  4002. };
  4003. /**
  4004. * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
  4005. * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
  4006. * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
  4007. */
  4008. enum qca_wlan_vendor_channel_prop_flags_2 {
  4009. /* HE 40 intolerant mark bit for ACS use */
  4010. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
  4011. /* HE 80 channel */
  4012. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
  4013. /* HE 160 channel */
  4014. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
  4015. /* HE 80+80 channel */
  4016. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
  4017. };
  4018. /**
  4019. * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
  4020. * each channel. This is used by
  4021. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
  4022. */
  4023. enum qca_wlan_vendor_channel_prop_flags_ext {
  4024. /* Radar found on channel */
  4025. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
  4026. /* DFS required on channel */
  4027. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
  4028. /* DFS required on channel for 2nd band of 80+80 */
  4029. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
  4030. /* If channel has been checked for DFS */
  4031. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
  4032. /* Excluded in 802.11d */
  4033. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
  4034. /* Channel Switch Announcement received on this channel */
  4035. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
  4036. /* Ad-hoc is not allowed */
  4037. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
  4038. /* Station only channel */
  4039. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
  4040. /* DFS radar history for slave device (STA mode) */
  4041. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
  4042. /* DFS CAC valid for slave device (STA mode) */
  4043. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
  4044. };
  4045. /**
  4046. * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
  4047. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
  4048. * information to start/stop the NUD statistics collection.
  4049. */
  4050. enum qca_attr_nud_stats_set {
  4051. QCA_ATTR_NUD_STATS_SET_INVALID = 0,
  4052. /*
  4053. * Flag to start/stop the NUD statistics collection.
  4054. * Start - If included, Stop - If not included
  4055. */
  4056. QCA_ATTR_NUD_STATS_SET_START = 1,
  4057. /* IPv4 address of the default gateway (in network byte order) */
  4058. QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
  4059. /*
  4060. * Represents the data packet type to be monitored.
  4061. * Host driver tracks the stats corresponding to each data frame
  4062. * represented by these flags.
  4063. * These data packets are represented by
  4064. * enum qca_wlan_vendor_nud_stats_set_data_pkt_info.
  4065. */
  4066. QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
  4067. /* keep last */
  4068. QCA_ATTR_NUD_STATS_SET_LAST,
  4069. QCA_ATTR_NUD_STATS_SET_MAX =
  4070. QCA_ATTR_NUD_STATS_SET_LAST - 1,
  4071. };
  4072. /**
  4073. * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd
  4074. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  4075. * information to start / stop the NUD stats collection.
  4076. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats
  4077. * Bitmap to Flag to Start / Stop the NUD stats collection
  4078. * Start - If included , Stop - If not included
  4079. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gateway ipv4 address
  4080. * IPv4 address of Default Gateway (in network byte order)
  4081. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  4082. * information to start / stop the NUD stats collection.
  4083. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats
  4084. * Flag to Start / Stop the NUD stats collection
  4085. * Start - If included , Stop - If not included
  4086. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gateway ipv4 address
  4087. * IPv4 address of Default Gateway (in network byte order)
  4088. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  4089. * information to start / stop the NUD stats collection.
  4090. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats
  4091. * Flag to Start / Stop the NUD stats collection
  4092. * Start - If included , Stop - If not included
  4093. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gateway ipv4 address
  4094. * IPv4 address of Default Gateway (in network byte order)
  4095. */
  4096. enum qca_attr_connectivity_check_stats_set {
  4097. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0,
  4098. QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1,
  4099. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2,
  4100. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3,
  4101. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4,
  4102. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5,
  4103. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6,
  4104. /* keep last */
  4105. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST,
  4106. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX =
  4107. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1,
  4108. };
  4109. /**
  4110. * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
  4111. * data types for which the stats have to get collected.
  4112. */
  4113. enum qca_wlan_vendor_connectivity_check_pkt_flags {
  4114. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0,
  4115. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1,
  4116. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2,
  4117. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3,
  4118. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4,
  4119. /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
  4120. * to represent the stats of respective data type.
  4121. */
  4122. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5,
  4123. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6,
  4124. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7,
  4125. };
  4126. enum qca_attr_connectivity_check_stats {
  4127. QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0,
  4128. /* Data packet type for which the stats are collected.
  4129. * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
  4130. */
  4131. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1,
  4132. /* ID corresponding to the DNS frame for which the respective DNS stats
  4133. * are monitored (u32).
  4134. */
  4135. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2,
  4136. /* source / destination port on which the respective proto stats are
  4137. * collected (u32).
  4138. */
  4139. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3,
  4140. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4,
  4141. /* IPv4/IPv6 address for which the destined data packets are
  4142. * monitored. (in network byte order)
  4143. */
  4144. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5,
  4145. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6,
  4146. /* Data packet Request count received from netdev */
  4147. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
  4148. /* Data packet Request count sent to lower MAC from upper MAC */
  4149. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
  4150. /* Data packet Request count received by lower MAC from upper MAC */
  4151. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
  4152. /* Data packet Request count successfully transmitted by the device */
  4153. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
  4154. /* Data packet Response count received by lower MAC */
  4155. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
  4156. /* Data packet Response count received by upper MAC */
  4157. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
  4158. /* Data packet Response count delivered to netdev */
  4159. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
  4160. /* Data Packet Response count that are dropped out of order */
  4161. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
  4162. /* keep last */
  4163. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST,
  4164. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX =
  4165. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1,
  4166. };
  4167. /**
  4168. * qca_attr_nud_stats_get: Attributes to vendor subcmd
  4169. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
  4170. * NUD statistics collected when queried.
  4171. */
  4172. enum qca_attr_nud_stats_get {
  4173. QCA_ATTR_NUD_STATS_GET_INVALID = 0,
  4174. /* ARP Request count from netdev */
  4175. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
  4176. /* ARP Request count sent to lower MAC from upper MAC */
  4177. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
  4178. /* ARP Request count received by lower MAC from upper MAC */
  4179. QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
  4180. /* ARP Request count successfully transmitted by the device */
  4181. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
  4182. /* ARP Response count received by lower MAC */
  4183. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
  4184. /* ARP Response count received by upper MAC */
  4185. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
  4186. /* ARP Response count delivered to netdev */
  4187. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
  4188. /* ARP Response count delivered to netdev */
  4189. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
  4190. /*
  4191. * Flag indicating if the station's link to the AP is active.
  4192. * Active Link - If included, Inactive link - If not included
  4193. */
  4194. QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
  4195. /*
  4196. * Flag indicating if there is any duplicate address detected (DAD).
  4197. * Yes - If detected, No - If not detected.
  4198. */
  4199. QCA_ATTR_NUD_STATS_IS_DAD = 10,
  4200. /*
  4201. * List of Data types for which the stats are requested.
  4202. * This list does not carry ARP stats as they are done by the
  4203. * above attributes. Represented by enum qca_attr_nud_data_stats.
  4204. */
  4205. QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
  4206. /* keep last */
  4207. QCA_ATTR_NUD_STATS_GET_LAST,
  4208. QCA_ATTR_NUD_STATS_GET_MAX =
  4209. QCA_ATTR_NUD_STATS_GET_LAST - 1,
  4210. };
  4211. enum qca_wlan_btm_candidate_status {
  4212. QCA_STATUS_ACCEPT = 0,
  4213. QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
  4214. QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
  4215. QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
  4216. QCA_STATUS_REJECT_LOW_RSSI = 4,
  4217. QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
  4218. QCA_STATUS_REJECT_UNKNOWN = 6,
  4219. };
  4220. enum qca_wlan_vendor_attr_btm_candidate_info {
  4221. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
  4222. /* 6-byte MAC address representing the BSSID of transition candidate */
  4223. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
  4224. /*
  4225. * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
  4226. * returned by the driver. It says whether the BSSID provided in
  4227. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
  4228. * the driver, if not it specifies the reason for rejection.
  4229. * Note that the user-space can overwrite the transition reject reason
  4230. * codes provided by driver based on more information.
  4231. */
  4232. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
  4233. /* keep last */
  4234. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
  4235. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
  4236. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
  4237. };
  4238. enum qca_attr_trace_level {
  4239. QCA_ATTR_TRACE_LEVEL_INVALID = 0,
  4240. /*
  4241. * Nested array of the following attributes:
  4242. * QCA_ATTR_TRACE_LEVEL_MODULE,
  4243. * QCA_ATTR_TRACE_LEVEL_MASK.
  4244. */
  4245. QCA_ATTR_TRACE_LEVEL_PARAM = 1,
  4246. /*
  4247. * Specific QCA host driver module. Please refer to the QCA host
  4248. * driver implementation to get the specific module ID.
  4249. */
  4250. QCA_ATTR_TRACE_LEVEL_MODULE = 2,
  4251. /* Different trace level masks represented in the QCA host driver. */
  4252. QCA_ATTR_TRACE_LEVEL_MASK = 3,
  4253. /* keep last */
  4254. QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
  4255. QCA_ATTR_TRACE_LEVEL_MAX =
  4256. QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
  4257. };
  4258. /**
  4259. * enum qca_wlan_vendor_attr_get_logger_features - value for logger
  4260. * supported features
  4261. * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid
  4262. * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features
  4263. * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum
  4264. * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type
  4265. *
  4266. * enum values are used for NL attributes for data used by
  4267. * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command.
  4268. */
  4269. enum qca_wlan_vendor_attr_get_logger_features {
  4270. QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
  4271. QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
  4272. /* keep last */
  4273. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
  4274. QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
  4275. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
  4276. };
  4277. /**
  4278. * enum qca_wlan_vendor_attr_link_properties - link properties
  4279. *
  4280. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value
  4281. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to
  4282. * specify the number of spatial streams negotiated
  4283. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value
  4284. * to specify negotiated rate flags i.e. ht, vht and channel width
  4285. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to
  4286. * specify the operating frequency
  4287. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer
  4288. * (STA / AP ) for the connected link.
  4289. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
  4290. * &struct nl80211_sta_flag_update for the respective connected link. MAC
  4291. * address of the peer represented by
  4292. * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
  4293. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last
  4294. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value
  4295. */
  4296. enum qca_wlan_vendor_attr_link_properties {
  4297. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
  4298. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1,
  4299. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2,
  4300. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3,
  4301. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
  4302. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
  4303. /* KEEP LAST */
  4304. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
  4305. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX =
  4306. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
  4307. };
  4308. /**
  4309. * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support
  4310. *
  4311. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid
  4312. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload
  4313. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum
  4314. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type
  4315. *
  4316. * enum values are used for NL attributes for data used by
  4317. * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command.
  4318. */
  4319. enum qca_wlan_vendor_attr_nd_offload {
  4320. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
  4321. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
  4322. /* Keep last */
  4323. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
  4324. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
  4325. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
  4326. };
  4327. /**
  4328. * enum qca_wlan_vendor_features - Vendor device/driver feature flags
  4329. *
  4330. * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
  4331. * management offload, a mechanism where the station's firmware
  4332. * does the exchange with the AP to establish the temporal keys
  4333. * after roaming, rather than having the user space wpa_supplicant do it.
  4334. * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
  4335. * band selection based on channel selection results.
  4336. * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
  4337. * simultaneous off-channel operations.
  4338. * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
  4339. * Listen offload; a mechanism where the station's firmware takes care of
  4340. * responding to incoming Probe Request frames received from other P2P
  4341. * Devices whilst in Listen state, rather than having the user space
  4342. * wpa_supplicant do it. Information from received P2P requests are
  4343. * forwarded from firmware to host whenever the host processor wakes up.
  4344. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
  4345. * specific features.
  4346. * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
  4347. * features.
  4348. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
  4349. * specific features only. If a Device sets this bit but not the
  4350. * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
  4351. * this Device may not support all OCE AP functionalities but can support
  4352. * only OCE STA-CFON functionalities.
  4353. * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
  4354. * managed regulatory.
  4355. * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
  4356. * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
  4357. * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
  4358. * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
  4359. * and applying thermal configuration through
  4360. * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
  4361. * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
  4362. * userspace.
  4363. * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
  4364. * With Adaptive 11r feature, access points advertise the vendor
  4365. * specific IEs and MDE but do not include FT AKM in the RSNE.
  4366. * The Adaptive 11r supported stations are expected to identify
  4367. * such vendor specific IEs and connect to the AP in FT mode though
  4368. * the profile is configured in non-FT mode.
  4369. * The driver-based SME cases also need to have this support for
  4370. * Adaptive 11r to handle the connection and roaming scenarios.
  4371. * This flag indicates the support for the same to the user space.
  4372. * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
  4373. * concurrent network sessions on different Wi-Fi Bands. This feature
  4374. * capability is attributed to the hardware's capability to support
  4375. * the same (e.g., DBS).
  4376. * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
  4377. * responses for the respective TWT operations are asynchronous (separate)
  4378. * event message) from the driver. If not specified, the responses are
  4379. * synchronous (in vendor command reply) to the request. Each TWT
  4380. * operation is specifically mentioned (against its respective)
  4381. * documentation) to support either of these or both modes.
  4382. * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
  4383. * that the driver requires add/del virtual interface path using the
  4384. * generic nl80211 commands for NDP interface create/delete and to
  4385. * register/unregister the netdev instead of creating/deleting the NDP
  4386. * interface using the vendor commands
  4387. * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
  4388. * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
  4389. * (5.12 version onward), interface creation/deletion is not allowed using
  4390. * vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
  4391. * during the register/unregister of netdev. Create and delete NDP
  4392. * interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
  4393. * commands respectively if the driver advertises this capability set.
  4394. * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in
  4395. * station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is
  4396. * set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored.
  4397. * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP
  4398. * mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then
  4399. * QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored.
  4400. * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in
  4401. * station mode supports secure RTT measurement exchange. If
  4402. * NL80211_EXT_FEATURE_SECURE_RTT is set,
  4403. * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored.
  4404. * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP
  4405. * mode supports secure RTT measurement exchange. If
  4406. * NL80211_EXT_FEATURE_SECURE_RTT is set,
  4407. * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored.
  4408. * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that
  4409. * the device in station mode supports protection of range negotiation and
  4410. * measurement management frames. If
  4411. * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
  4412. * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored.
  4413. * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that
  4414. * the device in AP mode supports protection of range negotiation and
  4415. * measurement management frames. If
  4416. * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
  4417. * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored.
  4418. * @QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST: Flag indicates that the device
  4419. * in AP mode supports configuring allowed frequency list for AP operation
  4420. * with %QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST.
  4421. * @QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN: Flag indicates
  4422. * that the device supports enhanced audio experience over WLAN feature.
  4423. * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
  4424. */
  4425. enum qca_wlan_vendor_features {
  4426. QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
  4427. QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
  4428. QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
  4429. QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
  4430. QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
  4431. QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
  4432. QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
  4433. QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
  4434. QCA_WLAN_VENDOR_FEATURE_TWT = 8,
  4435. QCA_WLAN_VENDOR_FEATURE_11AX = 9,
  4436. QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
  4437. QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
  4438. QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
  4439. QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
  4440. QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
  4441. QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
  4442. QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA = 16,
  4443. QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP = 17,
  4444. QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA = 18,
  4445. QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP = 19,
  4446. QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20,
  4447. QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21,
  4448. QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST = 22,
  4449. QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN = 23,
  4450. NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
  4451. };
  4452. /**
  4453. * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP
  4454. * conditional channel switch
  4455. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial
  4456. * value
  4457. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based
  4458. * frequency list (an array of u32 values in host byte order)
  4459. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the
  4460. * conditional switch (u32)- 0: Success, Non-zero: Failure
  4461. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last
  4462. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max
  4463. */
  4464. enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
  4465. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
  4466. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
  4467. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
  4468. /* Keep Last */
  4469. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
  4470. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
  4471. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
  4472. };
  4473. /**
  4474. * enum wifi_logger_supported_features - values for supported logger features
  4475. * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW
  4476. * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics
  4477. * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events
  4478. * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver
  4479. * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver
  4480. * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health
  4481. * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump
  4482. * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate
  4483. */
  4484. enum wifi_logger_supported_features {
  4485. WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)),
  4486. WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)),
  4487. WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)),
  4488. WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)),
  4489. WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)),
  4490. WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)),
  4491. WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)),
  4492. WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)),
  4493. WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8))
  4494. };
  4495. /**
  4496. * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get
  4497. * capabilities features
  4498. */
  4499. enum qca_wlan_tdls_caps_features_supported {
  4500. WIFI_TDLS_SUPPORT = (1 << (0)),
  4501. WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)),
  4502. WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2)),
  4503. /* Indicates if the TDLS session can be formed with the peer using
  4504. * higher bandwidth than the bandwidth of the AP path.
  4505. */
  4506. WIFI_TDLS_WIDER_BW_SUPPORT = (1 << (3)),
  4507. };
  4508. /**
  4509. * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
  4510. * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
  4511. *
  4512. * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
  4513. * Used with event to notify the primary channel number selected in ACS
  4514. * operation.
  4515. * Note: If both the driver and user-space application supports the 6 GHz band,
  4516. * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
  4517. * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
  4518. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
  4519. * is still used if either of the driver or user space application doesn't
  4520. * support the 6 GHz band.
  4521. *
  4522. * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
  4523. * Used with event to notify the secondary channel number selected in ACS
  4524. * operation.
  4525. * Note: If both the driver and user-space application supports the 6 GHz band,
  4526. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
  4527. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
  4528. * To maintain backward compatibility,
  4529. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
  4530. * the driver or user space application doesn't support 6 GHz band.
  4531. *
  4532. * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
  4533. * (a) Used with command to configure hw_mode from
  4534. * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
  4535. * (b) Also used with event to notify the hw_mode of selected primary channel
  4536. * in ACS operation.
  4537. *
  4538. * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
  4539. * Used with command to configure ACS operation for HT mode.
  4540. * Disable (flag attribute not present) - HT disabled and
  4541. * Enable (flag attribute present) - HT enabled.
  4542. *
  4543. * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
  4544. * Used with command to configure ACS operation for HT40 mode.
  4545. * Disable (flag attribute not present) - HT40 disabled and
  4546. * Enable (flag attribute present) - HT40 enabled.
  4547. *
  4548. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
  4549. * Used with command to configure ACS operation for VHT mode.
  4550. * Disable (flag attribute not present) - VHT disabled and
  4551. * Enable (flag attribute present) - VHT enabled.
  4552. *
  4553. * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
  4554. * mandatory with event.
  4555. * If specified in command path, ACS operation is configured with the given
  4556. * channel width (in MHz).
  4557. * In event path, specifies the channel width of the primary channel selected.
  4558. *
  4559. * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
  4560. * Used with command to configure channel list using an array of
  4561. * channel numbers (u8).
  4562. * Note: If both the driver and user-space application supports the 6 GHz band,
  4563. * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
  4564. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
  4565. *
  4566. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
  4567. * Used with event to notify the VHT segment 0 center channel number selected in
  4568. * ACS operation.
  4569. * Note: If both the driver and user-space application supports the 6 GHz band,
  4570. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
  4571. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
  4572. * To maintain backward compatibility,
  4573. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
  4574. * the driver or user space application doesn't support the 6 GHz band.
  4575. *
  4576. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
  4577. * Used with event to notify the VHT segment 1 center channel number selected in
  4578. * ACS operation.
  4579. * Note: If both the driver and user-space application supports the 6 GHz band,
  4580. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
  4581. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
  4582. * To maintain backward compatibility,
  4583. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
  4584. * the driver or user space application doesn't support the 6 GHz band.
  4585. *
  4586. * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
  4587. * Used with command to configure the channel list using an array of channel
  4588. * center frequencies in MHz (u32).
  4589. * Note: If both the driver and user-space application supports the 6 GHz band,
  4590. * the driver first parses the frequency list and if it fails to get a frequency
  4591. * list, parses the channel list specified using
  4592. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
  4593. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
  4594. *
  4595. * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
  4596. * Used with event to notify the primary channel center frequency (MHz) selected
  4597. * in ACS operation.
  4598. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4599. * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
  4600. *
  4601. * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
  4602. * Used with event to notify the secondary channel center frequency (MHz)
  4603. * selected in ACS operation.
  4604. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4605. * includes this attribute along with
  4606. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
  4607. *
  4608. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
  4609. * Used with event to notify the VHT segment 0 center channel frequency (MHz)
  4610. * selected in ACS operation.
  4611. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4612. * includes this attribute along with
  4613. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
  4614. *
  4615. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
  4616. * Used with event to notify the VHT segment 1 center channel frequency (MHz)
  4617. * selected in ACS operation.
  4618. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4619. * includes this attribute along with
  4620. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
  4621. *
  4622. * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
  4623. * Used with command to notify the driver of EDMG request for ACS
  4624. * operation.
  4625. *
  4626. * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
  4627. * Used with event to notify the EDMG channel number selected in ACS
  4628. * operation.
  4629. * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
  4630. *
  4631. * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
  4632. * Used with event to notify the puncture pattern selected in ACS operation.
  4633. * Encoding for this attribute will follow the convention used in the Disabled
  4634. * Subchannel Bitmap field of the EHT Operation IE.
  4635. *
  4636. * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
  4637. * Used with command to configure ACS operation for EHT mode.
  4638. * Disable (flag attribute not present) - EHT disabled and
  4639. * Enable (flag attribute present) - EHT enabled.
  4640. *
  4641. * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
  4642. * Used with command to configure how older scan can be considered for ACS
  4643. * scoring. In case scan was performed on partial set of channels configured
  4644. * with this command, within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
  4645. * (in ms), then scan only remaining channels.
  4646. */
  4647. enum qca_wlan_vendor_attr_acs_offload {
  4648. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
  4649. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
  4650. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
  4651. QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
  4652. QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
  4653. QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
  4654. QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
  4655. QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
  4656. QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
  4657. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
  4658. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
  4659. QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
  4660. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
  4661. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
  4662. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
  4663. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
  4664. QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
  4665. QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
  4666. QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
  4667. QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
  4668. QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
  4669. /* keep last */
  4670. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
  4671. QCA_WLAN_VENDOR_ATTR_ACS_MAX =
  4672. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
  4673. };
  4674. /**
  4675. * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
  4676. * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
  4677. *
  4678. * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
  4679. * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
  4680. * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
  4681. * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
  4682. * @QCA_ACS_MODE_IEEE80211ANY: all modes
  4683. * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
  4684. */
  4685. enum qca_wlan_vendor_acs_hw_mode {
  4686. QCA_ACS_MODE_IEEE80211B,
  4687. QCA_ACS_MODE_IEEE80211G,
  4688. QCA_ACS_MODE_IEEE80211A,
  4689. QCA_ACS_MODE_IEEE80211AD,
  4690. QCA_ACS_MODE_IEEE80211ANY,
  4691. QCA_ACS_MODE_IEEE80211AX,
  4692. };
  4693. /**
  4694. * enum qca_access_policy - access control policy
  4695. *
  4696. * Access control policy is applied on the configured IE
  4697. * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
  4698. * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
  4699. *
  4700. * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match
  4701. *» with the specific configuration (IE) set, i.e. allow all the
  4702. *» connections which do not match the configuration.
  4703. * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match
  4704. *» with the specific configuration (IE) set, i.e. deny all the
  4705. *» connections which do not match the configuration.
  4706. */
  4707. enum qca_access_policy {
  4708. QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
  4709. QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
  4710. };
  4711. /**
  4712. * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values
  4713. *
  4714. * The valid values for the ignore assoc disallowed
  4715. *
  4716. * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed
  4717. * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed
  4718. *
  4719. */
  4720. enum qca_ignore_assoc_disallowed {
  4721. QCA_IGNORE_ASSOC_DISALLOWED_DISABLE,
  4722. QCA_IGNORE_ASSOC_DISALLOWED_ENABLE
  4723. };
  4724. /* Attributes for data used by
  4725. * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
  4726. * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
  4727. */
  4728. #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES\
  4729. QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
  4730. #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL\
  4731. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
  4732. #define QCA_WLAN_VENDOR_ATTR_ROAM_REASON\
  4733. QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON
  4734. enum qca_wlan_vendor_attr_config {
  4735. QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
  4736. /*
  4737. * Unsigned 32-bit value to set the DTIM period.
  4738. * Whether the wifi chipset wakes at every dtim beacon or a multiple of
  4739. * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
  4740. * DTIM beacons.
  4741. */
  4742. QCA_WLAN_VENDOR_ATTR_CONFIG_MODULATED_DTIM = 1,
  4743. /*
  4744. * Unsigned 32-bit value to set the wifi_iface stats averaging factor
  4745. * used to calculate statistics like average the TSF offset or average
  4746. * number of frame leaked.
  4747. * For instance, upon Beacon frame reception:
  4748. * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
  4749. * For instance, when evaluating leaky APs:
  4750. * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
  4751. */
  4752. QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
  4753. /*
  4754. * Unsigned 32-bit value to configure guard time, i.e., when
  4755. * implementing IEEE power management based on frame control PM bit, how
  4756. * long the driver waits before shutting down the radio and after
  4757. * receiving an ACK frame for a Data frame with PM bit set.
  4758. */
  4759. QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
  4760. /* Unsigned 32-bit value to change the FTM capability dynamically */
  4761. QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
  4762. /* Unsigned 16-bit value to configure maximum TX rate dynamically */
  4763. QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
  4764. /*
  4765. * Unsigned 32-bit value to configure the number of continuous
  4766. * Beacon Miss which shall be used by the firmware to penalize
  4767. * the RSSI.
  4768. */
  4769. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
  4770. /*
  4771. * Unsigned 8-bit value to configure the channel avoidance indication
  4772. * behavior. Firmware to send only one indication and ignore duplicate
  4773. * indications when set to avoid multiple Apps wakeups.
  4774. */
  4775. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
  4776. /*
  4777. * 8-bit unsigned value to configure the maximum TX MPDU for
  4778. * aggregation.
  4779. */
  4780. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
  4781. /*
  4782. * 8-bit unsigned value to configure the maximum RX MPDU for
  4783. * aggregation.
  4784. */
  4785. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
  4786. /*
  4787. * 8-bit unsigned value to configure the Non aggregate/11g sw
  4788. * retry threshold (0 disable, 31 max).
  4789. */
  4790. QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
  4791. /*
  4792. * 8-bit unsigned value to configure the aggregate sw
  4793. * retry threshold (0 disable, 31 max).
  4794. */
  4795. QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
  4796. /*
  4797. * 8-bit unsigned value to configure the MGMT frame
  4798. * retry threshold (0 disable, 31 max).
  4799. */
  4800. QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
  4801. /*
  4802. * 8-bit unsigned value to configure the CTRL frame
  4803. * retry threshold (0 disable, 31 max).
  4804. */
  4805. QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
  4806. /*
  4807. * 8-bit unsigned value to configure the propagation delay for
  4808. * 2G/5G band (0~63, units in us)
  4809. */
  4810. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
  4811. /*
  4812. * Unsigned 32-bit value to configure the number of unicast TX fail
  4813. * packet count. The peer is disconnected once this threshold is
  4814. * reached.
  4815. */
  4816. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
  4817. /*
  4818. * Attribute used to set scan default IEs to the driver.
  4819. *
  4820. * These IEs can be used by scan operations that will be initiated by
  4821. * the driver/firmware.
  4822. *
  4823. * For further scan requests coming to the driver, these IEs should be
  4824. * merged with the IEs received along with scan request coming to the
  4825. * driver. If a particular IE is present in the scan default IEs but not
  4826. * present in the scan request, then that IE should be added to the IEs
  4827. * sent in the Probe Request frames for that scan request.
  4828. */
  4829. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
  4830. /* Unsigned 32-bit attribute for generic commands */
  4831. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
  4832. /* Unsigned 32-bit value attribute for generic commands */
  4833. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
  4834. /* Unsigned 32-bit data attribute for generic command response */
  4835. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
  4836. /*
  4837. * Unsigned 32-bit length attribute for
  4838. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  4839. */
  4840. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
  4841. /*
  4842. * Unsigned 32-bit flags attribute for
  4843. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  4844. */
  4845. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
  4846. /*
  4847. * Unsigned 32-bit, defining the access policy.
  4848. * See enum qca_access_policy. Used with
  4849. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
  4850. */
  4851. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
  4852. /*
  4853. * Sets the list of full set of IEs for which a specific access policy
  4854. * has to be applied. Used along with
  4855. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
  4856. * Zero length payload can be used to clear this access constraint.
  4857. */
  4858. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
  4859. /*
  4860. * Unsigned 32-bit, specifies the interface index (netdev) for which the
  4861. * corresponding configurations are applied. If the interface index is
  4862. * not specified, the configurations are attributed to the respective
  4863. * wiphy.
  4864. */
  4865. QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
  4866. /*
  4867. * 8-bit unsigned value to trigger QPower:
  4868. * 1-Enable, 0-Disable
  4869. */
  4870. QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
  4871. /*
  4872. * 8-bit unsigned value to configure the driver and below layers to
  4873. * ignore the assoc disallowed set by APs while connecting
  4874. * 1-Ignore, 0-Don't ignore
  4875. */
  4876. QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
  4877. /*
  4878. * 32-bit unsigned value to trigger antenna diversity features:
  4879. * 1-Enable, 0-Disable
  4880. */
  4881. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
  4882. /* 32-bit unsigned value to configure specific chain antenna */
  4883. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
  4884. /*
  4885. * 32-bit unsigned value to trigger cycle selftest
  4886. * 1-Enable, 0-Disable
  4887. */
  4888. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
  4889. /*
  4890. * 32-bit unsigned to configure the cycle time of selftest
  4891. * the unit is micro-second
  4892. */
  4893. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
  4894. /* 32-bit unsigned value to set reorder timeout for AC_VO */
  4895. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
  4896. /* 32-bit unsigned value to set reorder timeout for AC_VI */
  4897. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
  4898. /* 32-bit unsigned value to set reorder timeout for AC_BE */
  4899. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
  4900. /* 32-bit unsigned value to set reorder timeout for AC_BK */
  4901. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
  4902. /* 6-byte MAC address to point out the specific peer */
  4903. QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC = 35,
  4904. /* Backward compatibility with the original name */
  4905. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC =
  4906. QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC,
  4907. /* 32-bit unsigned value to set window size for specific peer */
  4908. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
  4909. /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
  4910. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
  4911. /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
  4912. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
  4913. /*
  4914. * 32-bit unsigned value to configure 5 or 10 MHz channel width for
  4915. * station device while in disconnect state. The attribute use the
  4916. * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
  4917. * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
  4918. * 10 MHz channel width, the station will not connect to a BSS using 20
  4919. * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
  4920. * clear this constraint.
  4921. */
  4922. QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
  4923. /*
  4924. * 32-bit unsigned value to configure the propagation absolute delay
  4925. * for 2G/5G band (units in us)
  4926. */
  4927. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
  4928. /* 32-bit unsigned value to set probe period */
  4929. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
  4930. /* 32-bit unsigned value to set stay period */
  4931. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
  4932. /* 32-bit unsigned value to set snr diff */
  4933. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
  4934. /* 32-bit unsigned value to set probe dwell time */
  4935. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
  4936. /* 32-bit unsigned value to set mgmt snr weight */
  4937. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
  4938. /* 32-bit unsigned value to set data snr weight */
  4939. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
  4940. /* 32-bit unsigned value to set ack snr weight */
  4941. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
  4942. /*
  4943. * 32-bit unsigned value to configure the listen interval.
  4944. * This is in units of beacon intervals. This configuration alters
  4945. * the negotiated listen interval with the AP during the connection.
  4946. * It is highly recommended to configure a value less than or equal to
  4947. * the one negotiated during the association. Configuring any greater
  4948. * value can have adverse effects (frame loss, AP disassociating STA,
  4949. * etc.).
  4950. */
  4951. QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
  4952. /*
  4953. * 8 bit unsigned value that is set on an AP/GO virtual interface to
  4954. * disable operations that would cause the AP/GO to leave its operating
  4955. * channel.
  4956. *
  4957. * This will restrict the scans to the AP/GO operating channel and the
  4958. * channels of the other band, if DBS is supported.A STA/CLI interface
  4959. * brought up after this setting is enabled, will be restricted to
  4960. * connecting to devices only on the AP/GO interface's operating channel
  4961. * or on the other band in DBS case. P2P supported channel list is
  4962. * modified, to only include AP interface's operating-channel and the
  4963. * channels of the other band if DBS is supported.
  4964. *
  4965. * These restrictions are only applicable as long as the AP/GO interface
  4966. * is alive. If the AP/GO interface is brought down then this
  4967. * setting/restriction is forgotten.
  4968. *
  4969. * If this variable is set on an AP/GO interface while a multi-channel
  4970. * concurrent session is active, it has no effect on the operation of
  4971. * the current interfaces, other than restricting the scan to the AP/GO
  4972. * operating channel and the other band channels if DBS is supported.
  4973. * However, if the STA is brought down and restarted then the new STA
  4974. * connection will either be formed on the AP/GO channel or on the
  4975. * other band in a DBS case. This is because of the scan being
  4976. * restricted on these channels as mentioned above.
  4977. *
  4978. * 1-Disable offchannel operations, 0-Enable offchannel operations.
  4979. */
  4980. QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
  4981. /*
  4982. * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
  4983. * on an interface.
  4984. * 1 - Enable , 0 - Disable.
  4985. */
  4986. QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
  4987. /*
  4988. * 8 bit unsigned value to globally enable/disable scan
  4989. * 1 - Enable, 0 - Disable.
  4990. */
  4991. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
  4992. /* 8-bit unsigned value to set the total beacon miss count */
  4993. QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
  4994. /*
  4995. * Unsigned 32-bit value to configure the number of continuous
  4996. * Beacon Miss which shall be used by the firmware to penalize
  4997. * the RSSI for BTC.
  4998. */
  4999. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
  5000. /*
  5001. * 8-bit unsigned value to configure the driver and below layers to
  5002. * enable/disable all fils features.
  5003. * 0-enable, 1-disable
  5004. */
  5005. QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
  5006. /* 16-bit unsigned value to configure the level of WLAN latency
  5007. * module. See enum qca_wlan_vendor_attr_config_latency_level.
  5008. */
  5009. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
  5010. /*
  5011. * 8-bit unsigned value indicating the driver to use the RSNE as-is from
  5012. * the connect interface. Exclusively used for the scenarios where the
  5013. * device is used as a test bed device with special functionality and
  5014. * not recommended for production. This helps driver to not validate the
  5015. * RSNE passed from user space and thus allow arbitrary IE data to be
  5016. * used for testing purposes.
  5017. * 1-enable, 0-disable.
  5018. * Applications set/reset this configuration. If not reset, this
  5019. * parameter remains in use until the driver is unloaded.
  5020. */
  5021. QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
  5022. /*
  5023. * 8-bit unsigned value to trigger green Tx power saving.
  5024. * 1-Enable, 0-Disable
  5025. */
  5026. QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
  5027. /*
  5028. * Attribute to configure disconnect IEs to the driver.
  5029. * This carries an array of unsigned 8-bit characters.
  5030. *
  5031. * If this is configured, driver shall fill the IEs in disassoc/deauth
  5032. * frame.
  5033. * These IEs are expected to be considered only for the next
  5034. * immediate disconnection (disassoc/deauth frame) originated by
  5035. * the DUT, irrespective of the entity (user space/driver/firmware)
  5036. * triggering the disconnection.
  5037. * The host drivers are not expected to use the IEs set through
  5038. * this interface for further disconnections after the first immediate
  5039. * disconnection initiated post the configuration.
  5040. * If the IEs are also updated through cfg80211 interface (after the
  5041. * enhancement to cfg80211_disconnect), host driver is expected to
  5042. * take the union of IEs from both of these interfaces and send in
  5043. * further disassoc/deauth frames.
  5044. */
  5045. QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
  5046. /* 8-bit unsigned value for ELNA bypass.
  5047. * 0 - Disable eLNA bypass.
  5048. * 1 - Enable eLNA bypass.
  5049. * 2 - Reset eLNA bypass configuration, the driver should
  5050. * revert to the default configuration of eLNA bypass.
  5051. */
  5052. QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
  5053. /* 8-bit unsigned value. This attribute enables/disables the host driver
  5054. * to send the Beacon Report response with failure reason for the
  5055. * scenarios where STA cannot honor the Beacon report request from AP.
  5056. * 1-Enable, 0-Disable.
  5057. */
  5058. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
  5059. /* 8-bit unsigned value. This attribute enables/disables the host driver
  5060. * to send roam reason information in the reassociation request to the
  5061. * AP. 1-Enable, 0-Disable.
  5062. */
  5063. QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
  5064. /* 32-bit unsigned value to configure different PHY modes to the
  5065. * driver/firmware. The possible values are defined in
  5066. * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
  5067. * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
  5068. * the driver.
  5069. */
  5070. QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
  5071. /* 8-bit unsigned value to configure the maximum supported channel width
  5072. * for STA mode. If this value is configured when STA is in connected
  5073. * state, it should not exceed the negotiated channel width. If it is
  5074. * configured when STA is in disconnected state, the configured value
  5075. * will take effect for the next immediate connection.
  5076. * This configuration can be sent inside
  5077. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum
  5078. * supported channel width per-MLO link.
  5079. *
  5080. * This uses values defined in enum nl80211_chan_width.
  5081. */
  5082. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
  5083. /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
  5084. * This attribute is only applicable for STA mode. When dynamic
  5085. * bandwidth adjustment is disabled, STA will use static channel width
  5086. * the value of which is negotiated during connection.
  5087. * 1-enable (default), 0-disable
  5088. */
  5089. QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
  5090. /* 8-bit unsigned value to configure the maximum number of subframes of
  5091. * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
  5092. * it is decided by hardware.
  5093. */
  5094. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
  5095. /* 8-bit unsigned value to configure the maximum number of subframes of
  5096. * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
  5097. * it is decided by hardware.
  5098. */
  5099. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
  5100. /* 8-bit unsigned value. This attribute is used to dynamically
  5101. * enable/disable the LDPC capability of the device. When configured in
  5102. * the disconnected state, the updated configuration will be considered
  5103. * for the immediately following connection attempt. If this
  5104. * configuration is modified while the device is in the connected state,
  5105. * the LDPC TX will be updated with this configuration immediately,
  5106. * while the LDPC RX configuration update will take place starting from
  5107. * the subsequent association attempt.
  5108. * 1-Enable, 0-Disable.
  5109. */
  5110. QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
  5111. /* 8-bit unsigned value. This attribute is used to dynamically
  5112. * enable/disable the TX STBC capability of the device. When configured
  5113. * in the disconnected state, the updated configuration will be
  5114. * considered for the immediately following connection attempt. If the
  5115. * connection is formed with TX STBC enabled and if this configuration
  5116. * is disabled during that association, the TX will be impacted
  5117. * immediately. Further connection attempts will disable TX STBC.
  5118. * However, enabling the TX STBC for a connected session with disabled
  5119. * capability is not allowed and will fail.
  5120. * 1-Enable, 0-Disable.
  5121. */
  5122. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
  5123. /* 8-bit unsigned value. This attribute is used to dynamically
  5124. * enable/disable the RX STBC capability of the device. When configured
  5125. * in the disconnected state, the updated configuration will be
  5126. * considered for the immediately following connection attempt. If the
  5127. * configuration is modified in the connected state, there will be no
  5128. * impact for the current association, but further connection attempts
  5129. * will use the updated configuration.
  5130. * 1-Enable, 0-Disable.
  5131. */
  5132. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
  5133. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5134. * the number of spatial streams. When configured in the disconnected
  5135. * state, the updated configuration will be considered for the
  5136. * immediately following connection attempt. If the NSS is updated after
  5137. * the connection, the updated NSS value is notified to the peer using
  5138. * the Operating Mode Notification/Spatial Multiplexing Power Save
  5139. * frame. The updated NSS value after the connection shall not be
  5140. * greater than the one negotiated during the connection. Any such
  5141. * higher value configuration shall be returned with a failure.
  5142. * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
  5143. * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
  5144. * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
  5145. * configure the asymmetric NSS configuration (such as 1X2).
  5146. */
  5147. QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
  5148. /* 8-bit unsigned value to configure Optimized Power Management mode:
  5149. * Modes are defined by enum qca_wlan_vendor_opm_mode.
  5150. *
  5151. * This attribute shall be configured along with
  5152. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
  5153. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes
  5154. * when its value is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED.
  5155. */
  5156. QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
  5157. /* 8-bit unsigned value. This attribute takes the QOS/access category
  5158. * value represented by the enum qca_wlan_ac_type and expects the driver
  5159. * to upgrade the UDP frames to this QOS. The value of QCA_WLAN_AC_ALL
  5160. * is invalid for this attribute. This will override the DSCP value
  5161. * configured in the frame with the intention to only upgrade the QOS.
  5162. * That said, it is not intended to downgrade the QOS for the frames.
  5163. * Set the value to 0 ( corresponding to BE ) if the QOS upgrade needs
  5164. * to disable.
  5165. *
  5166. * If only UDP frames of BE or BK access category needs to be upgraded
  5167. * without changing the access category of VO or VI UDP frames, refer to
  5168. * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK.
  5169. *
  5170. * This attribute is not recommended to be used as it blindly forces all
  5171. * UDP packets to a higher access category which could impact the
  5172. * traffic pattern of all apps using UDP and can cause unknown behavior.
  5173. */
  5174. QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
  5175. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5176. * the number of chains to be used for transmitting data. This
  5177. * configuration is allowed only when in connected state and will be
  5178. * effective until disconnected. The driver rejects this configuration
  5179. * if the number of spatial streams being used in the current connection
  5180. * cannot be supported by this configuration.
  5181. */
  5182. QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
  5183. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5184. * the number of chains to be used for receiving data. This
  5185. * configuration is allowed only when in connected state and will be
  5186. * effective until disconnected. The driver rejects this configuration
  5187. * if the number of spatial streams being used in the current connection
  5188. * cannot be supported by this configuration.
  5189. */
  5190. QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
  5191. /* 8-bit unsigned value to configure ANI setting type.
  5192. * See &enum qca_wlan_ani_setting for possible values.
  5193. */
  5194. QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
  5195. /* 32-bit signed value to configure ANI level. This is used when
  5196. * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
  5197. * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
  5198. * is invalid, the driver will return a failure.
  5199. */
  5200. QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
  5201. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5202. * the number of spatial streams used for transmitting the data. When
  5203. * configured in the disconnected state, the configured value will
  5204. * be considered for the following connection attempt.
  5205. * If the NSS is updated after the connection, the updated NSS value
  5206. * is notified to the peer using the Operating Mode Notification/Spatial
  5207. * Multiplexing Power Save frame.
  5208. * The TX NSS value configured after the connection shall not be greater
  5209. * than the value negotiated during the connection. Any such higher
  5210. * value configuration shall be treated as invalid configuration by
  5211. * the driver. This attribute shall be configured along with
  5212. * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
  5213. * configuration (such as 2X2 or 1X1) or the asymmetric
  5214. * configuration (such as 1X2).
  5215. * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
  5216. * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
  5217. * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
  5218. */
  5219. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
  5220. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5221. * the number of spatial streams used for receiving the data. When
  5222. * configured in the disconnected state, the configured value will
  5223. * be considered for the following connection attempt.
  5224. * If the NSS is updated after the connection, the updated NSS value
  5225. * is notified to the peer using the Operating Mode Notification/Spatial
  5226. * Multiplexing Power Save frame.
  5227. * The RX NSS value configured after the connection shall not be greater
  5228. * than the value negotiated during the connection. Any such higher
  5229. * value configuration shall be treated as invalid configuration by
  5230. * the driver. This attribute shall be configured along with
  5231. * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
  5232. * configuration (such as 2X2 or 1X1) or the asymmetric
  5233. * configuration (such as 1X2).
  5234. * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
  5235. * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
  5236. * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
  5237. */
  5238. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
  5239. /*
  5240. * 8-bit unsigned value. This attribute, when set, indicates whether the
  5241. * specified interface is the primary STA interface when there are more
  5242. * than one STA interfaces concurrently active.
  5243. *
  5244. * This configuration helps the firmware/hardware to support certain
  5245. * features (e.g., roaming) on this primary interface, if the same
  5246. * cannot be supported on the concurrent STA interfaces simultaneously.
  5247. *
  5248. * This configuration is only applicable for a single STA interface on
  5249. * a device and gives the priority for it only over other concurrent STA
  5250. * interfaces.
  5251. *
  5252. * If the device is a multi wiphy/soc, this configuration applies to a
  5253. * single STA interface across the wiphys.
  5254. *
  5255. * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
  5256. */
  5257. QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
  5258. /*
  5259. * 8-bit unsigned value. This attribute can be used to configure the
  5260. * driver to enable/disable FT-over-DS feature. Possible values for
  5261. * this attribute are 1-Enable and 0-Disable.
  5262. */
  5263. QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
  5264. /*
  5265. * 8-bit unsigned value. This attribute can be used to configure the
  5266. * firmware to enable/disable ARP/NS offload feature. Possible values
  5267. * for this attribute are 0-Disable and 1-Enable.
  5268. *
  5269. * This attribute is only applicable for STA/P2P-Client interface,
  5270. * and is optional, default behavior is APR/NS offload Enable.
  5271. *
  5272. * This attribute can be set in disconncted and connected state, and
  5273. * will restore to default behavior if interface is closed.
  5274. */
  5275. QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
  5276. /*
  5277. * 8-bit unsigned value. This attribute can be used to configure the
  5278. * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values
  5279. * for this attribute are defined in the enum qca_dbam_config.
  5280. */
  5281. QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
  5282. /* 8-bit unsigned value. This attribute takes the QoS/access category
  5283. * value represented by the enum qca_wlan_ac_type and expects the driver
  5284. * to upgrade the UDP frames of BE or BK access category to this access
  5285. * category. This attribute will not modify UDP frames of VO or VI
  5286. * access category. The value of QCA_WLAN_AC_ALL is invalid for this
  5287. * attribute.
  5288. *
  5289. * This will override the DSCP value configured in the frame with the
  5290. * intention to only upgrade the access category. That said, it is not
  5291. * intended to downgrade the access category for the frames.
  5292. * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
  5293. * disabled, as BK is of the lowest priority and an upgrade to it does
  5294. * not result in any changes for the frames.
  5295. *
  5296. * This attribute behavior is similar to
  5297. * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that
  5298. * only UDP frames of BE or BK access category are upgraded and not
  5299. * UDP frames of VI or VO access category.
  5300. *
  5301. * This attribute is not recommended to be used as it blindly forces all
  5302. * UDP packets of BE or BK access category to a higher access category
  5303. * which could impact the traffic pattern of all apps using UDP and can
  5304. * cause unknown behavior.
  5305. */
  5306. QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84,
  5307. /* 8-bit unsigned value to configure the driver to enable/disable the
  5308. * periodic sounding for Tx beamformer functionality. The default
  5309. * behavior uses algorithm to do sounding based on packet stats.
  5310. *
  5311. * 0 - Default behavior.
  5312. * 1 - Enable the periodic sounding for Tx beamformer.
  5313. * This attribute is used for testing purposes.
  5314. */
  5315. QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85,
  5316. /* 8-bit unsigned value, whenever wifi calling (wfc) begin or end,
  5317. * Userspace sends this information to driver/firmware to configure
  5318. * wfc state. Driver/Firmware uses this information to
  5319. * optimize power savings, rate adaption, roaming, etc.
  5320. *
  5321. * 1 - wfc is on.
  5322. * 0 - wfc is off.
  5323. */
  5324. QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86,
  5325. /* 8-bit unsigned value to configure the driver to enable/disable the
  5326. * EHT EML capability in management frame EHT capabilities.
  5327. * 1 - Enable, 0 - Disable.
  5328. */
  5329. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_EML_CAPABILITY = 87,
  5330. /* 8-bit unsigned value to configure the driver with EHT MLO max
  5331. * simultaneous links to be used for MLO connection.
  5332. * The range of the value is 0 to 14.
  5333. */
  5334. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_SIMULTANEOUS_LINKS = 88,
  5335. /* 8-bit unsigned value to configure the driver with EHT MLO maximum
  5336. * number of links to be used for MLO connection.
  5337. * The range of the value is 1 to 16.
  5338. */
  5339. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_NUM_LINKS = 89,
  5340. /* 8-bit unsigned value to configure the driver with EHT MLO mode.
  5341. * Uses enum qca_wlan_eht_mlo_mode values.
  5342. */
  5343. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MODE = 90,
  5344. /* Nested attribute with frequencies in u32 attributes to configure a
  5345. * list of allowed 20 MHz channel center frequencies in MHz for AP
  5346. * operation. Whenever performing a channel selection operation, the
  5347. * driver shall generate a new list based on this provided list by
  5348. * filtering out channels that cannot be used at that time due to
  5349. * regulatory or other constraints. The resulting list is used as the
  5350. * list of all allowed channels, i.e., operation on any channel that is
  5351. * not included is not allowed, whenever performing operations like ACS
  5352. * and DFS.
  5353. *
  5354. * Userspace shall configure this before starting the AP and the
  5355. * configuration is valid only from the next BSS start and until the
  5356. * BSS is stopped. The driver shall clear this configuration when the
  5357. * AP is stopped and fall back to the default behavior for subsequent
  5358. * AP operation.
  5359. *
  5360. * The default behavior when this configuration is not applicable is the
  5361. * driver can choose any of the channels supported by the hardware
  5362. * except the channels that cannot be used due to regulatory or other
  5363. * constraints.
  5364. *
  5365. * The driver shall reject this configuration if done after the AP is
  5366. * started. This attribute can be used to specify user's choice of
  5367. * frequencies and static puncture channel list, etc.
  5368. */
  5369. QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST = 91,
  5370. /* Nested attribute to indicate EHT MLO links to be forced active.
  5371. * It contains link MAC address attributes. These nested attributes are
  5372. * of the type NL80211_ATTR_MAC and are used to force enabling of the
  5373. * MLO links corresponding to the indicated link MAC addresses.
  5374. * Subsequently, the links corresponding to the link MAC addresses that
  5375. * are not indicated are forced inactive.
  5376. */
  5377. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_ACTIVE_LINKS = 92,
  5378. /* 8-bit unsigned value to configure EMLSR mode entry or exit.
  5379. * Uses enum qca_wlan_emlsr_mode values.
  5380. */
  5381. QCA_WLAN_VENDOR_ATTR_CONFIG_EMLSR_MODE_SWITCH = 93,
  5382. /* 8-bit unsigned value. This attribute is used to dynamically
  5383. * enable/suspend trigger based UL MU transmission.
  5384. * This is supported in STA mode and the device sends Operating
  5385. * Mode Indication to inform the change as described in
  5386. * IEEE Std 802.11ax-2021, 26.9.
  5387. *
  5388. * This attribute can be configured when the STA is associated
  5389. * to an AP and the configuration is maintained until the current
  5390. * association terminates.
  5391. *
  5392. * By default all UL MU transmissions are enabled.
  5393. *
  5394. * Uses enum qca_ul_mu_config values.
  5395. */
  5396. QCA_WLAN_VENDOR_ATTR_CONFIG_UL_MU_CONFIG = 95,
  5397. /* 8-bit unsigned value. Optionally specified along with
  5398. * %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH when STA is in connected
  5399. * state. This configuration is applicable only for the current
  5400. * connection. This configuration not allowed in disconnected state.
  5401. * This configuration can be sent inside
  5402. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum
  5403. * supported channel width update type per-MLO link.
  5404. *
  5405. * valid values:
  5406. * 0 - The maximum allowed bandwidth change is applicable for both Tx
  5407. * and Rx paths. The driver shall conduct OMI operation as defined
  5408. * in 26.9 (Operating mode indication) or OMN operation as
  5409. * defined in 11.40 (Notification of operating mode
  5410. * changes) in IEEE P802.11-REVme/D2.0 with AP to indicate the
  5411. * change in the maximum allowed operating bandwidth.
  5412. * 1 - Limit the change in maximum allowed bandwidth only to Tx path.
  5413. * In this case the driver doesn't need to conduct OMI/OMN
  5414. * operation since %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH is
  5415. * expected to be less than the current connection maximum
  5416. * negotiated bandwidth.
  5417. * For example: Negotiated maximum bandwidth is 160 MHz and the new
  5418. * maximum bandwidth configured is 80 MHz, now the driver limits
  5419. * the maximum bandwidth to 80 MHz only in the Tx path.
  5420. */
  5421. QCA_WLAN_VENDOR_ATTR_CONFIG_CHAN_WIDTH_UPDATE_TYPE = 96,
  5422. /* 8-bit unsigned value to set EPCS (Emergency Preparedness
  5423. * Communications Service) feature capability
  5424. * 1 - Enable, 0 - Disable.
  5425. *
  5426. * This configuration is used for testing purposes.
  5427. */
  5428. QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY = 97,
  5429. /* 8-bit unsigned value to enable/disable EPCS priority access
  5430. * 1 - Enable, 0 - Disable.
  5431. * The EPCS priority access shall be enabled only when EPCS feature
  5432. * capability is also enabled (see
  5433. * QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY).
  5434. *
  5435. * This configuration is used for testing purposes.
  5436. */
  5437. QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_FUNCTION = 98,
  5438. /* 8-bit unsigned value. Used only for representing MLO link ID of a
  5439. * link inside %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS.
  5440. */
  5441. QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID = 99,
  5442. /* Array of nested links each identified by
  5443. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID. This uses values defined in
  5444. * enum qca_wlan_vendor_attr_config, explicit documentation shall be
  5445. * added for the attributes in enum qca_wlan_vendor_attr_config to
  5446. * support per-MLO link configuration through
  5447. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS.
  5448. *
  5449. * Userspace can configure a single link or multiple links with this
  5450. * attribute by nesting the corresponding configuration attributes and
  5451. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link.
  5452. *
  5453. * Userspace can fetch the configuration attribute values for a single
  5454. * link or multiple links with this attribute by nesting the
  5455. * corresponding configuration attributes and
  5456. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link.
  5457. *
  5458. * For STA interface, this attribute is applicable only in connected
  5459. * state when the current connection is MLO capable. The valid values of
  5460. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link IDs of the
  5461. * connected AP MLD links.
  5462. *
  5463. * For AP interface, this configuration applicable only after adding
  5464. * MLO links to the AP interface with %NL80211_CMD_ADD_LINK and the
  5465. * valid values of %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link
  5466. * IDs specified in %NL80211_CMD_ADD_LINK while adding the MLO links to
  5467. * the AP interface.
  5468. */
  5469. QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS = 100,
  5470. /* 16-bit unsigned value to configure power save inactivity timeout in
  5471. * milliseconds.
  5472. *
  5473. * STA enters into power save mode (PM=1) after TX/RX inactivity of time
  5474. * duration specified by %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO.
  5475. *
  5476. * This attribute shall be configured along with
  5477. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL when
  5478. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT
  5479. * is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode.
  5480. */
  5481. QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO = 101,
  5482. /* 16-bit unsigned value to configure speculative wake interval in
  5483. * milliseconds.
  5484. *
  5485. * STA speculatively wakes up to look for buffered data by AP at
  5486. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL interval after
  5487. * entering into power save. If configured zero, STA wakes up at
  5488. * upcoming DTIM beacon.
  5489. *
  5490. * This attribute shall be configured along with
  5491. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
  5492. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT
  5493. * to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode.
  5494. */
  5495. QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL = 102,
  5496. /*
  5497. * 16-bit unsigned value to configure TX max A-MPDU count.
  5498. *
  5499. * For STA interface, this attribute is applicable only in connected
  5500. * state, peer MAC address is not required to be provided.
  5501. *
  5502. * For AP interface, this attribute is applicable only in started
  5503. * state and one of the associated peer STAs must be specified with
  5504. * QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC. If this is for an ML
  5505. * association, the peer MAC address provided is the link address of
  5506. * the non-AP MLD.
  5507. *
  5508. * This attribute runtime configures the TX maximum aggregation size.
  5509. * The value must be in range of 1 to BA window size for the specific
  5510. * peer.
  5511. */
  5512. QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_AMPDU_CNT = 103,
  5513. /*
  5514. * 8-bit unsigned value to configure TID-to-link mapping negotiation
  5515. * type.
  5516. * Uses enum qca_wlan_ttlm_negotiation_support values.
  5517. *
  5518. * This value applies to the complete AP/non-AP MLD interface, and the
  5519. * MLD advertises it within the Basic Multi-Link element in the
  5520. * association frames. If a new value is configured during an active
  5521. * connection, it will take effect in the subsequent associations and
  5522. * is not reset during disconnection.
  5523. *
  5524. * This attribute is used for testing purposes.
  5525. */
  5526. QCA_WLAN_VENDOR_ATTR_CONFIG_TTLM_NEGOTIATION_SUPPORT = 104,
  5527. /* keep last */
  5528. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
  5529. QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
  5530. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
  5531. };
  5532. /**
  5533. * enum qca_ul_mu_config - UL MU configuration
  5534. * @QCA_UL_MU_SUSPEND - All trigger based UL MU transmission is suspended
  5535. * @QCA_UL_MU_ENABLE - All trigger based UL MU transmission is enabled
  5536. */
  5537. enum qca_ul_mu_config {
  5538. QCA_UL_MU_SUSPEND = 0,
  5539. QCA_UL_MU_ENABLE = 1,
  5540. };
  5541. /**
  5542. * enum qca_dbam_config - Specifies DBAM config mode
  5543. * @QCA_DBAM_DISABLE: Firmware disables DBAM
  5544. * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when
  5545. * internal criteria are met.
  5546. * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully.
  5547. */
  5548. enum qca_dbam_config {
  5549. QCA_DBAM_DISABLE = 0,
  5550. QCA_DBAM_ENABLE = 1,
  5551. QCA_DBAM_FORCE_ENABLE = 2,
  5552. };
  5553. /**
  5554. * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting
  5555. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute
  5556. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID
  5557. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level
  5558. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag
  5559. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value
  5560. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value
  5561. */
  5562. enum qca_wlan_vendor_attr_wifi_logger_start {
  5563. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
  5564. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
  5565. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
  5566. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
  5567. /* keep last */
  5568. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
  5569. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX =
  5570. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
  5571. };
  5572. /*
  5573. * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data
  5574. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute
  5575. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID
  5576. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value
  5577. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value
  5578. */
  5579. enum qca_wlan_vendor_attr_wifi_logger_get_ring_data {
  5580. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0,
  5581. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1,
  5582. /* keep last */
  5583. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST,
  5584. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX =
  5585. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1,
  5586. };
  5587. #ifdef WLAN_FEATURE_OFFLOAD_PACKETS
  5588. /**
  5589. * enum wlan_offloaded_packets_control - control commands
  5590. * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets
  5591. * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets
  5592. *
  5593. */
  5594. enum wlan_offloaded_packets_control {
  5595. WLAN_START_OFFLOADED_PACKETS = 1,
  5596. WLAN_STOP_OFFLOADED_PACKETS = 2
  5597. };
  5598. /**
  5599. * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
  5600. *
  5601. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
  5602. * the offloaded data.
  5603. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
  5604. * data.
  5605. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
  5606. * indication.
  5607. */
  5608. enum qca_wlan_vendor_attr_data_offload_ind {
  5609. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
  5610. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
  5611. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
  5612. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
  5613. /* keep last */
  5614. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
  5615. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
  5616. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
  5617. };
  5618. /**
  5619. * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
  5620. * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
  5621. */
  5622. enum qca_wlan_vendor_attr_offloaded_packets {
  5623. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
  5624. /* Takes valid value from the enum
  5625. * qca_wlan_offloaded_packets_sending_control
  5626. * Unsigned 32-bit value
  5627. */
  5628. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
  5629. /* Unsigned 32-bit value */
  5630. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
  5631. /* array of u8 len: Max packet size */
  5632. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
  5633. /* 6-byte MAC address used to represent source MAC address */
  5634. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
  5635. /* 6-byte MAC address used to represent destination MAC address */
  5636. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
  5637. /* Unsigned 32-bit value, in milli seconds */
  5638. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
  5639. /* This optional unsigned 16-bit attribute is used for specifying
  5640. * ethernet protocol type. If not specified ethertype defaults to IPv4.
  5641. */
  5642. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
  5643. /* keep last */
  5644. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
  5645. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
  5646. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
  5647. };
  5648. #endif /* WLAN_FEATURE_OFFLOAD_PACKETS */
  5649. /**
  5650. * enum qca_wlan_rssi_monitoring_control - rssi control commands
  5651. * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid
  5652. * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start
  5653. * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop
  5654. */
  5655. enum qca_wlan_rssi_monitoring_control {
  5656. QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
  5657. QCA_WLAN_RSSI_MONITORING_START,
  5658. QCA_WLAN_RSSI_MONITORING_STOP,
  5659. };
  5660. /**
  5661. * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring
  5662. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid
  5663. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control
  5664. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi
  5665. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi
  5666. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid
  5667. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi
  5668. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last
  5669. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max
  5670. */
  5671. enum qca_wlan_vendor_attr_rssi_monitoring {
  5672. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
  5673. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
  5674. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
  5675. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
  5676. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
  5677. /* attributes to be used/received in callback */
  5678. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
  5679. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
  5680. /* keep last */
  5681. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
  5682. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
  5683. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
  5684. };
  5685. /**
  5686. * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
  5687. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  5688. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID
  5689. * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd
  5690. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID:
  5691. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicates a service info
  5692. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz
  5693. * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC
  5694. * address
  5695. * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being
  5696. * created
  5697. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use
  5698. * NCS_SK_TYPE/PMK/SCID instead
  5699. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS
  5700. * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info
  5701. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id
  5702. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids
  5703. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response
  5704. * code: accept/reject
  5705. * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address
  5706. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by
  5707. * driver
  5708. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by
  5709. * driver
  5710. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration
  5711. * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type
  5712. * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO
  5713. * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the
  5714. * PMKID
  5715. * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase
  5716. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name
  5717. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule
  5718. * update:
  5719. * BIT_0: NSS Update
  5720. * BIT_1: Channel list update
  5721. * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss
  5722. * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL
  5723. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH:
  5724. * 0:20 MHz,
  5725. * 1:40 MHz,
  5726. * 2:80 MHz,
  5727. * 3:160 MHz
  5728. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width
  5729. * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array
  5730. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating
  5731. * transport port used by NDP.
  5732. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating
  5733. * protocol used by NDP and assigned by the Internet Assigned Numbers Authority
  5734. * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
  5735. * @QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT: Unsigned 8-bit value indicating if
  5736. * NDP remote peer supports NAN NDPE. 1:support 0:not support
  5737. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID: As per Wi-Fi Aware Specification v3.2
  5738. * Service Id is the first 48 bits of the SHA-256 hash of the Service Name.
  5739. * A lower-case representation of the Service Name shall be used to
  5740. * calculate the Service ID.
  5741. * Array of u8: length is 6 bytes
  5742. * This attribute is used and optional for ndp indication.
  5743. * @QCA_WLAN_VENDOR_ATTR_NDP_CSIA_CAPABILITIES: Unsigned 8-bit value for Cipher
  5744. * Suite
  5745. * This attribute is used and optional in ndp request, ndp response, ndp
  5746. * indication, and ndp confirm.
  5747. * This attribute is used to indicate the Capabilities field of Cipher Suite
  5748. * Information attribute (CSIA) of NDP frames as defined in Wi-Fi Aware
  5749. * Specification v4.0, 9.5.21.2, Table 122.
  5750. * Firmware can accept or ignore any of the capability bits.
  5751. * @QCA_WLAN_VENDOR_ATTR_NDP_GTK_REQUIRED: Indicate if the GTK protection is
  5752. * required for NDP. NLA_FLAG attribute.
  5753. * This attribute can be used in ndp request, ndp response, ndp indication, and
  5754. * ndp confirm.
  5755. * GTK protection required is indicated in the NDPE attribute of NAN action
  5756. * frame (NAF) during NDP negotiation as defined in Wi-Fi Aware Specification
  5757. * v4.0, 9.5.16.2.
  5758. * If the device and peer supports GTKSA and if GTK protection required bit is
  5759. * set in NDPE IE, devices will share GTK to each other in SKDA of Data Path
  5760. * Security Confirm and Data Path Security Install frames of NDP negotiation to
  5761. * send and receive protected group addressed data frames from each other.
  5762. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute
  5763. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type
  5764. */
  5765. enum qca_wlan_vendor_attr_ndp_params {
  5766. QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
  5767. QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1,
  5768. QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2,
  5769. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3,
  5770. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4,
  5771. QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5,
  5772. QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6,
  5773. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7,
  5774. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8,
  5775. QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9,
  5776. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10,
  5777. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11,
  5778. QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12,
  5779. QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13,
  5780. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14,
  5781. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15,
  5782. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16,
  5783. QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17,
  5784. QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18,
  5785. QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19,
  5786. QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20,
  5787. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21,
  5788. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22,
  5789. QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23,
  5790. QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24,
  5791. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25,
  5792. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26,
  5793. QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
  5794. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
  5795. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
  5796. QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
  5797. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
  5798. QCA_WLAN_VENDOR_ATTR_NDP_CSIA_CAPABILITIES = 32,
  5799. QCA_WLAN_VENDOR_ATTR_NDP_GTK_REQUIRED = 33,
  5800. /* keep last */
  5801. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
  5802. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
  5803. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
  5804. };
  5805. /**
  5806. * enum qca_wlan_ndp_sub_cmd - NDP sub commands types for
  5807. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  5808. * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value
  5809. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: Command to create a NAN
  5810. * data path interface.
  5811. * This command was initially designed to both create and start a NAN
  5812. * data path interface. However, changes to Linux 5.12 no longer allow
  5813. * interface creation via vendor commands. When the driver advertises
  5814. * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
  5815. * userspace must explicitly first create the interface using
  5816. * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
  5817. * to start the interface.
  5818. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: command to delete a NAN
  5819. * data path interface.
  5820. * This command was initially designed to both stop and delete a NAN
  5821. * data path interface. However, changes to Linux 5.12 no longer allow
  5822. * interface deletion via vendor commands. When the driver advertises
  5823. * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
  5824. * userspace must explicitly delete the interface using
  5825. * NL80211_CMD_DEL_INTERFACE after calling this command.
  5826. * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above
  5827. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session
  5828. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above
  5829. * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end
  5830. * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above
  5831. * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request
  5832. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete
  5833. * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request
  5834. * being received
  5835. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule
  5836. * update
  5837. */
  5838. enum qca_wlan_ndp_sub_cmd {
  5839. QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
  5840. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
  5841. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
  5842. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
  5843. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
  5844. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
  5845. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
  5846. QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
  5847. QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
  5848. QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
  5849. QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
  5850. QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
  5851. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
  5852. };
  5853. /**
  5854. * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
  5855. * information. These attributes are sent as part of
  5856. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
  5857. * attributes correspond to a single channel.
  5858. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16)
  5859. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  5860. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16)
  5861. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  5862. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency
  5863. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum
  5864. * regulatory transmission power
  5865. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum
  5866. * transmission power
  5867. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum
  5868. * transmission power
  5869. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory
  5870. * class id
  5871. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum
  5872. * antenna gain in dbm
  5873. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0
  5874. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1
  5875. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0: Segment 0
  5876. * center frequency in MHz.
  5877. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht
  5878. * segment 0 in center freq in MHz. (this is the legacy alias)
  5879. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1: Segment 1
  5880. * center frequency in MHz.
  5881. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht
  5882. * segment 1 in center freq in MHz. (this is the legacy alias)
  5883. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES: 3-bits
  5884. * flag indicating the AP power modes supported by the channel, as given by
  5885. * enum qca_wlan_vendor_external_acs_chan_power_level.
  5886. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR: Array of nested
  5887. * attributes for each power mode. It takes attr as defined in enum
  5888. * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
  5889. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1:
  5890. * This indicates the overlapping 320 MHz center frequency in MHz, if the
  5891. * given primary channel supports more than one 320 MHz channel bonding.
  5892. *
  5893. */
  5894. enum qca_wlan_vendor_external_acs_event_chan_info_attr {
  5895. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
  5896. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
  5897. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
  5898. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
  5899. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
  5900. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
  5901. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
  5902. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
  5903. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
  5904. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
  5905. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
  5906. /*
  5907. * A bitmask (u32) with flags specified in
  5908. * enum qca_wlan_vendor_channel_prop_flags_2.
  5909. */
  5910. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
  5911. /*
  5912. * Segment 0 in MHz (u32).
  5913. *
  5914. * For 20/40/80 MHz bandwidth, this indicates the channel center
  5915. * frequency index for the 20/40/80 MHz operating channel.
  5916. * For 160 MHz bandwidth, this indicates the channel center
  5917. * frequency of the primary 80 MHz channel.
  5918. * For 320 MHz bandwidth, indicates the channel center frequency
  5919. * of the primary 160 MHz channel.
  5920. *
  5921. * To maintain backward compatibility,
  5922. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5923. * is also maintained.
  5924. */
  5925. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12,
  5926. /* Legacy alias for the Segment 0 attribute.
  5927. *
  5928. * VHT segment 0 in MHz (u32) and the attribute is mandatory.
  5929. * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
  5930. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5931. * along with
  5932. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
  5933. *
  5934. * If both the driver and user-space application supports the 6 GHz
  5935. * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
  5936. * is deprecated and
  5937. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5938. * should be used.
  5939. *
  5940. * To maintain backward compatibility,
  5941. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5942. * is still used if either of the driver or user space application
  5943. * doesn't support the 6 GHz band.
  5944. */
  5945. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 =
  5946. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0,
  5947. /*
  5948. * Segment 1 in MHz (u32).
  5949. *
  5950. * For 20/40/80 MHz bandwidth, this is set to 0.
  5951. * For 160 MHz bandwidth, indicates the channel center frequency of the
  5952. * 160 MHz channel.
  5953. * For 320 MHz bandwidth, indicates the channel center frequency of the
  5954. * 320 MHz channel.
  5955. *
  5956. * To maintain backward compatibility,
  5957. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5958. * is also maintained.
  5959. */
  5960. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13,
  5961. /* Legacy alias for the Segment 1 attribute.
  5962. *
  5963. * VHT segment 1 in MHz (u32) and the attribute is mandatory.
  5964. * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
  5965. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5966. * along with
  5967. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
  5968. *
  5969. * If both the driver and user-space application supports the 6 GHz
  5970. * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
  5971. * is deprecated and
  5972. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5973. * should be considered.
  5974. *
  5975. * To maintain backward compatibility,
  5976. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5977. * is still used if either of the driver or user space application
  5978. * doesn't support the 6 GHz band.
  5979. */
  5980. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 =
  5981. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1,
  5982. /*
  5983. * 16-bit attribute of bits indicating the AP power modes supported by
  5984. * the channel (u16).
  5985. * Note: Currently, only 3 bits are used in the attribute and each bit
  5986. * corresponds to the power mode mentioned in enum
  5987. * qca_wlan_vendor_external_acs_chan_power_level and a given bit is
  5988. * set if the associated mode is supported.
  5989. */
  5990. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
  5991. = 14,
  5992. /* Array of nested attributes for each power mode. It takes attr as
  5993. * defined in enum
  5994. * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
  5995. */
  5996. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR = 15,
  5997. /*
  5998. * This indicates the overlapping 320 MHz center frequency in MHz
  5999. * (u32), if the given primary channel supports more than one
  6000. * 320 MHz channel bonding.
  6001. *
  6002. * Example:
  6003. * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0
  6004. * center frequency (primary 160 MHz) is 6185 MHz and there can be two
  6005. * possible segment 2 frequencies for this (320 MHz center
  6006. * frequencies):
  6007. *
  6008. * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding
  6009. * from frequency 5945 MHz - 6265 MHz
  6010. * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding
  6011. * from frequency 6105 MHz - 6425 MHz
  6012. *
  6013. * In this case,
  6014. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will
  6015. * return 6185 MHz.
  6016. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will
  6017. * return 6105 MHz.
  6018. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
  6019. * will return 6265 MHz.
  6020. */
  6021. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
  6022. = 16,
  6023. /* keep last */
  6024. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
  6025. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
  6026. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
  6027. };
  6028. /**
  6029. * qca_wlan_vendor_external_acs_chan_power_level - Specifies the valid
  6030. * values that the vendor external ACS channel power attribute
  6031. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
  6032. * take.
  6033. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
  6034. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
  6035. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
  6036. */
  6037. enum qca_wlan_vendor_external_acs_chan_power_level {
  6038. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
  6039. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
  6040. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
  6041. };
  6042. /**
  6043. * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
  6044. * attributes for power mode type and power values corresponding to that.
  6045. * These attributes are sent as part of
  6046. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
  6047. */
  6048. enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
  6049. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
  6050. /*
  6051. * Power mode (u8) takes the values defined in enum
  6052. * qca_wlan_vendor_external_acs_chan_power_mode
  6053. */
  6054. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
  6055. = 1,
  6056. /*
  6057. * Indicates if power value is a PSD/EIRP value (flag). If flag is
  6058. * present, it indicates a PSD value.
  6059. */
  6060. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
  6061. /*
  6062. * Power value (u32) PSD/EIRP as indicated by
  6063. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
  6064. * for power mode corresponding to the
  6065. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
  6066. * Units for PSD - dBm/MHz
  6067. * Units for EIRP - dBm
  6068. */
  6069. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
  6070. = 3,
  6071. /* keep last */
  6072. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
  6073. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
  6074. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
  6075. };
  6076. /**
  6077. * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command
  6078. * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host
  6079. * driver.
  6080. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to
  6081. * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why
  6082. * ACS need to be started
  6083. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does
  6084. * driver supports spectral scanning or not
  6085. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is
  6086. * offloaded to firmware.
  6087. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver
  6088. * provides additional channel capability as part of scan operation.
  6089. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate
  6090. * interface status is UP
  6091. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of
  6092. * interface. It takes one of nl80211_iftype values.
  6093. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound
  6094. * of chan width. ACS logic should try to get a channel with specified width
  6095. * if not found then look for lower values.
  6096. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands
  6097. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as
  6098. * a/b/g/n/ac.
  6099. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list
  6100. * among which ACS should choose best frequency.
  6101. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the
  6102. * driver which will have <channel(u8), weight(u8)> format as array of
  6103. * nested values.
  6104. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute
  6105. * for each channel. It takes attr as defined in
  6106. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as
  6107. * PCL mandatory, PCL preferred, etc.It uses values defined in enum
  6108. * qca_wlan_vendor_attr_external_acs_policy.
  6109. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF
  6110. * Operating Parameter (RROP) availability information (u16). It uses values
  6111. * defined in enum qca_wlan_vendor_attr_rropavail_info.
  6112. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY: Flag attribute to
  6113. * indicate if driver supports 6 GHz AFC trigger for External ACS.
  6114. */
  6115. enum qca_wlan_vendor_attr_external_acs_event {
  6116. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
  6117. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
  6118. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
  6119. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
  6120. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
  6121. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
  6122. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
  6123. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
  6124. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
  6125. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
  6126. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
  6127. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
  6128. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
  6129. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
  6130. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
  6131. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
  6132. /* keep last */
  6133. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
  6134. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
  6135. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
  6136. };
  6137. enum qca_iface_type {
  6138. QCA_IFACE_TYPE_STA,
  6139. QCA_IFACE_TYPE_AP,
  6140. QCA_IFACE_TYPE_P2P_CLIENT,
  6141. QCA_IFACE_TYPE_P2P_GO,
  6142. QCA_IFACE_TYPE_IBSS,
  6143. QCA_IFACE_TYPE_TDLS,
  6144. };
  6145. /**
  6146. * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command
  6147. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
  6148. * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
  6149. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value
  6150. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number
  6151. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight
  6152. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency
  6153. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask
  6154. */
  6155. enum qca_wlan_vendor_attr_pcl_config {
  6156. QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
  6157. QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
  6158. QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
  6159. QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
  6160. QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
  6161. };
  6162. enum qca_set_band {
  6163. QCA_SETBAND_AUTO = 0,
  6164. QCA_SETBAND_5G = BIT(0),
  6165. QCA_SETBAND_2G = BIT(1),
  6166. QCA_SETBAND_6G = BIT(2),
  6167. };
  6168. /**
  6169. * enum set_reset_packet_filter - set packet filter control commands
  6170. * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter
  6171. * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter
  6172. * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data
  6173. * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data
  6174. * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter
  6175. * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter
  6176. */
  6177. enum set_reset_packet_filter {
  6178. QCA_WLAN_SET_PACKET_FILTER = 1,
  6179. QCA_WLAN_GET_PACKET_FILTER = 2,
  6180. QCA_WLAN_WRITE_PACKET_FILTER = 3,
  6181. QCA_WLAN_READ_PACKET_FILTER = 4,
  6182. QCA_WLAN_ENABLE_PACKET_FILTER = 5,
  6183. QCA_WLAN_DISABLE_PACKET_FILTER = 6,
  6184. };
  6185. /**
  6186. * enum qca_wlan_vendor_attr_packet_filter - APF control commands
  6187. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid
  6188. * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID
  6189. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version
  6190. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length
  6191. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset
  6192. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions
  6193. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program
  6194. * section in packet filter buffer
  6195. */
  6196. enum qca_wlan_vendor_attr_packet_filter {
  6197. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
  6198. QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER,
  6199. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
  6200. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
  6201. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
  6202. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
  6203. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
  6204. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH,
  6205. /* keep last */
  6206. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
  6207. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
  6208. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
  6209. };
  6210. /**
  6211. * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
  6212. * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
  6213. */
  6214. enum qca_wlan_vendor_attr_wake_stats {
  6215. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
  6216. /* Unsigned 32-bit value indicating the total count of wake event */
  6217. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
  6218. /* Array of individual wake count, each index representing wake reason
  6219. */
  6220. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
  6221. /* Unsigned 32-bit value representing wake count array */
  6222. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
  6223. /* Unsigned 32-bit total wake count value of driver/fw */
  6224. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
  6225. /* Array of wake stats of driver/fw */
  6226. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
  6227. /* Unsigned 32-bit total wake count value of driver/fw */
  6228. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
  6229. /* Unsigned 32-bit total wake count value of packets received */
  6230. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
  6231. /* Unsigned 32-bit wake count value unicast packets received */
  6232. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
  6233. /* Unsigned 32-bit wake count value multicast packets received */
  6234. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
  6235. /* Unsigned 32-bit wake count value broadcast packets received */
  6236. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
  6237. /* Unsigned 32-bit wake count value of ICMP packets */
  6238. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
  6239. /* Unsigned 32-bit wake count value of ICMP6 packets */
  6240. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
  6241. /* Unsigned 32-bit value ICMP6 router advertisement */
  6242. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
  6243. /* Unsigned 32-bit value ICMP6 neighbor advertisement */
  6244. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
  6245. /* Unsigned 32-bit value ICMP6 neighbor solicitation */
  6246. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
  6247. /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
  6248. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
  6249. /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
  6250. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
  6251. /* Unsigned 32-bit wake count value of receive side multicast */
  6252. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
  6253. /* Unsigned 32-bit wake count value of a given RSSI breach */
  6254. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
  6255. /* Unsigned 32-bit wake count value of low RSSI */
  6256. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
  6257. /* Unsigned 32-bit value GSCAN count */
  6258. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
  6259. /* Unsigned 32-bit value PNO complete count */
  6260. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
  6261. /* Unsigned 32-bit value PNO match count */
  6262. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
  6263. /* keep last */
  6264. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
  6265. QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
  6266. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
  6267. };
  6268. /**
  6269. * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
  6270. * configured by userspace to the driver/firmware. The values will be
  6271. * encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL attribute.
  6272. * The driver/firmware takes necessary actions requested by userspace
  6273. * such as throttling wifi tx etc. in order to mitigate high temperature.
  6274. *
  6275. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
  6276. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle tx lightly.
  6277. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle tx moderately.
  6278. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle tx severely.
  6279. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
  6280. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
  6281. */
  6282. enum qca_wlan_vendor_thermal_level {
  6283. QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
  6284. QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
  6285. QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
  6286. QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
  6287. QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
  6288. QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
  6289. };
  6290. /**
  6291. * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
  6292. * cmd value. Used for NL attributes for data used by
  6293. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
  6294. */
  6295. enum qca_wlan_vendor_attr_thermal_cmd {
  6296. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
  6297. /* The value of command, driver will implement different operations
  6298. * according to this value. It uses values defined in
  6299. * enum qca_wlan_vendor_attr_thermal_cmd_type.
  6300. * u32 attribute.
  6301. */
  6302. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
  6303. /* Userspace uses this attribute to configure thermal level to the
  6304. * driver/firmware, or get thermal level from the driver/firmware.
  6305. * Used in request or response, u32 attribute,
  6306. * possible values are defined in enum qca_wlan_vendor_thermal_level.
  6307. */
  6308. QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
  6309. /* Userspace uses this attribute to configure the time in which the
  6310. * driver/firmware should complete applying settings it received from
  6311. * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
  6312. * command type. Used in request, u32 attribute, value is in
  6313. * milliseconds. A value of zero indicates to apply the settings
  6314. * immediately. The driver/firmware can delay applying the configured
  6315. * thermal settings within the time specified in this attribute if
  6316. * there is any critical ongoing operation.
  6317. */
  6318. QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
  6319. /* Nested attribute, driver/firmware uses this attribute to report
  6320. * thermal stats of different thermal levels to userspace when requested
  6321. * using QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
  6322. * type. This attribute contains nested array of records of thermal
  6323. * statistics of multiple levels. The attributes used inside this nested
  6324. * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
  6325. */
  6326. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
  6327. /* keep last */
  6328. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
  6329. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
  6330. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
  6331. };
  6332. /**
  6333. * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
  6334. * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
  6335. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
  6336. * thermal command types sent to driver.
  6337. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
  6338. * get thermal shutdown configuration parameters for display. Parameters
  6339. * responded from driver are defined in
  6340. * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
  6341. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
  6342. * get temperature. Host should respond with a temperature data. It is defined
  6343. * in enum qca_wlan_vendor_attr_thermal_get_temperature.
  6344. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
  6345. * suspend action.
  6346. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
  6347. * resume action.
  6348. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
  6349. * the driver/firmware.
  6350. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
  6351. * thermal level from the driver/firmware. The driver should respond with a
  6352. * thermal level defined in enum qca_wlan_vendor_thermal_level.
  6353. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
  6354. * current thermal stats from the driver/firmware. The driver should respond
  6355. * with stats of all thermal levels encapsulated in attribute
  6356. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
  6357. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
  6358. * the current thermal stats all thermal levels maintained in the
  6359. * driver/firmware and start counting from zero again.
  6360. */
  6361. enum qca_wlan_vendor_attr_thermal_cmd_type {
  6362. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
  6363. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
  6364. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
  6365. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
  6366. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
  6367. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
  6368. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
  6369. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
  6370. };
  6371. /**
  6372. * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
  6373. * to get chip temperature by user.
  6374. * enum values are used for NL attributes for data used by
  6375. * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
  6376. * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
  6377. */
  6378. enum qca_wlan_vendor_attr_thermal_get_temperature {
  6379. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
  6380. /* Temperature value (degree Celsius) from driver.
  6381. * u32 attribute.
  6382. */
  6383. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
  6384. /* keep last */
  6385. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
  6386. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
  6387. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
  6388. };
  6389. /**
  6390. * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
  6391. * report thermal events from driver to user space.
  6392. * enum values are used for NL attributes for data used by
  6393. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
  6394. */
  6395. enum qca_wlan_vendor_attr_thermal_event {
  6396. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
  6397. /* Temperature value (degree Celsius) from driver.
  6398. * u32 attribute.
  6399. */
  6400. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
  6401. /* Indication of resume completion from power save mode.
  6402. * NLA_FLAG attribute.
  6403. */
  6404. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
  6405. /* Thermal level from the driver.
  6406. * u32 attribute. Possible values are defined in
  6407. * enum qca_wlan_vendor_thermal_level.
  6408. */
  6409. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
  6410. /* keep last */
  6411. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
  6412. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
  6413. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
  6414. };
  6415. /**
  6416. * enum qca_vendor_element_id - QCA Vendor Specific element types
  6417. *
  6418. * These values are used to identify QCA Vendor Specific elements. The
  6419. * payload of the element starts with the three octet OUI (OUI_QCA) and
  6420. * is followed by a single octet type which is defined by this enum.
  6421. *
  6422. * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
  6423. * This element can be used to specify preference order for supported
  6424. * channels. The channels in this list are in preference order (the first
  6425. * one has the highest preference) and are described as a pair of
  6426. * (global) Operating Class and Channel Number (each one octet) fields.
  6427. *
  6428. * This extends the standard P2P functionality by providing option to have
  6429. * more than one preferred operating channel. When this element is present,
  6430. * it replaces the preference indicated in the Operating Channel attribute.
  6431. * For supporting other implementations, the Operating Channel attribute is
  6432. * expected to be used with the highest preference channel. Similarly, all
  6433. * the channels included in this Preferred channel list element are
  6434. * expected to be included in the Channel List attribute.
  6435. *
  6436. * This vendor element may be included in GO Negotiation Request, P2P
  6437. * Invitation Request, and Provision Discovery Request frames.
  6438. *
  6439. * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
  6440. * This element can be used for pre-standard publication testing of HE
  6441. * before P802.11ax draft assigns the element ID. The payload of this
  6442. * vendor specific element is defined by the latest P802.11ax draft.
  6443. * Please note that the draft is still work in progress and this element
  6444. * payload is subject to change.
  6445. *
  6446. * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
  6447. * This element can be used for pre-standard publication testing of HE
  6448. * before P802.11ax draft assigns the element ID. The payload of this
  6449. * vendor specific element is defined by the latest P802.11ax draft.
  6450. * Please note that the draft is still work in progress and this element
  6451. * payload is subject to change.
  6452. *
  6453. * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
  6454. * element).
  6455. * This element can be used for pre-standard publication testing of HE
  6456. * before P802.11ax draft assigns the element ID extension. The payload of
  6457. * this vendor specific element is defined by the latest P802.11ax draft
  6458. * (not including the Element ID Extension field). Please note that the
  6459. * draft is still work in progress and this element payload is subject to
  6460. * change.
  6461. *
  6462. * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
  6463. * This element can be used for pre-standard publication testing of HE
  6464. * before P802.11ax draft assigns the element ID extension. The payload of
  6465. * this vendor specific element is defined by the latest P802.11ax draft
  6466. * (not including the Element ID Extension field). Please note that the
  6467. * draft is still work in progress and this element payload is subject to
  6468. * change.
  6469. *
  6470. * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
  6471. * This element can be used for pre-standard publication testing of HE
  6472. * before P802.11ax draft assigns the element ID extension. The payload of
  6473. * this vendor specific element is defined by the latest P802.11ax draft
  6474. * (not including the Element ID Extension field). Please note that the
  6475. * draft is still work in progress and this element payload is subject to
  6476. * change.
  6477. */
  6478. enum qca_vendor_element_id {
  6479. QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
  6480. QCA_VENDOR_ELEM_HE_CAPAB = 1,
  6481. QCA_VENDOR_ELEM_HE_OPER = 2,
  6482. QCA_VENDOR_ELEM_RAPS = 3,
  6483. QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
  6484. QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
  6485. };
  6486. /**
  6487. * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
  6488. * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
  6489. * Specify the TSF command. Possible values are defined in
  6490. * &enum qca_tsf_cmd.
  6491. * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
  6492. * This attribute contains TSF timer value. This attribute is only available
  6493. * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
  6494. * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
  6495. * This attribute contains SOC timer value at TSF capture. This attribute is
  6496. * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
  6497. * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
  6498. * This attribute is used to provide TSF sync interval and only applicable when
  6499. * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
  6500. * driver will use the default value. Time unit is in milliseconds.
  6501. */
  6502. enum qca_vendor_attr_tsf_cmd {
  6503. QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
  6504. QCA_WLAN_VENDOR_ATTR_TSF_CMD,
  6505. QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
  6506. QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
  6507. QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
  6508. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
  6509. QCA_WLAN_VENDOR_ATTR_TSF_MAX =
  6510. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
  6511. };
  6512. /**
  6513. * enum qca_tsf_cmd: TSF driver commands
  6514. * @QCA_TSF_CAPTURE: Initiate TSF Capture
  6515. * @QCA_TSF_GET: Get TSF capture value
  6516. * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
  6517. * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
  6518. * will automatically send TSF report to the host. To query
  6519. * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
  6520. * initiated first.
  6521. * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
  6522. * will not automatically send TSF report to the host. If
  6523. * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
  6524. * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
  6525. * operation needs to be initiated.
  6526. * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
  6527. * fetches TSF and host time mapping from the firmware with interval configured
  6528. * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
  6529. * interval value is not provided the driver will use the default value. The
  6530. * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
  6531. * command.
  6532. * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
  6533. */
  6534. enum qca_tsf_cmd {
  6535. QCA_TSF_CAPTURE,
  6536. QCA_TSF_GET,
  6537. QCA_TSF_SYNC_GET,
  6538. QCA_TSF_AUTO_REPORT_ENABLE,
  6539. QCA_TSF_AUTO_REPORT_DISABLE,
  6540. QCA_TSF_SYNC_START,
  6541. QCA_TSF_SYNC_STOP,
  6542. };
  6543. /**
  6544. * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list
  6545. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value
  6546. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type
  6547. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list
  6548. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight
  6549. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last
  6550. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max
  6551. */
  6552. enum qca_vendor_attr_get_preferred_freq_list {
  6553. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
  6554. /* A 32-unsigned value; the interface type/mode for which the preferred
  6555. * frequency list is requested (see enum qca_iface_type for possible
  6556. * values); used in both south- and north-bound.
  6557. */
  6558. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
  6559. /* An array of 32-unsigned values; values are frequency (MHz); used
  6560. * in north-bound only.
  6561. */
  6562. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
  6563. /* An array of nested values as per enum
  6564. * qca_wlan_vendor_attr_pcl_config attribute.
  6565. * Each element contains frequency (MHz), weight, and flag
  6566. * bit mask indicating how the frequency should be used in P2P
  6567. * negotiation.
  6568. */
  6569. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
  6570. /* keep last */
  6571. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
  6572. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
  6573. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
  6574. };
  6575. /**
  6576. * enum qca_vendor_attr_probable_oper_channel - channel hint
  6577. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value
  6578. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type
  6579. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value
  6580. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last
  6581. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max
  6582. */
  6583. enum qca_vendor_attr_probable_oper_channel {
  6584. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
  6585. /* 32-bit unsigned value; indicates the connection/iface type likely to
  6586. * come on this channel (see enum qca_iface_type).
  6587. */
  6588. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
  6589. /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
  6590. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
  6591. /* keep last */
  6592. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
  6593. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
  6594. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
  6595. };
  6596. /**
  6597. * enum qca_wlan_vendor_attr_gw_param_config - gateway param config
  6598. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid
  6599. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr
  6600. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr
  6601. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr
  6602. */
  6603. enum qca_wlan_vendor_attr_gw_param_config {
  6604. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0,
  6605. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR,
  6606. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR,
  6607. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR,
  6608. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST,
  6609. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX =
  6610. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1,
  6611. };
  6612. /**
  6613. * enum drv_dbs_capability - DBS capability
  6614. * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled
  6615. * @DRV_DBS_CAPABILITY_1X1: 1x1
  6616. * @DRV_DBS_CAPABILITY_2X2: 2x2
  6617. */
  6618. enum drv_dbs_capability {
  6619. DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */
  6620. DRV_DBS_CAPABILITY_1X1,
  6621. DRV_DBS_CAPABILITY_2X2,
  6622. };
  6623. /**
  6624. * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
  6625. *
  6626. * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
  6627. */
  6628. enum qca_vendor_attr_txpower_decr_db {
  6629. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
  6630. /*
  6631. * 8-bit unsigned value to indicate the reduction of TX power in dB for
  6632. * a virtual interface.
  6633. */
  6634. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
  6635. /* keep last */
  6636. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
  6637. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
  6638. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
  6639. };
  6640. /**
  6641. * enum qca_vendor_attr_ota_test - Enable OTA test
  6642. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value
  6643. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test
  6644. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last
  6645. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max
  6646. */
  6647. enum qca_vendor_attr_ota_test {
  6648. QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
  6649. /* 8-bit unsigned value to indicate if OTA test is enabled */
  6650. QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
  6651. /* keep last */
  6652. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
  6653. QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
  6654. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
  6655. };
  6656. /** enum qca_vendor_attr_txpower_scale - vendor sub commands index
  6657. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value
  6658. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
  6659. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value
  6660. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value
  6661. */
  6662. enum qca_vendor_attr_txpower_scale {
  6663. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
  6664. /* 8-bit unsigned value to indicate the scaling of tx power */
  6665. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
  6666. /* keep last */
  6667. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
  6668. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
  6669. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
  6670. };
  6671. /**
  6672. * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index
  6673. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value
  6674. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value
  6675. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value
  6676. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value
  6677. */
  6678. enum qca_vendor_attr_txpower_scale_decr_db {
  6679. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID,
  6680. /* 8-bit unsigned value to indicate the scaling of tx power */
  6681. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB,
  6682. /* keep last */
  6683. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST,
  6684. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX =
  6685. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1
  6686. };
  6687. /**
  6688. * enum dfs_mode - state of DFS mode
  6689. * @DFS_MODE_NONE: DFS mode attribute is none
  6690. * @DFS_MODE_ENABLE: DFS mode is enabled
  6691. * @DFS_MODE_DISABLE: DFS mode is disabled
  6692. * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning
  6693. */
  6694. enum dfs_mode {
  6695. DFS_MODE_NONE,
  6696. DFS_MODE_ENABLE,
  6697. DFS_MODE_DISABLE,
  6698. DFS_MODE_DEPRIORITIZE
  6699. };
  6700. /**
  6701. * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
  6702. * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
  6703. *
  6704. * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
  6705. * DFS mode for ACS operation from enum qca_acs_dfs_mode.
  6706. *
  6707. * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
  6708. * channel number hint for ACS operation, if valid channel is specified then
  6709. * ACS operation gives priority to this channel.
  6710. * Note: If both the driver and user space application supports the 6 GHz band,
  6711. * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
  6712. * should be used.
  6713. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
  6714. * is still used if either of the driver or user space application doesn't
  6715. * support the 6 GHz band.
  6716. *
  6717. * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
  6718. * Channel center frequency (MHz) hint for ACS operation, if a valid center
  6719. * frequency is specified, ACS operation gives priority to this channel.
  6720. */
  6721. enum qca_wlan_vendor_attr_acs_config {
  6722. QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
  6723. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
  6724. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
  6725. QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
  6726. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
  6727. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
  6728. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
  6729. };
  6730. /**
  6731. * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
  6732. */
  6733. enum qca_wlan_vendor_attr_get_hw_capability {
  6734. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
  6735. /*
  6736. * Antenna isolation
  6737. * An attribute used in the response.
  6738. * The content of this attribute is encoded in a byte array. Each byte
  6739. * value is an antenna isolation value. The array length is the number
  6740. * of antennas.
  6741. */
  6742. QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
  6743. /*
  6744. * Request HW capability
  6745. * An attribute used in the request.
  6746. * The content of this attribute is a u32 array for one or more of
  6747. * hardware capabilities (attribute IDs) that are being requested. Each
  6748. * u32 value has a value from this
  6749. * enum qca_wlan_vendor_attr_get_hw_capability
  6750. * identifying which capabilities are requested.
  6751. */
  6752. QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
  6753. /* keep last */
  6754. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
  6755. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
  6756. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
  6757. };
  6758. /**
  6759. * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config -
  6760. * config params for sta roam policy
  6761. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid
  6762. * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels
  6763. * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL:
  6764. * If sta should skip unsafe channels or not in scanning
  6765. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST:
  6766. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute
  6767. */
  6768. enum qca_wlan_vendor_attr_sta_connect_roam_policy_config {
  6769. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0,
  6770. QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE,
  6771. QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL,
  6772. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST,
  6773. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX =
  6774. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1,
  6775. };
  6776. /* Attributes for FTM commands and events */
  6777. /**
  6778. * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
  6779. *
  6780. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
  6781. * enum qca_wlan_vendor_attr_loc_capa_flags.
  6782. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
  6783. * of measurement sessions that can run concurrently.
  6784. * Default is one session (no session concurrency).
  6785. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
  6786. * peers that are supported in running sessions. For example,
  6787. * if the value is 8 and maximum number of sessions is 2, you can
  6788. * have one session with 8 unique peers, or 2 sessions with 4 unique
  6789. * peers each, and so on.
  6790. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
  6791. * of bursts per peer, as an exponent (2^value). Default is 0,
  6792. * meaning no multi-burst support.
  6793. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
  6794. * of measurement exchanges allowed in a single burst.
  6795. * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
  6796. * types. A bit mask (unsigned 32 bit value), each bit corresponds
  6797. * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
  6798. */
  6799. enum qca_wlan_vendor_attr_loc_capa {
  6800. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
  6801. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
  6802. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
  6803. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
  6804. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
  6805. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
  6806. QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
  6807. /* keep last */
  6808. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
  6809. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
  6810. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
  6811. };
  6812. /**
  6813. * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
  6814. *
  6815. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
  6816. * can be configured as an FTM responder (for example, an AP that
  6817. * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  6818. * will be supported if set.
  6819. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
  6820. * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
  6821. * will be supported if set.
  6822. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
  6823. * supports immediate (ASAP) response.
  6824. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
  6825. * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
  6826. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
  6827. * requesting AOA measurements as part of an FTM session.
  6828. */
  6829. enum qca_wlan_vendor_attr_loc_capa_flags {
  6830. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
  6831. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
  6832. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
  6833. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
  6834. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
  6835. };
  6836. /**
  6837. * enum qca_wlan_ani_setting - ANI setting type
  6838. * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
  6839. * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
  6840. */
  6841. enum qca_wlan_ani_setting {
  6842. QCA_WLAN_ANI_SETTING_AUTO = 0,
  6843. QCA_WLAN_ANI_SETTING_FIXED = 1,
  6844. };
  6845. /**
  6846. * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
  6847. *
  6848. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
  6849. * Channel number on which Access Point should restart.
  6850. * Note: If both the driver and user space application supports the 6 GHz band,
  6851. * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
  6852. * should be used.
  6853. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
  6854. * is still used if either of the driver or user space application doesn't
  6855. * support the 6 GHz band.
  6856. *
  6857. * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required
  6858. * Nested attribute to hold list of center frequencies on which AP is
  6859. * expected to operate. This is irrespective of ACS configuration.
  6860. * This list is a priority based one and is looked for before the AP is
  6861. * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC)
  6862. * co-exist in the system.
  6863. *
  6864. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
  6865. * Channel center frequency (MHz) on which the access point should restart.
  6866. */
  6867. enum qca_wlan_vendor_attr_sap_config {
  6868. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
  6869. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
  6870. QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
  6871. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
  6872. /* Keep last */
  6873. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
  6874. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
  6875. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
  6876. };
  6877. /**
  6878. * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
  6879. * a single peer in a measurement session.
  6880. *
  6881. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
  6882. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
  6883. * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
  6884. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
  6885. * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
  6886. * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
  6887. * list of supported attributes.
  6888. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
  6889. * secure measurement.
  6890. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
  6891. * measurement every <value> bursts. If 0 or not specified,
  6892. * AOA measurements will be disabled for this peer.
  6893. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
  6894. * the measurement frames are exchanged. Optional; if not
  6895. * specified, try to locate the peer in the kernel scan
  6896. * results cache and use frequency from there.
  6897. */
  6898. enum qca_wlan_vendor_attr_ftm_peer_info {
  6899. QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
  6900. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
  6901. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
  6902. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
  6903. QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
  6904. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
  6905. QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
  6906. /* keep last */
  6907. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
  6908. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
  6909. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
  6910. };
  6911. /**
  6912. * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
  6913. * per-peer
  6914. *
  6915. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
  6916. * immediate (ASAP) response from peer.
  6917. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
  6918. * LCI report from peer. The LCI report includes the absolute
  6919. * location of the peer in "official" coordinates (similar to GPS).
  6920. * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
  6921. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
  6922. * Location civic report from peer. The LCR includes the location
  6923. * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
  6924. * 11.24.6.7 for more information.
  6925. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
  6926. * request a secure measurement.
  6927. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
  6928. */
  6929. enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
  6930. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
  6931. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
  6932. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
  6933. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
  6934. };
  6935. /**
  6936. * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
  6937. *
  6938. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
  6939. * to perform in a single burst.
  6940. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
  6941. * perform, specified as an exponent (2^value).
  6942. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
  6943. * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
  6944. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
  6945. * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
  6946. * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
  6947. */
  6948. enum qca_wlan_vendor_attr_ftm_meas_param {
  6949. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
  6950. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
  6951. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
  6952. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
  6953. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
  6954. /* keep last */
  6955. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
  6956. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
  6957. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
  6958. };
  6959. /**
  6960. * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
  6961. *
  6962. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
  6963. * peer.
  6964. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
  6965. * request for this peer.
  6966. * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
  6967. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
  6968. * to measurement results for this peer.
  6969. * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
  6970. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
  6971. * request failed and peer requested not to send an additional request
  6972. * for this number of seconds.
  6973. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
  6974. * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  6975. * 9.4.2.22.10.
  6976. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
  6977. * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  6978. * 9.4.2.22.13.
  6979. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
  6980. * overridden some measurement request parameters. See
  6981. * enum qca_wlan_vendor_attr_ftm_meas_param.
  6982. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
  6983. * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
  6984. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
  6985. * results. Each entry is a nested attribute defined
  6986. * by enum qca_wlan_vendor_attr_ftm_meas.
  6987. */
  6988. enum qca_wlan_vendor_attr_ftm_peer_result {
  6989. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
  6990. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
  6991. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
  6992. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
  6993. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
  6994. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
  6995. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
  6996. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
  6997. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
  6998. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
  6999. /* keep last */
  7000. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
  7001. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
  7002. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
  7003. };
  7004. /**
  7005. * enum qca_wlan_vendor_attr_ftm_peer_result_status
  7006. *
  7007. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
  7008. * will be provided. Peer may have overridden some measurement parameters,
  7009. * in which case overridden parameters will be report by
  7010. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
  7011. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
  7012. * of performing the measurement request. No more results will be sent
  7013. * for this peer in this session.
  7014. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
  7015. * failed, and requested not to send an additional request for number
  7016. * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
  7017. * attribute.
  7018. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
  7019. * failed. Request was not sent over the air.
  7020. */
  7021. enum qca_wlan_vendor_attr_ftm_peer_result_status {
  7022. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
  7023. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
  7024. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
  7025. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
  7026. };
  7027. /**
  7028. * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
  7029. * for measurement result, per-peer
  7030. *
  7031. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
  7032. * measurement completed for this peer. No more results will be reported
  7033. * for this peer in this session.
  7034. */
  7035. enum qca_wlan_vendor_attr_ftm_peer_result_flags {
  7036. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
  7037. };
  7038. /**
  7039. * enum qca_vendor_attr_loc_session_status: Session completion status code
  7040. *
  7041. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
  7042. * successfully.
  7043. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
  7044. * by request.
  7045. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
  7046. * was invalid and was not started.
  7047. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
  7048. * and did not complete normally (for example out of resources).
  7049. */
  7050. enum qca_vendor_attr_loc_session_status {
  7051. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
  7052. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
  7053. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
  7054. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
  7055. };
  7056. /**
  7057. * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
  7058. *
  7059. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
  7060. * recorded by responder, in picoseconds.
  7061. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  7062. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
  7063. * initiator, in picoseconds.
  7064. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  7065. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
  7066. * initiator, in picoseconds.
  7067. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  7068. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
  7069. * responder, in picoseconds.
  7070. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  7071. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
  7072. * during this measurement exchange. Optional and will be provided if
  7073. * the hardware can measure it.
  7074. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
  7075. * responder. Not always provided.
  7076. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  7077. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
  7078. * responder. Not always provided.
  7079. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  7080. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
  7081. * initiator. Not always provided.
  7082. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  7083. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
  7084. * initiator. Not always provided.
  7085. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  7086. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
  7087. */
  7088. enum qca_wlan_vendor_attr_ftm_meas {
  7089. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
  7090. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
  7091. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
  7092. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
  7093. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
  7094. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
  7095. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
  7096. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
  7097. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
  7098. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
  7099. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
  7100. /* keep last */
  7101. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
  7102. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
  7103. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
  7104. };
  7105. /**
  7106. * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index
  7107. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value
  7108. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL:
  7109. * A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
  7110. * of the social channels.
  7111. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period
  7112. * A 32-bit unsigned value; the P2P listen offload period (ms).
  7113. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL:
  7114. * A 32-bit unsigned value; the P2P listen interval duration (ms).
  7115. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT:
  7116. * A 32-bit unsigned value; number of interval times the Firmware needs
  7117. * to run the offloaded P2P listen operation before it stops.
  7118. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types
  7119. * An array of unsigned 8-bit characters; vendor information elements.
  7120. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs
  7121. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW
  7122. * A 32-bit unsigned value; a control flag to indicate whether listen
  7123. * results need to be flushed to wpa_supplicant.
  7124. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason
  7125. * A 8-bit unsigned value; reason code for P2P listen offload stop
  7126. * event.
  7127. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value
  7128. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value
  7129. */
  7130. enum qca_wlan_vendor_attr_p2p_listen_offload {
  7131. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
  7132. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
  7133. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
  7134. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
  7135. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
  7136. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
  7137. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
  7138. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
  7139. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
  7140. /* keep last */
  7141. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
  7142. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
  7143. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
  7144. };
  7145. /**
  7146. * enum qca_wlan_vendor_drv_info - WLAN driver info
  7147. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid
  7148. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info
  7149. * between Firmware & Host.
  7150. */
  7151. enum qca_wlan_vendor_drv_info {
  7152. QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
  7153. QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
  7154. /* keep last */
  7155. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
  7156. QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
  7157. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
  7158. };
  7159. /**
  7160. * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
  7161. *
  7162. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
  7163. * CIR (channel impulse response) path for each antenna.
  7164. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
  7165. * of the strongest CIR path for each antenna.
  7166. */
  7167. enum qca_wlan_vendor_attr_aoa_type {
  7168. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
  7169. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
  7170. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
  7171. };
  7172. /**
  7173. * enum qca_wlan_vendor_attr_encryption_test - Attributes to
  7174. * validate encryption engine
  7175. *
  7176. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
  7177. * This will be included if the request is for decryption; if not included,
  7178. * the request is treated as a request for encryption by default.
  7179. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
  7180. * indicating the key cipher suite. Takes same values as
  7181. * NL80211_ATTR_KEY_CIPHER.
  7182. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
  7183. * Key Id to be used for encryption
  7184. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
  7185. * Key (TK) to be used for encryption/decryption
  7186. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
  7187. * Packet number to be specified for encryption/decryption
  7188. * 6 bytes for TKIP/CCMP/GCMP.
  7189. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
  7190. * representing the 802.11 packet (header + payload + FCS) that
  7191. * needs to be encrypted/decrypted.
  7192. * Encrypted/decrypted response from the driver will also be sent
  7193. * to userspace with the same attribute.
  7194. */
  7195. enum qca_wlan_vendor_attr_encryption_test {
  7196. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
  7197. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
  7198. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
  7199. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
  7200. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
  7201. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
  7202. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
  7203. /* keep last */
  7204. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
  7205. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
  7206. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
  7207. };
  7208. /**
  7209. * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
  7210. * sector for DMG RF sector operations.
  7211. *
  7212. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
  7213. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
  7214. */
  7215. enum qca_wlan_vendor_attr_dmg_rf_sector_type {
  7216. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
  7217. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
  7218. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
  7219. };
  7220. /**
  7221. * enum qca_wlan_vendor_attr_fw_state - State of firmware
  7222. *
  7223. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
  7224. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
  7225. */
  7226. enum qca_wlan_vendor_attr_fw_state {
  7227. QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
  7228. QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
  7229. QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
  7230. };
  7231. /**
  7232. * BRP antenna limit mode
  7233. *
  7234. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
  7235. * antenna limit, BRP will be performed as usual.
  7236. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
  7237. * antennas limit. the hardware may use less antennas than the
  7238. * maximum limit.
  7239. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
  7240. * use exactly the specified number of antennas for BRP.
  7241. */
  7242. enum qca_wlan_vendor_attr_brp_ant_limit_mode {
  7243. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
  7244. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
  7245. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
  7246. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
  7247. };
  7248. /**
  7249. * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
  7250. * DMG RF sector configuration for a single RF module.
  7251. * The values are defined in a compact way which closely matches
  7252. * the way it is stored in HW registers.
  7253. * The configuration provides values for 32 antennas and 8 distribution
  7254. * amplifiers, and together describes the characteristics of the RF
  7255. * sector - such as a beam in some direction with some gain.
  7256. *
  7257. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
  7258. * of RF module for this configuration.
  7259. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
  7260. * amplifier gain index. Unsigned 32 bit number containing
  7261. * bits for all 32 antennas.
  7262. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
  7263. * amplifier gain index. Unsigned 32 bit number containing
  7264. * bits for all 32 antennas.
  7265. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
  7266. * amplifier gain index. Unsigned 32 bit number containing
  7267. * bits for all 32 antennas.
  7268. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
  7269. * for first 16 antennas, 2 bits per antenna.
  7270. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
  7271. * for last 16 antennas, 2 bits per antenna.
  7272. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
  7273. * DTYPE values (3 bits) for each distribution amplifier, followed
  7274. * by X16 switch bits for each distribution amplifier. There are
  7275. * total of 8 distribution amplifiers.
  7276. */
  7277. enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
  7278. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
  7279. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
  7280. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
  7281. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
  7282. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
  7283. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
  7284. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
  7285. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
  7286. /* keep last */
  7287. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
  7288. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
  7289. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
  7290. };
  7291. /**
  7292. * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
  7293. * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver.
  7294. *
  7295. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
  7296. * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
  7297. * represents the different TDLS trigger modes.
  7298. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
  7299. * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
  7300. * of packets shall meet the criteria for implicit TDLS setup.
  7301. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx
  7302. * packets within a duration.
  7303. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate
  7304. * a TDLS setup.
  7305. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
  7306. * a TDLS Discovery to the Peer.
  7307. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
  7308. * discovery attempts to know the TDLS capability of the peer. A peer is
  7309. * marked as TDLS not capable if there is no response for all the attempts.
  7310. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
  7311. * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
  7312. * number of TX / RX frames meet the criteria for TDLS teardown.
  7313. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number
  7314. * (u32) of Tx/Rx packets within a duration
  7315. * CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link
  7316. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
  7317. * corresponding to the RSSI of the peer below which a TDLS
  7318. * setup is triggered.
  7319. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
  7320. * corresponding to the RSSI of the peer above which
  7321. * a TDLS teardown is triggered.
  7322. */
  7323. enum qca_wlan_vendor_attr_tdls_configuration {
  7324. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
  7325. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
  7326. /* Attributes configuring the TDLS Implicit Trigger */
  7327. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
  7328. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
  7329. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
  7330. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
  7331. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
  7332. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
  7333. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
  7334. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
  7335. /* keep last */
  7336. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
  7337. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
  7338. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
  7339. };
  7340. /**
  7341. * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
  7342. * the driver.
  7343. *
  7344. * The following are the different values for
  7345. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
  7346. *
  7347. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to
  7348. * initiate/teardown the TDLS connection to a respective peer comes
  7349. * from the user space. wpa_supplicant provides the commands
  7350. * TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this.
  7351. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
  7352. * setup/teardown to the eligible peer once the configured criteria
  7353. * (such as TX/RX threshold, RSSI) is met. The attributes
  7354. * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
  7355. * the different configuration criteria for the TDLS trigger from the
  7356. * host driver.
  7357. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
  7358. * the TDLS setup / teardown through the implicit mode, only to the
  7359. * configured MAC addresses(wpa_supplicant, with tdls_external_control = 1,
  7360. * configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands).
  7361. * External mode works on top of the implicit mode, thus the host Driver
  7362. * is expected to be configured in TDLS Implicit mode too to operate in
  7363. * External mode. Configuring External mode alone without Implicit
  7364. * mode is invalid.
  7365. *
  7366. * All the above implementations work as expected only when the host driver
  7367. * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP -
  7368. * representing that the TDLS message exchange is not internal to the host
  7369. * driver, but depends on wpa_supplicant to do the message exchange.
  7370. */
  7371. enum qca_wlan_vendor_tdls_trigger_mode {
  7372. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
  7373. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
  7374. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
  7375. };
  7376. /**
  7377. * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
  7378. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
  7379. * that is hard-coded in the Board Data File (BDF).
  7380. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
  7381. * that is hard-coded in the Board Data File (BDF).
  7382. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
  7383. * that is hard-coded in the Board Data File (BDF).
  7384. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
  7385. * that is hard-coded in the Board Data File (BDF).
  7386. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
  7387. * that is hard-coded in the Board Data File (BDF).
  7388. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
  7389. * source of SAR power limits, thereby disabling the SAR power
  7390. * limit feature.
  7391. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
  7392. * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  7393. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
  7394. * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  7395. *
  7396. * This enumerates the valid set of values that may be supplied for
  7397. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
  7398. * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
  7399. * the response to an instance of the
  7400. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  7401. */
  7402. enum qca_vendor_attr_sar_limits_selections {
  7403. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
  7404. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
  7405. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
  7406. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
  7407. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
  7408. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
  7409. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
  7410. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
  7411. };
  7412. /**
  7413. * enum qca_vendor_attr_sar_limits_spec_modulations -
  7414. * SAR limits specification modulation
  7415. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
  7416. * CCK modulation
  7417. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
  7418. * OFDM modulation
  7419. *
  7420. * This enumerates the valid set of values that may be supplied for
  7421. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
  7422. * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
  7423. * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
  7424. * command or in the response to an instance of the
  7425. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  7426. */
  7427. enum qca_vendor_attr_sar_limits_spec_modulations {
  7428. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
  7429. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
  7430. };
  7431. /**
  7432. * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
  7433. *
  7434. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
  7435. * select which SAR power limit table should be used. Valid
  7436. * values are enumerated in enum
  7437. * %qca_vendor_attr_sar_limits_selections. The existing SAR
  7438. * power limit selection is unchanged if this attribute is not
  7439. * present.
  7440. *
  7441. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
  7442. * which specifies the number of SAR power limit specifications
  7443. * which will follow.
  7444. *
  7445. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
  7446. * limit specifications. The number of specifications is
  7447. * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
  7448. * specification contains a set of
  7449. * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
  7450. * specification is uniquely identified by the attributes
  7451. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
  7452. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
  7453. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
  7454. * contains as a payload the attribute
  7455. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
  7456. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
  7457. * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
  7458. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
  7459. * needed based upon the value of
  7460. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
  7461. *
  7462. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
  7463. * indicate for which band this specification applies. Valid
  7464. * values are enumerated in enum %nl80211_band (although not all
  7465. * bands may be supported by a given device). If the attribute is
  7466. * not supplied then the specification will be applied to all
  7467. * supported bands.
  7468. *
  7469. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
  7470. * to indicate for which antenna chain this specification
  7471. * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
  7472. * attribute is not supplied then the specification will be
  7473. * applied to all chains.
  7474. *
  7475. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
  7476. * value to indicate for which modulation scheme this
  7477. * specification applies. Valid values are enumerated in enum
  7478. * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
  7479. * is not supplied then the specification will be applied to all
  7480. * modulation schemes.
  7481. *
  7482. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
  7483. * value to specify the actual power limit value in units of 0.5
  7484. * dBm (i.e., a value of 11 represents 5.5 dBm).
  7485. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  7486. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
  7487. *
  7488. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
  7489. * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
  7490. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  7491. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
  7492. *
  7493. * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
  7494. * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
  7495. */
  7496. enum qca_vendor_attr_sar_limits {
  7497. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
  7498. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
  7499. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
  7500. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
  7501. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
  7502. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
  7503. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
  7504. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
  7505. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
  7506. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
  7507. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
  7508. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
  7509. };
  7510. /**
  7511. * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
  7512. * offload which is an extension for LL_STATS.
  7513. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
  7514. * If MAC counters do not exceed the threshold, FW will report monitored
  7515. * link layer counters periodically as this setting. The first report is
  7516. * always triggered by this timer.
  7517. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
  7518. * For each MAC layer counter, FW holds two copies. One is the current value.
  7519. * The other is the last report. Once a current counter's increment is larger
  7520. * than the threshold, FW will indicate that counter to host even if the
  7521. * monitoring timer does not expire.
  7522. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
  7523. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
  7524. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
  7525. * failure code.
  7526. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
  7527. * 1: TX packet discarded
  7528. * 2: No ACK
  7529. * 3: Postpone
  7530. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
  7531. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
  7532. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
  7533. * Threshold for all monitored parameters. If per counter dedicated threshold
  7534. * is not enabled, this threshold will take effect.
  7535. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
  7536. * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
  7537. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
  7538. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
  7539. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
  7540. * Bit0: TX counter unit in MSDU
  7541. * Bit1: TX counter unit in MPDU
  7542. * Bit2: TX counter unit in PPDU
  7543. * Bit3: TX counter unit in byte
  7544. * Bit4: Dropped MSDUs
  7545. * Bit5: Dropped Bytes
  7546. * Bit6: MPDU retry counter
  7547. * Bit7: MPDU failure counter
  7548. * Bit8: PPDU failure counter
  7549. * Bit9: MPDU aggregation counter
  7550. * Bit10: MCS counter for ACKed MPDUs
  7551. * Bit11: MCS counter for Failed MPDUs
  7552. * Bit12: TX Delay counter
  7553. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
  7554. * Bit0: MAC RX counter unit in MPDU
  7555. * Bit1: MAC RX counter unit in byte
  7556. * Bit2: PHY RX counter unit in PPDU
  7557. * Bit3: PHY RX counter unit in byte
  7558. * Bit4: Disorder counter
  7559. * Bit5: Retry counter
  7560. * Bit6: Duplication counter
  7561. * Bit7: Discard counter
  7562. * Bit8: MPDU aggregation size counter
  7563. * Bit9: MCS counter
  7564. * Bit10: Peer STA power state change (wake to sleep) counter
  7565. * Bit11: Peer STA power save counter, total time in PS mode
  7566. * Bit12: Probe request counter
  7567. * Bit13: Other management frames counter
  7568. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
  7569. * Bit0: Idle time
  7570. * Bit1: TX time
  7571. * Bit2: time RX in current bss
  7572. * Bit3: Out of current bss time
  7573. * Bit4: Wireless medium busy time
  7574. * Bit5: RX in bad condition time
  7575. * Bit6: TX in bad condition time
  7576. * Bit7: time wlan card not available
  7577. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
  7578. * Bit0: Per channel SNR counter
  7579. * Bit1: Per channel noise floor counter
  7580. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
  7581. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
  7582. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
  7583. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
  7584. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
  7585. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
  7586. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
  7587. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
  7588. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
  7589. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
  7590. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
  7591. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
  7592. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
  7593. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
  7594. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
  7595. * aggregation stats buffer length
  7596. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
  7597. * buffer for ACKed MPDUs.
  7598. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
  7599. * buffer for failed MPDUs.
  7600. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
  7601. * length of delay stats array.
  7602. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
  7603. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
  7604. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
  7605. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
  7606. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
  7607. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
  7608. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
  7609. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
  7610. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
  7611. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
  7612. * flagged as retransmissions
  7613. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
  7614. * flagged as duplicated
  7615. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
  7616. * packets discarded
  7617. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
  7618. * stats buffer.
  7619. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
  7620. * stats buffer.
  7621. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
  7622. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
  7623. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
  7624. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
  7625. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
  7626. * requests received
  7627. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
  7628. * frames received
  7629. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
  7630. * there is no TX, nor RX, nor interference.
  7631. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
  7632. * transmitting packets.
  7633. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
  7634. * for receiving.
  7635. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
  7636. * interference detected.
  7637. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
  7638. * receiving packets with errors.
  7639. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
  7640. * TX no-ACK.
  7641. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
  7642. * the chip is unable to work in normal conditions.
  7643. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
  7644. * receiving packets in current BSS.
  7645. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
  7646. * receiving packets not in current BSS.
  7647. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
  7648. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
  7649. * This is a container for per antenna signal stats.
  7650. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
  7651. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
  7652. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
  7653. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
  7654. */
  7655. enum qca_wlan_vendor_attr_ll_stats_ext {
  7656. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
  7657. /* Attributes for configurations */
  7658. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
  7659. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
  7660. /* Peer STA power state change */
  7661. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
  7662. /* TX failure event */
  7663. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
  7664. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
  7665. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
  7666. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
  7667. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
  7668. /* MAC counters */
  7669. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
  7670. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
  7671. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
  7672. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
  7673. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
  7674. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
  7675. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
  7676. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
  7677. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
  7678. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
  7679. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
  7680. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
  7681. /* Sub-attributes for PEER_AC_TX */
  7682. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
  7683. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
  7684. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
  7685. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
  7686. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
  7687. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
  7688. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
  7689. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
  7690. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
  7691. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
  7692. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
  7693. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
  7694. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
  7695. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
  7696. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
  7697. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
  7698. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
  7699. /* Sub-attributes for PEER_AC_RX */
  7700. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
  7701. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
  7702. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
  7703. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
  7704. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
  7705. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
  7706. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
  7707. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
  7708. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
  7709. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
  7710. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
  7711. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
  7712. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
  7713. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
  7714. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
  7715. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
  7716. /* Sub-attributes for CCA_BSS */
  7717. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
  7718. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
  7719. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
  7720. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
  7721. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
  7722. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
  7723. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
  7724. /* sub-attribute for BSS_RX_TIME */
  7725. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
  7726. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
  7727. /* Sub-attributes for PEER_SIGNAL */
  7728. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
  7729. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
  7730. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
  7731. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
  7732. /* Sub-attributes for IFACE_BSS */
  7733. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
  7734. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
  7735. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
  7736. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
  7737. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
  7738. };
  7739. /**
  7740. * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
  7741. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
  7742. * in priority order as decided after ACS operation in userspace.
  7743. *
  7744. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
  7745. * One of reason code from enum qca_wlan_vendor_acs_select_reason.
  7746. *
  7747. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
  7748. * Array of nested values for each channel with following attributes:
  7749. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  7750. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  7751. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  7752. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  7753. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7754. * Note: If both the driver and user-space application supports the 6 GHz band,
  7755. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
  7756. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
  7757. * To maintain backward compatibility,
  7758. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
  7759. * is still used if either of the driver or user space application doesn't
  7760. * support the 6 GHz band.
  7761. *
  7762. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
  7763. * Primary channel number
  7764. * Note: If both the driver and user-space application supports the 6 GHz band,
  7765. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
  7766. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
  7767. * To maintain backward compatibility,
  7768. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
  7769. * is still used if either of the driver or user space application doesn't
  7770. * support the 6 GHz band.
  7771. *
  7772. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
  7773. * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
  7774. * Note: If both the driver and user-space application supports the 6 GHz band,
  7775. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
  7776. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
  7777. * To maintain backward compatibility,
  7778. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
  7779. * is still used if either of the driver or user space application
  7780. * doesn't support the 6 GHz band.
  7781. *
  7782. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
  7783. * VHT seg0 channel number
  7784. * Note: If both the driver and user-space application supports the 6 GHz band,
  7785. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
  7786. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
  7787. * To maintain backward compatibility,
  7788. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
  7789. * is still used if either of the driver or user space application
  7790. * doesn't support the 6 GHz band.
  7791. *
  7792. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
  7793. * VHT seg1 channel number
  7794. * Note: If both the driver and user-space application supports the 6 GHz band,
  7795. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
  7796. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
  7797. * To maintain backward compatibility,
  7798. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
  7799. * is still used if either of the driver or user space application
  7800. * doesn't support the 6 GHz band.
  7801. *
  7802. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
  7803. * Takes one of enum nl80211_chan_width values.
  7804. *
  7805. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
  7806. * Array of nested values for each channel with following attributes:
  7807. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
  7808. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
  7809. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
  7810. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
  7811. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7812. * Note: If user-space application has no support of the 6 GHz band, this
  7813. * attribute is optional.
  7814. *
  7815. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
  7816. * Primary channel frequency in MHz
  7817. * Note: If user-space application has no support of the 6 GHz band, this
  7818. * attribute is optional.
  7819. *
  7820. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
  7821. * Secondary channel frequency in MHz used for HT 40 MHz channels.
  7822. * Note: If user-space application has no support of the 6 GHz band, this
  7823. * attribute is optional.
  7824. *
  7825. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
  7826. * VHT seg0 channel frequency in MHz
  7827. * Note: If user-space application has no support of the 6GHz band, this
  7828. * attribute is optional.
  7829. *
  7830. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
  7831. * VHT seg1 channel frequency in MHz
  7832. * Note: If user-space application has no support of the 6 GHz band, this
  7833. * attribute is optional.
  7834. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16)
  7835. * Puncture Bitmap for selected primary channel. Optional if no support
  7836. * for EHT (IEEE 802.11be). Encoding for this attribute follows the
  7837. * convention used in the Disabled Subchannel Bitmap field of the EHT Operation
  7838. * element.
  7839. */
  7840. enum qca_wlan_vendor_attr_external_acs_channels {
  7841. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
  7842. /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
  7843. */
  7844. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
  7845. /* Array of nested values for each channel with following attributes:
  7846. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
  7847. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  7848. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  7849. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  7850. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  7851. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7852. */
  7853. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
  7854. /* This (u8) will hold values of one of enum nl80211_bands */
  7855. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
  7856. /* Primary channel (u8) */
  7857. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
  7858. /* Secondary channel (u8) used for HT 40 MHz channels */
  7859. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
  7860. /* VHT seg0 channel (u8) */
  7861. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
  7862. /* VHT seg1 channel (u8) */
  7863. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
  7864. /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
  7865. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
  7866. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
  7867. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
  7868. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
  7869. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
  7870. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
  7871. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14,
  7872. /* keep last */
  7873. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
  7874. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
  7875. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
  7876. };
  7877. /**
  7878. * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
  7879. * the ACS has to be triggered. These values are used by
  7880. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
  7881. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
  7882. */
  7883. enum qca_wlan_vendor_acs_select_reason {
  7884. /* Represents the reason that the ACS triggered during the AP start */
  7885. QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
  7886. /* Represents the reason that DFS found with the current channel */
  7887. QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
  7888. /* Represents the reason that LTE co-exist in the current band. */
  7889. QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
  7890. /* Represents the reason that generic, uncategorized interference has
  7891. * been found in the current channel.
  7892. */
  7893. QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
  7894. /* Represents the reason that excessive 802.11 interference has been
  7895. * found in the current channel.
  7896. */
  7897. QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
  7898. /* Represents the reason that generic Continuous Wave (CW) interference
  7899. * has been found in the current channel.
  7900. */
  7901. QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
  7902. /* Represents the reason that Microwave Oven (MWO) interference has been
  7903. * found in the current channel.
  7904. */
  7905. QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
  7906. /* Represents the reason that generic Frequency-Hopping Spread Spectrum
  7907. * (FHSS) interference has been found in the current channel. This may
  7908. * include 802.11 waveforms.
  7909. */
  7910. QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
  7911. /* Represents the reason that non-802.11 generic Frequency-Hopping
  7912. * Spread Spectrum (FHSS) interference has been found in the current
  7913. * channel.
  7914. */
  7915. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
  7916. /* Represents the reason that generic Wideband (WB) interference has
  7917. * been found in the current channel. This may include 802.11 waveforms.
  7918. */
  7919. QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
  7920. /* Represents the reason that non-802.11 generic Wideband (WB)
  7921. * interference has been found in the current channel.
  7922. */
  7923. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
  7924. /* Represents the reason that Jammer interference has been found in the
  7925. * current channel.
  7926. */
  7927. QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
  7928. /* Represents the reason that ACS triggered by AFC */
  7929. QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
  7930. };
  7931. /**
  7932. * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
  7933. *
  7934. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
  7935. * value to specify the gpio command, please refer to enum qca_gpio_cmd_type
  7936. * to get the available value that this item can use.
  7937. *
  7938. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
  7939. * value to specify the gpio number.
  7940. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7941. * %QCA_WLAN_VENDOR_GPIO_CONFIG or %.QCA_WLAN_VENDOR_GPIO_OUTPUT.
  7942. *
  7943. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
  7944. * value to specify the gpio output level, please refer to enum qca_gpio_value
  7945. * to get the available value that this item can use.
  7946. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7947. * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
  7948. *
  7949. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
  7950. * value to specify the gpio pull type, please refer to enum qca_gpio_pull_type
  7951. * to get the available value that this item can use.
  7952. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7953. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7954. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7955. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7956. * attribute is present.
  7957. *
  7958. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
  7959. * value to specify the gpio interrupt mode, please refer to enum
  7960. * qca_gpio_interrupt_mode to get the available value that this item can use.
  7961. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7962. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7963. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7964. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7965. * attribute is present.
  7966. *
  7967. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
  7968. * value to specify the gpio direction, please refer to enum qca_gpio_direction
  7969. * to get the available value that this item can use.
  7970. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7971. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7972. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7973. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7974. * attribute is present.
  7975. *
  7976. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
  7977. * Value to specify the mux config. Meaning of a given value is dependent
  7978. * on the target chipset and gpio pin. Must be of the range 0-15.
  7979. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7980. * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
  7981. *
  7982. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
  7983. * Value to specify the drive, Refer to enum qca_gpio_drive.
  7984. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7985. * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
  7986. *
  7987. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
  7988. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7989. * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
  7990. * other parameters for the given GPIO will be obtained from internal
  7991. * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
  7992. * specified to indicate the GPIO pin being configured.
  7993. */
  7994. enum qca_wlan_gpio_attr {
  7995. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
  7996. /* Unsigned 32-bit attribute for GPIO command */
  7997. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
  7998. /* Unsigned 32-bit attribute for GPIO PIN number to configure */
  7999. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
  8000. /* Unsigned 32-bit attribute for GPIO value to configure */
  8001. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
  8002. /* Unsigned 32-bit attribute for GPIO pull type */
  8003. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
  8004. /* Unsigned 32-bit attribute for GPIO interrupt mode */
  8005. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
  8006. /* Unsigned 32-bit attribute for GPIO direction to configure */
  8007. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
  8008. /* Unsigned 32-bit attribute for GPIO mux config */
  8009. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
  8010. /* Unsigned 32-bit attribute for GPIO drive */
  8011. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
  8012. /* Flag attribute for using internal gpio configuration */
  8013. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
  8014. /* keep last */
  8015. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
  8016. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
  8017. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1,
  8018. };
  8019. /**
  8020. * enum gpio_cmd_type - GPIO configuration command type
  8021. * @QCA_WLAN_VENDOR_GPIO_CONFIG: set gpio configuration info
  8022. * @QCA_WLAN_VENDOR_GPIO_OUTPUT: set gpio output level
  8023. */
  8024. enum qca_gpio_cmd_type {
  8025. QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
  8026. QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
  8027. };
  8028. /**
  8029. * enum qca_gpio_pull_type - GPIO pull type
  8030. * @QCA_WLAN_GPIO_PULL_NONE: set gpio pull type to none
  8031. * @QCA_WLAN_GPIO_PULL_UP: set gpio pull up
  8032. * @QCA_WLAN_GPIO_PULL_DOWN: set gpio pull down
  8033. */
  8034. enum qca_gpio_pull_type {
  8035. QCA_WLAN_GPIO_PULL_NONE = 0,
  8036. QCA_WLAN_GPIO_PULL_UP = 1,
  8037. QCA_WLAN_GPIO_PULL_DOWN = 2,
  8038. QCA_WLAN_GPIO_PULL_MAX,
  8039. };
  8040. /**
  8041. * enum qca_gpio_direction - GPIO direction
  8042. * @QCA_WLAN_GPIO_INPUT: set gpio as input mode
  8043. * @QCA_WLAN_GPIO_OUTPUT: set gpio as output mode
  8044. * @QCA_WLAN_GPIO_VALUE_MAX: invalid value
  8045. */
  8046. enum qca_gpio_direction {
  8047. QCA_WLAN_GPIO_INPUT = 0,
  8048. QCA_WLAN_GPIO_OUTPUT = 1,
  8049. QCA_WLAN_GPIO_DIR_MAX,
  8050. };
  8051. /**
  8052. * enum qca_gpio_value - GPIO Value
  8053. * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
  8054. * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
  8055. * @QCA_WLAN_GPIO_LEVEL_MAX: invalid value
  8056. */
  8057. enum qca_gpio_value {
  8058. QCA_WLAN_GPIO_LEVEL_LOW = 0,
  8059. QCA_WLAN_GPIO_LEVEL_HIGH = 1,
  8060. QCA_WLAN_GPIO_LEVEL_MAX,
  8061. };
  8062. /**
  8063. * enum gpio_interrupt_mode - GPIO interrupt mode
  8064. * @QCA_WLAN_GPIO_INTMODE_DISABLE: disable interrupt trigger
  8065. * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: interrupt with gpio rising edge trigger
  8066. * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: interrupt with gpio falling edge trigger
  8067. * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: interrupt with gpio both edge trigger
  8068. * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: interrupt with gpio level low trigger
  8069. * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: interrupt with gpio level high trigger
  8070. * @QCA_WLAN_GPIO_INTMODE_MAX: invalid value
  8071. */
  8072. enum qca_gpio_interrupt_mode {
  8073. QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
  8074. QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
  8075. QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
  8076. QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
  8077. QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
  8078. QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
  8079. QCA_WLAN_GPIO_INTMODE_MAX,
  8080. };
  8081. /**
  8082. * enum gpio_drive - GPIO drive
  8083. * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
  8084. * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
  8085. * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
  8086. * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
  8087. * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
  8088. * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
  8089. * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
  8090. * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
  8091. * @QCA_WLAN_GPIO_DRIVE_MAX: invalid gpio drive
  8092. */
  8093. enum qca_gpio_drive {
  8094. QCA_WLAN_GPIO_DRIVE_2MA = 0,
  8095. QCA_WLAN_GPIO_DRIVE_4MA = 1,
  8096. QCA_WLAN_GPIO_DRIVE_6MA = 2,
  8097. QCA_WLAN_GPIO_DRIVE_8MA = 3,
  8098. QCA_WLAN_GPIO_DRIVE_10MA = 4,
  8099. QCA_WLAN_GPIO_DRIVE_12MA = 5,
  8100. QCA_WLAN_GPIO_DRIVE_14MA = 6,
  8101. QCA_WLAN_GPIO_DRIVE_16MA = 7,
  8102. QCA_WLAN_GPIO_DRIVE_MAX,
  8103. };
  8104. /**
  8105. * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
  8106. * MSDUQ depth threshold per peer per tid in the target
  8107. *
  8108. * Associated Vendor Command:
  8109. * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
  8110. */
  8111. enum qca_wlan_set_qdepth_thresh_attr {
  8112. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
  8113. /* 6-byte MAC address */
  8114. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
  8115. /* Unsigned 32-bit attribute for holding the TID */
  8116. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
  8117. /* Unsigned 32-bit attribute for holding the update mask
  8118. * bit 0 - Update high priority msdu qdepth threshold
  8119. * bit 1 - Update low priority msdu qdepth threshold
  8120. * bit 2 - Update UDP msdu qdepth threshold
  8121. * bit 3 - Update Non UDP msdu qdepth threshold
  8122. * rest of bits are reserved
  8123. */
  8124. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
  8125. /* Unsigned 32-bit attribute for holding the threshold value */
  8126. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
  8127. /* keep last */
  8128. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
  8129. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
  8130. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
  8131. };
  8132. /**
  8133. * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
  8134. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
  8135. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
  8136. * external ACS policies to select the channels w.r.t. the PCL weights.
  8137. * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
  8138. * their PCL weights.)
  8139. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
  8140. * select a channel with non-zero PCL weight.
  8141. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
  8142. * channel with non-zero PCL weight.
  8143. *
  8144. */
  8145. enum qca_wlan_vendor_attr_external_acs_policy {
  8146. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
  8147. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
  8148. };
  8149. /**
  8150. * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
  8151. */
  8152. enum qca_wlan_vendor_attr_spectral_scan {
  8153. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
  8154. /*
  8155. * Number of times the chip enters spectral scan mode before
  8156. * deactivating spectral scans. When set to 0, chip will enter spectral
  8157. * scan mode continuously. u32 attribute.
  8158. */
  8159. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
  8160. /*
  8161. * Spectral scan period. Period increment resolution is 256*Tclk,
  8162. * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
  8163. */
  8164. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
  8165. /* Spectral scan priority. u32 attribute. */
  8166. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
  8167. /* Number of FFT data points to compute. u32 attribute. */
  8168. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
  8169. /*
  8170. * Enable targeted gain change before starting the spectral scan FFT.
  8171. * u32 attribute.
  8172. */
  8173. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
  8174. /* Restart a queued spectral scan. u32 attribute. */
  8175. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
  8176. /*
  8177. * Noise floor reference number for the calculation of bin power.
  8178. * u32 attribute.
  8179. */
  8180. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
  8181. /*
  8182. * Disallow spectral scan triggers after TX/RX packets by setting
  8183. * this delay value to roughly SIFS time period or greater.
  8184. * u32 attribute.
  8185. */
  8186. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
  8187. /*
  8188. * Number of strong bins (inclusive) per sub-channel, below
  8189. * which a signal is declared a narrow band tone. u32 attribute.
  8190. */
  8191. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
  8192. /*
  8193. * Specify the threshold over which a bin is declared strong (for
  8194. * scan bandwidth analysis). u32 attribute.
  8195. */
  8196. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
  8197. /* Spectral scan report mode. u32 attribute. */
  8198. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
  8199. /*
  8200. * RSSI report mode, if the ADC RSSI is below
  8201. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
  8202. * then FFTs will not trigger, but timestamps and summaries get
  8203. * reported. u32 attribute.
  8204. */
  8205. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
  8206. /*
  8207. * ADC RSSI must be greater than or equal to this threshold (signed dB)
  8208. * to ensure spectral scan reporting with normal error code.
  8209. * u32 attribute.
  8210. */
  8211. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
  8212. /*
  8213. * Format of frequency bin magnitude for spectral scan triggered FFTs:
  8214. * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
  8215. * u32 attribute.
  8216. */
  8217. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
  8218. /*
  8219. * Format of FFT report to software for spectral scan triggered FFTs.
  8220. * 0: No FFT report (only spectral scan summary report)
  8221. * 1: 2-dword summary of metrics for each completed FFT + spectral scan
  8222. * report
  8223. * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
  8224. * bins (in-band) per FFT + spectral scan summary report
  8225. * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
  8226. * bins (all) per FFT + spectral scan summary report
  8227. * u32 attribute.
  8228. */
  8229. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
  8230. /*
  8231. * Number of LSBs to shift out in order to scale the FFT bins.
  8232. * u32 attribute.
  8233. */
  8234. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
  8235. /*
  8236. * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
  8237. * in dBm power. u32 attribute.
  8238. */
  8239. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
  8240. /*
  8241. * Per chain enable mask to select input ADC for search FFT.
  8242. * u32 attribute.
  8243. */
  8244. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
  8245. /*
  8246. * An unsigned 64-bit integer provided by host driver to identify the
  8247. * spectral scan request. This attribute is included in the scan
  8248. * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
  8249. * and used as an attribute in
  8250. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
  8251. * specific scan to be stopped.
  8252. */
  8253. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
  8254. /* Skip interval for FFT reports. u32 attribute */
  8255. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
  8256. /* Set to report only one set of FFT results.
  8257. * u32 attribute.
  8258. */
  8259. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
  8260. /* Debug level for spectral module in driver.
  8261. * 0 : Verbosity level 0
  8262. * 1 : Verbosity level 1
  8263. * 2 : Verbosity level 2
  8264. * 3 : Matched filterID display
  8265. * 4 : One time dump of FFT report
  8266. * u32 attribute.
  8267. */
  8268. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
  8269. /* Type of spectral scan request. u32 attribute.
  8270. * It uses values defined in enum
  8271. * qca_wlan_vendor_attr_spectral_scan_request_type.
  8272. */
  8273. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
  8274. /* This specifies the frequency span over which spectral
  8275. * scan would be carried out. Its value depends on the
  8276. * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
  8277. * the relation is as follows.
  8278. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
  8279. * Not applicable. Spectral scan would happen in the
  8280. * operating span.
  8281. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
  8282. * Center frequency (in MHz) of the span of interest or
  8283. * for convenience, center frequency (in MHz) of any channel
  8284. * in the span of interest. For 80+80 MHz agile spectral scan
  8285. * request it represents center frequency (in MHz) of the primary
  8286. * 80 MHz span or for convenience, center frequency (in MHz) of any
  8287. * channel in the primary 80 MHz span. If agile spectral scan is
  8288. * initiated without setting a valid frequency it returns the
  8289. * error code
  8290. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
  8291. * u32 attribute.
  8292. */
  8293. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
  8294. /* Spectral scan mode. u32 attribute.
  8295. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  8296. * If this attribute is not present, it is assumed to be
  8297. * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
  8298. */
  8299. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
  8300. /* Spectral scan error code. u32 attribute.
  8301. * It uses values defined in enum
  8302. * qca_wlan_vendor_spectral_scan_error_code.
  8303. * This attribute is included only in failure scenarios.
  8304. */
  8305. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
  8306. /* 8-bit unsigned value to enable/disable debug of the
  8307. * Spectral DMA ring.
  8308. * 1-enable, 0-disable
  8309. */
  8310. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
  8311. /* 8-bit unsigned value to enable/disable debug of the
  8312. * Spectral DMA buffers.
  8313. * 1-enable, 0-disable
  8314. */
  8315. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
  8316. /* This specifies the frequency span over which spectral scan would be
  8317. * carried out. Its value depends on the value of
  8318. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
  8319. * follows.
  8320. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
  8321. * Not applicable. Spectral scan would happen in the operating span.
  8322. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
  8323. * This attribute is applicable only for agile spectral scan
  8324. * requests in 80+80 MHz mode. It represents center frequency (in
  8325. * MHz) of the secondary 80 MHz span or for convenience, center
  8326. * frequency (in MHz) of any channel in the secondary 80 MHz span.
  8327. * u32 attribute.
  8328. */
  8329. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
  8330. /* This attribute specifies the bandwidth to be used for Spectral scan
  8331. * operation. This is an u8 attribute and uses the values in enum
  8332. * nl80211_chan_width. This is an optional attribute.
  8333. * If this attribute is not populated, the driver should configure the
  8334. * Spectral scan bandwidth to the maximum value supported by the target
  8335. * for the current operating bandwidth.
  8336. */
  8337. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
  8338. /* Spectral FFT recapture flag attribute, to enable/disable FFT
  8339. * recapture. Recapture can only be enabled for Scan period greater
  8340. * than 52us.
  8341. * If this attribute is enabled, re-triggers will be enabled in uCode
  8342. * when AGC gain changes.
  8343. */
  8344. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
  8345. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
  8346. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
  8347. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
  8348. };
  8349. /**
  8350. * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
  8351. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
  8352. */
  8353. enum qca_wlan_vendor_attr_spectral_diag_stats {
  8354. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
  8355. /* Number of spectral TLV signature mismatches.
  8356. * u64 attribute.
  8357. */
  8358. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
  8359. /* Number of spectral phyerror events with insufficient length when
  8360. * parsing for secondary 80 search FFT report. u64 attribute.
  8361. */
  8362. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
  8363. /* Number of spectral phyerror events without secondary 80
  8364. * search FFT report. u64 attribute.
  8365. */
  8366. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
  8367. /* Number of spectral phyerror events with vht operation segment 1 id
  8368. * mismatches in search fft report. u64 attribute.
  8369. */
  8370. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
  8371. /* Number of spectral phyerror events with vht operation segment 2 id
  8372. * mismatches in search fft report. u64 attribute.
  8373. */
  8374. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
  8375. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
  8376. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
  8377. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
  8378. };
  8379. /**
  8380. * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
  8381. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
  8382. */
  8383. enum qca_wlan_vendor_attr_spectral_cap {
  8384. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
  8385. /* Flag attribute to indicate phydiag capability */
  8386. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
  8387. /* Flag attribute to indicate radar detection capability */
  8388. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
  8389. /* Flag attribute to indicate spectral capability */
  8390. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
  8391. /* Flag attribute to indicate advanced spectral capability */
  8392. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
  8393. /* Spectral hardware generation. u32 attribute.
  8394. * It uses values defined in enum
  8395. * qca_wlan_vendor_spectral_scan_cap_hw_gen.
  8396. */
  8397. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
  8398. /* Spectral bin scaling formula ID. u16 attribute.
  8399. * It uses values defined in enum
  8400. * qca_wlan_vendor_spectral_scan_cap_formula_id.
  8401. */
  8402. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
  8403. /* Spectral bin scaling param - low level offset.
  8404. * s16 attribute.
  8405. */
  8406. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
  8407. /* Spectral bin scaling param - high level offset.
  8408. * s16 attribute.
  8409. */
  8410. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
  8411. /* Spectral bin scaling param - RSSI threshold.
  8412. * s16 attribute.
  8413. */
  8414. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
  8415. /* Spectral bin scaling param - default AGC max gain.
  8416. * u8 attribute.
  8417. */
  8418. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
  8419. /* Flag attribute to indicate agile spectral scan capability
  8420. * for 20/40/80 MHz modes.
  8421. */
  8422. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
  8423. /* Flag attribute to indicate agile spectral scan capability
  8424. * for 160 MHz mode.
  8425. */
  8426. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
  8427. /* Flag attribute to indicate agile spectral scan capability
  8428. * for 80+80 MHz mode.
  8429. */
  8430. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
  8431. /* Number of spectral detectors used for scan in 20 MHz.
  8432. * u32 attribute.
  8433. */
  8434. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
  8435. /* Number of spectral detectors used for scan in 40 MHz.
  8436. * u32 attribute.
  8437. */
  8438. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
  8439. /* Number of spectral detectors used for scan in 80 MHz.
  8440. * u32 attribute.
  8441. */
  8442. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
  8443. /* Number of spectral detectors used for scan in 160 MHz.
  8444. * u32 attribute.
  8445. */
  8446. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
  8447. /* Number of spectral detectors used for scan in 80+80 MHz.
  8448. * u32 attribute.
  8449. */
  8450. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
  8451. /* Flag attribute to indicate agile spectral scan capability
  8452. * for 320 MHz mode.
  8453. */
  8454. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
  8455. /* Number of spectral detectors used for scan in 320 MHz.
  8456. * u32 attribute.
  8457. */
  8458. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
  8459. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
  8460. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
  8461. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
  8462. };
  8463. /**
  8464. * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
  8465. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
  8466. */
  8467. enum qca_wlan_vendor_attr_spectral_scan_status {
  8468. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
  8469. /* Flag attribute to indicate whether spectral scan is enabled */
  8470. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
  8471. /* Flag attribute to indicate whether spectral scan is in progress*/
  8472. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
  8473. /* Spectral scan mode. u32 attribute.
  8474. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  8475. * If this attribute is not present, normal mode
  8476. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
  8477. * requested.
  8478. */
  8479. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
  8480. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
  8481. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
  8482. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
  8483. };
  8484. /**
  8485. * enum qca_wlan_vendor_attr_config_latency_level - Level for
  8486. * wlan latency module.
  8487. *
  8488. * There will be various of Wi-Fi functionality like scan/roaming/adaptive
  8489. * power saving which would causing data exchange out of service, this
  8490. * would be a big impact on latency. For latency sensitive applications over
  8491. * Wi-Fi are intolerant to such operations and thus would configure them
  8492. * to meet their respective needs. It is well understood by such applications
  8493. * that altering the default behavior would degrade the Wi-Fi functionality
  8494. * w.r.t the above pointed WLAN operations.
  8495. *
  8496. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
  8497. * Default WLAN operation level which throughput orientated.
  8498. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
  8499. * Use XR level to benefit XR (extended reality) application to achieve
  8500. * latency and power by via constraint scan/roaming/adaptive PS.
  8501. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
  8502. * Use low latency level to benefit application like concurrent
  8503. * downloading or video streaming via constraint scan/adaptive PS.
  8504. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
  8505. * Use ultra low latency level to benefit for gaming/voice
  8506. * application via constraint scan/roaming/adaptive PS.
  8507. */
  8508. enum qca_wlan_vendor_attr_config_latency_level {
  8509. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
  8510. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
  8511. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
  8512. /* legacy name */
  8513. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
  8514. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
  8515. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
  8516. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
  8517. /* keep last */
  8518. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
  8519. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
  8520. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
  8521. };
  8522. /**
  8523. * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
  8524. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
  8525. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
  8526. * spectral scan request types.
  8527. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
  8528. * set the spectral parameters and start scan.
  8529. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
  8530. * only set the spectral parameters.
  8531. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
  8532. * only start the spectral scan.
  8533. */
  8534. enum qca_wlan_vendor_attr_spectral_scan_request_type {
  8535. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
  8536. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
  8537. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
  8538. };
  8539. /**
  8540. * qca_wlan_vendor_spectral_scan_mode: Attribute values for
  8541. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
  8542. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
  8543. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
  8544. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
  8545. * spectral scan modes.
  8546. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
  8547. * spectral scan in the current operating span.
  8548. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
  8549. * spectral scan in the configured agile span.
  8550. */
  8551. enum qca_wlan_vendor_spectral_scan_mode {
  8552. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
  8553. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
  8554. };
  8555. /**
  8556. * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
  8557. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
  8558. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
  8559. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
  8560. * of a parameter is not supported.
  8561. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
  8562. * mode is not supported.
  8563. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
  8564. * has invalid value.
  8565. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
  8566. * is not initialized.
  8567. */
  8568. enum qca_wlan_vendor_spectral_scan_error_code {
  8569. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
  8570. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
  8571. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
  8572. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
  8573. };
  8574. /**
  8575. * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
  8576. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
  8577. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  8578. * spectral hardware generation.
  8579. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
  8580. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
  8581. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
  8582. */
  8583. enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
  8584. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
  8585. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
  8586. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
  8587. };
  8588. /**
  8589. * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
  8590. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
  8591. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  8592. * Spectral bin scaling formula ID.
  8593. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
  8594. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
  8595. * and RSSI threshold based formula.
  8596. */
  8597. enum qca_wlan_vendor_spectral_scan_cap_formula_id {
  8598. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
  8599. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
  8600. };
  8601. /**
  8602. * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
  8603. * RF Operating Parameter (RROP) information is available, and if so, at which
  8604. * point in the application-driver interaction sequence it can be retrieved by
  8605. * the application from the driver. This point may vary by architecture and
  8606. * other factors. This is a u16 value.
  8607. */
  8608. enum qca_wlan_vendor_attr_rropavail_info {
  8609. /* RROP information is unavailable. */
  8610. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
  8611. /* RROP information is available and the application can retrieve the
  8612. * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
  8613. * event from the driver.
  8614. */
  8615. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
  8616. /* RROP information is available only after a vendor specific scan
  8617. * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
  8618. * successfully completed. The application can retrieve the information
  8619. * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
  8620. * the driver.
  8621. */
  8622. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
  8623. };
  8624. /**
  8625. * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
  8626. * Representative RF Operating Parameter (RROP) information. It is sent for the
  8627. * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
  8628. * intended for use by external Auto Channel Selection applications. It provides
  8629. * guidance values for some RF parameters that are used by the system during
  8630. * operation. These values could vary by channel, band, radio, and so on.
  8631. */
  8632. enum qca_wlan_vendor_attr_rrop_info {
  8633. QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
  8634. /* Representative Tx Power List (RTPL) which has an array of nested
  8635. * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
  8636. */
  8637. QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
  8638. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
  8639. QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
  8640. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
  8641. };
  8642. /**
  8643. * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
  8644. * entry instances in the Representative Tx Power List (RTPL). It provides
  8645. * simplified power values intended for helping external Auto channel Selection
  8646. * applications compare potential Tx power performance between channels, other
  8647. * operating conditions remaining identical. These values are not necessarily
  8648. * the actual Tx power values that will be used by the system. They are also not
  8649. * necessarily the max or average values that will be used. Instead, they are
  8650. * relative, summarized keys for algorithmic use computed by the driver or
  8651. * underlying firmware considering a number of vendor specific factors.
  8652. */
  8653. enum qca_wlan_vendor_attr_rtplinst {
  8654. QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
  8655. /* Primary channel number (u8).
  8656. * Note: If both the driver and user space application support the
  8657. * 6 GHz band, this attribute is deprecated and
  8658. * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
  8659. * maintain backward compatibility,
  8660. * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
  8661. * driver or user space application or both do not support the 6 GHz
  8662. * band.
  8663. */
  8664. QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
  8665. /* Representative Tx power in dBm (s32) with emphasis on throughput. */
  8666. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
  8667. /* Representative Tx power in dBm (s32) with emphasis on range. */
  8668. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
  8669. /* Primary channel center frequency (u32) in MHz */
  8670. QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
  8671. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
  8672. QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
  8673. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
  8674. };
  8675. /**
  8676. * enum qca_wlan_vendor_attr_mac - Used by the vendor command
  8677. * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  8678. *
  8679. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an
  8680. * array of nested values as per attributes in
  8681. * enum qca_wlan_vendor_attr_mac_mode_info.
  8682. */
  8683. enum qca_wlan_vendor_attr_mac {
  8684. QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
  8685. QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
  8686. /* keep last */
  8687. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
  8688. QCA_WLAN_VENDOR_ATTR_MAC_MAX =
  8689. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
  8690. };
  8691. /**
  8692. * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
  8693. * WiFi netdev interface on a respective MAC. Used by the attribute
  8694. * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
  8695. *
  8696. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32).
  8697. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of
  8698. * the connected Wi-Fi interface(u32).
  8699. */
  8700. enum qca_wlan_vendor_attr_mac_iface_info {
  8701. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
  8702. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
  8703. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
  8704. /* keep last */
  8705. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
  8706. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
  8707. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
  8708. };
  8709. /**
  8710. * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
  8711. * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
  8712. * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  8713. *
  8714. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the
  8715. * MAC (u32)
  8716. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC
  8717. * at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described
  8718. * in enum nl80211_band.
  8719. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev
  8720. * interfaces associated with this MAC. Represented by enum
  8721. * qca_wlan_vendor_attr_mac_iface_info.
  8722. */
  8723. enum qca_wlan_vendor_attr_mac_info {
  8724. QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
  8725. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
  8726. QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
  8727. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
  8728. /* keep last */
  8729. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
  8730. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
  8731. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
  8732. };
  8733. /**
  8734. * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
  8735. * to get thermal status from driver/firmware.
  8736. * enum values are used for NL attributes encapsulated inside
  8737. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
  8738. *
  8739. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
  8740. * of a thermal level in Celsius. u32 size.
  8741. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
  8742. * of a thermal level in Celsius. u32 size.
  8743. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
  8744. * thermal level in milliseconds. u32 size.
  8745. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
  8746. * of times the temperature crossed into the temperature range defined by the
  8747. * thermal level from both higher and lower directions. u32 size.
  8748. */
  8749. enum qca_wlan_vendor_attr_thermal_stats {
  8750. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
  8751. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
  8752. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
  8753. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
  8754. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
  8755. /* keep last */
  8756. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
  8757. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
  8758. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
  8759. };
  8760. /**
  8761. * enum he_fragmentation_val - HE fragmentation support values
  8762. * Indicates level of dynamic fragmentation that is supported by
  8763. * a STA as a recipient.
  8764. * HE fragmentation values are defined as per 11ax spec and are used in
  8765. * HE capability IE to advertise the support. These values are validated
  8766. * in the driver to check the device capability and advertised in the HE
  8767. * capability element.
  8768. *
  8769. * @HE_FRAG_DISABLE: no support for dynamic fragmentation
  8770. * @HE_FRAG_LEVEL1: support for dynamic fragments that are
  8771. * contained within an MPDU or S-MPDU, no support for dynamic fragments
  8772. * within an A-MPDU that is not an S-MPDU.
  8773. * @HE_FRAG_LEVEL2: support for dynamic fragments that are
  8774. * contained within an MPDU or S-MPDU and support for up to one dynamic
  8775. * fragment for each MSDU, each A-MSDU if supported by the recipient, and
  8776. * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
  8777. * MPDU or S-MPDU.
  8778. * @HE_FRAG_LEVEL3: support for dynamic fragments that are
  8779. * contained within an MPDU or S-MPDU and support for multiple dynamic
  8780. * fragments for each MSDU and for each A-MSDU if supported by the
  8781. * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
  8782. * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
  8783. */
  8784. enum he_fragmentation_val {
  8785. HE_FRAG_DISABLE,
  8786. HE_FRAG_LEVEL1,
  8787. HE_FRAG_LEVEL2,
  8788. HE_FRAG_LEVEL3,
  8789. };
  8790. /**
  8791. * enum he_mcs_config - HE MCS support configuration
  8792. *
  8793. * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
  8794. * These values are used in driver to configure the HE MCS map to advertise
  8795. * Tx/Rx MCS map in HE capability and these values are applied for all the
  8796. * streams supported by the device. To configure MCS for different bandwidths,
  8797. * vendor command needs to be sent using this attribute with appropriate value.
  8798. * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
  8799. * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS
  8800. * for HE_160_MCS0_11 send this command using HE MCS config attribute with
  8801. * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11;
  8802. *
  8803. * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7
  8804. * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9
  8805. * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11
  8806. * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7
  8807. * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9
  8808. * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11
  8809. * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7
  8810. * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9
  8811. * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11
  8812. */
  8813. enum he_mcs_config {
  8814. HE_80_MCS0_7 = 0,
  8815. HE_80_MCS0_9 = 1,
  8816. HE_80_MCS0_11 = 2,
  8817. HE_160_MCS0_7 = 4,
  8818. HE_160_MCS0_9 = 5,
  8819. HE_160_MCS0_11 = 6,
  8820. HE_80p80_MCS0_7 = 8,
  8821. HE_80p80_MCS0_9 = 9,
  8822. HE_80p80_MCS0_11 = 10,
  8823. };
  8824. /**
  8825. * enum qca_wlan_ba_session_config - BA session configuration
  8826. *
  8827. * Indicates the configuration values for BA session configuration attribute.
  8828. *
  8829. * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
  8830. * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
  8831. */
  8832. enum qca_wlan_ba_session_config {
  8833. QCA_WLAN_ADD_BA = 1,
  8834. QCA_WLAN_DELETE_BA = 2,
  8835. };
  8836. /**
  8837. * enum qca_wlan_ac_type - access category type
  8838. *
  8839. * Indicates the access category type value.
  8840. *
  8841. * @QCA_WLAN_AC_BE: BE access category
  8842. * @QCA_WLAN_AC_BK: BK access category
  8843. * @QCA_WLAN_AC_VI: VI access category
  8844. * @QCA_WLAN_AC_VO: VO access category
  8845. * @QCA_WLAN_AC_ALL: All ACs
  8846. */
  8847. enum qca_wlan_ac_type {
  8848. QCA_WLAN_AC_BE = 0,
  8849. QCA_WLAN_AC_BK = 1,
  8850. QCA_WLAN_AC_VI = 2,
  8851. QCA_WLAN_AC_VO = 3,
  8852. QCA_WLAN_AC_ALL = 4,
  8853. };
  8854. /**
  8855. * enum qca_wlan_he_ltf_cfg - HE LTF configuration
  8856. *
  8857. * Indicates the HE LTF configuration value.
  8858. *
  8859. * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to
  8860. * the mandatory HE-LTF based on the GI setting
  8861. * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
  8862. * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
  8863. * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
  8864. */
  8865. enum qca_wlan_he_ltf_cfg {
  8866. QCA_WLAN_HE_LTF_AUTO = 0,
  8867. QCA_WLAN_HE_LTF_1X = 1,
  8868. QCA_WLAN_HE_LTF_2X = 2,
  8869. QCA_WLAN_HE_LTF_4X = 3,
  8870. };
  8871. /**
  8872. * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
  8873. *
  8874. * Indicates the HE trigger frame MAC padding duration value.
  8875. *
  8876. * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
  8877. * process the trigger frame.
  8878. * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
  8879. * trigger frame.
  8880. * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
  8881. * trigger frame.
  8882. */
  8883. enum qca_wlan_he_mac_padding_dur {
  8884. QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
  8885. QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
  8886. QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
  8887. };
  8888. /**
  8889. * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
  8890. *
  8891. * Indicates the HE Operating mode control channel width setting value.
  8892. *
  8893. * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
  8894. * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
  8895. * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
  8896. * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
  8897. */
  8898. enum qca_wlan_he_om_ctrl_ch_bw {
  8899. QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
  8900. QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
  8901. QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
  8902. QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
  8903. };
  8904. /**
  8905. * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
  8906. *
  8907. * Indicates the frame types to use for keep alive data.
  8908. *
  8909. * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
  8910. * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
  8911. * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
  8912. */
  8913. enum qca_wlan_keep_alive_data_type {
  8914. QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
  8915. QCA_WLAN_KEEP_ALIVE_DATA = 1,
  8916. QCA_WLAN_KEEP_ALIVE_MGMT = 2,
  8917. };
  8918. /**
  8919. * enum eht_mcs_config - EHT MCS support configuration
  8920. *
  8921. * Configures the EHT Tx/Rx MCS map in EHT Capability element.
  8922. * These values are used in the driver to configure the EHT MCS map to advertise
  8923. * Tx/Rx MCS map in EHT capability and these values are applied for all the
  8924. * streams supported by the device.
  8925. * @EHT_MCS0_7: EHT MCS 0 to 7 support
  8926. * @EHT_MCS0_9: EHT MCS 0 to 9 support
  8927. * @EHT_MCS0_11: EHT MCS 0 to 11 support
  8928. * @EHT_MCS0_13: EHT MCS 0 to 13 support
  8929. */
  8930. enum eht_mcs_config {
  8931. EHT_MCS0_7 = 0,
  8932. EHT_MCS0_9 = 1,
  8933. EHT_MCS0_11 = 2,
  8934. EHT_MCS0_13 = 3,
  8935. };
  8936. /**
  8937. * enum qca_wlan_eht_mlo_mode: EHT MLO mode configuration.
  8938. * @QCA_WLAN_EHT_MODE_INVALID: Invalid.
  8939. * @QCA_WLAN_EHT_MLSR: Multi-link single radio mode
  8940. * @QCA_WLAN_EHT_EMLSR: Enhanced multi-link single radio mode.
  8941. * @QCA_WLAN_EHT_NON_STR_MLMR: Non simultaneous transmit and receive
  8942. * multi-link multi radio mode.
  8943. * @QCA_WLAN_EHT_STR_MLMR: Simultaneous transmit and receive
  8944. * multi-link multi radio mode.
  8945. */
  8946. enum qca_wlan_eht_mlo_mode {
  8947. QCA_WLAN_EHT_MODE_INVALID = 0,
  8948. QCA_WLAN_EHT_MLSR = 1,
  8949. QCA_WLAN_EHT_EMLSR = 2,
  8950. QCA_WLAN_EHT_NON_STR_MLMR = 3,
  8951. QCA_WLAN_EHT_STR_MLMR = 4,
  8952. };
  8953. /**
  8954. * enum qca_wlan_emlsr_mode: Enhanced Multi-link Single Radio mode configuration
  8955. * @QCA_WLAN_EMLSR_MODE_ENTER: Enter EMLSR mode
  8956. * @QCA_WLAN_EMLSR_MODE_EXIT: Exit EMLSR mode
  8957. */
  8958. enum qca_wlan_emlsr_mode {
  8959. QCA_WLAN_EMLSR_MODE_ENTER = 0,
  8960. QCA_WLAN_EMLSR_MODE_EXIT = 1,
  8961. };
  8962. /**
  8963. * enum qca_wlan_ttlm_negotiation_support: TID-To-Link Mapping Negotiation
  8964. * support
  8965. * @QCA_WLAN_TTLM_DISABLE: TTLM disabled
  8966. * @QCA_WLAN_TTLM_SAME_LINK_SET: Mapping of all TIDs to the same link set,
  8967. * both DL and UL
  8968. * @QCA_WLAN_TTLM_SAME_DIFF_LINK_SET: Mapping of each TID to the same or
  8969. * different link set
  8970. */
  8971. enum qca_wlan_ttlm_negotiation_support {
  8972. QCA_WLAN_TTLM_DISABLE = 0,
  8973. QCA_WLAN_TTLM_SAME_LINK_SET = 1,
  8974. QCA_WLAN_TTLM_SAME_DIFF_LINK_SET = 2,
  8975. };
  8976. /**
  8977. * enum qca_wlan_vendor_attr_omi_tx: Represents attributes for HE and
  8978. * EHT operating mode control transmit request. These attributes are
  8979. * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX and
  8980. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  8981. *
  8982. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
  8983. * indicates the maximum number of spatial streams, NSS, that the STA
  8984. * supports in reception for PPDU bandwidths less than or equal to 80 MHz
  8985. * and is set to NSS - 1.
  8986. *
  8987. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
  8988. * indicates the operating channel width supported by the STA for both
  8989. * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
  8990. *
  8991. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
  8992. * indicates the all trigger based UL MU operations by the STA.
  8993. * 0 - UL MU operations are enabled by the STA.
  8994. * 1 - All triggered UL MU transmissions are suspended by the STA.
  8995. *
  8996. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
  8997. * indicates the maximum number of space-time streams, NSTS, that
  8998. * the STA supports in transmission and is set to NSTS - 1.
  8999. *
  9000. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
  9001. * combined with the UL MU Disable subfield and the recipient's setting
  9002. * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
  9003. * capabilities to determine which HE TB PPDUs are possible by the
  9004. * STA to transmit.
  9005. * 0 - UL MU data operations are enabled by the STA.
  9006. * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
  9007. * bit is not set, else UL MU Tx is suspended.
  9008. *
  9009. * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN: 8-bit unsigned value in the EHT OM
  9010. * Control subfield combined with the Rx NSS subfield in the OM Control subfield
  9011. * indicates NSS - 1, where NSS is the maximum number of spatial streams that
  9012. * STA supports in reception for PPDU bandwidths less than or equal to 80 MHz.
  9013. *
  9014. * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN: 8-bit unsigned value indicates
  9015. * 320 MHz operating channel width supported by the EHT STA for both reception
  9016. * and transmission.
  9017. *
  9018. * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN: 8-bit unsigned value in the EHT OM
  9019. * Control subfield combined with the Tx NSTS subfield in OM Control subfield
  9020. * indicates NSTS - 1, where NSTS is the maximum number of space-time streams
  9021. * that the STA supports in transmission for PPDU bandwidths less than or equal
  9022. * to 80 MHz.
  9023. */
  9024. enum qca_wlan_vendor_attr_omi_tx {
  9025. QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
  9026. QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
  9027. QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
  9028. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
  9029. QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
  9030. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
  9031. QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN = 6,
  9032. QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN = 7,
  9033. QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN = 8,
  9034. /* keep last */
  9035. QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST,
  9036. QCA_WLAN_VENDOR_ATTR_OMI_MAX =
  9037. QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST - 1,
  9038. };
  9039. /* deprecated legacy names */
  9040. #define QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX \
  9041. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX
  9042. #define qca_wlan_vendor_attr_he_omi_tx \
  9043. qca_wlan_vendor_attr_omi_tx
  9044. #define QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST \
  9045. QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST
  9046. #define QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX \
  9047. QCA_WLAN_VENDOR_ATTR_OMI_MAX
  9048. /**
  9049. * enum qca_wlan_vendor_phy_mode - Different PHY modes
  9050. * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
  9051. *
  9052. * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
  9053. * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
  9054. * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
  9055. * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
  9056. * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
  9057. * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
  9058. * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
  9059. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
  9060. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
  9061. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
  9062. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
  9063. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
  9064. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
  9065. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
  9066. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
  9067. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
  9068. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
  9069. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
  9070. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
  9071. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
  9072. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
  9073. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
  9074. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
  9075. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
  9076. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
  9077. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
  9078. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
  9079. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
  9080. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
  9081. */
  9082. enum qca_wlan_vendor_phy_mode {
  9083. QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
  9084. QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
  9085. QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
  9086. QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
  9087. QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
  9088. QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
  9089. QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
  9090. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
  9091. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
  9092. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
  9093. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
  9094. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
  9095. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
  9096. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
  9097. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
  9098. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
  9099. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
  9100. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
  9101. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
  9102. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
  9103. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
  9104. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
  9105. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
  9106. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
  9107. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
  9108. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
  9109. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
  9110. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
  9111. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
  9112. };
  9113. /* Attributes for data used by
  9114. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
  9115. */
  9116. enum qca_wlan_vendor_attr_wifi_test_config {
  9117. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
  9118. /* 8-bit unsigned value to configure the driver to enable/disable
  9119. * WMM feature. This attribute is used to configure testbed device.
  9120. * 1-enable, 0-disable
  9121. */
  9122. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
  9123. /* 8-bit unsigned value to configure the driver to accept/reject
  9124. * the addba request from peer. This attribute is used to configure
  9125. * the testbed device.
  9126. * 1-accept addba, 0-reject addba
  9127. */
  9128. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
  9129. /* 8-bit unsigned value to configure the driver to send or not to
  9130. * send the addba request to peer.
  9131. * This attribute is used to configure the testbed device.
  9132. * 1-send addba, 0-do not send addba
  9133. */
  9134. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
  9135. /* 8-bit unsigned value to indicate the HE fragmentation support.
  9136. * Uses enum he_fragmentation_val values.
  9137. * This attribute is used to configure the testbed device to
  9138. * allow the advertised hardware capabilities to be downgraded
  9139. * for testing purposes.
  9140. */
  9141. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
  9142. /* 8-bit unsigned value to indicate the HE MCS support.
  9143. * Uses enum he_mcs_config values.
  9144. * This attribute is used to configure the testbed device to
  9145. * allow the advertised hardware capabilities to be downgraded
  9146. * for testing purposes.
  9147. */
  9148. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
  9149. /* 8-bit unsigned value to configure the driver to allow or not to
  9150. * allow the connection with WEP/TKIP in HT/VHT/HE modes.
  9151. * This attribute is used to configure the testbed device.
  9152. * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip
  9153. */
  9154. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
  9155. /* 8-bit unsigned value to configure the driver to add a
  9156. * new BA session or delete the existing BA session for
  9157. * given TID. ADDBA command uses the buffer size and tid
  9158. * configuration if user specifies the values else default
  9159. * value for buffer size is used for all tids if the tid
  9160. * also not specified. For DEL_BA command TID value is
  9161. * required to process the command.
  9162. * Uses enum qca_wlan_ba_session_config values.
  9163. * This attribute is used to configure the testbed device.
  9164. */
  9165. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
  9166. /* 16-bit unsigned value to configure the buffer size in addba
  9167. * request and response frames.
  9168. * This attribute is used to configure the testbed device.
  9169. * The range of the value is 0 to 256.
  9170. */
  9171. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
  9172. /* 8-bit unsigned value to configure the buffer size in addba
  9173. * request and response frames.
  9174. * This attribute is used to configure the testbed device.
  9175. */
  9176. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
  9177. /* 8-bit unsigned value to configure the no ack policy.
  9178. * To configure no ack policy, access category value
  9179. * is required to process the command.
  9180. * This attribute is used to configure the testbed device.
  9181. * 1 - enable no ack, 0 - disable no ack
  9182. */
  9183. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
  9184. /* 8-bit unsigned value to configure the AC for no ack policy
  9185. * This attribute is used to configure the testbed device.
  9186. * uses the enum qca_wlan_ac_type values
  9187. */
  9188. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
  9189. /* 8-bit unsigned value to configure the HE LTF
  9190. * This attribute is used to configure the testbed device.
  9191. * Uses the enum qca_wlan_he_ltf_cfg values.
  9192. */
  9193. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
  9194. /* 8-bit unsigned value to configure the tx beamformee.
  9195. * This attribute is used to configure the testbed device.
  9196. * 1 - enable, 0 - disable.
  9197. */
  9198. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
  9199. /* 8-bit unsigned value to configure the tx beamformee number of
  9200. * space-time streams.
  9201. * This attribute is used to configure the testbed device.
  9202. * The range of the value is 0 to 8
  9203. */
  9204. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
  9205. /* 8-bit unsigned value to configure the MU EDCA params for given AC
  9206. * This attribute is used to configure the testbed device.
  9207. * Uses the enum qca_wlan_ac_type values.
  9208. */
  9209. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
  9210. /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
  9211. * To configure MU EDCA AIFSN value, MU EDCA access category value
  9212. * is required to process the command.
  9213. * This attribute is used to configure the testbed device.
  9214. */
  9215. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
  9216. /* 8-bit unsigned value to configure the MU EDCA ECW min value for
  9217. * given AC.
  9218. * To configure MU EDCA ECW min value, MU EDCA access category value
  9219. * is required to process the command.
  9220. * This attribute is used to configure the testbed device.
  9221. */
  9222. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
  9223. /* 8-bit unsigned value to configure the MU EDCA ECW max value for
  9224. * given AC.
  9225. * To configure MU EDCA ECW max value, MU EDCA access category value
  9226. * is required to process the command.
  9227. * This attribute is used to configure the testbed device.
  9228. */
  9229. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
  9230. /* 8-bit unsigned value to configure the MU EDCA timer for given AC
  9231. * To configure MU EDCA timer value, MU EDCA access category value
  9232. * is required to process the command.
  9233. * This attribute is used to configure the testbed device.
  9234. */
  9235. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
  9236. /* 8-bit unsigned value to configure the HE trigger frame MAC padding
  9237. * duration.
  9238. * This attribute is used to configure the testbed device.
  9239. * Uses the enum qca_wlan_he_mac_padding_dur values.
  9240. */
  9241. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
  9242. /* 8-bit unsigned value to override the MU EDCA params to defaults
  9243. * regardless of the AP beacon MU EDCA params. If it is enabled use
  9244. * the default values else use the MU EDCA params from AP beacon.
  9245. * This attribute is used to configure the testbed device.
  9246. * 1 - enable override, 0 - disable.
  9247. */
  9248. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
  9249. /* 8-bit unsigned value to configure the support for receiving
  9250. * an MPDU that contains an operating mode control subfield.
  9251. * This attribute is used to configure the testbed device.
  9252. * 1-enable, 0-disable.
  9253. */
  9254. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
  9255. /* Nested attribute values required to setup the TWT session.
  9256. * enum qca_wlan_vendor_attr_twt_setup provides the necessary
  9257. * information to set up the session. It contains broadcast flags,
  9258. * set_up flags, trigger value, flow type, flow ID, wake interval
  9259. * exponent, protection, target wake time, wake duration, wake interval
  9260. * mantissa. These nested attributes are used to setup a host triggered
  9261. * TWT session.
  9262. */
  9263. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
  9264. /* This nested attribute is used to terminate the current TWT session.
  9265. * It does not currently carry any attributes.
  9266. */
  9267. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
  9268. /* This nested attribute is used to suspend the current TWT session.
  9269. * It does not currently carry any attributes.
  9270. */
  9271. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
  9272. /* Nested attribute values to indicate the request for resume.
  9273. * This attribute is used to resume the TWT session.
  9274. * enum qca_wlan_vendor_attr_twt_resume provides the necessary
  9275. * parameters required to resume the TWT session.
  9276. */
  9277. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
  9278. /* 8-bit unsigned value to set the HE operating mode control
  9279. * (OM CTRL) Channel Width subfield.
  9280. * The Channel Width subfield indicates the operating channel width
  9281. * supported by the STA for both reception and transmission.
  9282. * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
  9283. * This setting is cleared with the
  9284. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  9285. * flag attribute to reset defaults.
  9286. * This attribute is used to configure the testbed device.
  9287. */
  9288. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
  9289. /* 8-bit unsigned value to configure the number of spatial
  9290. * streams in HE operating mode control field.
  9291. * This setting is cleared with the
  9292. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  9293. * flag attribute to reset defaults.
  9294. * This attribute is used to configure the testbed device.
  9295. */
  9296. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
  9297. /* Flag attribute to configure the UL MU disable bit in
  9298. * HE operating mode control field.
  9299. * This setting is cleared with the
  9300. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  9301. * flag attribute to reset defaults.
  9302. * This attribute is used to configure the testbed device.
  9303. */
  9304. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
  9305. /* Flag attribute to clear the previously set HE operating mode
  9306. * control field configuration.
  9307. * This attribute is used to configure the testbed device to reset
  9308. * defaults to clear any previously set HE operating mode control
  9309. * field configuration.
  9310. */
  9311. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
  9312. /* 8-bit unsigned value to configure HE single user PPDU
  9313. * transmission. By default this setting is disabled and it
  9314. * is disabled in the reset defaults of the device configuration.
  9315. * This attribute is used to configure the testbed device.
  9316. * 1-enable, 0-disable
  9317. */
  9318. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
  9319. /* 8-bit unsigned value to configure action frame transmission
  9320. * in HE trigger based PPDU transmission.
  9321. * By default this setting is disabled and it is disabled in
  9322. * the reset defaults of the device configuration.
  9323. * This attribute is used to configure the testbed device.
  9324. * 1-enable, 0-disable
  9325. */
  9326. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
  9327. /* Nested attribute to indicate HE operating mode control field
  9328. * transmission. It contains operating mode control field Nss,
  9329. * channel bandwidth, Tx Nsts and UL MU disable attributes.
  9330. * These nested attributes are used to send HE operating mode control
  9331. * with configured values.
  9332. * Uses the enum qca_wlan_vendor_attr_omi_tx attributes.
  9333. * This attribute is used to configure the testbed device.
  9334. */
  9335. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX = 33,
  9336. /* 8-bit unsigned value to configure +HTC_HE support to indicate the
  9337. * support for the reception of a frame that carries an HE variant
  9338. * HT Control field.
  9339. * This attribute is used to configure the testbed device.
  9340. * 1-enable, 0-disable
  9341. */
  9342. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
  9343. /* 8-bit unsigned value to configure VHT support in 2.4G band.
  9344. * This attribute is used to configure the testbed device.
  9345. * 1-enable, 0-disable
  9346. */
  9347. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
  9348. /* 8-bit unsigned value to configure HE testbed defaults.
  9349. * This attribute is used to configure the testbed device.
  9350. * 1-set the device HE capabilities to testbed defaults.
  9351. * 0-reset the device HE capabilities to supported config.
  9352. */
  9353. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
  9354. /* 8-bit unsigned value to configure twt request support.
  9355. * This attribute is used to configure the testbed device.
  9356. * 1-enable, 0-disable.
  9357. */
  9358. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
  9359. /* 8-bit unsigned value to configure protection for Management
  9360. * frames when PMF is enabled for the association.
  9361. * This attribute is used to configure the testbed device.
  9362. * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
  9363. */
  9364. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
  9365. /* Flag attribute to inject Disassociation frame to the connected AP.
  9366. * This attribute is used to configure the testbed device.
  9367. */
  9368. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
  9369. /* 8-bit unsigned value to configure an override for the RSNXE Used
  9370. * subfield in the MIC control field of the FTE in FT Reassociation
  9371. * Request frame.
  9372. * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
  9373. * This attribute is used to configure the testbed device.
  9374. * This attribute can be configured when STA is in disconnected or
  9375. * associated state and the configuration is valid until the next
  9376. * disconnection.
  9377. */
  9378. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
  9379. /* 8-bit unsigned value to configure the driver to ignore CSA (Channel
  9380. * Switch Announcement) when STA is in connected state.
  9381. * 0 - Default behavior, 1 - Ignore CSA.
  9382. * This attribute is used to configure the testbed device.
  9383. * This attribute can be configured when STA is in disconnected or
  9384. * associated state and the configuration is valid until the next
  9385. * disconnection.
  9386. */
  9387. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
  9388. /* Nested attribute values required to configure OCI (Operating Channel
  9389. * Information). Attributes defined in enum
  9390. * qca_wlan_vendor_attr_oci_override are nested within this attribute.
  9391. * This attribute is used to configure the testbed device.
  9392. * This attribute can be configured when STA is in disconnected or
  9393. * associated state and the configuration is valid until the next
  9394. * disconnection.
  9395. */
  9396. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
  9397. /* 8-bit unsigned value to configure the driver/firmware to ignore SA
  9398. * Query timeout. If this configuration is enabled STA shall not send
  9399. * Deauthentication frmae when SA Query times out (mainly, after a
  9400. * channel switch when OCV is enabled).
  9401. * 0 - Default behavior, 1 - Ignore SA Query timeout.
  9402. * This attribute is used to configure the testbed device.
  9403. * This attribute can be configured only when STA is in associated state
  9404. * and the configuration is valid until the disconnection.
  9405. */
  9406. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
  9407. /* 8-bit unsigned value to configure the driver/firmware to start or
  9408. * stop transmitting FILS discovery frames.
  9409. * 0 - Stop transmitting FILS discovery frames
  9410. * 1 - Start transmitting FILS discovery frames
  9411. * This attribute is used to configure the testbed device.
  9412. * This attribute can be configured only in AP mode and the
  9413. * configuration is valid until AP restart.
  9414. */
  9415. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
  9416. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9417. * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
  9418. * information field.
  9419. * 0 - Disable full bandwidth UL MU-MIMO subfield
  9420. * 1 - Enable full bandwidth UL MU-MIMO subfield
  9421. * This attribute is used to configure the testbed device.
  9422. */
  9423. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
  9424. /* 16-bit unsigned value to configure the driver with a specific BSS
  9425. * max idle period to advertise in the BSS Max Idle Period element
  9426. * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
  9427. * This attribute is used to configure the testbed device.
  9428. */
  9429. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
  9430. /* 8-bit unsigned value to configure the driver to use only RU 242 tone
  9431. * for data transmission.
  9432. * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
  9433. * This attribute is used to configure the testbed device.
  9434. */
  9435. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
  9436. /* 8-bit unsigned value to configure the driver to disable data and
  9437. * management response frame transmission to test the BSS max idle
  9438. * feature.
  9439. * 0 - Default behavior, 1 - Disable data and management response Tx.
  9440. * This attribute is used to configure the testbed device.
  9441. */
  9442. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
  9443. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9444. * disable Punctured Preamble Rx subfield in the HE PHY capabilities
  9445. * information field.
  9446. * 0 - Disable Punctured Preamble Rx subfield
  9447. * 1 - Enable Punctured Preamble Rx subfield
  9448. * This attribute is used to configure the testbed device.
  9449. */
  9450. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
  9451. /* 8-bit unsigned value to configure the driver to ignore the SAE H2E
  9452. * requirement mismatch for 6 GHz connection.
  9453. * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
  9454. * This attribute is used to configure the testbed device.
  9455. */
  9456. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
  9457. /* 8-bit unsigned value to configure the driver to allow 6 GHz
  9458. * connection with all security modes.
  9459. * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
  9460. * modes.
  9461. * This attribute is used for testing purposes.
  9462. */
  9463. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
  9464. /* 8-bit unsigned value to configure the driver to transmit data with
  9465. * ER SU PPDU type.
  9466. *
  9467. * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
  9468. * This attribute is used for testing purposes.
  9469. */
  9470. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
  9471. /* 8-bit unsigned value to configure the driver to use Data or
  9472. * Management frame type for keep alive data.
  9473. * Uses enum qca_wlan_keep_alive_data_type values.
  9474. *
  9475. * This attribute is used for testing purposes.
  9476. */
  9477. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
  9478. /* 8-bit unsigned value to configure the driver to use scan request
  9479. * BSSID value in Probe Request frame RA(A1) during the scan. The
  9480. * driver saves this configuration and applies this setting to all user
  9481. * space scan requests until the setting is cleared. If this
  9482. * configuration is set, the driver uses the BSSID value from the scan
  9483. * request to set the RA(A1) in the Probe Request frames during the
  9484. * scan.
  9485. *
  9486. * 0 - Default behavior uses the broadcast RA in Probe Request frames.
  9487. * 1 - Uses the scan request BSSID in RA in Probe Request frames.
  9488. * This attribute is used for testing purposes.
  9489. */
  9490. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
  9491. /* 8-bit unsigned value to configure the driver to enable/disable the
  9492. * BSS max idle period support.
  9493. *
  9494. * 0 - Disable the BSS max idle support.
  9495. * 1 - Enable the BSS max idle support.
  9496. * This attribute is used for testing purposes.
  9497. */
  9498. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
  9499. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9500. * disable Rx control frame to MultiBSS subfield in the HE MAC
  9501. * capabilities information field.
  9502. * 0 - Disable Rx control frame to MultiBSS subfield
  9503. * 1 - Enable Rx control frame to MultiBSS subfield
  9504. * This attribute is used to configure the testbed device.
  9505. */
  9506. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
  9507. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9508. * disable Broadcast TWT support subfield in the HE MAC capabilities
  9509. * information field.
  9510. * 0 - Disable Broadcast TWT support subfield
  9511. * 1 - Enable Broadcast TWT support subfield
  9512. * This attribute is used to configure the testbed device.
  9513. */
  9514. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
  9515. /* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
  9516. * mode for 802.11be MLO capable devices. If the attribute is set to 1,
  9517. * and if the FW supports this capability too, then the STA host
  9518. * advertises this capability to AP over assoc request frame. This
  9519. * attribute will not have any effect on legacy devices with no 802.11be
  9520. * support.
  9521. * 0 - Default behavior
  9522. * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
  9523. * This attribute is used to configure the testbed device.
  9524. */
  9525. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
  9526. /* 8-bit unsigned value to configure the driver to enable/disable the
  9527. * periodic sounding for Tx beamformer functionality. The default
  9528. * behavior uses algorithm to do sounding based on packet stats.
  9529. *
  9530. * 0 - Default behavior.
  9531. * 1 - Enable the periodic sounding for Tx beamformer.
  9532. * This attribute is used for testing purposes.
  9533. */
  9534. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59,
  9535. /* 8-bit unsigned value to configure beamformee SS EHT capability
  9536. * to indicate the maximum number of spatial streams that the STA
  9537. * can receive in an EHT sounding NDP for <= 80 MHz bandwidth.
  9538. * The range of the value is 3 to 7.
  9539. * This attribute is used to configure the testbed device.
  9540. */
  9541. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_80MHZ = 60,
  9542. /* 8-bit unsigned value to configure beamformee SS EHT capability
  9543. * to indicate the maximum number of spatial streams that the STA
  9544. * can receive in an EHT sounding NDP for 160 MHz bandwidth.
  9545. * The range of the value is 3 to 7.
  9546. * This attribute is used to configure the testbed device.
  9547. */
  9548. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_160MHZ = 61,
  9549. /* 8-bit unsigned value to configure beamformee SS EHT capability
  9550. * to indicate the maximum number of spatial streams that the STA
  9551. * can receive in an EHT sounding NDP for 320 MHz bandwidth.
  9552. * The range of the value is 3 to 7.
  9553. * This attribute is used to configure the testbed device.
  9554. */
  9555. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_320MHZ = 62,
  9556. /* 8-bit unsigned value to configure the driver to exclude station
  9557. * profile in Probe Request frame Multi-Link element.
  9558. * 0 - Default behavior, sends the Probe Request frame with station
  9559. * profile data included in the Multi-Link element.
  9560. * 1 - Exclude station profile in Probe Request frame Multi-Link
  9561. * element.
  9562. * This attribute is used to configure the testbed device.
  9563. */
  9564. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EXCLUDE_STA_PROF_IN_PROBE_REQ = 63,
  9565. /* 8-bit unsigned value to configure EHT testbed defaults.
  9566. * This attribute is used to configure the testbed device.
  9567. * 1 - Set the device EHT capabilities to testbed defaults.
  9568. * 0 - Reset the device EHT capabilities to supported config.
  9569. */
  9570. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_EHT_TESTBED_DEFAULTS = 64,
  9571. /* 8-bit unsigned value to indicate the EHT MCS support.
  9572. * Uses enum eht_mcs_config values.
  9573. * This attribute is used to configure the testbed device to
  9574. * allow the advertised hardware capabilities to be downgraded
  9575. * for testing purposes.
  9576. */
  9577. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MCS = 65,
  9578. /* 8-bit unsigned value to configure EHT TB Sounding Feedback
  9579. * Rate Limit capability.
  9580. * This attribute is used to configure the testbed device.
  9581. * 0 - Indicates no maximum supported data rate limitation.
  9582. * 1 - Indicates the maximum supported data rate is the lower of
  9583. * the 1500 Mb/s and the maximum supported data rate.
  9584. */
  9585. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_TB_SOUNDING_FB_RL = 66,
  9586. /* 8-bit unsigned value to configure the support for receiving an MPDU
  9587. * that contains an EHT operating mode control subfield.
  9588. * This attribute is used to configure the testbed device.
  9589. * 1-enable, 0-disable.
  9590. */
  9591. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_OM_CTRL_SUPPORT = 67,
  9592. /* 8-bit unsigned value to configure the driver with EMLSR padding delay
  9593. * subfield value.
  9594. *
  9595. * 0 - 0 us
  9596. * 1 - 32 us
  9597. * 2 - 64 us
  9598. * 3 - 128 us
  9599. * 4 - 256 us
  9600. * 5-255 - Reserved
  9601. *
  9602. * This attribute is used for testing purposes.
  9603. */
  9604. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EMLSR_PADDING_DELAY = 68,
  9605. /*
  9606. * 8-bit unsigned value to indicate the firmware to force the active MLO
  9607. * links to power save mode for the configured number of beacon periods.
  9608. * This allows the firmware to suspend STA links for X beacon periods
  9609. * and remain asleep even if the AP advertises TIM as opposed to regular
  9610. * power save mode where STA links wake up if the AP indicates that it
  9611. * has buffered data to send.
  9612. * This attribute is used to configure the testbed device.
  9613. */
  9614. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FORCE_MLO_POWER_SAVE_BCN_PERIOD = 69,
  9615. /*
  9616. * 8-bit unsigned value to indicate the firmware to be in STR MLMR mode
  9617. * to enable simultaneous transmission of PPDUs on all active links.
  9618. * 0 - Default behavior
  9619. * 1 - Enter STR mode for simultaneous data transmission on all links
  9620. */
  9621. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_STR_TX = 70,
  9622. /* Nested attribute to indicate EHT MLO links on which powersave to be
  9623. * enabled. It contains link ID attributes. These nested attributes are
  9624. * of the type u8 and are used to enable the powersave on associated
  9625. * MLO links corresponding to the link IDs provided in the command.
  9626. * This attribute is used to configure the testbed device.
  9627. */
  9628. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_LINK_POWER_SAVE = 71,
  9629. /* 8-bit unsigned value to configure the MLD ID of the BSS whose link
  9630. * info is requested in the ML Probe Request frame. In the MLO-MBSSID
  9631. * testcase, STA can request information of non-Tx BSS through Tx BSS
  9632. * by configuring non-Tx BSS MLD ID within the ML probe request that
  9633. * is transmitted via host initiated scan request.
  9634. *
  9635. * This attribute is used for testing purposes.
  9636. */
  9637. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MLD_ID_ML_PROBE_REQ = 72,
  9638. /* keep last */
  9639. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
  9640. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
  9641. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
  9642. };
  9643. /**
  9644. * enum qca_wlan_twt_operation - Operation of the config TWT request
  9645. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
  9646. * The response for the respective operations can be either synchronous or
  9647. * asynchronous (wherever specified). If synchronous, the response to this
  9648. * operation is obtained in the corresponding vendor command reply to the user
  9649. * space. For the asynchronous case the response is obtained as an event with
  9650. * the same operation type.
  9651. *
  9652. * Drivers shall support either of these modes but not both simultaneously.
  9653. * This support for asynchronous mode is advertised through the flag
  9654. * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
  9655. * the driver shall support synchronous mode.
  9656. *
  9657. * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
  9658. * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9659. * qca_wlan_vendor_attr_twt_setup. Depending upon the
  9660. * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
  9661. * synchronous or asynchronous operation.
  9662. *
  9663. * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
  9664. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9665. * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
  9666. *
  9667. * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
  9668. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9669. * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
  9670. * This terminate can either get triggered by the user space or can as well be
  9671. * a notification from the firmware if it initiates a terminate.
  9672. * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
  9673. * the request from user space can either be a synchronous or asynchronous
  9674. * operation.
  9675. *
  9676. * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
  9677. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9678. * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
  9679. * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
  9680. * this is either a synchronous or asynchronous operation.
  9681. *
  9682. * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
  9683. * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9684. * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
  9685. * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
  9686. * request.
  9687. * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
  9688. * capability, this is either a synchronous or asynchronous operation.
  9689. *
  9690. * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
  9691. * combination of suspend and resume in a single request. Required parameters
  9692. * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
  9693. * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
  9694. * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
  9695. * capability, this is either a synchronous or asynchronous operation.
  9696. *
  9697. * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
  9698. * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
  9699. * session is setup. It's a synchronous operation.
  9700. *
  9701. * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
  9702. * Valid only after the TWT session is setup. It's a synchronous operation.
  9703. *
  9704. * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
  9705. * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
  9706. * operation.
  9707. *
  9708. * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is
  9709. * ready for a new TWT session setup after it issued a twt teardown.
  9710. *
  9711. * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
  9712. * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
  9713. * the enum qca_wlan_vendor_attr_twt_set_param.
  9714. *
  9715. * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
  9716. * related information for example TWT required bit in AP capabilities etc.
  9717. * The reason for the notification is sent using
  9718. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
  9719. */
  9720. enum qca_wlan_twt_operation {
  9721. QCA_WLAN_TWT_SET = 0,
  9722. QCA_WLAN_TWT_GET = 1,
  9723. QCA_WLAN_TWT_TERMINATE = 2,
  9724. QCA_WLAN_TWT_SUSPEND = 3,
  9725. QCA_WLAN_TWT_RESUME = 4,
  9726. QCA_WLAN_TWT_NUDGE = 5,
  9727. QCA_WLAN_TWT_GET_STATS = 6,
  9728. QCA_WLAN_TWT_CLEAR_STATS = 7,
  9729. QCA_WLAN_TWT_GET_CAPABILITIES = 8,
  9730. QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
  9731. QCA_WLAN_TWT_SET_PARAM = 10,
  9732. QCA_WLAN_TWT_NOTIFY = 11,
  9733. };
  9734. /* enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
  9735. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT
  9736. *
  9737. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION:
  9738. * u8 attribute. Specify the TWT operation of this request. Possible values
  9739. * are defined in enum qca_wlan_twt_operation. The parameters for the
  9740. * respective operation is specified through
  9741. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
  9742. *
  9743. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
  9744. * parameters configured for TWT. These parameters are represented by
  9745. * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
  9746. * enum qca_wlan_vendor_attr_twt_set_param or
  9747. * enum qca_wlan_vendor_attr_twt_stats based on the operation.
  9748. *
  9749. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
  9750. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
  9751. * The values used by this attribute are defined in
  9752. * enum qca_wlan_vendor_twt_status.
  9753. */
  9754. enum qca_wlan_vendor_attr_config_twt {
  9755. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
  9756. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
  9757. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
  9758. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
  9759. /* keep last */
  9760. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
  9761. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
  9762. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
  9763. };
  9764. /**
  9765. * qca_wlan_twt_setup_state: Represents the TWT session states.
  9766. *
  9767. * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
  9768. * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
  9769. * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
  9770. */
  9771. enum qca_wlan_twt_setup_state {
  9772. QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
  9773. QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
  9774. QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
  9775. };
  9776. /**
  9777. * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
  9778. * TWT (Target Wake Time) setup request. These attributes are sent as part of
  9779. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
  9780. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
  9781. * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9782. *
  9783. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
  9784. * Disable (flag attribute not present) - Individual TWT
  9785. * Enable (flag attribute present) - Broadcast TWT.
  9786. * Individual means the session is between the STA and the AP.
  9787. * This session is established using a separate negotiation between
  9788. * STA and AP.
  9789. * Broadcast means the session is across multiple STAs and an AP. The
  9790. * configuration parameters are announced in Beacon frames by the AP.
  9791. * This is used in
  9792. * 1. TWT SET Request and Response
  9793. * 2. TWT GET Response
  9794. *
  9795. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
  9796. * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
  9797. * specify the TWT request type. This is used in TWT SET operation.
  9798. *
  9799. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
  9800. * Enable (flag attribute present) - TWT with trigger support.
  9801. * Disable (flag attribute not present) - TWT without trigger support.
  9802. * Trigger means the AP will send the trigger frame to allow STA to send data.
  9803. * Without trigger, the STA will wait for the MU EDCA timer before
  9804. * transmitting the data.
  9805. * This is used in
  9806. * 1. TWT SET Request and Response
  9807. * 2. TWT GET Response
  9808. *
  9809. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
  9810. * 0 - Announced TWT - In this mode, STA may skip few service periods to
  9811. * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
  9812. * NULL frame to AP.
  9813. * 1 - Unannounced TWT - The STA will wakeup during every SP.
  9814. * This is a required parameter for
  9815. * 1. TWT SET Request and Response
  9816. * 2. TWT GET Response
  9817. *
  9818. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
  9819. * Flow ID is the unique identifier for each TWT session.
  9820. * If not provided then dialog ID will be set to zero.
  9821. * This is an optional parameter for
  9822. * 1. TWT SET Request and Response
  9823. * 2. TWT GET Request and Response
  9824. * 3. TWT TERMINATE Request and Response
  9825. * 4. TWT SUSPEND Request and Response
  9826. * Flow Id values from 0 to 254 represent a single TWT session
  9827. * Flow ID value of 255 represents all twt sessions for the following
  9828. * 1. TWT TERMINATE Request and Response
  9829. * 2. TWT SUSPEND Request and Response
  9830. * 4. TWT CLEAR STATISTICS request
  9831. * 5. TWT GET STATISTICS request and response
  9832. * If an invalid dialog id is provided, status
  9833. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  9834. *
  9835. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
  9836. * This attribute (exp) is used along with the mantissa to derive the
  9837. * wake interval using the following formula:
  9838. * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
  9839. * Wake interval is the interval between 2 successive SP.
  9840. * This is a required parameter for
  9841. * 1. TWT SET Request and Response
  9842. * 2. TWT GET Response
  9843. *
  9844. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
  9845. * Enable (flag attribute present) - Protection required.
  9846. * Disable (flag attribute not present) - Protection not required.
  9847. * If protection is enabled, then the AP will use protection
  9848. * mechanism using RTS/CTS to self to reserve the airtime.
  9849. * This is used in
  9850. * 1. TWT SET Request and Response
  9851. * 2. TWT GET Response
  9852. *
  9853. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
  9854. * This attribute is used as the SP offset which is the offset from
  9855. * TSF after which the wake happens. The units are in microseconds. If
  9856. * this attribute is not provided, then the value will be set to zero.
  9857. * This is an optional parameter for
  9858. * 1. TWT SET Request and Response
  9859. * 2. TWT GET Response
  9860. *
  9861. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
  9862. * This is the duration of the service period. This is specified as
  9863. * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
  9864. * This is a required parameter for
  9865. * 1. TWT SET Request and Response
  9866. * 2. TWT GET Response
  9867. *
  9868. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
  9869. * This attribute is used to configure wake interval mantissa.
  9870. * The units are in TU.
  9871. * This is a required parameter for
  9872. * 1. TWT SET Request and Response
  9873. * 2. TWT GET Response
  9874. *
  9875. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
  9876. * This field is applicable for TWT response only.
  9877. * This contains status values in enum qca_wlan_vendor_twt_status
  9878. * and is passed to the userspace. This is used in TWT SET operation.
  9879. * This is a required parameter for
  9880. * 1. TWT SET Response
  9881. * 2. TWT TERMINATE Response
  9882. * 3. TWT SUSPEND Response
  9883. * 4. TWT RESUME Response
  9884. * 5. TWT NUDGE Response
  9885. *
  9886. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
  9887. * This field is applicable for TWT response only.
  9888. * This field contains response type from the TWT responder and is
  9889. * passed to the userspace. The values for this field are defined in
  9890. * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
  9891. * response.
  9892. *
  9893. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
  9894. * In TWT setup command this field contains absolute TSF that will
  9895. * be used by TWT requester during setup.
  9896. * In TWT response this field contains absolute TSF value of the
  9897. * wake time received from the TWT responder and is passed to
  9898. * the userspace.
  9899. * This is an optional parameter for
  9900. * 1. TWT SET Request
  9901. * This is a required parameter for
  9902. * 1. TWT SET Response
  9903. * 2. TWT GET Response
  9904. *
  9905. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
  9906. * Enable (flag attribute present) - Indicates that the TWT responder
  9907. * supports reception of TWT information frame from the TWT requestor.
  9908. * Disable (flag attribute not present) - Indicates that the responder
  9909. * doesn't support reception of TWT information frame from requestor.
  9910. * This is used in
  9911. * 1. TWT SET Response
  9912. * 2. TWT GET Response
  9913. *
  9914. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
  9915. * Represents the MAC address of the peer for which the TWT session
  9916. * is being configured. This is used in AP mode to represent the respective
  9917. * client
  9918. * In AP mode, this is a required parameter in response for
  9919. * 1. TWT SET
  9920. * 2. TWT GET
  9921. * 3. TWT TERMINATE
  9922. * 4. TWT SUSPEND
  9923. * In STA mode, this is an optional parameter in request and response for
  9924. * the above four TWT operations.
  9925. * In AP mode, this is a required parameter in request for
  9926. * 1. TWT GET
  9927. * 2. TWT TERMINATE
  9928. *
  9929. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
  9930. * Minimum tolerance limit of wake interval parameter in microseconds.
  9931. *
  9932. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
  9933. * Maximum tolerance limit of wake interval parameter in microseconds.
  9934. *
  9935. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
  9936. * Minimum tolerance limit of wake duration parameter in microseconds.
  9937. *
  9938. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
  9939. * Maximum tolerance limit of wake duration parameter in microseconds.
  9940. *
  9941. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
  9942. * TWT state for the given dialog id. The values for this are represented
  9943. * by enum qca_wlan_twt_setup_state.
  9944. * This is obtained through TWT GET operation.
  9945. *
  9946. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
  9947. * This attribute is used to configure wake interval mantissa.
  9948. * The unit is microseconds. This attribute, when specified, takes
  9949. * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
  9950. * This parameter is used for
  9951. * 1. TWT SET Request and Response
  9952. * 2. TWT GET Response
  9953. *
  9954. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
  9955. * This attribute is used to configure Broadcast TWT ID.
  9956. * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
  9957. * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
  9958. * This parameter is used for
  9959. * 1. TWT SET Request
  9960. * 2. TWT TERMINATE Request
  9961. *
  9962. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
  9963. * This attribute is used to configure Broadcast TWT recommendation.
  9964. * The Broadcast TWT Recommendation subfield contains a value that indicates
  9965. * recommendations on the types of frames that are transmitted by TWT
  9966. * scheduled STAs and scheduling AP during the broadcast TWT SP.
  9967. * The allowed values are 0 - 3.
  9968. * This parameter is used for
  9969. * 1. TWT SET Request
  9970. *
  9971. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
  9972. * This attribute is used to configure Broadcast TWT Persistence.
  9973. * The Broadcast TWT Persistence subfield indicates the number of
  9974. * TBTTs during which the Broadcast TWT SPs corresponding to this
  9975. * broadcast TWT Parameter set are present. The number of beacon intervals
  9976. * during which the Broadcast TWT SPs are present is equal to the value in the
  9977. * Broadcast TWT Persistence subfield plus 1 except that the value 255
  9978. * indicates that the Broadcast TWT SPs are present until explicitly terminated.
  9979. * This parameter is used for
  9980. * 1. TWT SET Request
  9981. *
  9982. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
  9983. * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
  9984. * from TWT response frame.
  9985. * This parameter is used for
  9986. * 1. TWT SET Response
  9987. * 2. TWT GET Response
  9988. *
  9989. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
  9990. * This attribute is used to configure the announce timeout value (in us) in
  9991. * firmware. This timeout value is only applicable for announced TWT. If
  9992. * timeout value is non-zero then firmware waits upto timeout value to use
  9993. * data frame as announcement frame. If timeout value is 0 then firmware sends
  9994. * explicit QoS NULL frame as announcement frame on SP start. Default value in
  9995. * firmware is 0.
  9996. * This parameter is used for
  9997. * 1. TWT SET Request
  9998. */
  9999. enum qca_wlan_vendor_attr_twt_setup {
  10000. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
  10001. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
  10002. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
  10003. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
  10004. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
  10005. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
  10006. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
  10007. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
  10008. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
  10009. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
  10010. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
  10011. /* TWT Response only attributes */
  10012. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
  10013. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
  10014. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
  10015. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
  10016. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
  10017. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
  10018. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
  10019. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
  10020. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
  10021. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
  10022. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
  10023. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
  10024. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
  10025. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
  10026. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
  10027. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
  10028. /* keep last */
  10029. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
  10030. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
  10031. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
  10032. };
  10033. /**
  10034. * enum qca_wlan_vendor_twt_status - Represents the status of the requested
  10035. * TWT operation
  10036. *
  10037. * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
  10038. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
  10039. * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
  10040. * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
  10041. * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
  10042. * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
  10043. * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
  10044. * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
  10045. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
  10046. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
  10047. * request/response frame
  10048. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
  10049. * frame
  10050. * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
  10051. * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
  10052. * unknown reason
  10053. * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
  10054. * suspend state
  10055. * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
  10056. * invalid IE in the received TWT frame
  10057. * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
  10058. * the responder are not in the specified range
  10059. * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
  10060. * session due to request from the responder. Used on the TWT_TERMINATE
  10061. * notification from the firmware.
  10062. * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
  10063. * session due to roaming. Used on the TWT_TERMINATE notification from the
  10064. * firmware.
  10065. * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
  10066. * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel)
  10067. * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
  10068. * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
  10069. * request due to roaming in progress.
  10070. * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
  10071. * setup request due to channel switch in progress.
  10072. * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
  10073. * request due to scan in progress.
  10074. * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
  10075. * terminate an existing TWT session on power save exit request from userspace.
  10076. * Used on the TWT_TERMINATE notification from the driver/firmware.
  10077. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
  10078. * required bit in its capabilities.
  10079. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
  10080. * the TWT required bit(1->0) in its capabilities.
  10081. */
  10082. enum qca_wlan_vendor_twt_status {
  10083. QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
  10084. QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
  10085. QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
  10086. QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
  10087. QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
  10088. QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
  10089. QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
  10090. QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
  10091. QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
  10092. QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
  10093. QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
  10094. QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
  10095. QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
  10096. QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
  10097. QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
  10098. QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
  10099. QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
  10100. QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
  10101. QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
  10102. QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
  10103. QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
  10104. QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
  10105. QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
  10106. QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
  10107. QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
  10108. };
  10109. /**
  10110. * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
  10111. * TWT (Target Wake Time) resume request. These attributes are sent as part of
  10112. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
  10113. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
  10114. * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  10115. *
  10116. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
  10117. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
  10118. * These attributes are used as the SP offset which is the offset from TSF after
  10119. * which the wake happens. The units are in microseconds. Please note that
  10120. * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
  10121. * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
  10122. * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
  10123. * will be set to zero.
  10124. *
  10125. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
  10126. * This attribute represents the next TWT subfield size.
  10127. * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
  10128. * and 4 for 64 bits.
  10129. *
  10130. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
  10131. * Flow ID is the unique identifier for each TWT session. This attribute
  10132. * represents the respective TWT session to resume.
  10133. * Flow Id values from 0 to 254 represent a single TWT session
  10134. * Flow ID value of 255 represents all TWT sessions.
  10135. * If an invalid dialog id is provided, status
  10136. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  10137. *
  10138. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
  10139. * Represents the MAC address of the peer to which TWT Resume is
  10140. * being sent. This is used in AP mode to represent the respective
  10141. * client and is a required parameter. In STA mode, this is an optional
  10142. * parameter
  10143. *
  10144. */
  10145. enum qca_wlan_vendor_attr_twt_resume {
  10146. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
  10147. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
  10148. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
  10149. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
  10150. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
  10151. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
  10152. /* keep last */
  10153. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
  10154. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
  10155. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
  10156. };
  10157. /**
  10158. * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
  10159. * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
  10160. * and resume in a single request. These attributes are sent as part of
  10161. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  10162. *
  10163. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
  10164. * Flow ID is the unique identifier for each TWT session. This attribute
  10165. * represents the respective TWT session to suspend and resume.
  10166. *
  10167. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
  10168. * Flow ID is the unique identifier for each TWT session. This attribute
  10169. * represents the respective TWT session to suspend and resume.
  10170. * Flow Id values from 0 to 254 represent a single TWT session
  10171. * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
  10172. * and response.
  10173. * If an invalid dialog id is provided, status
  10174. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  10175. *
  10176. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
  10177. * This attribute is used as the SP offset which is the offset from
  10178. * TSF after which the wake happens. The units are in microseconds.
  10179. *
  10180. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
  10181. * This attribute represents the next TWT subfield size.
  10182. * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
  10183. * and 4 for 64 bits.
  10184. *
  10185. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
  10186. * Represents the MAC address of the peer to which TWT Suspend and Resume is
  10187. * being sent. This is used in AP mode to represent the respective
  10188. * client and is a required parameter. In STA mode, this is an optional
  10189. * parameter.
  10190. *
  10191. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
  10192. * This field contains absolute TSF value of the time at which twt
  10193. * sesion will be resumed.
  10194. *
  10195. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32)
  10196. * This field will be used when device supports Flexible TWT.
  10197. * This field contains an offset value by which to shift the starting time
  10198. * of the next service period. The value of offset can be negative or positive.
  10199. * If provided, this attribute will override
  10200. * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds.
  10201. */
  10202. enum qca_wlan_vendor_attr_twt_nudge {
  10203. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
  10204. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
  10205. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
  10206. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
  10207. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
  10208. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
  10209. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6,
  10210. /* keep last */
  10211. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
  10212. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
  10213. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
  10214. };
  10215. /**
  10216. * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
  10217. * TWT (Target Wake Time) get statistics and clear statistics request.
  10218. * These attributes are sent as part of
  10219. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  10220. *
  10221. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
  10222. * Flow ID is the unique identifier for each TWT session. This attribute
  10223. * represents the respective TWT session for get and clear TWT statistics.
  10224. * Flow Id values from 0 to 254 represent a single TWT session
  10225. * Flow ID value of 255 represents all TWT sessions in
  10226. * 1) TWT GET STATISTICS request and response
  10227. * 2) TWT CLEAR STATISTICS request
  10228. *
  10229. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
  10230. * Represents the MAC address of the peer for which TWT Statistics
  10231. * is required.
  10232. * In AP mode this is used to represent the respective
  10233. * client and is a required parameter for
  10234. * 1) TWT GET STATISTICS request and response
  10235. * 2) TWT CLEAR STATISTICS request and response
  10236. * In STA mode, this is an optional parameter.
  10237. *
  10238. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
  10239. * This is the duration of the service period in microseconds.
  10240. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10241. *
  10242. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
  10243. * Average of actual wake duration observed so far. Unit is microseconds.
  10244. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10245. *
  10246. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
  10247. * Number of TWT service period elapsed so far.
  10248. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10249. *
  10250. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
  10251. * This is the minimum value of wake duration observed across
  10252. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
  10253. * microseconds.
  10254. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10255. *
  10256. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
  10257. * This is the maximum value of wake duration observed across
  10258. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
  10259. * microseconds.
  10260. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10261. *
  10262. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
  10263. * Average number of MPDU's transmitted successfully across
  10264. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  10265. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10266. *
  10267. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
  10268. * Average number of MPDU's received successfully across
  10269. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  10270. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10271. *
  10272. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
  10273. * Average number of bytes transmitted successfully across
  10274. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  10275. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10276. *
  10277. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET SIZE: Required (u32)
  10278. * Average number of bytes received successfully across
  10279. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  10280. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10281. *
  10282. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
  10283. * Status of the TWT GET STATISTICS request.
  10284. * This contains status values in enum qca_wlan_vendor_twt_status
  10285. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10286. */
  10287. enum qca_wlan_vendor_attr_twt_stats {
  10288. QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
  10289. QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
  10290. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
  10291. QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
  10292. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
  10293. QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
  10294. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
  10295. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
  10296. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
  10297. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
  10298. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
  10299. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
  10300. QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
  10301. /* keep last */
  10302. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
  10303. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
  10304. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
  10305. };
  10306. /**
  10307. * qca_wlan_twt_get_capa - Represents the Bitmap of TWT capabilities
  10308. * supported by the device and peer.
  10309. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
  10310. *
  10311. * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
  10312. * TWT non-scheduling STA. This capability is advertised in the HE
  10313. * capability/Extended capabilities information element in the
  10314. * Association request frame by the device.
  10315. *
  10316. * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised
  10317. * by the TWT scheduling AP. This capability is advertised in the extended
  10318. * capabilities/HE capabilities information element.
  10319. *
  10320. * @QCA_WLAN_TWT_CAPA_BROADCAST: On requestor side, this indicates support
  10321. * for the broadcast TWT functionality. On responder side, this indicates
  10322. * support for the role of broadcast TWT scheduling functionality. This
  10323. * capability is advertised in the HE capabilities information element.
  10324. *
  10325. * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: Device supports flexible TWT schedule.
  10326. * This capability is advertised in the HE capabilities information element.
  10327. *
  10328. * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
  10329. * that it mandates the associated HE STAs to support TWT. This capability is
  10330. * advertised by AP in the HE Operation Parameters field of the HE operation
  10331. * information element.
  10332. */
  10333. enum qca_wlan_twt_capa {
  10334. QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
  10335. QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
  10336. QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
  10337. QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3),
  10338. QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4),
  10339. };
  10340. /**
  10341. * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT
  10342. * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
  10343. * operation.
  10344. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
  10345. * Represents the MAC address of the peer for which the TWT capabilities
  10346. * are being queried. This is used in AP mode to represent the respective
  10347. * client. In STA mode, this is an optional parameter.
  10348. *
  10349. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
  10350. * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
  10351. * enum qca_wlan_twt_capa.
  10352. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
  10353. * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
  10354. * enum qca_wlan_twt_capa.
  10355. */
  10356. enum qca_wlan_vendor_attr_twt_capability {
  10357. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
  10358. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
  10359. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
  10360. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
  10361. /* keep last */
  10362. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
  10363. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
  10364. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
  10365. };
  10366. /**
  10367. * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
  10368. * TWT (Target Wake Time) related parameters. It is used when
  10369. * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
  10370. * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  10371. *
  10372. * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
  10373. * This attribute configures AC parameters to be used for all TWT
  10374. * sessions in AP mode.
  10375. * Uses the enum qca_wlan_ac_type values.
  10376. */
  10377. enum qca_wlan_vendor_attr_twt_set_param {
  10378. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
  10379. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
  10380. /* keep last */
  10381. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
  10382. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
  10383. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
  10384. };
  10385. /**
  10386. * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
  10387. * the TWT responder
  10388. *
  10389. * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
  10390. * parameters that are different from TWT requesting STA suggested
  10391. * or demanded TWT parameters
  10392. * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
  10393. * parameters that are different from TWT requesting STA TWT suggested
  10394. * or demanded parameters
  10395. * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
  10396. * setup
  10397. * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
  10398. * setup.
  10399. */
  10400. enum qca_wlan_vendor_twt_setup_resp_type {
  10401. QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
  10402. QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
  10403. QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
  10404. QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
  10405. };
  10406. /**
  10407. * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
  10408. * Represents the setup type being requested for TWT.
  10409. * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
  10410. * parameters but relying on AP to fill the parameters during the negotiation.
  10411. * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
  10412. * values which the AP may accept or AP may provide alternative parameters
  10413. * which the STA may accept.
  10414. * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
  10415. * alternate parameters than the requested ones.
  10416. */
  10417. enum qca_wlan_vendor_twt_setup_req_type {
  10418. QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
  10419. QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
  10420. QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
  10421. };
  10422. /**
  10423. * enum qca_wlan_throughput_level - Current throughput level
  10424. *
  10425. * Indicates the current level of throughput calculated by driver. The driver
  10426. * may choose different thresholds to decide whether the throughput level is
  10427. * low or medium or high based on variety of parameters like physical link
  10428. * capacity of current connection, number of pakcets being dispatched per
  10429. * second etc. The throughput level events might not be consistent with the
  10430. * actual current throughput value being observed.
  10431. *
  10432. * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
  10433. * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
  10434. * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
  10435. */
  10436. enum qca_wlan_throughput_level {
  10437. QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
  10438. QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
  10439. QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
  10440. };
  10441. /**
  10442. * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
  10443. * report throughput changes from driver to user space. enum values are used
  10444. * for NL attributes sent with
  10445. * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
  10446. */
  10447. enum qca_wlan_vendor_attr_throughput_change {
  10448. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
  10449. /*
  10450. * Indicates the direction of throughput in which the change is being
  10451. * reported. u8 attribute. Value is 0 for TX and 1 for RX.
  10452. */
  10453. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
  10454. /*
  10455. * Indicates the newly observed throughput level.
  10456. * qca_wlan_throughput_level describes the possible range of values.
  10457. * u8 attribute.
  10458. */
  10459. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
  10460. /*
  10461. * Indicates the driver's guidance on the new value to be set to
  10462. * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver
  10463. * may optionally include this attribute.
  10464. */
  10465. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
  10466. /*
  10467. * Indicates the driver's guidance on the new value to be set to
  10468. * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible
  10469. * values are from -31 to 31. Driver may optionally include this
  10470. * attribute.
  10471. */
  10472. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
  10473. /*
  10474. * Indicates the driver's guidance on the new value to be set to
  10475. * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may
  10476. * optionally include this attribute.
  10477. */
  10478. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
  10479. /* keep last */
  10480. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
  10481. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
  10482. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
  10483. };
  10484. /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
  10485. * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
  10486. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  10487. */
  10488. enum qca_wlan_nan_ext_subcmd_type {
  10489. /* Subcmd of type NAN Enable Request */
  10490. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
  10491. /* Subcmd of type NAN Disable Request */
  10492. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
  10493. };
  10494. /**
  10495. * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
  10496. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  10497. */
  10498. enum qca_wlan_vendor_attr_nan_params {
  10499. QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
  10500. /* Carries NAN command for firmware component. Every vendor command
  10501. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
  10502. * payload containing the NAN command. NLA_BINARY attribute.
  10503. */
  10504. QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
  10505. /* Indicates the type of NAN command sent with
  10506. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
  10507. * describes the possible range of values. This attribute is mandatory
  10508. * if the command being issued is either
  10509. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
  10510. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
  10511. */
  10512. QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
  10513. /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
  10514. * band. This attribute is mandatory when command type is
  10515. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
  10516. */
  10517. QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
  10518. /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
  10519. * band. This attribute is optional and should be included when command
  10520. * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
  10521. * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
  10522. */
  10523. QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
  10524. /* keep last */
  10525. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
  10526. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
  10527. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
  10528. };
  10529. /**
  10530. * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
  10531. * transport modes and is used by attribute
  10532. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as part of vendor command
  10533. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
  10534. * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use RELAY FS to send CFR data.
  10535. * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
  10536. * data. The data shall be encapsulated within
  10537. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with vendor sub command
  10538. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
  10539. */
  10540. enum qca_wlan_vendor_cfr_data_transport_modes {
  10541. QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
  10542. QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
  10543. };
  10544. /**
  10545. * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
  10546. * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
  10547. * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
  10548. * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QOS Null frame.
  10549. * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QOS Null frame
  10550. * with phase
  10551. * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using probe response frame
  10552. */
  10553. enum qca_wlan_vendor_cfr_method {
  10554. QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
  10555. QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
  10556. QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
  10557. };
  10558. /**
  10559. * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
  10560. * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
  10561. * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
  10562. * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
  10563. * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
  10564. * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
  10565. * is provided by one or more of below attributes:
  10566. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
  10567. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
  10568. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
  10569. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
  10570. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
  10571. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
  10572. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
  10573. * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
  10574. * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
  10575. */
  10576. enum qca_wlan_vendor_cfr_capture_type {
  10577. QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
  10578. QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
  10579. QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
  10580. QCA_WLAN_VENDOR_CFR_TA_RA = 3,
  10581. QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
  10582. QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
  10583. };
  10584. /**
  10585. * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
  10586. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
  10587. * Channel Frequency Response capture parameters and enable periodic CFR
  10588. * capture.
  10589. *
  10590. * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
  10591. * MAC address of peer. This is for CFR version 1 only.
  10592. *
  10593. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
  10594. * Enable peer CFR Capture. This attribute is mandatory to
  10595. * enable peer CFR capture. If this attribute is not present,
  10596. * peer CFR capture is disabled.
  10597. *
  10598. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
  10599. * BW of measurement, attribute uses the values in enum nl80211_chan_width
  10600. * Supported values: 20, 40, 80, 80+80, 160.
  10601. * Note that all targets may not support all bandwidths.
  10602. * This attribute is mandatory for version 1 if attribute
  10603. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  10604. *
  10605. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
  10606. * Periodicity of CFR measurement in msec.
  10607. * Periodicity should be a multiple of Base timer.
  10608. * Current Base timer value supported is 10 msecs (default).
  10609. * 0 for one shot capture.
  10610. * This attribute is mandatory for version 1 if attribute
  10611. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  10612. *
  10613. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
  10614. * Method used to capture Channel Frequency Response.
  10615. * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
  10616. * This attribute is mandatory for version 1 if attribute
  10617. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  10618. *
  10619. * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
  10620. * Enable periodic CFR capture.
  10621. * This attribute is mandatory for version 1 to enable Periodic CFR capture.
  10622. * If this attribute is not present, periodic CFR capture is disabled.
  10623. *
  10624. * @QCA_WLAN_VENDOR_ATTR_CFR_VERSION: Optional (u8)
  10625. * Value is 1 or 2 since there are two versions of CFR capture. Two versions
  10626. * can't be enabled at same time. This attribute is mandatory if target
  10627. * support both versions and use one of them.
  10628. *
  10629. * @QCA_WLAN_VENDOR_ATTR_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
  10630. * This attribute is mandatory for version 2 if
  10631. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
  10632. * Bits 15:0 Bit fields indicating which group to be enabled.
  10633. * Bits 31:16 Reserved for future use.
  10634. *
  10635. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
  10636. * CFR capture duration in microsecond. This attribute is mandatory for
  10637. * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
  10638. *
  10639. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
  10640. * CFR capture interval in microsecond. This attribute is mandatory for
  10641. * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
  10642. *
  10643. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
  10644. * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
  10645. * This attribute is mandatory for version 2.
  10646. *
  10647. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
  10648. * Bit fields indicating which user in the current UL MU
  10649. * transmissions are enabled for CFR capture. Bits 36 to 0 indicating
  10650. * user indexes for 37 users in a UL MU transmission. If bit 0 is set,
  10651. * then the CFR capture will happen for user index 0 in the current
  10652. * UL MU transmission. If bits 0,2 are set, then CFR capture for UL MU
  10653. * TX corresponds to user indices 0 and 2. Bits 63:37 Reserved for future use.
  10654. * This is for CFR version 2 only.
  10655. *
  10656. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
  10657. * Indicates the number of consecutive Rx packets to be skipped
  10658. * before CFR capture is enabled again.
  10659. * This is for CFR version 2 only.
  10660. *
  10661. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
  10662. * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
  10663. *
  10664. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
  10665. * the following GROUP attributes:
  10666. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
  10667. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
  10668. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
  10669. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
  10670. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
  10671. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
  10672. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
  10673. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
  10674. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
  10675. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
  10676. *
  10677. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
  10678. * Target support multiple groups for some configurations. Group number could be
  10679. * any value between 0 and 15. This is for CFR version 2 only.
  10680. *
  10681. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
  10682. * Transmitter address which is used to filter packets, this MAC address takes
  10683. * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK.
  10684. * This is for CFR version 2 only.
  10685. *
  10686. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
  10687. * Receiver address which is used to filter packets, this MAC address takes
  10688. * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK.
  10689. * This is for CFR version 2 only.
  10690. *
  10691. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
  10692. * Mask of transmitter address which is used to filter packets.
  10693. * This is for CFR version 2 only.
  10694. *
  10695. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
  10696. * Mask of receiver address which is used to filter packets.
  10697. * This is for CFR version 2 only.
  10698. *
  10699. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
  10700. * Indicates packets with a specific NSS will be filtered for CFR capture.
  10701. * This is for CFR version 2 only. This is a bitmask. Bits 7:0, CFR capture will
  10702. * be done for packets matching the NSS specified within this bitmask.
  10703. * Bits 31:8 Reserved for future use. Bits 7:0 map to NSS:
  10704. * bit 0 : NSS 1
  10705. * bit 1 : NSS 2
  10706. * ...
  10707. * bit 7 : NSS 8
  10708. *
  10709. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
  10710. * Indicates packets with a specific BW will be filtered for CFR capture.
  10711. * This is for CFR version 2 only. This is a bitmask. Bits 4:0, CFR capture
  10712. * will be done for packets matching the bandwidths specified within this
  10713. * bitmask. Bits 31:5 Reserved for future use. Bits 4:0 map to bandwidth
  10714. * numerated in enum nl80211_band (although not all bands may be supported
  10715. * by a given device).
  10716. *
  10717. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
  10718. * Management packets matching the subtype filter categories will be
  10719. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  10720. * represents the corresponding mgmt subtype value as per
  10721. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  10722. * For example, beacon frame control type is 8, its value is 1<<8 = 0x100.
  10723. * This is for CFR version 2 only
  10724. *
  10725. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
  10726. * Control packets matching the subtype filter categories will be
  10727. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  10728. * represents the corresponding control subtype value as per
  10729. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  10730. * This is for CFR version 2 only.
  10731. *
  10732. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
  10733. * Data packets matching the subtype filter categories will be
  10734. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  10735. * represents the corresponding data subtype value as per
  10736. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  10737. * This is for CFR version 2 only.
  10738. *
  10739. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
  10740. * Userspace can use this attribute to specify the driver about which transport
  10741. * mode shall be used by the driver to send CFR data to userspace. Uses values
  10742. * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
  10743. * not present, driver shall choose the default transport mechanism which is
  10744. * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
  10745. *
  10746. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
  10747. * Userspace can use this attribute to specify the nl port id of the application
  10748. * which receives the CFR data and processes it further so that the drivers can
  10749. * unicast the NL events to a specific application. Optionally included when
  10750. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
  10751. * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
  10752. * shall multicast the netlink events when this attribute is not included.
  10753. *
  10754. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
  10755. * This attribute will be used by the driver to encapsulate and send CFR data
  10756. * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
  10757. * asynchronous event when the driver is configured to send CFR data using NL
  10758. * events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS
  10759. *
  10760. */
  10761. enum qca_wlan_vendor_peer_cfr_capture_attr {
  10762. QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
  10763. QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
  10764. QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
  10765. QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
  10766. QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
  10767. QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
  10768. QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
  10769. QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
  10770. QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
  10771. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
  10772. QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
  10773. QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
  10774. QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
  10775. QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
  10776. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
  10777. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
  10778. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
  10779. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
  10780. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
  10781. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
  10782. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
  10783. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
  10784. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
  10785. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
  10786. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
  10787. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
  10788. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
  10789. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
  10790. QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
  10791. /* Keep last */
  10792. QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
  10793. QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
  10794. QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
  10795. };
  10796. /**
  10797. * enum qca_coex_config_profiles - This enum defines different types of
  10798. * traffic streams that can be prioritized one over the other during coex
  10799. * scenarios.
  10800. * The types defined in this enum are categorized in the below manner.
  10801. * 0 - 31 values corresponds to WLAN
  10802. * 32 - 63 values corresponds to BT
  10803. * 64 - 95 values corresponds to Zigbee
  10804. * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
  10805. * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
  10806. * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
  10807. * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
  10808. * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
  10809. * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
  10810. * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
  10811. * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
  10812. * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
  10813. * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
  10814. * @QCA_BT_A2DP: Prioritize BT A2DP
  10815. * @QCA_BT_BLE: Prioritize BT BLE
  10816. * @QCA_BT_SCO: Prioritize BT SCO
  10817. * @QCA_ZB_LOW: Prioritize Zigbee Low
  10818. * @QCA_ZB_HIGH: Prioritize Zigbee High
  10819. */
  10820. enum qca_coex_config_profiles {
  10821. /* 0 - 31 corresponds to WLAN */
  10822. QCA_WIFI_STA_DISCOVERY = 0,
  10823. QCA_WIFI_STA_CONNECTION = 1,
  10824. QCA_WIFI_STA_CLASS_3_MGMT = 2,
  10825. QCA_WIFI_STA_DATA = 3,
  10826. QCA_WIFI_STA_ALL = 4,
  10827. QCA_WIFI_SAP_DISCOVERY = 5,
  10828. QCA_WIFI_SAP_CONNECTION = 6,
  10829. QCA_WIFI_SAP_CLASS_3_MGMT = 7,
  10830. QCA_WIFI_SAP_DATA = 8,
  10831. QCA_WIFI_SAP_ALL = 9,
  10832. QCA_WIFI_CASE_MAX = 31,
  10833. /* 32 - 63 corresponds to BT */
  10834. QCA_BT_A2DP = 32,
  10835. QCA_BT_BLE = 33,
  10836. QCA_BT_SCO = 34,
  10837. QCA_BT_CASE_MAX = 63,
  10838. /* 64 - 95 corresponds to Zigbee */
  10839. QCA_ZB_LOW = 64,
  10840. QCA_ZB_HIGH = 65,
  10841. QCA_ZB_CASE_MAX = 95,
  10842. /* 0xff is default value if the u8 profile value is not set. */
  10843. QCA_PROFILE_DEFAULT_VALUE = 255
  10844. };
  10845. /**
  10846. * enum qca_vendor_attr_coex_config_types - Coex configurations types.
  10847. * This enum defines the valid set of values of coex configuration types. These
  10848. * values may used by attribute
  10849. * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
  10850. *
  10851. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
  10852. * weights to default values.
  10853. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
  10854. * weights with configurability value.
  10855. */
  10856. enum qca_vendor_attr_coex_config_types {
  10857. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
  10858. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
  10859. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
  10860. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX
  10861. };
  10862. /**
  10863. * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
  10864. * attributes
  10865. * Attributes for data used by
  10866. * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
  10867. *
  10868. * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
  10869. * Indicate config type.
  10870. * the config types are 32-bit values from qca_vendor_attr_coex_config_types
  10871. *
  10872. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
  10873. * Indicate the Priority 1 profiles.
  10874. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10875. * In same priority level, maximum to 4 profiles can be set here.
  10876. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
  10877. * Indicate the Priority 2 profiles.
  10878. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10879. * In same priority level, maximum to 4 profiles can be set here.
  10880. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
  10881. * Indicate the Priority 3 profiles.
  10882. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10883. * In same priority level, maximum to 4 profiles can be set here.
  10884. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
  10885. * Indicate the Priority 4 profiles.
  10886. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10887. * In same priority level, maximum to 4 profiles can be set here.
  10888. * NOTE:
  10889. * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
  10890. * arrangement:
  10891. * 1: In the same u32 attribute(priority x), the profiles enum values own
  10892. * same priority level.
  10893. * 2: 0xff is default value if the u8 profile value is not set.
  10894. * 3: max to 4 rules/profiles in same priority level.
  10895. * 4: max to 4 priority level (priority 1 - priority 4)
  10896. * 5: one priority level only supports one scenario from WLAN/BT/ZB,
  10897. * hybrid rules not support.
  10898. * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
  10899. * remain blank to reset all parameters.
  10900. * For example:
  10901. *
  10902. * If the attributes as follow:
  10903. * priority 1:
  10904. * ------------------------------------
  10905. * | 0xff | 0 | 1 | 2 |
  10906. * ------------------------------------
  10907. * priority 2:
  10908. * -------------------------------------
  10909. * | 0xff | 0xff | 0xff | 32 |
  10910. * -------------------------------------
  10911. * priority 3:
  10912. * -------------------------------------
  10913. * | 0xff | 0xff | 0xff | 65 |
  10914. * -------------------------------------
  10915. * then it means:
  10916. * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  10917. * owns same priority level.
  10918. * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  10919. * has priority over BT_A2DP and ZB_HIGH.
  10920. * 3: BT_A2DP has priority over ZB_HIGH.
  10921. */
  10922. enum qca_vendor_attr_coex_config_three_way {
  10923. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
  10924. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
  10925. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
  10926. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
  10927. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
  10928. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
  10929. /* Keep last */
  10930. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
  10931. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
  10932. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
  10933. };
  10934. /**
  10935. * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
  10936. * This enum defines the valid set of values of peer stats cache types. These
  10937. * values are used by attribute
  10938. * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID.
  10939. *
  10940. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics.
  10941. * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics.
  10942. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn
  10943. * statistics
  10944. */
  10945. enum qca_vendor_attr_peer_stats_cache_type {
  10946. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
  10947. QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
  10948. QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
  10949. QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
  10950. };
  10951. /**
  10952. * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
  10953. * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
  10954. * Attributes are required to flush peer rate statistics from driver to
  10955. * user application.
  10956. *
  10957. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
  10958. * Indicate peer stats cache type.
  10959. * The statistics types are 32-bit values from
  10960. * qca_vendor_attr_peer_stats_cache_type
  10961. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
  10962. * of size 6, representing peer mac address.
  10963. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
  10964. * containing buffer of statistics to send event to application layer entity.
  10965. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
  10966. * representing cookie for peer unique session.
  10967. */
  10968. enum qca_wlan_vendor_attr_peer_stats_cache_params {
  10969. QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
  10970. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
  10971. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
  10972. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
  10973. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
  10974. /* Keep last */
  10975. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
  10976. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
  10977. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
  10978. };
  10979. /**
  10980. * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee.
  10981. * this enum defines all the possible state of zigbee, which can be
  10982. * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE.
  10983. *
  10984. * @ZIGBEE_IDLE: zigbee in idle state
  10985. * @ZIGBEE_FORM_NETWORK: zibee forming network
  10986. * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network
  10987. * @ZIGBEE_JOIN: zigbee joining network
  10988. * @ZIGBEE_NETWORK_UP: zigbee network is up
  10989. * @ZIGBEE_HMI: zigbee in HMI mode
  10990. */
  10991. enum qca_mpta_helper_attr_zigbee_state {
  10992. ZIGBEE_IDLE = 0,
  10993. ZIGBEE_FORM_NETWORK = 1,
  10994. ZIGBEE_WAIT_JOIN = 2,
  10995. ZIGBEE_JOIN = 3,
  10996. ZIGBEE_NETWORK_UP = 4,
  10997. ZIGBEE_HMI = 5,
  10998. };
  10999. /**
  11000. * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by
  11001. * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
  11002. */
  11003. enum qca_mpta_helper_vendor_attr {
  11004. QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
  11005. /* Optional attribute used to update zigbee state.
  11006. * enum qca_mpta_helper_attr_zigbee_state.
  11007. * NLA_U32 attribute.
  11008. */
  11009. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
  11010. /* Optional attribute used to configure wlan duration for Shape-OCS
  11011. * during interrupt.
  11012. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
  11013. * Value range 0 ~ 300 (ms).
  11014. * NLA_U32 attribute.
  11015. */
  11016. QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
  11017. /* Optional attribute used to configure non wlan duration for Shape-OCS
  11018. * during interrupt.
  11019. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
  11020. * Value range 0 ~ 300 (ms).
  11021. * NLA_U32 attribute.
  11022. */
  11023. QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
  11024. /* Optional attribute used to configure wlan duration for Shape-OCS
  11025. * monitor period.
  11026. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
  11027. * Value range 0 ~ 300 (ms)
  11028. * NLA_U32 attribute
  11029. */
  11030. QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
  11031. /* Optional attribute used to configure non wlan duration for Shape-OCS
  11032. * monitor period.
  11033. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
  11034. * Value range 0 ~ 300 (ms)
  11035. * NLA_U32 attribute
  11036. */
  11037. QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
  11038. /* Optional attribute used to configure ocs interrupt duration.
  11039. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
  11040. * Value range 1000 ~ 20000 (ms)
  11041. * NLA_U32 attribute
  11042. */
  11043. QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
  11044. /* Optional attribute used to configure ocs monitor duration.
  11045. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
  11046. * Value range 1000 ~ 20000 (ms)
  11047. * NLA_U32 attribute
  11048. */
  11049. QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
  11050. /* Optional attribute used to notify wlan FW current zigbee channel.
  11051. * Value range 11 ~ 26
  11052. * NLA_U32 attribute
  11053. */
  11054. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
  11055. /* Optional attribute used to configure wlan mute duration.
  11056. * Value range 0 ~ 400 (ms)
  11057. * NLA_U32 attribute
  11058. */
  11059. QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
  11060. /* keep last */
  11061. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
  11062. QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
  11063. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
  11064. };
  11065. /**
  11066. * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
  11067. * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be
  11068. * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
  11069. *
  11070. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
  11071. * to request the driver to start reporting Beacon frames.
  11072. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver
  11073. * to request the driver to stop reporting Beacon frames.
  11074. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
  11075. * userspace to report received Beacon frames.
  11076. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
  11077. * to indicate that the driver is going to pause reporting Beacon frames.
  11078. */
  11079. enum qca_wlan_vendor_beacon_reporting_op_types {
  11080. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
  11081. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
  11082. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
  11083. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
  11084. };
  11085. /**
  11086. * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different
  11087. * types of reasons for which the driver is pausing reporting Beacon frames.
  11088. * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
  11089. *
  11090. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
  11091. * reasons.
  11092. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
  11093. * driver/firmware is starting a scan.
  11094. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
  11095. * driver/firmware disconnects from the ESS and indicates the disconnection to
  11096. * userspace (non-seamless roaming case). This reason code will be used by the
  11097. * driver/firmware to indicate stopping of beacon report events. Userspace
  11098. * will need to start beacon reporting again (if desired) by sending vendor
  11099. * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
  11100. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
  11101. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
  11102. * completed.
  11103. */
  11104. enum qca_wlan_vendor_beacon_reporting_pause_reasons {
  11105. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
  11106. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
  11107. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
  11108. };
  11109. /*
  11110. * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
  11111. * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
  11112. */
  11113. enum qca_wlan_vendor_attr_beacon_reporting_params {
  11114. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
  11115. /* Specifies the type of operation that the vendor command/event is
  11116. * intended for. Possible values for this attribute are defined in
  11117. * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
  11118. */
  11119. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
  11120. /* Optionally set by userspace to request the driver to report Beacon
  11121. * frames using asynchronous vendor events when the
  11122. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11123. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  11124. * If this flag is not set, the driver will only update Beacon frames
  11125. * in cfg80211 scan cache but not send any vendor events.
  11126. */
  11127. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
  11128. /* Optionally used by userspace to request the driver/firmware to
  11129. * report Beacon frames periodically when the
  11130. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11131. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
  11132. * u32 attribute, indicates the period of Beacon frames to be reported
  11133. * and in the units of beacon interval.
  11134. * If this attribute is missing in the command, then the default value
  11135. * of 1 will be assumed by driver, i.e., to report every Beacon frame.
  11136. * Zero is an invalid value.
  11137. * If a valid value is received for this attribute, the driver will
  11138. * update the cfg80211 scan cache periodically as per the value
  11139. * received in this attribute in addition to updating the cfg80211 scan
  11140. * cache when there is significant change in Beacon frame IEs.
  11141. */
  11142. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
  11143. /* Used by the driver to encapsulate the SSID when the
  11144. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11145. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  11146. * u8 array with a maximum size of 32.
  11147. *
  11148. * When generating beacon report from non-MBSSID Beacon frame, the SSID
  11149. * will be taken from the SSID element of the received Beacon frame.
  11150. *
  11151. * When generating beacon report from Multiple BSSID Beacon frame and
  11152. * if the BSSID of the current connected BSS matches the BSSID of the
  11153. * transmitting BSS, the SSID will be taken from the SSID element of
  11154. * the received Beacon frame.
  11155. *
  11156. * When generating beacon report from Multiple BSSID Beacon frame and
  11157. * if the BSSID of the current connected BSS matches the BSSID of one
  11158. * of the* nontransmitting BSSs, the SSID will be taken from the SSID
  11159. * field included in the nontransmitted BSS profile whose derived BSSI
  11160. * is same as the BSSID of the current connected BSS. When there is no
  11161. * nontransmitted BSS profile whose derived BSSID is same as the BSSID
  11162. * of current connected* BSS, this attribute will not be present.
  11163. */
  11164. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
  11165. /* Used by the driver to encapsulate the BSSID of the AP to which STA
  11166. * is currently connected to when the
  11167. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11168. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
  11169. * fixed size of 6 bytes.
  11170. *
  11171. * When generating beacon report from a Multiple BSSID beacon and the
  11172. * current connected BSSID matches one of the nontransmitted BSSIDs in
  11173. * a Multiple BSSID set, this BSSID will be that particular
  11174. * nontransmitted BSSID and not the transmitted BSSID (i.e., the
  11175. * transmitting address of the Beacon frame).
  11176. */
  11177. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
  11178. /* Used by the driver to encapsulate the frequency in MHz on which
  11179. * the Beacon frame was received when the
  11180. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
  11181. * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  11182. * u32 attribute.
  11183. */
  11184. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
  11185. /* Used by the driver to encapsulate the Beacon interval
  11186. * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11187. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  11188. * u16 attribute. The value will be copied from the Beacon frame and
  11189. * the units are TUs.
  11190. */
  11191. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
  11192. /* Used by the driver to encapsulate the Timestamp field from the
  11193. * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE
  11194. * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  11195. * u64 attribute.
  11196. */
  11197. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
  11198. /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
  11199. * Beacon frame is received in the driver when the
  11200. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11201. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
  11202. * the units of nanoseconds. This value is expected to have accuracy of
  11203. * about 10 ms.
  11204. */
  11205. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
  11206. /* Used by the driver to encapsulate the IEs of the Beacon frame from
  11207. * which this event is generated when the
  11208. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11209. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
  11210. */
  11211. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
  11212. /* Used by the driver to specify the reason for the driver/firmware to
  11213. * pause sending beacons to userspace when the
  11214. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11215. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
  11216. * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
  11217. * attribute.
  11218. */
  11219. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
  11220. /* Used by the driver to specify whether the driver will automatically
  11221. * resume reporting beacon events to userspace later (for example after
  11222. * the ongoing off-channel activity is completed etc.) when the
  11223. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11224. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
  11225. */
  11226. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
  11227. /* Optionally set by userspace to request the driver not to resume
  11228. * beacon reporting after a pause is completed, when the
  11229. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11230. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  11231. * If this flag is set, the driver will not resume beacon reporting
  11232. * after any pause in beacon reporting is completed. Userspace has to
  11233. * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
  11234. * to initiate beacon reporting again. If this flag is set in the recent
  11235. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
  11236. * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
  11237. * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
  11238. * set by the driver. Setting this flag until and unless there is a
  11239. * specific need is not recommended as there is a chance of some beacons
  11240. * received after pause command and next start command being not
  11241. * reported.
  11242. */
  11243. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
  11244. /* Keep last */
  11245. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
  11246. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
  11247. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
  11248. };
  11249. /**
  11250. * enum qca_vendor_oem_device_type - Represents the target device in firmware.
  11251. * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
  11252. *
  11253. * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
  11254. * a virtual device.
  11255. *
  11256. * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
  11257. * a physical device.
  11258. */
  11259. enum qca_vendor_oem_device_type {
  11260. QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
  11261. QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
  11262. };
  11263. /*
  11264. * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command
  11265. * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
  11266. *
  11267. * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
  11268. * used to set/query the data to/from the firmware. On query, the same
  11269. * attribute is used to carry the respective data in the reply sent by the
  11270. * driver to userspace. The request to set/query the data and the format of the
  11271. * respective data from the firmware are embedded in the attribute. The
  11272. * maximum size of the attribute payload is 1024 bytes.
  11273. *
  11274. * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
  11275. * based on this field. This optional attribute is included to specify whether
  11276. * the device type is a virtual device or a physical device for the command.
  11277. * This attribute can be omitted for a virtual device (default) command.
  11278. * This u8 attribute is used to carry information for the device type using
  11279. * values defined by enum qca_vendor_oem_device_type.
  11280. *
  11281. * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
  11282. * attribute when the data is queried from the firmware.
  11283. *
  11284. * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
  11285. * is set when the userspace queries data from the firmware. This attribute
  11286. * should not be set when userspace sets the OEM data to the firmware.
  11287. */
  11288. enum qca_wlan_vendor_attr_oem_data_params {
  11289. QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
  11290. QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
  11291. QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
  11292. QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
  11293. /* keep last */
  11294. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
  11295. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
  11296. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
  11297. };
  11298. /**
  11299. * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
  11300. * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
  11301. *
  11302. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
  11303. * Nested attribute containing multiple ranges with following attributes:
  11304. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
  11305. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
  11306. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
  11307. *
  11308. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
  11309. * Starting center frequency in MHz.
  11310. *
  11311. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
  11312. * Ending center frequency in MHz.
  11313. *
  11314. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
  11315. * s32 attribute, optional. It is a per frequency range attribute.
  11316. * The maximum TX power limit from user space is to be applied on an
  11317. * unrestricted interface for corresponding frequency range. It is also
  11318. * possible that the actual TX power may be even lower than this cap due to
  11319. * other considerations such as regulatory compliance, SAR, etc. In absence of
  11320. * this attribute the driver shall follow current behavior which means
  11321. * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
  11322. * power derived by the driver based on regulatory/SAR during interface up.
  11323. *
  11324. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
  11325. * u32 attribute, optional. Indicates all the interface types which are
  11326. * restricted for all frequency ranges provided in
  11327. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
  11328. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
  11329. * This attribute encapsulates bitmasks of interface types defined in
  11330. * enum nl80211_iftype. If an interface is marked as restricted the driver must
  11331. * move to a safe channel and if no safe channel is available the driver shall
  11332. * terminate that interface functionality. In absence of this attribute,
  11333. * interface (SAP/P2P) can still continue operating on an unsafe channel with
  11334. * TX power limit derived from either
  11335. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
  11336. * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
  11337. * is not provided.
  11338. */
  11339. enum qca_wlan_vendor_attr_avoid_frequency_ext {
  11340. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
  11341. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
  11342. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
  11343. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
  11344. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
  11345. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
  11346. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
  11347. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
  11348. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
  11349. };
  11350. /*
  11351. * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
  11352. * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
  11353. */
  11354. enum qca_wlan_vendor_attr_add_sta_node_params {
  11355. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
  11356. /* 6 byte MAC address of STA */
  11357. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
  11358. /* Authentication algorithm used by the station of size u16;
  11359. * defined in enum nl80211_auth_type.
  11360. */
  11361. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
  11362. /* keep last */
  11363. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
  11364. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
  11365. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
  11366. };
  11367. /**
  11368. * enum qca_btc_chain_mode - Specifies BT coex chain mode.
  11369. * This enum defines the valid set of values of BT coex chain mode.
  11370. * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
  11371. * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
  11372. *
  11373. * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared.
  11374. * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are
  11375. * separated, hybrid mode.
  11376. * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are
  11377. * separated, fixed FDD mode.
  11378. */
  11379. enum qca_btc_chain_mode {
  11380. QCA_BTC_CHAIN_SHARED = 0,
  11381. QCA_BTC_CHAIN_SEPARATED_HYBRID = 1,
  11382. QCA_BTC_CHAIN_SEPARATED_FDD = 2,
  11383. };
  11384. /* deprecated legacy name */
  11385. #define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID
  11386. /**
  11387. * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
  11388. * chain mode.
  11389. * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
  11390. *
  11391. * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
  11392. * Indicates the BT coex chain mode, are 32-bit values from
  11393. * enum qca_btc_chain_mode. This attribute is mandatory.
  11394. *
  11395. * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
  11396. * If set, vdev should be restarted when BT coex chain mode is updated.
  11397. * This attribute is optional.
  11398. */
  11399. enum qca_vendor_attr_btc_chain_mode {
  11400. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
  11401. QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
  11402. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
  11403. /* Keep last */
  11404. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
  11405. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
  11406. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
  11407. };
  11408. /**
  11409. * enum qca_vendor_wlan_sta_flags - Station feature flags
  11410. * Bits will be set to 1 if the corresponding features are enabled.
  11411. * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
  11412. * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
  11413. for the station
  11414. * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
  11415. for the station
  11416. */
  11417. enum qca_vendor_wlan_sta_flags {
  11418. QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
  11419. QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
  11420. QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
  11421. };
  11422. /**
  11423. * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
  11424. * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
  11425. * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
  11426. * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
  11427. * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
  11428. */
  11429. enum qca_vendor_wlan_sta_guard_interval {
  11430. QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
  11431. QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
  11432. QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
  11433. QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
  11434. };
  11435. /**
  11436. * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
  11437. * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
  11438. *
  11439. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
  11440. * Required attribute in request for AP mode only, 6-byte MAC address,
  11441. * corresponding to the station's MAC address for which information is
  11442. * requested. For STA mode this is not required as the info always correspond
  11443. * to the self STA and the current/last association.
  11444. *
  11445. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
  11446. * Optionally used in response, u32 attribute, contains a bitmap of different
  11447. * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
  11448. *
  11449. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
  11450. * Optionally used in response, u32 attribute, possible values are defined in
  11451. * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
  11452. * Guard interval used by the station.
  11453. *
  11454. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
  11455. * Optionally used in response, u32 attribute, used in AP mode only.
  11456. * Value indicates the number of data frames received from station with retry
  11457. * bit set to 1 in FC.
  11458. *
  11459. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
  11460. * Optionally used in response, u32 attribute, used in AP mode only.
  11461. * Counter for number of data frames with broadcast or multicast address in
  11462. * the destination address received from the station.
  11463. *
  11464. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
  11465. * Optionally used in response, u32 attribute, used in both STA and AP modes.
  11466. * Value indicates the number of data frames successfully transmitted only
  11467. * after retrying the packets and for which the TX status has been updated
  11468. * back to host from target.
  11469. *
  11470. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
  11471. * Optionally used in response, u32 attribute, used in both STA and AP mode.
  11472. * Value indicates the number of data frames not transmitted successfully even
  11473. * after retrying the packets for the number of times equal to the total number
  11474. * of retries allowed for that packet and for which the TX status has been
  11475. * updated back to host from target.
  11476. *
  11477. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
  11478. * Optionally used in response, u32 attribute, used in AP mode only.
  11479. * Counter in the target for the number of data frames successfully transmitted
  11480. * to the station.
  11481. *
  11482. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
  11483. * Optionally used in response, u32 attribute, used in AP mode only.
  11484. * Value indicates the number of data frames successfully transmitted only
  11485. * after retrying the packets.
  11486. *
  11487. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
  11488. * Optionally used in response, u32 attribute, used in both STA & AP mode.
  11489. * Value indicates the number of data frames not transmitted successfully even
  11490. * after retrying the packets for the number of times equal to the total number
  11491. * of retries allowed for that packet.
  11492. *
  11493. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
  11494. * the STA mode only. Represent the number of probe requests sent by the STA
  11495. * while attempting to roam on missing certain number of beacons from the
  11496. * connected AP. If queried in the disconnected state, this represents the
  11497. * count for the last connected state.
  11498. *
  11499. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
  11500. * the STA mode. Represent the number of probe responses received by the station
  11501. * while attempting to roam on missing certain number of beacons from the
  11502. * connected AP. When queried in the disconnected state, this represents the
  11503. * count when in last connected state.
  11504. *
  11505. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
  11506. * STA mode only. Represents the total number of frames sent out by STA
  11507. * including Data, ACK, RTS, CTS, Control Management. This data is maintained
  11508. * only for the connect session. Represents the count of last connected session,
  11509. * when queried in the disconnected state.
  11510. *
  11511. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
  11512. * Total number of RTS sent out by the STA. This data is maintained per connect
  11513. * session. Represents the count of last connected session, when queried in the
  11514. * disconnected state.
  11515. *
  11516. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
  11517. * STA mode.Represent the number of RTS transmission failure that reach retry
  11518. * limit. This data is maintained per connect session. Represents the count of
  11519. * last connected session, when queried in the disconnected state.
  11520. *
  11521. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
  11522. * the STA mode. Represent the total number of non aggregated frames transmitted
  11523. * by the STA. This data is maintained per connect session. Represents the count
  11524. * of last connected session, when queried in the disconnected state.
  11525. *
  11526. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
  11527. * STA mode. Represent the total number of aggregated frames transmitted by the
  11528. * STA. This data is maintained per connect session. Represents the count of
  11529. * last connected session, when queried in the disconnected state.
  11530. *
  11531. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
  11532. * the STA mode. Represents the number of received frames with a good PLCP. This
  11533. * data is maintained per connect session. Represents the count of last
  11534. * connected session, when queried in the disconnected state.
  11535. *
  11536. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
  11537. * used in the STA mode. Represents the number of occasions that no valid
  11538. * delimiter is detected by A-MPDU parser. This data is maintained per connect
  11539. * session. Represents the count of last connected session, when queried in the
  11540. * disconnected state.
  11541. *
  11542. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
  11543. * STA mode. Represents the number of frames for which CRC check failed in the
  11544. * MAC. This data is maintained per connect session. Represents the count of
  11545. * last connected session, when queried in the disconnected state.
  11546. *
  11547. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
  11548. * STA mode. Represents the number of unicast ACKs received with good FCS. This
  11549. * data is maintained per connect session. Represents the count of last
  11550. * connected session, when queried in the disconnected state.
  11551. *
  11552. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
  11553. * mode. Represents the number of received Block Acks. This data is maintained
  11554. * per connect session. Represents the count of last connected session, when
  11555. * queried in the disconnected state.
  11556. *
  11557. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
  11558. * mode. Represents the number of beacons received from the connected BSS. This
  11559. * data is maintained per connect session. Represents the count of last
  11560. * connected session, when queried in the disconnected state.
  11561. *
  11562. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
  11563. * STA mode. Represents the number of beacons received by the other BSS when in
  11564. * connected state (through the probes done by the STA). This data is maintained
  11565. * per connect session. Represents the count of last connected session, when
  11566. * queried in the disconnected state.
  11567. *
  11568. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
  11569. * the STA mode. Represents the number of received DATA frames with good FCS and
  11570. * matching Receiver Address when in connected state. This data is maintained
  11571. * per connect session. Represents the count of last connected session, when
  11572. * queried in the disconnected state.
  11573. *
  11574. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
  11575. * STA mode. Represents the number of RX Data multicast frames dropped by the HW
  11576. * when in the connected state. This data is maintained per connect session.
  11577. * Represents the count of last connected session, when queried in the
  11578. * disconnected state.
  11579. *
  11580. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
  11581. * STA mode. This represents the target power in dBm for the transmissions done
  11582. * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
  11583. * connect session. Represents the count of last connected session, when
  11584. * queried in the disconnected state.
  11585. *
  11586. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
  11587. * STA mode. This represents the Target power in dBm for transmissions done to
  11588. * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
  11589. * session. Represents the count of last connected session, when queried in the
  11590. * disconnected state.
  11591. *
  11592. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
  11593. * STA mode. This represents the Target power in dBm for transmissions done to
  11594. * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
  11595. * Represents the count of last connected session, when queried in the
  11596. * disconnected state.
  11597. *
  11598. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
  11599. * STA mode. This represents the Target power in dBm for transmissions done to
  11600. * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
  11601. * session. Represents the count of last connected session, when queried in
  11602. * the disconnected state.
  11603. *
  11604. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
  11605. * STA mode. This represents the Target power in dBm for for transmissions done
  11606. * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
  11607. * Represents the count of last connected session, when queried in the
  11608. * disconnected state.
  11609. *
  11610. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
  11611. * in the STA mode. This represents the Nested attribute representing the
  11612. * overflow counts of each receive buffer allocated to the hardware during the
  11613. * STA's connection. The number of hw buffers might vary for each WLAN
  11614. * solution and hence this attribute represents the nested array of all such
  11615. * HW buffer count. This data is maintained per connect session. Represents
  11616. * the count of last connected session, when queried in the disconnected state.
  11617. *
  11618. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
  11619. * allowed as per the regulatory requirements for the current or last connected
  11620. * session. Used in the STA mode.
  11621. *
  11622. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
  11623. * (dBm) used by the station in its latest unicast frame while communicating
  11624. * to the AP in the connected state. When queried in the disconnected state,
  11625. * this represents the TX power used by the STA with last AP communication
  11626. * when in connected state.
  11627. *
  11628. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
  11629. * level used to adjust the RX sensitivity. Represents the current ANI level
  11630. * when queried in the connected state. When queried in the disconnected
  11631. * state, this corresponds to the latest ANI level at the instance of
  11632. * disconnection.
  11633. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
  11634. * only. This represents the number of group addressed robust management frames
  11635. * received from this station with an invalid MIC or a missing MME when PMF is
  11636. * enabled.
  11637. *
  11638. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
  11639. * only. This represents the number of group addressed robust management frames
  11640. * received from this station with the packet number less than or equal to the
  11641. * last received packet number when PMF is enabled.
  11642. *
  11643. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
  11644. * mode only. This represents the number of Beacon frames received from this
  11645. * station with an invalid MIC or a missing MME when beacon protection is
  11646. * enabled.
  11647. *
  11648. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
  11649. * only. This represents number of Beacon frames received from this station with
  11650. * the packet number less than or equal to the last received packet number when
  11651. * beacon protection is enabled.
  11652. *
  11653. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
  11654. * STA mode only. Driver uses this attribute to populate the connection failure
  11655. * reason codes and the values are defined in
  11656. * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
  11657. * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
  11658. * connection failure from driver. The driver shall not include this attribute
  11659. * in response to QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no
  11660. * connection failure observed in the last attempted connection.
  11661. *
  11662. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
  11663. * used by the station in its last TX frame while communicating to the AP in the
  11664. * connected state. When queried in the disconnected state, this represents the
  11665. * rate used by the STA in the last TX frame to the AP when it was connected.
  11666. * This attribute is used for STA mode only.
  11667. *
  11668. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
  11669. * This represents the rate index used by the STA for the last TX frame to the
  11670. * AP. When queried in the disconnected state, this gives the last RIX used by
  11671. * the STA in the last TX frame to the AP when it was connected.
  11672. *
  11673. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
  11674. * mode only. This represents the number of times the STA TSF goes out of sync
  11675. * from the AP after the connection. If queried in the disconnected state, this
  11676. * gives the count of TSF out of sync for the last connection.
  11677. *
  11678. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
  11679. * mode only. This represents the roam trigger reason for the last roaming
  11680. * attempted by the firmware. This can be queried either in connected state or
  11681. * disconnected state. Each bit of this attribute represents the different
  11682. * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
  11683. *
  11684. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
  11685. * only. This represents the roam fail reason for the last failed roaming
  11686. * attempt by the firmware. Different roam failure reason codes are specified
  11687. * in enum qca_vendor_roam_fail_reasons. This can be queried either in
  11688. * connected state or disconnected state.
  11689. *
  11690. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
  11691. * STA mode only. This represents the roam invoke fail reason for the last
  11692. * failed roam invoke. Different roam invoke failure reason codes
  11693. * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
  11694. * queried either in connected state or disconnected state.
  11695. *
  11696. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
  11697. * This represents the average congestion duration of uplink frames in MAC
  11698. * queue in unit of ms. This can be queried either in connected state or
  11699. * disconnected state.
  11700. *
  11701. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Mandatory u32 Nested
  11702. * attribute, used in AP mode. This represents the MPDU packet count per MCS
  11703. * rate value of TX packets. Every index of this nested attribute corresponds
  11704. * to MCS index, for example Index 0 represents MCS0 TX rate. This can be
  11705. * queried in connected state.
  11706. *
  11707. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Mandatory u32 Nested
  11708. * attribute, used in AP mode. This represents the MPDU packet count per MCS
  11709. * rate value of RX packets. Every index of this nested attribute corresponds
  11710. * to MCS index, for example Index 0 represents MCS0 RX rate. This can be
  11711. * queried in connected state.
  11712. */
  11713. enum qca_wlan_vendor_attr_get_sta_info {
  11714. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
  11715. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
  11716. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
  11717. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
  11718. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
  11719. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
  11720. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
  11721. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
  11722. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
  11723. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
  11724. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
  11725. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
  11726. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
  11727. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
  11728. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
  11729. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
  11730. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
  11731. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
  11732. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
  11733. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
  11734. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
  11735. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
  11736. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
  11737. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
  11738. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
  11739. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
  11740. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
  11741. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
  11742. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
  11743. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
  11744. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
  11745. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
  11746. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
  11747. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
  11748. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
  11749. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
  11750. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
  11751. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
  11752. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
  11753. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
  11754. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
  11755. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
  11756. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
  11757. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
  11758. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
  11759. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
  11760. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
  11761. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
  11762. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51,
  11763. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52,
  11764. /* keep last */
  11765. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
  11766. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
  11767. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
  11768. };
  11769. /**
  11770. * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
  11771. * Used when the driver triggers the STA to disconnect from the AP.
  11772. *
  11773. * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
  11774. * disconnection with the AP due to unspecified reasons.
  11775. *
  11776. * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
  11777. * disconnection with the AP due to a roaming failure. This roaming is triggered
  11778. * internally (host driver/firmware).
  11779. *
  11780. * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
  11781. * the AP when the user/external triggered roaming fails.
  11782. *
  11783. * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
  11784. * by the host driver whenever gateway reachability failure is detected and the
  11785. * driver disconnects with AP.
  11786. *
  11787. * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
  11788. * the AP on a channel switch announcement from it with an unsupported channel.
  11789. *
  11790. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
  11791. * with indoor channels disabled and if the STA is connected on one of these
  11792. * disabled channels, the host driver disconnected the STA with this reason
  11793. * code.
  11794. *
  11795. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
  11796. * explicit request from the user to disable the current operating channel.
  11797. *
  11798. * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
  11799. * the internal host driver/firmware recovery.
  11800. *
  11801. * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
  11802. * a timeout for the key installations from the user space.
  11803. *
  11804. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
  11805. * STA on a band change request from the user space to a different band from the
  11806. * current operation channel/band.
  11807. *
  11808. * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
  11809. * interface down trigger from the user space.
  11810. *
  11811. * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
  11812. * STA on getting continuous transmission failures for multiple Data frames.
  11813. *
  11814. * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
  11815. * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
  11816. * represents inactivity from AP on such transmissions.
  11817. * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
  11818. * disconnection when SA Query times out (AP does not respond to SA Query).
  11819. *
  11820. * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
  11821. * STA on missing the beacons continuously from the AP.
  11822. *
  11823. * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
  11824. * able to move to the channel mentioned by the AP in CSA.
  11825. *
  11826. * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
  11827. */
  11828. enum qca_disconnect_reason_codes {
  11829. QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
  11830. QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
  11831. QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
  11832. QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
  11833. QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
  11834. QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
  11835. QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
  11836. QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
  11837. QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
  11838. QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
  11839. QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
  11840. QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
  11841. QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
  11842. QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
  11843. QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
  11844. QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
  11845. QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
  11846. };
  11847. /**
  11848. * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
  11849. * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
  11850. *
  11851. * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
  11852. * This attribute represents the driver specific reason codes (local
  11853. * driver/firmware initiated reasons for disconnection) defined
  11854. * in enum qca_disconnect_reason_codes.
  11855. */
  11856. enum qca_wlan_vendor_attr_driver_disconnect_reason {
  11857. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
  11858. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
  11859. /* keep last */
  11860. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
  11861. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
  11862. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
  11863. };
  11864. /**
  11865. * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
  11866. *
  11867. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
  11868. */
  11869. enum qca_wlan_tspec_operation {
  11870. QCA_WLAN_TSPEC_ADD = 0,
  11871. QCA_WLAN_TSPEC_DEL = 1,
  11872. QCA_WLAN_TSPEC_GET = 2,
  11873. };
  11874. /**
  11875. * enum qca_wlan_tspec_direction - Direction in TSPEC
  11876. * As what is defined in IEEE Std 802.11-2016, Table 9-139.
  11877. *
  11878. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
  11879. */
  11880. enum qca_wlan_tspec_direction {
  11881. QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
  11882. QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
  11883. QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
  11884. QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
  11885. };
  11886. /**
  11887. * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC
  11888. * As what is defined in IEEE Std 802.11-2016, Table 9-141.
  11889. *
  11890. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
  11891. */
  11892. enum qca_wlan_tspec_ack_policy {
  11893. QCA_WLAN_TSPEC_NORMAL_ACK = 0,
  11894. QCA_WLAN_TSPEC_NO_ACK = 1,
  11895. /* Reserved */
  11896. QCA_WLAN_TSPEC_BLOCK_ACK = 3,
  11897. };
  11898. /**
  11899. * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
  11900. * used by QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
  11901. *
  11902. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
  11903. * u8 attribute. Specify the TSPEC operation of this request. Possible values
  11904. * are defined in enum qca_wlan_tspec_operation.
  11905. * Mandatory attribute for all kinds of config TSPEC requests.
  11906. *
  11907. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
  11908. * u8 attribute. TS ID. Possible values are 0-7.
  11909. * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
  11910. * QCA_WLAN_TSPEC_GET. A mandatory attribute.
  11911. *
  11912. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
  11913. * u8 attribute. Direction of data carried by the TS. Possible values are
  11914. * defined in enum qca_wlan_tspec_direction.
  11915. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11916. *
  11917. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
  11918. * Flag attribute. Indicate whether APSD is enabled for the traffic associated
  11919. * with the TS. set - enabled, not set - disabled.
  11920. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11921. *
  11922. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
  11923. * u8 attribute. User priority to be used for the transport of MSDUs/ -MSDUs
  11924. * belonging to this TS. Possible values are 0-7.
  11925. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11926. *
  11927. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
  11928. * u8 attribute. Indicate whether MAC acknowledgements are required for
  11929. * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
  11930. * Possible values are defined in enum qca_wlan_tspec_ack_policy.
  11931. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11932. *
  11933. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
  11934. * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
  11935. * belonging to this TS.
  11936. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11937. *
  11938. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
  11939. * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
  11940. * belonging to this TS.
  11941. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11942. *
  11943. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
  11944. * u32 attribute. Specify the minimum interval in microseconds between the
  11945. * start of two successive SPs.
  11946. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11947. *
  11948. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
  11949. * u32 attribute. Specify the maximum interval in microseconds between the
  11950. * start of two successive SPs.
  11951. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11952. *
  11953. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
  11954. * u32 attribute. Specify the minimum interval in microseconds that can elapse
  11955. * without arrival or transfer of an MPDU belonging to the TS before this TS
  11956. * is deleted by the MAC entity at the HC.
  11957. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11958. *
  11959. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
  11960. * u32 attribute. Specify the minimum interval in microseconds that can elapse
  11961. * without arrival or transfer of an MSDU belonging to the TS before the
  11962. * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
  11963. * 0xFFFFFFFF disables the suspension interval. The value of the suspension
  11964. * interval is always less than or equal to the inactivity interval.
  11965. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11966. *
  11967. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
  11968. * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
  11969. * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
  11970. * bounds of this TSPEC.
  11971. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11972. *
  11973. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
  11974. * u32 attribute. Indicate the average data rate in bps specified at the MAC
  11975. * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
  11976. * bounds of this TSPEC.
  11977. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11978. *
  11979. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
  11980. * u32 attribute. Indicate the maximum allowable data rate in bps specified at
  11981. * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
  11982. * the bounds of this TSPEC.
  11983. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11984. *
  11985. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
  11986. * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
  11987. * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
  11988. * value of 0 indicates that there are no bursts.
  11989. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11990. *
  11991. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
  11992. * u32 attribute. Indicate the minimum PHY rate in bps for transport of
  11993. * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
  11994. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11995. *
  11996. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
  11997. * u16 attribute. Specify the excess allocation of time (and bandwidth) over
  11998. * and above the stated application rates required to transport an MSDU/A-MSDU
  11999. * belonging to the TS in this TSPEC.
  12000. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  12001. */
  12002. enum qca_wlan_vendor_attr_config_tspec {
  12003. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
  12004. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
  12005. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
  12006. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
  12007. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
  12008. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
  12009. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
  12010. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
  12011. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
  12012. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
  12013. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
  12014. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
  12015. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
  12016. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
  12017. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
  12018. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
  12019. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
  12020. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
  12021. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
  12022. /* keep last */
  12023. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
  12024. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
  12025. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
  12026. };
  12027. /**
  12028. * enum qca_wlan_medium_assess_type - Type of medium assess request
  12029. *
  12030. * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
  12031. */
  12032. enum qca_wlan_medium_assess_type {
  12033. QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
  12034. QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
  12035. };
  12036. /**
  12037. * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
  12038. * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
  12039. *
  12040. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
  12041. * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
  12042. * Specify the type of medium assess request and indicate its type in response.
  12043. * Possible values are defined in enum qca_wlan_medium_assess_type.
  12044. *
  12045. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
  12046. * u32 attribute. Mandatory in CCA request.
  12047. * Specify the assessment period in terms of seconds. Assessment result will be
  12048. * sent as the response to the CCA request after the assessment period.
  12049. *
  12050. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
  12051. * u32 attribute. Mandatory in response to CCA request.
  12052. * Total timer tick count of the assessment cycle.
  12053. *
  12054. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
  12055. * u32 attribute. Mandatory in response to CCA request.
  12056. * Timer tick count of idle time in the assessment cycle.
  12057. *
  12058. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
  12059. * u32 attribute. Mandatory in response to CCA request.
  12060. * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
  12061. *
  12062. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
  12063. * u32 attribute. Mandatory in response to CCA request.
  12064. * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
  12065. *
  12066. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
  12067. * s32 attribute. Mandatory in response to CCA request.
  12068. * Maximum RSSI of Intra BSS traffic in the assessment cycle.
  12069. *
  12070. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
  12071. * s32 attribute. Mandatory in response to CCA request.
  12072. * Minimum RSSI of Intra BSS traffic in the assessment cycle.
  12073. *
  12074. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
  12075. * u8 attribute. Mandatory in congestion report request.
  12076. * 1-enable 0-disable.
  12077. *
  12078. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
  12079. * u8 attribute. Mandatory in congestion report enable request and will be
  12080. * ignored if present in congestion report disable request. Possible values are
  12081. * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
  12082. * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
  12083. * congestion percentage reaches the configured threshold.
  12084. *
  12085. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
  12086. * u8 attribute. Optional in congestion report enable request and will be
  12087. * ignored if present in congestion report disable request.
  12088. * Specify the interval of congestion report event in terms of seconds. Possible
  12089. * values are 1-255. Default value 1 will be used if this attribute is omitted
  12090. * or using invalid values.
  12091. *
  12092. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
  12093. * u8 attribute. Mandatory in congestion report event.
  12094. * Indicate the actual congestion percentage. Possible values are 0-100.
  12095. */
  12096. enum qca_wlan_vendor_attr_medium_assess {
  12097. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
  12098. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
  12099. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
  12100. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
  12101. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
  12102. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
  12103. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
  12104. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
  12105. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
  12106. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
  12107. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
  12108. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
  12109. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
  12110. /* keep last */
  12111. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
  12112. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
  12113. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
  12114. };
  12115. /**
  12116. * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
  12117. * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
  12118. *
  12119. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
  12120. * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
  12121. * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
  12122. * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
  12123. *
  12124. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
  12125. * u8 attribute, required. 1 means Tx VDEV up event.0 mean Tx VDEV down event.
  12126. *
  12127. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
  12128. * u8 attribute, required. indicates group id of Tx VDEV
  12129. *
  12130. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
  12131. * Nested attribute. This attribute shall be used by the driver to send
  12132. * group information. The attributes defined in enum
  12133. * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
  12134. * are nested in this attribute.
  12135. */
  12136. enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
  12137. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
  12138. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
  12139. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
  12140. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
  12141. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
  12142. /* keep last */
  12143. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
  12144. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
  12145. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
  12146. };
  12147. /**
  12148. * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
  12149. * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
  12150. *
  12151. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
  12152. * u32 attribute, required. contains interface index.
  12153. *
  12154. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
  12155. * u8 attribute, required. 0 - means vdev is in down state.
  12156. * 1- means vdev is in up state.
  12157. */
  12158. enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
  12159. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
  12160. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
  12161. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
  12162. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
  12163. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
  12164. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
  12165. };
  12166. /**
  12167. * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
  12168. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
  12169. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
  12170. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
  12171. * frame
  12172. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
  12173. * Request frame.
  12174. */
  12175. enum qca_wlan_vendor_oci_override_frame_type {
  12176. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
  12177. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
  12178. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
  12179. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
  12180. };
  12181. /**
  12182. * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
  12183. *
  12184. * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
  12185. * STA interface has to be given while selecting the connection policies
  12186. * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
  12187. * An interface is set as primary through the attribute
  12188. * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
  12189. * applicable if the primary interface has not been set earlier.
  12190. *
  12191. * The intention is not to downgrade the primary STA performance, such as:
  12192. * - Do not reduce the number of TX/RX chains of primary connection.
  12193. * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
  12194. * chains.
  12195. * - If using MCC, should set the MCC duty cycle of the primary connection to
  12196. * be higher than the secondary connection.
  12197. *
  12198. * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
  12199. * subsequent STA connection shall be chosen to balance with the existing
  12200. * concurrent STA's performance.
  12201. * Such as
  12202. * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
  12203. * capability.
  12204. * - If using MCC, set the MCC duty cycle of the primary connection to be equal
  12205. * to the secondary.
  12206. * - Prefer BSSID candidates which will help provide the best "overall"
  12207. * performance for all the STA connections.
  12208. */
  12209. enum qca_wlan_concurrent_sta_policy_config {
  12210. QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
  12211. QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
  12212. };
  12213. /**
  12214. * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies
  12215. *
  12216. * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP
  12217. * interface.
  12218. *
  12219. * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies
  12220. * to meet gaming audio latency requirements.
  12221. *
  12222. * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface
  12223. * concurrencies to meet lossless audio streaming requirements.
  12224. *
  12225. * @QCA_WLAN_CONCURRENT_AP_POLICY_XR: Select interface concurrencies to meet
  12226. * XR (eXtended Reality) requirements.
  12227. */
  12228. enum qca_wlan_concurrent_ap_policy_config {
  12229. QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0,
  12230. QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1,
  12231. QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2,
  12232. QCA_WLAN_CONCURRENT_AP_POLICY_XR = 3,
  12233. };
  12234. /**
  12235. * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes
  12236. * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command.
  12237. *
  12238. * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG:
  12239. * u8 attribute. Configures the concurrent STA policy configuration.
  12240. * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
  12241. * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG:
  12242. * u8 attribute. Configures the concurrent AP policy configuration.
  12243. * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config.
  12244. */
  12245. enum qca_wlan_vendor_attr_concurrent_policy {
  12246. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0,
  12247. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1,
  12248. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2,
  12249. /* keep last */
  12250. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST,
  12251. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX =
  12252. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1,
  12253. };
  12254. /* Compatibility defines for previously used enum
  12255. * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used
  12256. * in any new implementation.
  12257. */
  12258. #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \
  12259. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG
  12260. #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \
  12261. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX
  12262. #define qca_wlan_vendor_attr_concurrent_sta_policy \
  12263. qca_wlan_vendor_attr_concurrent_policy
  12264. /**
  12265. * enum qca_sta_connect_fail_reason_codes - Defines values carried
  12266. * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
  12267. * attribute.
  12268. * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No probe response frame received
  12269. * for unicast probe request.
  12270. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
  12271. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
  12272. * ath request.
  12273. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
  12274. * received from AP.
  12275. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send assoc
  12276. * request.
  12277. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
  12278. * assoc request.
  12279. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Assoc response is not
  12280. * received from AP.
  12281. */
  12282. enum qca_sta_connect_fail_reason_codes {
  12283. QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
  12284. QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
  12285. QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
  12286. QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
  12287. QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
  12288. QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
  12289. QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
  12290. };
  12291. /**
  12292. * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
  12293. * OCI override request. These attributes are used inside nested attribute
  12294. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
  12295. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  12296. *
  12297. * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
  12298. * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
  12299. * attribute to specify the frame type in which the OCI is to be overridden.
  12300. *
  12301. * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
  12302. * OCI frequency (in MHz) to override in the specified frame type.
  12303. */
  12304. enum qca_wlan_vendor_attr_oci_override {
  12305. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
  12306. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
  12307. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
  12308. /* keep last */
  12309. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
  12310. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
  12311. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
  12312. };
  12313. /**
  12314. * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
  12315. * filters defined in this enum are used in attribute
  12316. * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
  12317. *
  12318. * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
  12319. * shall filter the channels which are not usable because of coexistence with
  12320. * cellular radio.
  12321. * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
  12322. * shall filter the channels which are not usable because of existing active
  12323. * interfaces in the driver and will result in Multi Channel Concurrency, etc.
  12324. *
  12325. */
  12326. enum qca_wlan_vendor_usable_channels_filter {
  12327. QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
  12328. QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
  12329. };
  12330. /**
  12331. * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
  12332. * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
  12333. *
  12334. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
  12335. * u32 attribute, required. Indicates the center frequency of the primary
  12336. * channel in MHz.
  12337. *
  12338. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
  12339. * u32 attribute. Indicates the center frequency of the primary segment of the
  12340. * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
  12341. * 160 MHz, and 320 MHz channels.
  12342. *
  12343. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
  12344. * u32 attribute. Indicates the center frequency of the secondary segment of
  12345. * 80+80 channel in MHz. This attribute is required only when
  12346. * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
  12347. *
  12348. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
  12349. * u32 attribute, required. Indicates the bandwidth of the channel, possible
  12350. * values are defined in enum nl80211_chan_width.
  12351. *
  12352. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
  12353. * u32 attribute, required. Indicates all the interface types for which this
  12354. * channel is usable. This attribute encapsulates bitmasks of interface types
  12355. * defined in enum nl80211_iftype.
  12356. *
  12357. */
  12358. enum qca_wlan_vendor_attr_chan_info {
  12359. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
  12360. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
  12361. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
  12362. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
  12363. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
  12364. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
  12365. /* keep last */
  12366. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
  12367. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
  12368. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
  12369. };
  12370. /**
  12371. * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
  12372. * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
  12373. *
  12374. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
  12375. * u32 attribute. Indicates the bands from which the channels should be reported
  12376. * in response. This attribute encapsulates bit masks of bands defined in enum
  12377. * nl80211_band. Optional attribute, if not present in the request the driver
  12378. * shall return channels from all supported bands.
  12379. *
  12380. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
  12381. * u32 attribute. Indicates all the interface types for which the usable
  12382. * channels information is requested. This attribute encapsulates bitmasks of
  12383. * interface types defined in enum nl80211_iftype. Optional attribute, if not
  12384. * present in the request the driver shall send information of all supported
  12385. * interface modes.
  12386. *
  12387. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
  12388. * u32 attribute. This attribute carries information of all filters that shall
  12389. * be applied while populating usable channels information by the driver. This
  12390. * attribute carries bit masks of different filters defined in enum
  12391. * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
  12392. * in the request the driver shall send information of channels without applying
  12393. * any of the filters that can be configured through this attribute.
  12394. *
  12395. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
  12396. * Nested attribute. This attribute shall be used by the driver to send
  12397. * usability information of each channel. The attributes defined in enum
  12398. * qca_wlan_vendor_attr_chan_info are used inside this attribute.
  12399. */
  12400. enum qca_wlan_vendor_attr_usable_channels {
  12401. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
  12402. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
  12403. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
  12404. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
  12405. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
  12406. /* keep last */
  12407. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
  12408. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
  12409. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
  12410. };
  12411. /**
  12412. * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
  12413. * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
  12414. *
  12415. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
  12416. * the list of radar history entries.
  12417. * Each entry contains freq, timestamp, and radar signal detect flag.
  12418. * The driver shall add an entry when CAC has finished, or radar signal
  12419. * has been detected post AP beaconing. The driver shall maintain at least
  12420. * 8 entries in order to save CAC result for a 160 MHz channel.
  12421. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
  12422. * Channel frequency in MHz.
  12423. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
  12424. * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
  12425. * or radar detection.
  12426. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
  12427. * This flag indicates radar signal has been detected.
  12428. */
  12429. enum qca_wlan_vendor_attr_radar_history {
  12430. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
  12431. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
  12432. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
  12433. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
  12434. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
  12435. /* keep last */
  12436. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
  12437. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
  12438. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
  12439. };
  12440. /**
  12441. * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
  12442. *
  12443. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
  12444. * target exited MCC state and cleared the quota information. In the
  12445. * command it clears MCC quota setting and restores adaptive scheduling.
  12446. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
  12447. * will not be changed.
  12448. * This quota type is present in command/event.
  12449. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
  12450. * and the target may change the quota based on the data activity.
  12451. * This quota type is only present in event.
  12452. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY: Channel time quota is optimized
  12453. * by the target for low latency.
  12454. * This quota type is only present in command.
  12455. */
  12456. enum qca_wlan_vendor_mcc_quota_type {
  12457. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
  12458. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
  12459. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
  12460. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY = 3,
  12461. };
  12462. /**
  12463. * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
  12464. * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
  12465. * quota information or as a command to set the required MCC quota for an
  12466. * interface.
  12467. *
  12468. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
  12469. * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
  12470. * In a command this specifies the MCC quota type to be set for the interface.
  12471. * In an event this provides the current quota type in force.
  12472. * This is required in a command and an event.
  12473. *
  12474. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
  12475. * the list of channel quota entries.
  12476. * In an event each entry contains the frequency and respective time quota for
  12477. * all the MCC interfaces.
  12478. * In a command it specifies the interface index and respective time quota.
  12479. * In a command only one entry (ifindex, quota pair) may be specified.
  12480. *
  12481. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
  12482. * Channel frequency in MHz. This is present only in an event.
  12483. *
  12484. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
  12485. * Channel time quota expressed as percentage.
  12486. * This is present in an event and a command.
  12487. * In an command, the user shall specify the quota to be allocated for the
  12488. * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
  12489. * In an event this provides the existing quota for the channel.
  12490. *
  12491. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
  12492. * Specifies the interface index (netdev) for which the corresponding
  12493. * configurations are applied. This is required in a command only. Only one
  12494. * interface index may be specified. If not specified, the configuration is
  12495. * rejected.
  12496. *
  12497. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE
  12498. * 8-bit unsigned value to enable/disable Multi-Channel Concurrency
  12499. * low latency mode. The firmware will do optimization for low
  12500. * latency in Multi-Channel concurrency state if enabled. And all existing
  12501. * user quota setting will be overwritten by the target.
  12502. * 0 - disable(default), 1 - enable.
  12503. * It is only present in a command with quota type of
  12504. * QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY.
  12505. */
  12506. enum qca_wlan_vendor_attr_mcc_quota {
  12507. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
  12508. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
  12509. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
  12510. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
  12511. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
  12512. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
  12513. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE = 6,
  12514. /* keep last */
  12515. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
  12516. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
  12517. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
  12518. };
  12519. /**
  12520. * enum qca_wlan_roam_stats_invoke_reason - Roam invoke reason. These values
  12521. * are used by the attribute
  12522. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON.
  12523. *
  12524. * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED: Default value when target
  12525. * invoke roam.
  12526. * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE: Neighbor unreachable
  12527. * detection failed when the roam trigger.
  12528. * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE: Invoke from user space.
  12529. */
  12530. enum qca_wlan_roam_stats_invoke_reason {
  12531. QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED = 0,
  12532. QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE = 1,
  12533. QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE = 2,
  12534. };
  12535. /**
  12536. * enum qca_wlan_roam_stats_tx_failures_reason - Roam TX failures reason. These
  12537. * values are used by the attribute
  12538. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON.
  12539. *
  12540. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED: Default value when
  12541. * roam by kickout.
  12542. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY: Excessive retry when roam
  12543. * trigger by kickout.
  12544. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY: Station inactivity when
  12545. * roam trigger by kickout.
  12546. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT: IBSS disconnect when
  12547. * roam trigger by kickout.
  12548. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT: TDLS peer has
  12549. * disappeared, and all TX is failing when roam trigger by kickout.
  12550. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT: SA query process
  12551. * timeout when roam trigger by kickout.
  12552. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT: Directly connected
  12553. * peer has roamed to a repeater.
  12554. */
  12555. enum qca_wlan_roam_stats_tx_failures_reason {
  12556. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED = 0,
  12557. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY = 1,
  12558. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY = 2,
  12559. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT = 3,
  12560. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT = 4,
  12561. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT = 5,
  12562. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT = 6,
  12563. };
  12564. /**
  12565. * enum qca_wlan_roam_stats_abort_reason - Roam abort reason. These values
  12566. * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON.
  12567. *
  12568. * @QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED: Target did not specify the
  12569. * detailed reason for roam scan being aborted.
  12570. * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH: Roam scan is not
  12571. * started due to high data RSSI during LOW-RSSI roaming.
  12572. * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD: Roam scan is not
  12573. * started due to good link speed during LOW-RSSI roaming.
  12574. * @QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH: Roam scan is not started
  12575. * due to high data RSSI during background roaming.
  12576. * @QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD: Roam scan is not
  12577. * started due to high beacon RSSI during background roaming
  12578. */
  12579. enum qca_wlan_roam_stats_abort_reason {
  12580. QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED = 0,
  12581. QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH = 1,
  12582. QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD = 2,
  12583. QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH = 3,
  12584. QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD = 4,
  12585. };
  12586. /**
  12587. * enum qca_wlan_roam_stats_scan_type - Roam scan type define.
  12588. * These values are used by the attribute
  12589. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE.
  12590. *
  12591. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL: Partial channel scan
  12592. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL: Full channel scan
  12593. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN: No roam scan was triggered.
  12594. * This is generally used in BTM events to indicate BTM frame exchange logs.
  12595. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ: Higher band roam scan
  12596. * from 2.4 GHz to 5 GHz or 6 GHz
  12597. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ: Higher band roam scan from
  12598. * 5 GHz to 6 GHz
  12599. */
  12600. enum qca_wlan_roam_stats_scan_type {
  12601. QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL = 0,
  12602. QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL = 1,
  12603. QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN = 2,
  12604. QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ = 3,
  12605. QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ = 4,
  12606. };
  12607. /**
  12608. * enum qca_wlan_roam_stats_scan_dwell_type - Roam scan dwell type.
  12609. * These values are used by the attribute
  12610. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE.
  12611. *
  12612. * @QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED: Target did not specify the
  12613. * detailed roam scan type.
  12614. * @QCA_WLAN_ROAM_STATS_DWELL_ACTIVE_TYPE: Active scan during roam.
  12615. * @QCA_WLAN_ROAM_STATS_DWELL_PASSIVE_TYPE: Passive scan during roam.
  12616. */
  12617. enum qca_wlan_roam_stats_scan_dwell_type {
  12618. QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED = 0,
  12619. QCA_WLAN_ROAM_STATS_DWELL_TYPE_ACTIVE = 1,
  12620. QCA_WLAN_ROAM_STATS_DWELL_TYPE_PASSIVE = 2,
  12621. };
  12622. /**
  12623. * enum qca_wlan_vendor_attr_roam_stats_scan_chan_info - Attributes used inside
  12624. * the %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO nested attribute.
  12625. */
  12626. enum qca_wlan_vendor_attr_roam_stats_scan_chan_info {
  12627. /* 32-bit unsigned value to indicate center frequency of the primary
  12628. * channel in MHz for each roam scan channel.
  12629. */
  12630. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHANNEL_FREQ = 1,
  12631. /* 8-bit unsigned value to indicate channel scan type for each
  12632. * roam scan channel, values in qca_wlan_roam_stats_scan_dwell_type.
  12633. */
  12634. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE = 2,
  12635. /* 32-bit unsigned value to indicate maximum scan time in milliseconds
  12636. * for each roam scan channel.
  12637. */
  12638. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX_DWELL_TIME = 3,
  12639. /* keep last */
  12640. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST,
  12641. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_FRAME_MAX =
  12642. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST - 1,
  12643. };
  12644. /**
  12645. * enum qca_wlan_roam_stats_frame_subtype - Roam frame subtypes. These values
  12646. * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE.
  12647. *
  12648. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH: Pre-authentication frame
  12649. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC: Reassociation frame
  12650. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1: EAPOL-Key M1 frame
  12651. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2: EAPOL-Key M2 frame
  12652. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3: EAPOL-Key M3 frame
  12653. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4: EAPOL-Key M4 frame
  12654. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1: EAPOL-Key GTK M1 frame
  12655. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2: EAPOL-Key GTK M2 frame
  12656. */
  12657. enum qca_wlan_roam_stats_frame_subtype {
  12658. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH = 1,
  12659. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC = 2,
  12660. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1 = 3,
  12661. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2 = 4,
  12662. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3 = 5,
  12663. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4 = 6,
  12664. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1 = 7,
  12665. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2 = 8,
  12666. };
  12667. /**
  12668. * enum roam_frame_status - Specifies the valid values the vendor roam frame
  12669. * attribute QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS can take.
  12670. *
  12671. * @QCA_WLAN_ROAM_FRAME_STATUS_SUCCESS: It indicates the roam frame was
  12672. * sent or received successfully.
  12673. * @QCA_WLAN_ROAM_FRAME_STATUS_FAIL: It indicates the roam frame sending or
  12674. * receiving failed.
  12675. */
  12676. enum qca_wlan_roam_stats_frame_status {
  12677. QCA_WLAN_ROAM_STATS_FRAME_STATUS_SUCCESS = 0,
  12678. QCA_WLAN_ROAM_STATS_FRAME_STATUS_FAIL = 1,
  12679. };
  12680. /**
  12681. * enum qca_wlan_vendor_attr_roam_stats_frame_info - Attributes used within the
  12682. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO nested attribute.
  12683. */
  12684. enum qca_wlan_vendor_attr_roam_stats_frame_info {
  12685. /* 8-bit unsigned value to indicate the frame subtype during
  12686. * roaming, one of the values in qca_wlan_roam_stats_frame_subtype.
  12687. */
  12688. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE = 1,
  12689. /* 8-bit unsigned value to indicate the frame is successful or failed
  12690. * during roaming, one of the values in
  12691. * qca_wlan_roam_stats_frame_status.
  12692. */
  12693. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS = 2,
  12694. /* 64-bit unsigned value to indicate the timestamp for frame of
  12695. * preauthentication/reassociation/EAPOL-M1/EAPOL-M2/EAPOL-M3/EAPOL-M4
  12696. * when sent or received during roaming, timestamp in milliseconds
  12697. * from system boot.
  12698. */
  12699. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3,
  12700. /* keep last */
  12701. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST,
  12702. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_MAX =
  12703. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST - 1,
  12704. };
  12705. /**
  12706. * enum qca_wlan_vendor_attr_roam_stats_info - Used by the attribute
  12707. * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO.
  12708. */
  12709. enum qca_wlan_vendor_attr_roam_stats_info {
  12710. /* 64-bit unsigned value to indicate the timestamp when roam was
  12711. * triggered by the firmware, timestamp in milliseconds from system
  12712. * boot.
  12713. */
  12714. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_TRIGGER_TIMESTAMP = 1,
  12715. /* 32-bit unsigned value to indicate the roam trigger reason for the
  12716. * last roaming attempted by the firmware. This can be queried either
  12717. * in a connected state or disconnected state. The values of this
  12718. * attribute represent the roam trigger reason codes, which
  12719. * are defined in enum qca_roam_reason.
  12720. */
  12721. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TRIGGER_REASON = 2,
  12722. /* 8-bit unsigned value to indicate percentage of packets for which
  12723. * the RX rate is lower than the RX rate threshold in total RX packets,
  12724. * used for roaming trigger by per.
  12725. */
  12726. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_RXRATE_THRESHOLD_PERCENT = 3,
  12727. /* 8-bit unsigned value to indicate percentage of packets for which
  12728. * the TX rate is lower than TX rate threshold in total TX packets,
  12729. * used for roaming trigger by per.
  12730. */
  12731. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_TXRATE_THRESHOLD_PERCENT = 4,
  12732. /* 32-bit unsigned value to indicate final beacon miss count for
  12733. * trigger reason of beacon miss.
  12734. */
  12735. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FINAL_BMISS_CNT = 5,
  12736. /* 32-bit unsigned value to indicate consecutive beacon miss count
  12737. * for trigger reason of beacon miss.
  12738. */
  12739. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONSECUTIVE_BMISS_CNT = 6,
  12740. /* 8-bit unsigned value to indicate QOS-NULL TX status for trigger
  12741. * reason of beacon miss, 0 - success, 1 - fail.
  12742. * If QOS-NULL TX status is successful, beacon miss final count and
  12743. * consecutive beacon miss count will be reset to zero, and roam will
  12744. * not be triggered. If QOS-NULL TX status is failed, beacon miss final
  12745. * count and consecutive beacon miss count continue to calculate until
  12746. * roaming trigger by beacon miss.
  12747. */
  12748. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BMISS_QOS_NULL_SUCCESS = 7,
  12749. /* 8-bit signed value to indicate connected AP RSSI in dBm
  12750. * for trigger reason of poor RSSI.
  12751. */
  12752. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_CURRENT_RSSI = 8,
  12753. /* 8-bit signed value to indicate RSSI threshold value in dBm
  12754. * for trigger reason of poor RSSI.
  12755. */
  12756. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_ROAM_RSSI_THRESHOLD = 9,
  12757. /* 8-bit unsigned value to indicate RX link speed status
  12758. * for trigger reason of poor RSSI, 0 - good link speed,
  12759. * 1 - bad link speed.
  12760. */
  12761. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_RX_LINKSPEED_STATUS = 10,
  12762. /* 8-bit signed value to indicate connected AP RSSI in dBm
  12763. * for trigger reason of better RSSI.
  12764. */
  12765. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_CURRENT_RSSI = 11,
  12766. /* 8-bit signed value to indicate RSSI threshold value in dBm
  12767. * for trigger reason of better RSSI.
  12768. */
  12769. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_HIGH_RSSI_THRESHOLD = 12,
  12770. /* 32-bit unsigned value to indicate RX throughput in bytes per second
  12771. * for trigger reason of congestion.
  12772. */
  12773. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_RX_TPUT = 13,
  12774. /* 32-bit unsigned value to indicate TX throughput in bytes per second
  12775. * for trigger reason of congestion.
  12776. */
  12777. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_TX_TPUT = 14,
  12778. /* 8-bit unsigned value to indicate roamable AP count
  12779. * for trigger reason of congestion.
  12780. */
  12781. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_ROAMABLE_CNT = 15,
  12782. /* 8-bit unsigned value to indicate invoke reason, one of the values
  12783. * defined in qca_wlan_roam_stats_invoke_reason.
  12784. */
  12785. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON = 16,
  12786. /* 8-bit unsigned value to indicate request mode for trigger reason
  12787. * of BTM, values are defined in IEEE Std 802.11-2020, 9.6.13.9.
  12788. */
  12789. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQUEST_MODE = 17,
  12790. /* 32-bit unsigned value to indicate disassociate time in milliseconds
  12791. * for trigger reason of BTM.
  12792. */
  12793. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_DISASSOC_IMMINENT_TIME = 18,
  12794. /* 32-bit unsigned value to indicate preferred candidate list valid
  12795. * interval in milliseconds for trigger reason of BTM.
  12796. */
  12797. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_VALID_INTERNAL = 19,
  12798. /* 8-bit unsigned value to indicate the number of preferred
  12799. * candidates for trigger reason of BTM.
  12800. */
  12801. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_CANDIDATE_LIST_CNT = 20,
  12802. /* 8-bit unsigned value to indicate response status for trigger
  12803. * reason of BTM, values are defined in IEEE Std 802.11-2020,
  12804. * Table 9-428 (BTM status code definitions).
  12805. */
  12806. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_RESPONSE_STATUS_CODE = 21,
  12807. /* 32-bit unsigned value to indicate BSS termination timeout value
  12808. * in milliseconds for trigger reason of BTM.
  12809. */
  12810. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_BSS_TERMINATION_TIMEOUT = 22,
  12811. /* 32-bit unsigned value to indicate MBO associate retry timeout
  12812. * value in milliseconds for trigger reason of BTM.
  12813. */
  12814. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_MBO_ASSOC_RETRY_TIMEOUT = 23,
  12815. /* 8-bit unsigned value to indicate dialog token number
  12816. * for trigger reason of BTM.
  12817. */
  12818. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQ_DIALOG_TOKEN = 24,
  12819. /* 8-bit unsigned value to indicate percentage of connected AP
  12820. * channel congestion utilization for trigger reason of BSS load.
  12821. */
  12822. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BSS_CU_LOAD = 25,
  12823. /* 8-bit unsigned value to indicate disconnection type
  12824. * for trigger reason of disconnection. 1 - Deauthentication,
  12825. * 2 - Disassociation.
  12826. */
  12827. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_TYPE = 26,
  12828. /* 16-bit unsigned value to indicate deauthentication or disassociation
  12829. * reason for trigger reason of disconnection, values are defined
  12830. * in IEEE Std 802.11-2020, Table 9-49 (Reason codes).
  12831. */
  12832. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_REASON = 27,
  12833. /* 32-bit unsigned value to indicate milliseconds of roam scan
  12834. * periodicity when needing to roam to find a better AP for trigger
  12835. * reason of periodic timer.
  12836. */
  12837. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PERIODIC_TIMER_MS = 28,
  12838. /* 8-bit signed value to indicate connected AP RSSI in dBm for
  12839. * trigger reason of background scan.
  12840. */
  12841. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_CURRENT_RSSI = 29,
  12842. /* 8-bit signed value to indicate data RSSI in dBm for trigger reason
  12843. * of background scan.
  12844. */
  12845. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI = 30,
  12846. /* 8-bit signed value to indicate data RSSI threshold in dBm
  12847. * for trigger reason of background scan.
  12848. */
  12849. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI_THRESH = 31,
  12850. /* 32-bit unsigned value to indicate consecutive TX failure threshold
  12851. * for trigger reason of TX failures.
  12852. */
  12853. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_THRESHOLD = 32,
  12854. /* 8-bit unsigned value to indicate TX failure reason for trigger
  12855. * reason of TX failures, one of the values defined in
  12856. * qca_wlan_roam_stats_tx_failures_reason.
  12857. */
  12858. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON = 33,
  12859. /* 8-bit unsigned value to indicate detail abort reason. One of the
  12860. * values in enum qca_wlan_roam_stats_abort_reason.
  12861. */
  12862. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON = 34,
  12863. /* 8-bit signed value to indicate data RSSI in dBm when aborting the
  12864. * roam scan.
  12865. */
  12866. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI = 35,
  12867. /* 8-bit signed value to indicate data RSSI threshold in dBm when
  12868. * aborting the roam scan.
  12869. */
  12870. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI_THRESHOLD = 36,
  12871. /* 8-bit unsigned value to indicate data RSSI threshold in RX link
  12872. * speed status when aborting the roam scan.
  12873. * 0 - good link speed, 1 - bad link speed
  12874. */
  12875. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RX_LINKSPEED_STATUS = 37,
  12876. /* 8-bit unsigned value to indicate roaming scan type.
  12877. * One of the values in enum qca_wlan_roam_stats_scan_type.
  12878. */
  12879. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE = 38,
  12880. /* 8-bit unsigned value to indicate roaming result, used in STA mode
  12881. * only.
  12882. * 0-Roaming is successful, 1-Roaming is failed
  12883. */
  12884. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS = 39,
  12885. /* 8-bit unsigned value to indicate the roam fail reason for the
  12886. * last failed roaming attempt by the firmware. Different roam failure
  12887. * reason codes are specified in enum qca_vendor_roam_fail_reasons.
  12888. * This can be queried either in connected state or disconnected state.
  12889. */
  12890. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FAIL_REASON = 40,
  12891. /* Nested attribute. Indicate roam scan info for each channel, the
  12892. * attributes defined in enum
  12893. * qca_wlan_vendor_attr_roam_stats_scan_chan_info are used inside
  12894. * this attribute.
  12895. */
  12896. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO = 41,
  12897. /* 32-bit unsigned value to indicate total scan time during roam scan
  12898. * all channels, time in milliseconds.
  12899. */
  12900. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TOTAL_SCAN_TIME = 42,
  12901. /* Nested attribute. This attribute shall be used by the driver to
  12902. * send roam information of each subtype. The attributes defined in
  12903. * enum qca_wlan_vendor_attr_roam_stats_frame_info are used inside
  12904. * this attribute.
  12905. */
  12906. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO = 43,
  12907. /* 6-byte MAC address used by the driver to send roam stats information
  12908. * of the original AP BSSID. The original AP is the connected AP before
  12909. * roam happens, regardless of the roam resulting in success or failure.
  12910. * This attribute is only present when
  12911. * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
  12912. * 0 (success) or 1 (failure).
  12913. * For non-MLO scenario, it indicates the original connected AP BSSID.
  12914. * For MLO scenario, it indicates the original BSSID of the link
  12915. * for which the reassociation occurred during the roam.
  12916. */
  12917. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ORIGINAL_BSSID = 45,
  12918. /* 6-byte MAC address used by the driver to send roam stats information
  12919. * of the roam candidate AP BSSID when roam failed. This is only present
  12920. * when QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
  12921. * 1 (failure). If the firmware updates more than one candidate AP BSSID
  12922. * to the driver, the driver only fills the last candidate AP BSSID and
  12923. * reports it to user space.
  12924. * For non-MLO scenario, it indicates the last candidate AP BSSID.
  12925. * For MLO scenario, it indicates the AP BSSID which may be the primary
  12926. * link BSSID or a nonprimary link BSSID.
  12927. */
  12928. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CANDIDATE_BSSID = 46,
  12929. /* 6-byte MAC address used by the driver to send roam stats information
  12930. * of the roamed AP BSSID when roam succeeds. This is only present when
  12931. * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
  12932. * 0 (success).
  12933. * For non-MLO scenario, it indicates the new AP BSSID to which has
  12934. * been successfully roamed.
  12935. * For MLO scenario, it indicates the new AP BSSID of the link on
  12936. * which the reassociation occurred during the roam.
  12937. */
  12938. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAMED_BSSID = 47,
  12939. /* keep last */
  12940. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST,
  12941. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX =
  12942. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST - 1,
  12943. };
  12944. /**
  12945. * enum qca_wlan_vendor_attr_roam_cached_stats - Vendor subcmd attributes to
  12946. * report cached roam info from the driver to user space, enum values are used
  12947. * for netlink attributes sent with the
  12948. * %QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS sub command.
  12949. */
  12950. enum qca_wlan_vendor_attr_roam_cached_stats {
  12951. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INVALID = 0,
  12952. /* Nested attribute, this attribute contains nested array roam info
  12953. * statistics defined in enum qca_wlan_vendor_attr_roam_stats_info.
  12954. */
  12955. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO = 1,
  12956. /* keep last */
  12957. QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST,
  12958. QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_MAX =
  12959. QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST - 1,
  12960. };
  12961. /**
  12962. * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
  12963. * radio configurations present in each radio combination.
  12964. *
  12965. * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
  12966. * the band info in the radio configuration. Uses the enum qca_set_band values.
  12967. *
  12968. * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
  12969. * the number of antennas info in the radio configuration.
  12970. */
  12971. enum qca_wlan_vendor_attr_supported_radio_cfg {
  12972. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
  12973. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
  12974. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
  12975. /* keep last */
  12976. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
  12977. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
  12978. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
  12979. };
  12980. /**
  12981. * enum qca_wlan_vendor_attr_radio_combination - Attributes for
  12982. * radio combinations supported by the device.
  12983. *
  12984. * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
  12985. * provides the radio configurations present in the radio combination.
  12986. * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
  12987. * This attribute provides the values for radio combination matrix.
  12988. * For standalone config, the number of config values is one and the config
  12989. * carries the band and antenna information for standalone configuration. For
  12990. * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
  12991. * configuration the number of config values is two and the config carries the
  12992. * band and antenna information for each simultaneous radio.
  12993. */
  12994. enum qca_wlan_vendor_attr_radio_combination {
  12995. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
  12996. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
  12997. /* keep last */
  12998. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
  12999. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
  13000. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
  13001. };
  13002. /**
  13003. * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
  13004. * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
  13005. *
  13006. * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
  13007. * provides the radio combinations supported by the device.
  13008. * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
  13009. * For example, in the radio combination matrix for a device which has two
  13010. * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
  13011. * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
  13012. * combinations is 5 and the radio combinations are
  13013. * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
  13014. * {{5 GHz 2X2}}, //Standalone 5 GHz
  13015. * {{6 GHz 2X2}}, //Standalone 6 GHz
  13016. * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
  13017. * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
  13018. * The band and antenna info together as nested data provides one radio config.
  13019. * Standalone configuration has one config with band and antenna nested data.
  13020. * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
  13021. * have two nested band and antenna info data.
  13022. */
  13023. enum qca_wlan_vendor_attr_radio_combination_matrix {
  13024. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
  13025. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
  13026. /* keep last */
  13027. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
  13028. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
  13029. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
  13030. };
  13031. /**
  13032. * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
  13033. * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
  13034. *
  13035. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
  13036. * Enable mDNS offload. This attribute is mandatory to enable
  13037. * mDNS offload feature. If this attribute is not present, mDNS offload
  13038. * is disabled.
  13039. *
  13040. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
  13041. * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
  13042. * attribute is mandatory when enabling the feature, and not required when
  13043. * disabling the feature.
  13044. *
  13045. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
  13046. * the following attributes:
  13047. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
  13048. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
  13049. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
  13050. *
  13051. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
  13052. * It consists of a hostname and ".local" as the domain name. The character
  13053. * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
  13054. * It is used to compare the domain the in the "QU" query. Only 1 FQDN is
  13055. * supported per vdev.
  13056. * For example: myphone.local
  13057. *
  13058. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
  13059. * u16 attribute. It specifies the total number of resource records present
  13060. * in the answer section of the answer payload. This attribute is needed by the
  13061. * firmware to populate the mDNS response frame for mNDS queries without having
  13062. * to parse the answer payload.
  13063. *
  13064. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required Binary blob
  13065. * attribute sent by the mdnsResponder from userspace. It contains resource
  13066. * records of various types (Eg: A, AAAA, PTR, TXT) and service list. This
  13067. * payload is passed down to firmware and is transmitted in response to
  13068. * mDNS queries.
  13069. * The maximum size of the answer payload supported is 512 bytes.
  13070. */
  13071. enum qca_wlan_vendor_attr_mdns_offload {
  13072. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
  13073. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
  13074. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
  13075. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
  13076. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
  13077. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
  13078. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
  13079. /* keep last */
  13080. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
  13081. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
  13082. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
  13083. };
  13084. /**
  13085. * enum qca_vendor_attr_diag_event_type - Attributes used by
  13086. * %QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute.
  13087. *
  13088. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING: Diag event sent from
  13089. * driver/firmware during Connection request from Userspace. Uses the
  13090. * following attributes of enum qca_wlan_vendor_attr_diag:
  13091. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13092. * QCA_WLAN_VENDOR_ATTR_DIAG_SSID,
  13093. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13094. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT,
  13095. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  13096. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT,
  13097. * QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE,
  13098. * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE,
  13099. * QCA_WLAN_VENDOR_ATTR_DIAG_AKM,
  13100. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  13101. * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE,
  13102. * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE,
  13103. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13104. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13105. *
  13106. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL: Diag event sent from
  13107. * driver/firmware when a connection is failed. Uses the
  13108. * following attributes of enum qca_wlan_vendor_attr_diag:
  13109. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13110. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13111. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  13112. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13113. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13114. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13115. *
  13116. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ: Diag event sent from
  13117. * driver/firmware during Authentication request from a device. Uses the
  13118. * following attributes of enum qca_wlan_vendor_attr_diag:
  13119. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13120. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13121. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13122. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  13123. * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
  13124. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13125. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  13126. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13127. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13128. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13129. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13130. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13131. *
  13132. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP: Diag event sent from
  13133. * driver/firmware when device receives an authentication response. Uses the
  13134. * following attributes of enum qca_wlan_vendor_attr_diag:
  13135. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13136. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13137. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  13138. * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
  13139. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13140. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  13141. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13142. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13143. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13144. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13145. *
  13146. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ: Diag event sent from
  13147. * driver/firmware when device sends an association request. Uses the
  13148. * following attributes of enum qca_wlan_vendor_attr_diag:
  13149. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13150. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13151. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13152. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13153. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13154. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13155. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13156. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13157. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13158. *
  13159. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP: Diag event sent from
  13160. * driver/firmware when device receives an association response. Uses the
  13161. * following attributes of enum qca_wlan_vendor_attr_diag:
  13162. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13163. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13164. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13165. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  13166. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13167. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13168. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13169. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  13170. * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID.
  13171. *
  13172. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX: Diag event sent from
  13173. * driver/userspace when device receives a deauthentication response. Uses the
  13174. * following attributes of enum qca_wlan_vendor_attr_diag:
  13175. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13176. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13177. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13178. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13179. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13180. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13181. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13182. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13183. *
  13184. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX: Diag event sent from
  13185. * driver/userspace when device sends a deauthentication request. Uses the
  13186. * following attributes of enum qca_wlan_vendor_attr_diag:
  13187. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13188. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13189. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13190. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13191. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13192. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13193. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13194. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13195. *
  13196. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX: Diag event sent from
  13197. * driver/firmware when device receives a disassociation response. Uses the
  13198. * following attributes of enum qca_wlan_vendor_attr_diag:
  13199. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13200. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13201. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13202. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13203. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13204. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13205. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13206. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13207. *
  13208. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX: Diag event sent from
  13209. * driver/firmware when device sends a disassociation request. Uses the
  13210. * following attributes of enum qca_wlan_vendor_attr_diag:
  13211. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13212. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13213. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13214. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13215. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13216. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13217. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13218. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13219. *
  13220. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN: Diag event sent from
  13221. * driver/firmware when device did not receive beacon packets during connection.
  13222. * Uses the following attributes of enum qca_wlan_vendor_attr_diag:
  13223. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13224. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13225. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13226. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13227. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13228. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13229. *
  13230. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START: Diag event sent from
  13231. * driver/firmware when Roaming scan is triggered. Uses the following
  13232. * attributes of enum qca_wlan_vendor_attr_diag:
  13233. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13234. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON,
  13235. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON,
  13236. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13237. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  13238. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE,
  13239. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD,
  13240. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13241. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13242. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13243. *
  13244. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE: Diag event sent from
  13245. * driver/firmware Roam scanning is processed. Uses the following
  13246. * attributes of enum qca_wlan_vendor_attr_diag:
  13247. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13248. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  13249. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST,
  13250. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT,
  13251. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  13252. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13253. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13254. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  13255. * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE.
  13256. *
  13257. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP: Diag event sent from
  13258. * driver/firmware to provide Roam information of the current AP. Uses the
  13259. * following attributes of enum qca_wlan_vendor_attr_diag:
  13260. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13261. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13262. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13263. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  13264. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  13265. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
  13266. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13267. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13268. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13269. *
  13270. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP: Diag event sent from
  13271. * driver/firmware to provide Roam information of the candid AP. Uses the
  13272. * following attributes of enum qca_wlan_vendor_attr_diag:
  13273. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13274. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13275. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13276. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  13277. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  13278. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
  13279. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP,
  13280. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  13281. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13282. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13283. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13284. *
  13285. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT: Diag event sent from
  13286. * driver/firmware to provide Roam result after selecting a candidate. Uses the
  13287. * following attributes of enum qca_wlan_vendor_attr_diag:
  13288. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13289. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL,
  13290. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13291. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13292. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13293. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13294. *
  13295. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL: Diag event sent from
  13296. * driver/firmware to indicate Roam Cancellation due to higher priority events.
  13297. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13298. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13299. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13300. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13301. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13302. *
  13303. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ: Diag event sent from driver
  13304. * /firmware when STA sends a BTM request frame. Uses the following attributes
  13305. * of enum qca_wlan_vendor_attr_diag:
  13306. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13307. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  13308. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE,
  13309. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER,
  13310. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL,
  13311. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT,
  13312. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13313. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13314. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13315. *
  13316. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY: Diag event sent from
  13317. * driver/firmware when STA queries about BTM transition. Uses the following
  13318. * attributes of enum qca_wlan_vendor_attr_diag:
  13319. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13320. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  13321. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON,
  13322. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13323. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13324. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13325. *
  13326. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP: Diag event sent from driver
  13327. * /firmware when STA receives BTM response frame. Uses the following
  13328. * attributes of enum qca_wlan_vendor_attr_diag:
  13329. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13330. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  13331. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE,
  13332. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY,
  13333. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID,
  13334. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13335. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13336. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13337. *
  13338. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI: Diag event sent from
  13339. * driver/firmware to provide BTM request candidate information. Uses the
  13340. * following attributes of enum qca_wlan_vendor_attr_diag:
  13341. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13342. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13343. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE,
  13344. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  13345. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13346. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13347. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13348. *
  13349. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC: Diag event sent from driver
  13350. * /firmware when ROAM WTC trigger happens. Uses the following attributes of
  13351. * enum qca_wlan_vendor_attr_diag:
  13352. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13353. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE,
  13354. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13355. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION,
  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_DHCP_DISCOVER: Diag event sent from
  13361. * driver/firmware to indicate DHCP discovery to AP. Uses the following
  13362. * attributes of enum qca_wlan_vendor_attr_diag:
  13363. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13364. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13365. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13366. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13367. *
  13368. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER: Diag event sent from
  13369. * driver/firmware to indicate DHCP offering to AP. Uses the following
  13370. * attributes of enum qca_wlan_vendor_attr_diag:
  13371. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13372. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13373. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13374. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13375. *
  13376. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST: Diag event sent from
  13377. * driver/firmware to indicate driver sent DHCP packets. Uses the following
  13378. * attributes of enum qca_wlan_vendor_attr_diag:
  13379. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13380. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13381. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13382. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13383. *
  13384. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK: Diag event sent from driver
  13385. * /firmware to indicate acknowledgement of DHCP packets. Uses the following
  13386. * attributes of enum qca_wlan_vendor_attr_diag:
  13387. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13388. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13389. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13390. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13391. *
  13392. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK: Diag event sent from driver
  13393. * /firmware to indicate negative acknowledgement of DHCP packets. Uses the
  13394. * following attributes of enum qca_wlan_vendor_attr_diag:
  13395. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13396. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13397. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13398. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13399. *
  13400. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1: Diag event sent from driver
  13401. * /firmware to indicate EAPOL M1 message. Uses the following attributes of
  13402. * enum qca_wlan_vendor_attr_diag:
  13403. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13404. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13405. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13406. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13407. *
  13408. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2: Diag event sent from driver
  13409. * /firmware to indicate EAPOL M2 message. Uses the following attributes of
  13410. * enum qca_wlan_vendor_attr_diag:
  13411. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13412. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13413. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13414. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13415. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13416. *
  13417. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3: Diag event sent from driver
  13418. * /firmware to indicate EAPOL M3 message. Uses the following attributes of
  13419. * enum qca_wlan_vendor_attr_diag:
  13420. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  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_EAPOL_M4: Diag event sent from driver
  13426. * /firmware to indicate EAPOL M4 message. Uses the following attributes of
  13427. * 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_FIRMWARE_TIMESTAMP,
  13432. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13433. *
  13434. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1: Diag event sent from driver
  13435. * /firmware to indicate GTK rekey M1 frame. Uses the following attributes of
  13436. * enum qca_wlan_vendor_attr_diag:
  13437. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13438. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13439. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13440. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13441. *
  13442. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2: Diag event sent from driver
  13443. * /firmware to indicate GTK Rekey M2 frame. Uses the following attributes of
  13444. * enum qca_wlan_vendor_attr_diag:
  13445. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13446. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13447. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13448. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13449. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13450. *
  13451. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST: Diag event sent from driver
  13452. * /firmware to indicate device sent EAP request. Uses the following attributes
  13453. * of enum qca_wlan_vendor_attr_diag:
  13454. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13455. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
  13456. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
  13457. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13458. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13459. *
  13460. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE: Diag event sent from driver
  13461. * /firmware to indicate device received EAP response. Uses the following
  13462. * attributes of enum qca_wlan_vendor_attr_diag:
  13463. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13464. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
  13465. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
  13466. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13467. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13468. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13469. *
  13470. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS: Diag event sent from driver
  13471. * /firmware to indicate EAP frame transmission is success. Uses the following
  13472. * attributes of enum qca_wlan_vendor_attr_diag:
  13473. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13474. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13475. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13476. *
  13477. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE: Diag event sent from driver
  13478. * /firmware to indicate EAP frame transmission is failed. Uses the following
  13479. * attributes of enum qca_wlan_vendor_attr_diag:
  13480. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13481. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13482. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13483. *
  13484. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ: Diag event sent from driver
  13485. * /firmware to indicate Reassocation request. Uses the following attributes
  13486. * of enum qca_wlan_vendor_attr_diag:
  13487. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  13488. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13489. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13490. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13491. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13492. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13493. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13494. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  13495. *
  13496. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES: Diag event sent from driver
  13497. * /firmware to indicate Reassocation response. Uses the following attributes
  13498. * of enum qca_wlan_vendor_attr_diag:
  13499. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  13500. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13501. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13502. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  13503. * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID,
  13504. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13505. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13506. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  13507. */
  13508. enum qca_vendor_attr_diag_event_type {
  13509. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING = 0,
  13510. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL = 1,
  13511. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ = 2,
  13512. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP = 3,
  13513. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ = 4,
  13514. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP = 5,
  13515. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX = 6,
  13516. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX = 7,
  13517. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX = 8,
  13518. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX = 9,
  13519. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN = 10,
  13520. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START = 11,
  13521. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE = 12,
  13522. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP = 13,
  13523. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP = 14,
  13524. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT = 15,
  13525. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL = 16,
  13526. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ = 17,
  13527. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY = 18,
  13528. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP = 19,
  13529. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI = 20,
  13530. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC = 21,
  13531. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER = 22,
  13532. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER = 23,
  13533. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST = 24,
  13534. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK = 25,
  13535. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK = 26,
  13536. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1 = 27,
  13537. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2 = 28,
  13538. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3 = 29,
  13539. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4 = 30,
  13540. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1 = 31,
  13541. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2 = 32,
  13542. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST = 33,
  13543. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE = 34,
  13544. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS = 35,
  13545. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE = 36,
  13546. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ = 37,
  13547. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES = 38,
  13548. /* keep last */
  13549. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST,
  13550. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_MAX =
  13551. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST - 1,
  13552. };
  13553. /**
  13554. * enum qca_wlan_vendor_tx_status - Used by attribute
  13555. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS to indicate TX status.
  13556. * @QCA_WLAN_VENDOR_TX_STATUS_FAIL: Indicates frame is not sent over the air.
  13557. * @QCA_WLAN_VENDOR_TX_STATUS_NO_ACK: Indicates packet sent but acknowledgement
  13558. * is not received.
  13559. * @QCA_WLAN_VENDOR_TX_STATUS_ACK: Indicates the frame is successfully sent and
  13560. * acknowledged.
  13561. */
  13562. enum qca_wlan_vendor_tx_status {
  13563. QCA_WLAN_VENDOR_TX_STATUS_FAIL = 1,
  13564. QCA_WLAN_VENDOR_TX_STATUS_NO_ACK = 2,
  13565. QCA_WLAN_VENDOR_TX_STATUS_ACK = 3,
  13566. };
  13567. /**
  13568. * enum qca_roam_sub_reason - Used by attribute
  13569. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON
  13570. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER: Roam scan triggered due to periodic
  13571. * timer expiry
  13572. * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI: Roam scan trigger due
  13573. * to no candidate found during LOW RSSI trigger.
  13574. * @QCA_ROAM_SUB_REASON_BTM_DI_TIMER: Roam scan triggered due to BTM Disassoc
  13575. * Imminent timeout
  13576. * @QCA_ROAM_SUB_REASON_FULL_SCAN: Roam scan triggered due to partial scan
  13577. * failure
  13578. * @QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC: Roam trigger due to
  13579. * emergency like deauth/disassoc.
  13580. * @QCA_ROAM_SUB_REASON_CU_PERIODIC: Roam trigger due to
  13581. * BSS transition management request.
  13582. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI:
  13583. * Roam scan triggered due to Low RSSI periodic timer
  13584. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU:
  13585. * Roam trigger due to periodic timer after no candidate found during CU
  13586. * inactivity timer scan.
  13587. * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU: Roam trigger due to no candidate
  13588. * found in high CU roam trigger.
  13589. */
  13590. enum qca_roam_sub_reason {
  13591. QCA_ROAM_SUB_REASON_PERIODIC_TIMER = 1,
  13592. QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI = 2,
  13593. QCA_ROAM_SUB_REASON_BTM_DI_TIMER = 3,
  13594. QCA_ROAM_SUB_REASON_FULL_SCAN = 4,
  13595. QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC = 5,
  13596. QCA_ROAM_SUB_REASON_CU_PERIODIC = 6,
  13597. QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI = 7,
  13598. QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU = 8,
  13599. QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU = 9,
  13600. };
  13601. /*
  13602. * enum qca_wlan_vendor_attr_diag - Defines attributes used by the driver
  13603. * to send diag data to the userspace. The attributes defined in this enum are
  13604. * used with QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
  13605. *
  13606. * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT: Required Attribute. Nested attribute used
  13607. * by driver/firmware to send diag data. Each instance of this nested attribute
  13608. * contains one QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute and other
  13609. * attributes defined in enum qca_wlan_vendor_attr_diag that belong to the
  13610. * event type defined by QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE. Multiple of this
  13611. * nested attribute can be sent with one vendor command
  13612. * QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
  13613. *
  13614. * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE: Required u32 attribute. This
  13615. * attribute indicates the type of the diag event from driver/firmware. Uses
  13616. * values from enum qca_vendor_attr_diag_event_type.
  13617. *
  13618. * @QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP: Required u64 attribute. This
  13619. * attribute indicates the system timestamp. Driver uses ktime_get_real_ts64()
  13620. * API to send time of the day in microseconds to userspace.
  13621. *
  13622. * @QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP: Optional u64 attribute.
  13623. * This attribute indicates firmware timestamp in microseconds.
  13624. *
  13625. * @QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX: Optional u8 attribute. This attribute
  13626. * indicates wlan interface index.
  13627. *
  13628. * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID: Optional attribute. This attribute
  13629. * indicates 6-byte MAC address representing the BSSID of the AP.
  13630. *
  13631. * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT: Optional attribute. This attribute
  13632. * indicates the 6-byte MAC address representing the BSSID hint sent in
  13633. * the connect request.
  13634. *
  13635. * @QCA_WLAN_VENDOR_ATTR_DIAG_SSID: Optional attribute. This attribute
  13636. * indicates the SSID in u8 array with a maximum length of 32.
  13637. *
  13638. * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ: Optional u16 attribute. This attribute
  13639. * indicates the frequency of AP in MHz.
  13640. *
  13641. * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT: Optional u16 attribute. This attribute
  13642. * indicates frequency hint given in the connect request in MHz.
  13643. *
  13644. * @QCA_WLAN_VENDOR_ATTR_DIAG_RSSI: Optional signed 32 attribute.
  13645. * This attribute indicates RSSI of the 802.11 frame in dBm.
  13646. *
  13647. * @QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE: Optional u32 attribute.
  13648. * This attribute indicates Pairwise cipher suite defined in IEEE 802.11 2020
  13649. * Table 12-10—Integrity and key wrap algorithms.
  13650. *
  13651. * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE: Optional u32 attribute.
  13652. * This attribute indicates Group cipher suite defined in IEEE 802.11 2020
  13653. * Table 12-10—Integrity and key wrap algorithms.
  13654. *
  13655. * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE: Optional u32 attribute. This
  13656. * attribute indicates Group management cipher suite defined in IEEE Std
  13657. * 802.11‐2020 spec. Table 12-10—Integrity and key wrap algorithms.
  13658. *
  13659. * @QCA_WLAN_VENDOR_ATTR_DIAG_AKM: Optional u32 attribute. This attribute
  13660. * indicates Auth key management suite defined in IEEE Std 802.11‐2020
  13661. * Table 9-151—AKM suite selectors.
  13662. *
  13663. * @QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO: Optional u8 attribute. This attribute
  13664. * indicates authentication algorithm number defined in IEEE Std 802.11‐2020
  13665. * Section 9.4.1.1 Authentication Algorithm Number field.
  13666. *
  13667. * @QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE: Optional flag. This attribute
  13668. * indicates bluetooth COEX is active or not.
  13669. *
  13670. * @QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE: Optional u8 attribute. This
  13671. * attribute indicates SAE authentication frame type. The possible values are
  13672. * 1 - SAE commit frame
  13673. * 2 - SAE confirm frame
  13674. *
  13675. * @QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE: Optional u16 attribute. This
  13676. * attribute indicates the reason codes defined in IEEE Std 802.11‐2020
  13677. * Table 9-49—Reason codes.
  13678. *
  13679. * @QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER: Optional u16 attribute. This
  13680. * attribute indicates sequence number of the frame defined in IEEE Std
  13681. * 802.11‐2020 Section 9.4.1.2 Authentication Transaction Sequence Number
  13682. * field.
  13683. *
  13684. * @QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE: Optional u8 attribute. This
  13685. * attribute indicates the status codes defined in IEEE Std 802.11‐2020 Table
  13686. * 9-50—Status codes.
  13687. *
  13688. * @QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS: Optional u8 attribute.
  13689. * Uses enum qca_wlan_vendor_tx_status.
  13690. *
  13691. * @QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME: Optional flag. This attribute
  13692. * indicates if frame transmission is retried.
  13693. *
  13694. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON: Optional u8 attribute.
  13695. * Uses enum qca_roam_reason.
  13696. *
  13697. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON: Optional u8 attribute.
  13698. * Uses enum qca_roam_sub_reason.
  13699. *
  13700. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU: Optional u8 attribute. This attribute
  13701. * indicates channel utilization in percentage.
  13702. *
  13703. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE: Optional u8 attribute. This
  13704. * attribute indicates scan type used. Uses enum qca_roam_scan_scheme.
  13705. *
  13706. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD: Optional signed 32 attribute.
  13707. * This attribute indicates current RSSI threshold in dBm.
  13708. *
  13709. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST: Required Attribute.
  13710. * Nested attribute used by QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE
  13711. * to carry list of QCA_WLAN_VENDOR_ATTR_DIAG_FREQ.
  13712. *
  13713. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT: optional u8 attribute.
  13714. * This attribute indicates number of scanned candidate APs.
  13715. *
  13716. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK: Optional u8 attribute. This
  13717. * attribute indicates roam AP rank computed based on connection preference.
  13718. *
  13719. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP: Optional u32 attribute.
  13720. * This attribute indicates expected throughput in kbps.
  13721. *
  13722. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE: Optional u16 attribute.
  13723. * This attribute indicates the preference value of candidate AP / connected AP
  13724. * calculated in the firmware.
  13725. *
  13726. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL: Optional flag. This attribute
  13727. * indicates connection/roaming is successful or not.
  13728. *
  13729. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE: Optional u8 attribute.
  13730. * This attribute indicates BTM WTC sub reason code in the WTC vendor specific
  13731. * IE present in the BTM frame.
  13732. *
  13733. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION: Optional u32 attribute.
  13734. * This attribute indicates BTM WTC duration in milliseconds.
  13735. *
  13736. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN: Optional u8 attribute. This attribute
  13737. * indicates dialog token value of BTM query/request/response frames.
  13738. *
  13739. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON: Optional u8 attribute. This
  13740. * attribute indicates the Transition Reason field indicates the reason why
  13741. * a transition attempt occurred and contains one of the values defined in IEEE
  13742. * Std 802.11‐2020 Table 9-198—Transition and Transition Query reasons.
  13743. *
  13744. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE: Optional u8 attribute. This attribute
  13745. * indicates BTM mode defined in IEEE Std 802.11‐2020
  13746. * Figure 9-924—Request Mode field format.
  13747. *
  13748. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER: Optional u16 attribute.
  13749. * This attribute indicates the Disassociation Timer field which is the number
  13750. * of beacon transmission times (TBTTs) until the serving AP will send a
  13751. * Disassociation frame to this STA.
  13752. *
  13753. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL: Optional u8 attribute.
  13754. * This attribute indicates BTM validity interval field in TBTTs defined in
  13755. * IEEE Std 802.11‐2020 Figure 9-923—BSS Transition Management Request frame
  13756. * Action field format.
  13757. *
  13758. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT: Optional u8 attribute.
  13759. * This attribute indicates BTM candidate list entries.
  13760. *
  13761. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE: Optional u8 attribute.
  13762. * This attribute indicates network preference for BTM transition defined in
  13763. * IEEE Std 802.11‐2020 Table 9-174—Preference field values.
  13764. *
  13765. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE: Optional u8 attribute.
  13766. * This attribute indicates BTM transition status code defined in IEEE Std
  13767. * 802.11‐2020 Table 9-428—BTM status code definitions.
  13768. *
  13769. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY: Optional u8 attribute.
  13770. * This attribute indicates BSS termination delay defined in IEEE Std
  13771. * 802.11‐2020 Section 9.6.13.10 BSS Transition Management Response frame format.
  13772. *
  13773. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID: Optional attribute.
  13774. * This attribute indicates 6-byte MAC address representing the BSSID of the
  13775. * BSS that the non-AP STA transitions to.
  13776. *
  13777. * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE: Optional u8 attribute. This attribute
  13778. * indicates EAP frame type. The methods are enumerated by IANA at
  13779. * https://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml.
  13780. *
  13781. * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN: Optional u8 attribute. This attribute
  13782. * indicates EAP frame length.
  13783. *
  13784. * @QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP: Required u64 attribute. This
  13785. * attribute indicates the kernel timestamp. Driver uses ktime_get() API
  13786. * (Time from boot but not the time spent in suspend) to send in microseconds
  13787. * to userspace.
  13788. *
  13789. * @QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID: Optional u16 attribute. This attribute
  13790. * indicates the association id received in the (re)association response frame
  13791. * defined in IEEE Std 802.11-2020 Figure 9-91-AID field format.
  13792. */
  13793. enum qca_wlan_vendor_attr_diag {
  13794. QCA_WLAN_VENDOR_ATTR_DIAG_INVALID = 0,
  13795. QCA_WLAN_VENDOR_ATTR_DIAG_EVENT = 1,
  13796. QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE = 2,
  13797. QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP = 3,
  13798. QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP = 4,
  13799. QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX = 5,
  13800. QCA_WLAN_VENDOR_ATTR_DIAG_BSSID = 6,
  13801. QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT = 7,
  13802. QCA_WLAN_VENDOR_ATTR_DIAG_SSID = 8,
  13803. QCA_WLAN_VENDOR_ATTR_DIAG_FREQ = 9,
  13804. QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT = 10,
  13805. QCA_WLAN_VENDOR_ATTR_DIAG_RSSI = 11,
  13806. QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE = 12,
  13807. QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE = 13,
  13808. QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE = 14,
  13809. QCA_WLAN_VENDOR_ATTR_DIAG_AKM = 15,
  13810. QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO = 16,
  13811. QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE = 17,
  13812. QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE = 18,
  13813. QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE = 19,
  13814. QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER = 20,
  13815. QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE = 21,
  13816. QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS = 22,
  13817. QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME = 23,
  13818. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON = 24,
  13819. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON = 25,
  13820. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU = 26,
  13821. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE = 27,
  13822. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD = 28,
  13823. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST = 29,
  13824. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT = 30,
  13825. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK = 31,
  13826. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP = 32,
  13827. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE = 33,
  13828. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL = 34,
  13829. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE = 35,
  13830. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION = 36,
  13831. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN = 37,
  13832. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON = 38,
  13833. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE = 39,
  13834. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER = 40,
  13835. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL = 41,
  13836. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT = 42,
  13837. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE = 43,
  13838. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE = 44,
  13839. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY = 45,
  13840. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID = 46,
  13841. QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE = 47,
  13842. QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN = 48,
  13843. QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP = 49,
  13844. QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID = 50,
  13845. /* keep last */
  13846. QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST,
  13847. QCA_WLAN_VENDOR_ATTR_DIAG_MAX =
  13848. QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST - 1,
  13849. };
  13850. /**
  13851. * qca_wlan_vendor_monitor_data_frame_type - Represent the various
  13852. * data types to be sent over the monitor interface.
  13853. */
  13854. enum qca_wlan_vendor_monitor_data_frame_type {
  13855. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
  13856. /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is
  13857. not set */
  13858. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
  13859. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
  13860. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
  13861. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
  13862. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
  13863. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
  13864. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
  13865. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
  13866. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
  13867. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
  13868. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
  13869. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
  13870. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
  13871. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
  13872. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
  13873. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
  13874. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
  13875. };
  13876. /**
  13877. * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
  13878. * mgmt types to be sent over the monitor interface.
  13879. * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the MGMT Frames.
  13880. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the MGMT Frames
  13881. * except the Beacons. Valid only in the Connect state.
  13882. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
  13883. * BSSID Beacons. Valid only in the Connect state.
  13884. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
  13885. * the Beacons obtained during the scan (off channel and connected channel)
  13886. * when in connected state.
  13887. */
  13888. enum qca_wlan_vendor_monitor_mgmt_frame_type {
  13889. QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
  13890. /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set */
  13891. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON = BIT(1),
  13892. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
  13893. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
  13894. };
  13895. /**
  13896. * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
  13897. * ctrl types to be sent over the monitor interface.
  13898. * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the ctrl Frames.
  13899. * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger Frame.
  13900. */
  13901. enum qca_wlan_vendor_monitor_ctrl_frame_type {
  13902. QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
  13903. /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set */
  13904. QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
  13905. };
  13906. /**
  13907. * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
  13908. * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
  13909. * monitor mode.
  13910. *
  13911. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute,
  13912. * Represents the tx data packet type to be monitored (u32). These data packets
  13913. * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
  13914. *
  13915. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute,
  13916. * Represents the tx data packet type to be monitored (u32). These data packets
  13917. * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
  13918. *
  13919. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute,
  13920. * Represents the tx data packet type to be monitored (u32). These mgmt packets
  13921. * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
  13922. *
  13923. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute,
  13924. * Represents the tx data packet type to be monitored (u32). These mgmt packets
  13925. * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
  13926. *
  13927. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute,
  13928. * Represents the tx data packet type to be monitored (u32). These ctrl packets
  13929. * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
  13930. *
  13931. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute,
  13932. * Represents the tx data packet type to be monitored (u32). These ctrl packets
  13933. * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
  13934. *
  13935. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL:
  13936. * u32 attribute, An interval only for the connected beacon interval, which
  13937. * expects that the connected BSSID's beacons shall be sent on the monitor
  13938. * interface only on this specific interval.
  13939. */
  13940. enum qca_wlan_vendor_attr_set_monitor_mode {
  13941. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
  13942. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
  13943. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
  13944. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
  13945. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
  13946. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
  13947. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
  13948. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
  13949. /* keep last */
  13950. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
  13951. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
  13952. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
  13953. };
  13954. /**
  13955. * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
  13956. * Bits will be set to 1 if the corresponding state is enabled.
  13957. *
  13958. * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
  13959. * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
  13960. */
  13961. enum qca_wlan_vendor_roam_scan_state {
  13962. QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
  13963. QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
  13964. };
  13965. /**
  13966. * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
  13967. * Bits will be set to 1 if the corresponding event is notified.
  13968. *
  13969. * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
  13970. * carries the trigger reason. When set, it is expected that the roam event
  13971. * carries the respective reason via the attribute
  13972. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
  13973. * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
  13974. *
  13975. * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
  13976. * carries the roam fail reason. When set, it is expected that the roam event
  13977. * carries the respective reason via the attribute
  13978. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
  13979. * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
  13980. *
  13981. * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
  13982. * event carries the roam invoke fail reason. When set, it is expected that
  13983. * the roam event carries the respective reason via the attribute
  13984. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
  13985. *
  13986. * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
  13987. * carries the roam scan state. When set, it is expected that the roam event
  13988. * carries the respective scan state via the attribute
  13989. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
  13990. * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
  13991. */
  13992. enum qca_wlan_vendor_roam_event_type {
  13993. QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
  13994. QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
  13995. QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
  13996. QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
  13997. };
  13998. /**
  13999. * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
  14000. * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
  14001. *
  14002. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
  14003. * representing the BSSID of the AP to which the Roam is attempted.
  14004. *
  14005. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
  14006. * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
  14007. * attempted.
  14008. *
  14009. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, Frequency in MHz
  14010. * on which the roam is attempted.
  14011. *
  14012. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
  14013. * STA mode only. This represents the roam fail reason for the last failed
  14014. * roaming attempt by the firmware for the specific BSSID. Different roam
  14015. * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
  14016. */
  14017. enum qca_wlan_vendor_attr_roam_events_candidate_info {
  14018. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
  14019. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
  14020. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
  14021. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
  14022. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
  14023. /* keep last */
  14024. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
  14025. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
  14026. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
  14027. };
  14028. /**
  14029. * enum qca_wlan_vendor_attr_roam_events - Used by the
  14030. * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
  14031. * roam events to the driver or notify these events from the driver.
  14032. *
  14033. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
  14034. * driver/firmware to enable/disable the notification of roam events. It's a
  14035. * mandatory attribute and used only in the request from the userspace to the
  14036. * host driver. 1-Enable, 0-Disable.
  14037. * If the roaming is totally offloaded to the firmware, this request when
  14038. * enabled shall mandate the firmware to notify all the relevant roam events
  14039. * represented by the below attributes. If the host is in the suspend mode,
  14040. * the behavior of the firmware to notify these events is guided by
  14041. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
  14042. * these events in the suspend state, the firmware is expected to wake up the
  14043. * host before the respective events are notified. Please note that such a
  14044. * request to get the events in the suspend state will have a definite power
  14045. * implication.
  14046. *
  14047. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
  14048. * that the roam events need to be notified in the suspend state too. By
  14049. * default, these roam events are notified in the resume state. With this flag,
  14050. * the roam events are notified in both resume and suspend states.
  14051. * This attribute is used in the request from the userspace to the host driver.
  14052. *
  14053. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
  14054. * Represents the different roam event types, signified by the enum
  14055. * qca_wlan_vendor_roam_event_type.
  14056. * Each bit of this attribute represents the different roam even types reported
  14057. * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  14058. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  14059. *
  14060. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
  14061. * mode only. This represents the roam trigger reason for the last roaming
  14062. * attempted by the firmware. Each bit of this attribute represents the
  14063. * different roam trigger reason code which are defined in enum
  14064. * qca_vendor_roam_triggers.
  14065. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  14066. *
  14067. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
  14068. * STA mode only. This represents the roam invoke fail reason for the last
  14069. * failed roam invoke. Different roam invoke failure reason codes
  14070. * are specified in enum qca_vendor_roam_invoke_fail_reasons.
  14071. *
  14072. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
  14073. * for which the roam is attempted. Each entry is a nested attribute defined
  14074. * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
  14075. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  14076. *
  14077. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
  14078. * the scan state on which the roam events need to be notified. The values for
  14079. * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
  14080. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  14081. *
  14082. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
  14083. * u32 values. List of frequencies in MHz considered for a roam scan.
  14084. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  14085. */
  14086. enum qca_wlan_vendor_attr_roam_events {
  14087. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
  14088. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
  14089. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
  14090. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
  14091. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
  14092. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
  14093. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
  14094. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
  14095. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
  14096. /* keep last */
  14097. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
  14098. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
  14099. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1,
  14100. };
  14101. /*
  14102. * enum qca_wlan_ratemask_params_type - Rate mask config type.
  14103. *
  14104. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK_OFDM rate mask config
  14105. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
  14106. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
  14107. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
  14108. */
  14109. enum qca_wlan_ratemask_params_type {
  14110. QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
  14111. QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
  14112. QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
  14113. QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
  14114. };
  14115. /* enum qca_wlan_vendor_attr_ratemask_params - Used by the
  14116. * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
  14117. * This is used to set the rate mask value to be used in rate selection.
  14118. *
  14119. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
  14120. * Array of nested containing attributes
  14121. * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
  14122. * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
  14123. *
  14124. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
  14125. * the different phy types to which the rate mask config is to be applied.
  14126. * The values for this attribute are referred from enum
  14127. * qca_wlan_vendor_ratemask_params_type.
  14128. *
  14129. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
  14130. * A bit value of 1 represents rate is enabled and a value of 0
  14131. * represents rate is disabled.
  14132. * For HE targets, 12 bits correpond to one NSS setting.
  14133. * b0-13 => NSS1, MCS 0-13
  14134. * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
  14135. * For VHT targets, 10 bits correspond to one NSS setting.
  14136. * b0-9 => NSS1, MCS 0-9
  14137. * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
  14138. * For HT targets, 8 bits correspond to one NSS setting.
  14139. * b0-7 => NSS1, MCS 0-7
  14140. * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
  14141. * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
  14142. */
  14143. enum qca_wlan_vendor_attr_ratemask_params {
  14144. QCA_WLAN_VENDOR_ATTR_RATEMASK_INVALID = 0,
  14145. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
  14146. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
  14147. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
  14148. /* keep last */
  14149. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
  14150. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
  14151. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
  14152. };
  14153. /**
  14154. * enum qca_wlan_vendor_flush_pending_policy: Represents values for
  14155. * the policy to flush pending frames, configured via
  14156. * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
  14157. * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
  14158. *
  14159. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
  14160. * the flush policy configured before. This command basically disables the
  14161. * flush config set by the user.
  14162. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
  14163. * the flush policy to be immediate. All pending packets for the peer/TID are
  14164. * flushed when this command/policy is received.
  14165. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
  14166. * the flush policy to the end of TWT SP. All pending packets for the peer/TID
  14167. * are flushed when the end of TWT SP is reached.
  14168. */
  14169. enum qca_wlan_vendor_flush_pending_policy {
  14170. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
  14171. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
  14172. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
  14173. };
  14174. /**
  14175. * enum qca_wlan_vendor_attr_flush_pending - Attributes for
  14176. * flushing pending traffic in firmware.
  14177. *
  14178. * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
  14179. * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
  14180. * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
  14181. * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
  14182. * flush packets with access category. This is optional. See below.
  14183. * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
  14184. * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
  14185. * bit to 1 to act upon the TID. This is optional. Either this attribute or
  14186. * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
  14187. * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
  14188. * it is an error.
  14189. * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
  14190. * packets corresponding to the peer/TID provided. It is a u32 value,
  14191. * represented by %enum qca_wlan_vendor_flush_pending_policy. This
  14192. * value is honored only when TID mask is provided. This is not honored when AC
  14193. * mask is provided.
  14194. */
  14195. enum qca_wlan_vendor_attr_flush_pending {
  14196. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
  14197. QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
  14198. QCA_WLAN_VENDOR_ATTR_AC = 2,
  14199. QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
  14200. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
  14201. /* keep last */
  14202. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
  14203. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
  14204. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
  14205. };
  14206. /**
  14207. * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
  14208. * for) or drop existing PASN security association for the listed the
  14209. * peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
  14210. * to userspace.
  14211. *
  14212. * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
  14213. * devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
  14214. * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
  14215. * the driver to userspace to inform that the existing PASN keys of the
  14216. * peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
  14217. * not valid anymore.
  14218. */
  14219. enum qca_wlan_vendor_pasn_action {
  14220. QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
  14221. QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
  14222. };
  14223. /**
  14224. * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
  14225. * QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
  14226. *
  14227. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
  14228. * event from the driver to userspace and represents the local MAC address
  14229. * to be used for PASN handshake. When this attribute is present, userspace
  14230. * shall use the source address specified in this attribute by the driver
  14231. * for PASN handshake with peer device.
  14232. * This attribute is required in a command response from userspace to the
  14233. * driver and represents the MAC address that was used in PASN handshake
  14234. * with the peer device.
  14235. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
  14236. * peer device to which PASN handshake is requested in an event from the
  14237. * driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
  14238. * QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
  14239. * Indicates the MAC address of the peer device for which the keys are to
  14240. * be invalidated in an event from the driver to userspace when
  14241. * QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
  14242. * QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
  14243. * Indicates the MAC address of the peer device for which the status is
  14244. * being sent in a status report from userspace to the driver.
  14245. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
  14246. * in the event from the driver to userspace. When set, userspace is
  14247. * required to derive LTF key seed from KDK and set it to the driver.
  14248. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
  14249. * attribute is used in the command response from userspace to the driver.
  14250. * If present, it indicates the successful PASN handshake with the peer. If
  14251. * this flag is not present, it indicates that the PASN handshake with the
  14252. * peer device failed.
  14253. */
  14254. enum qca_wlan_vendor_attr_pasn_peer {
  14255. QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
  14256. QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
  14257. QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
  14258. QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
  14259. QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
  14260. /* keep last */
  14261. QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
  14262. QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
  14263. QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
  14264. };
  14265. /**
  14266. * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
  14267. * QCA_NL80211_VENDOR_SUBCMD_PASN command.
  14268. *
  14269. * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
  14270. * defined in enum qca_wlan_vendor_pasn_action and used only in an event
  14271. * from the driver to userspace.
  14272. * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
  14273. * details for each peer and used in both an event and a command response.
  14274. * The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
  14275. * defined in enum qca_wlan_vendor_attr_pasn_peer.
  14276. */
  14277. enum qca_wlan_vendor_attr_pasn {
  14278. QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
  14279. QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
  14280. QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
  14281. /* keep last */
  14282. QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
  14283. QCA_WLAN_VENDOR_ATTR_PASN_MAX =
  14284. QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
  14285. };
  14286. /**
  14287. * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
  14288. * the ranging security context derived from PASN for each peer. Used in
  14289. * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
  14290. *
  14291. * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
  14292. * context for the peer.
  14293. * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
  14294. * context for the peer.
  14295. */
  14296. enum qca_wlan_vendor_secure_ranging_ctx_action {
  14297. QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
  14298. QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
  14299. };
  14300. /**
  14301. * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
  14302. * used for deriving PASN keys to the driver. Used in
  14303. * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
  14304. * @QCA_WLAN_VENDOR_SHA_256: SHA-256
  14305. * @QCA_WLAN_VENDOR_SHA_384: SHA-384
  14306. */
  14307. enum qca_wlan_vendor_sha_type {
  14308. QCA_WLAN_VENDOR_SHA_256,
  14309. QCA_WLAN_VENDOR_SHA_384,
  14310. };
  14311. /**
  14312. * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
  14313. * to set security context for the PASN peer from userspace to the driver.
  14314. * Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
  14315. *
  14316. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
  14317. * values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
  14318. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
  14319. * was used during the PASN handshake.
  14320. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
  14321. * the peer device for which secure ranging context is being configured.
  14322. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
  14323. * hash algorithm to be used, possible values are defined in enum
  14324. * qca_wlan_vendor_sha_type.
  14325. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
  14326. * the temporal key generated from the PASN handshake. The length of this
  14327. * attribute is dependent on the value of
  14328. * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
  14329. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
  14330. * TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
  14331. * (e.g., 0x000FAC04).
  14332. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
  14333. * attribute, holds the LTF keyseed derived from KDK of PASN handshake.
  14334. * The length of this attribute is dependent on the value of
  14335. * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
  14336. *
  14337. */
  14338. enum qca_wlan_vendor_attr_secure_ranging_ctx {
  14339. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
  14340. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
  14341. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
  14342. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
  14343. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
  14344. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
  14345. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
  14346. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
  14347. /* keep last */
  14348. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
  14349. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
  14350. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
  14351. };
  14352. /**
  14353. * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used
  14354. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER
  14355. * nested attribute. The packets that match a filter will be replied with
  14356. * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY.
  14357. *
  14358. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4:
  14359. * u32 attribute. Destination IPv4 address in network byte order, the
  14360. * IPv4 packets with different address will be filtered out.
  14361. * This attribute is optional.
  14362. *
  14363. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC:
  14364. * Flag attribute. If it's present, indicates that
  14365. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast
  14366. * address; while if not, indicates that the address is a unicast/multicast
  14367. * address.
  14368. * This attribute is optional.
  14369. *
  14370. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6:
  14371. * NLA_BINARY attribute, length is 16 bytes.
  14372. * Destination IPv6 address in network byte order, the IPv6 packets
  14373. * with different destination address will be filtered out.
  14374. * This attribute is optional.
  14375. *
  14376. * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and
  14377. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured.
  14378. * Packets on both IPv4 and IPv6 will be processed if both are configured.
  14379. *
  14380. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT:
  14381. * u16 attribute. Destination UDP port, the packets with different destination
  14382. * UDP port will be filtered out.
  14383. * This attribute is mandatory.
  14384. *
  14385. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET:
  14386. * u32 attribute. Represents the offset (in UDP payload) of the data
  14387. * to be matched.
  14388. * This attribute is mandatory.
  14389. *
  14390. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA:
  14391. * NLA_BINARY attribute, the maximum allowed size is 16 bytes.
  14392. * Binary data that is compared bit-by-bit against the data (specified
  14393. * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP
  14394. * payload, the packets don't match will be filtered out.
  14395. * This attribute is mandatory.
  14396. */
  14397. enum qca_wlan_vendor_attr_coap_offload_filter {
  14398. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0,
  14399. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1,
  14400. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2,
  14401. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3,
  14402. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4,
  14403. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5,
  14404. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6,
  14405. /* keep last */
  14406. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST,
  14407. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX =
  14408. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1,
  14409. };
  14410. /**
  14411. * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used
  14412. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute.
  14413. *
  14414. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4:
  14415. * u32 attribute. Source address (in network byte order) for replying
  14416. * the matching broadcast/multicast IPv4 packets.
  14417. * This attribute is optional.
  14418. *
  14419. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6:
  14420. * NLA_BINARY attribute, length is 16 bytes.
  14421. * Source address (in network byte order) for replying the matching
  14422. * multicast IPv6 packets.
  14423. * This attribute is optional.
  14424. *
  14425. * For broadcast/multicast offload reply, one of
  14426. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and
  14427. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be
  14428. * configured according to version of the IP address(es) configured in
  14429. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER;
  14430. * while for unicast case, firmware will take the destination IP address
  14431. * in the received matching packet as the source address for replying.
  14432. *
  14433. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER:
  14434. * Nested attribute. Filter for the received UDP packets, only the matching
  14435. * packets will be replied and cached.
  14436. * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported
  14437. * attributes.
  14438. * This attribute is mandatory.
  14439. *
  14440. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG:
  14441. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  14442. * CoAP message (UDP payload) to be sent upon receiving matching packets.
  14443. * Firmware is responsible for adding any necessary protocol headers.
  14444. * This attribute is mandatory.
  14445. *
  14446. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME:
  14447. * u32 attribute. Expiration time in milliseconds of the cached CoAP messages.
  14448. * A cached message will be dropped by firmware if it's expired.
  14449. * This attribute is optional. A default value of 40000 will be used in the
  14450. * absence of it.
  14451. */
  14452. enum qca_wlan_vendor_attr_coap_offload_reply {
  14453. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0,
  14454. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1,
  14455. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2,
  14456. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3,
  14457. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4,
  14458. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5,
  14459. /* keep last */
  14460. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST,
  14461. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX =
  14462. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1,
  14463. };
  14464. /**
  14465. * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for
  14466. * CoAP message (UDP) transmitting on IPv4.
  14467. *
  14468. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR:
  14469. * u32 attribute. Source address (in network byte order) for transmitting
  14470. * packets on IPv4.
  14471. * This attribute is mandatory.
  14472. *
  14473. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT:
  14474. * u16 attribute. Source UDP port.
  14475. * This attribute is optional, a random port is taken if it's not present.
  14476. *
  14477. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR:
  14478. * u32 attribute. Destination IPv4 address (in network byte order).
  14479. * This attribute is mandatory.
  14480. *
  14481. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC:
  14482. * Flag attribute. If it's present, indicates that
  14483. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast
  14484. * address; while if not, indicates that the address is unicast/multicast
  14485. * address.
  14486. * This attribute is optional.
  14487. *
  14488. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT:
  14489. * u16 attribute. Destination UDP port.
  14490. * This attribute is mandatory.
  14491. */
  14492. enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 {
  14493. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0,
  14494. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1,
  14495. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2,
  14496. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3,
  14497. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4,
  14498. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5,
  14499. /* keep last */
  14500. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST,
  14501. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX =
  14502. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1,
  14503. };
  14504. /**
  14505. * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for
  14506. * CoAP message (UDP) transmitting on IPv6.
  14507. *
  14508. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR:
  14509. * NLA_BINARY attribute, length is 16 bytes.
  14510. * Source address (in network byte order) for transmitting packets on IPv6.
  14511. * This attribute is mandatory.
  14512. *
  14513. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT:
  14514. * u16 attribute. Source UDP port.
  14515. * This attribute is optional, a random port is taken if it's not present.
  14516. *
  14517. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR:
  14518. * NLA_BINARY attribute, length is 16 bytes.
  14519. * Destination IPv6 address (in network byte order).
  14520. * This attribute is mandatory.
  14521. *
  14522. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT:
  14523. * u16 attribute. Destination UDP port.
  14524. * This attribute is mandatory.
  14525. */
  14526. enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 {
  14527. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0,
  14528. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1,
  14529. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2,
  14530. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3,
  14531. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4,
  14532. /* keep last */
  14533. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST,
  14534. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX =
  14535. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1,
  14536. };
  14537. /**
  14538. * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used
  14539. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute.
  14540. *
  14541. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4:
  14542. * Nested attribute. The IPv4 source/destination address/port for offload
  14543. * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list
  14544. * of supported attributes.
  14545. * This attribute is optional.
  14546. *
  14547. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6:
  14548. * Nested attribute. The IPv6 source/destination address/port for offload
  14549. * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list
  14550. * of supported attributes.
  14551. * This attribute is optional.
  14552. *
  14553. * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and
  14554. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured.
  14555. * Firmware will transmit the packets on both IPv4 and IPv6 if both are
  14556. * configured.
  14557. *
  14558. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD:
  14559. * u32 attribute. Period in milliseconds for the periodic transmitting.
  14560. * This attribute is mandatory.
  14561. *
  14562. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG:
  14563. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  14564. * CoAP message (UDP payload) to be periodically transmitted. Firmware
  14565. * is responsible for adding any necessary protocol headers.
  14566. * This attribute is mandatory.
  14567. */
  14568. enum qca_wlan_vendor_attr_coap_offload_periodic_tx {
  14569. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0,
  14570. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1,
  14571. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2,
  14572. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3,
  14573. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4,
  14574. /* keep last */
  14575. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST,
  14576. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX =
  14577. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1,
  14578. };
  14579. /**
  14580. * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used
  14581. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute.
  14582. *
  14583. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS:
  14584. * u64 attribute. Received time (since system booted in microseconds) of
  14585. * the cached CoAP message.
  14586. * This attribute is mandatory.
  14587. *
  14588. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4:
  14589. * u32 attribute. Source IPv4 address (in network byte order) of the cached
  14590. * CoAP message.
  14591. * This attribute is optional.
  14592. *
  14593. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6:
  14594. * NLA_BINARY attribute, length is 16 bytes.
  14595. * Source IPv6 address (in network byte order) of the cached CoAP message.
  14596. * This attribute is optional.
  14597. *
  14598. * At most and at least one of
  14599. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and
  14600. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for
  14601. * an entry.
  14602. *
  14603. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG:
  14604. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  14605. * The cached CoAP message (UDP payload). If the actual message size is
  14606. * greater than the maximum size, it will be truncated and leaving only
  14607. * the first 1152 bytes.
  14608. * This attribute is mandatory.
  14609. */
  14610. enum qca_wlan_vendor_attr_coap_offload_cache_info {
  14611. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0,
  14612. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1,
  14613. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2,
  14614. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3,
  14615. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4,
  14616. /* keep last */
  14617. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST,
  14618. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX =
  14619. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1,
  14620. };
  14621. /**
  14622. * enum qca_wlan_vendor_coap_offload_action - Actions for
  14623. * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
  14624. *
  14625. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE:
  14626. * Enable CoAP offload reply.
  14627. * If it's enabled, firmware will start offload processing on each suspend
  14628. * and stop on each resume.
  14629. *
  14630. * Offload reply on match works as follows:
  14631. * Reply the packets that match the filter with the given CoAP
  14632. * message (with necessary protocol headers), increase the CoAP message
  14633. * ID in the given CoAP message by one for the next use after each successful
  14634. * transmission, and try to store the information of the received packet,
  14635. * including the received time, source IP address, and CoAP message (UDP
  14636. * payload).
  14637. *
  14638. * Firmware has a limit to the maximum stored entries, it takes the source IP
  14639. * address as the key of an entry, and keeps at most one entry for each key.
  14640. * A packet won't be stored if no entry for the same key is present and the
  14641. * total number of the existing unexpired entries reaches the maximum value.
  14642. *
  14643. * If any configured item is changed, user space should disable offload reply
  14644. * first and then issue a new enable request.
  14645. *
  14646. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE:
  14647. * Disable CoAP offload reply and return information of any cached CoAP
  14648. * messages.
  14649. *
  14650. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE:
  14651. * Enable CoAP offload periodic transmitting.
  14652. * If it's enabled, firmware will start offload periodic transmitting on
  14653. * each suspend and stop on each resume.
  14654. *
  14655. * Offload periodic transmitting works as follows:
  14656. * Send the given CoAP message (with necessary protocol headers) with the given
  14657. * source/destination IP address/UDP port periodically based on the given
  14658. * period and increase the CoAP message ID in the given CoAP message by one
  14659. * for the next use after each successful transmission.
  14660. *
  14661. * If any configured item is changed, user space should disable offload
  14662. * periodic transmitting first and then issue a new enable request.
  14663. *
  14664. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE:
  14665. * Disable CoAP offload periodic transmitting.
  14666. *
  14667. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET:
  14668. * Get information of the CoAP messages cached during offload reply
  14669. * processing. The cache is cleared after retrieval.
  14670. */
  14671. enum qca_wlan_vendor_coap_offload_action {
  14672. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0,
  14673. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1,
  14674. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2,
  14675. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3,
  14676. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4,
  14677. };
  14678. /**
  14679. * enum qca_wlan_vendor_attr_coap_offload - Used by the
  14680. * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
  14681. * This is used to set parameters for CoAP offload processing, or get
  14682. * cached CoAP messages from firmware.
  14683. *
  14684. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION:
  14685. * u32 attribute. Action to take in this vendor command.
  14686. * See enum qca_wlan_vendor_coap_offload_action for supported actions.
  14687. * This attribute is mandatory.
  14688. *
  14689. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID:
  14690. * u32 attribute. Represents the Request ID for the CoAP offload
  14691. * configuration, which can help to identify the user entity starting
  14692. * the CoAP offload processing and accordingly stop the respective
  14693. * ones/get the cached CoAP messages with the matching ID.
  14694. * This attribute is mandatory.
  14695. *
  14696. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY:
  14697. * Nested attribute. Parameters for offload reply.
  14698. * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of
  14699. * supported attributes.
  14700. * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
  14701. * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored
  14702. * otherwise.
  14703. *
  14704. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX:
  14705. * Nested attribute. Parameters for offload periodic transmitting.
  14706. * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of
  14707. * supported attributes.
  14708. * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is
  14709. * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored
  14710. * otherwise.
  14711. *
  14712. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES:
  14713. * Array of nested attributes. Information of the cached CoAP messages,
  14714. * where each entry is taken from
  14715. * enum qca_wlan_vendor_attr_coap_offload_cache_info.
  14716. * This attribute is used for reporting the cached CoAP messages
  14717. * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
  14718. * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or
  14719. * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no
  14720. * cached item if this attribute is not present.
  14721. */
  14722. enum qca_wlan_vendor_attr_coap_offload {
  14723. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0,
  14724. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1,
  14725. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2,
  14726. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3,
  14727. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4,
  14728. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5,
  14729. /* keep last */
  14730. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST,
  14731. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX =
  14732. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1,
  14733. };
  14734. /**
  14735. * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command
  14736. * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification
  14737. * Service (SCS) rule.
  14738. *
  14739. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute.
  14740. * Represents the unique id of SCS rule to be configured.
  14741. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute.
  14742. * Represents the request type: add, remove, or change.
  14743. * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request
  14744. * Type definitions).
  14745. *
  14746. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute
  14747. * in case of add/change request type.
  14748. * Represents the output traffic identifier (TID) to be assigned to the flow
  14749. * matching the rule.
  14750. *
  14751. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8
  14752. * attribute in case of add/change request type.
  14753. * Represents type of classifier parameters present in SCS rule.
  14754. * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type).
  14755. * Only classifier types 4 and 10 are supported for SCS.
  14756. *
  14757. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute
  14758. * in case of add/change request type when classifier type is TCLAS4.
  14759. * Represents the IP version (4: IPv4, 6: IPv6) of the rule.
  14760. *
  14761. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional
  14762. * attribute in case of add/change request type when classifier type is TCLAS4
  14763. * and version attribute is IPv4.
  14764. * Represents the source IPv4 address in the rule which is to be compared
  14765. * against the source IP address in the IPv4 header.
  14766. *
  14767. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional
  14768. * attribute in case of add/change request type when classifier type is TCLAS4
  14769. * and version attribute is IPv4.
  14770. * Represents the destination IPv4 address in the rule which is to be compared
  14771. * against the destination IP address in the IPv4 header.
  14772. *
  14773. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional
  14774. * attribute in case of add/change request type when classifier type is TCLAS4
  14775. * and version attribute is IPv6.
  14776. * Represents the source IPv6 address in the rule which is to be compared
  14777. * against the source IP address in the IPv6 header.
  14778. *
  14779. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional
  14780. * attribute in case of add/change request type when classifier type is TCLAS4
  14781. * and version attribute is IPv6.
  14782. * Represents the destination IPv6 address in the rule which is to be compared
  14783. * against the destination IP address in the IPv6 header.
  14784. *
  14785. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute
  14786. * in case of add/change request type when classifier type is TCLAS4.
  14787. * Represents the source port number in the rule which is to be compared against
  14788. * the source port number in the protocol header.
  14789. *
  14790. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute
  14791. * in case of add/change request type when classifier type is TCLAS4.
  14792. * Represents the destination port number in the rule which is to be compared
  14793. * against the destination port number in the protocol header.
  14794. *
  14795. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute
  14796. * in case of add/change request type when classifier type is TCLAS4.
  14797. * Represents the DSCP value in the rule which is to be compared against the
  14798. * DSCP field present in the IP header.
  14799. *
  14800. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8
  14801. * attribute in case of add/change request type when classifier type is TCLAS4.
  14802. * Represents the protocol/next header in the rule which is to be compared
  14803. * against the protocol/next header field present in the IPv4/IPv6 header.
  14804. *
  14805. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional
  14806. * attribute of size 3 bytes present in case of add/change request type
  14807. * when classifier type is TCLAS4 and version is IPv6.
  14808. * Represents the flow label value in the rule which is to be compared against
  14809. * the flow label field present in the IPv6 header.
  14810. *
  14811. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8
  14812. * attribute in case of add/change request type when classifier type is TCLAS10.
  14813. * Represents the protocol instance number in the rule.
  14814. *
  14815. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8
  14816. * attribute in case of add/change request type when classifier type is TCLAS10.
  14817. * Represents the protocol/next header in the rule which is to be compared
  14818. * against the protocol/next header field present in the IPv4/IPv6 header.
  14819. *
  14820. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional
  14821. * attribute of variable length present when request type is add/change and
  14822. * classifier type is TCLAS10.
  14823. * Represents the mask to be used for masking the header contents of the header
  14824. * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER
  14825. * attribute.
  14826. *
  14827. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional
  14828. * attribute of variable length present when request type is add/change and
  14829. * classifier type is TCLAS10.
  14830. * Represents the value to be compared against after masking the header contents
  14831. * of the header specified by the
  14832. * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the
  14833. * filter mask specified by the
  14834. * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute.
  14835. *
  14836. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16
  14837. * attribute.
  14838. * Represents the service class id of the configured SCS rule.
  14839. *
  14840. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR: Optional 6 bytes
  14841. * MAC address.
  14842. * Represents the destination MAC address in the rule.
  14843. *
  14844. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX: Optional u32 attribute
  14845. * Represents the netdevice interface index in the rule.
  14846. */
  14847. enum qca_wlan_vendor_attr_scs_rule_config {
  14848. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0,
  14849. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1,
  14850. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2,
  14851. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3,
  14852. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4,
  14853. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5,
  14854. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6,
  14855. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7,
  14856. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8,
  14857. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9,
  14858. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10,
  14859. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11,
  14860. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12,
  14861. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13,
  14862. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14,
  14863. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15,
  14864. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16,
  14865. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17,
  14866. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18,
  14867. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19,
  14868. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR = 20,
  14869. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX = 21,
  14870. /* Keep last */
  14871. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST,
  14872. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX =
  14873. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1,
  14874. };
  14875. /**
  14876. * enum qca_wlan_vendor_sar_version - This describes the current SAR version
  14877. * used in the firmware.
  14878. *
  14879. * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR.
  14880. * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits.
  14881. *
  14882. * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2,
  14883. * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for
  14884. * each CTL group. So user can select up to 6 SAR indexes from the current CTL
  14885. * groups.
  14886. *
  14887. * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3,
  14888. * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each
  14889. * CTL group but user can choose up to 3 SAR set index only, as the top half
  14890. * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of
  14891. * the SAR index (3 to 5) is used for DBS mode.
  14892. */
  14893. enum qca_wlan_vendor_sar_version {
  14894. QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0,
  14895. QCA_WLAN_VENDOR_SAR_VERSION_1 = 1,
  14896. QCA_WLAN_VENDOR_SAR_VERSION_2 = 2,
  14897. QCA_WLAN_VENDOR_SAR_VERSION_3 = 3,
  14898. };
  14899. /**
  14900. * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether
  14901. * CTL grouping is enabled or disabled in the firmware.
  14902. *
  14903. * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping
  14904. * is enabled in firmware.
  14905. *
  14906. * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping
  14907. * is disabled in firmware.
  14908. *
  14909. */
  14910. enum qca_wlan_vendor_sar_ctl_group_state {
  14911. QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0,
  14912. QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1,
  14913. QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2,
  14914. };
  14915. /**
  14916. * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command
  14917. * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities
  14918. * supported by the firmware.
  14919. * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION:
  14920. * u32 attribute. This field describes current SAR version supported by the
  14921. * firmware.
  14922. * See enum qca_wlan_vendor_sar_version for more information.
  14923. * This attribute is mandatory.
  14924. * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE:
  14925. * u32 attribute. This field describes whether CTL groups are enabled
  14926. * or disabled in the firmware.
  14927. * See enum qca_wlan_vendor_sar_ctl_group_state for more information.
  14928. * This attribute is optional.
  14929. */
  14930. enum qca_wlan_vendor_attr_sar_capability {
  14931. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0,
  14932. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1,
  14933. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2,
  14934. /* Keep last */
  14935. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST,
  14936. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX =
  14937. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1,
  14938. };
  14939. /**
  14940. * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics.
  14941. * These statistics are sent from the driver in a response when userspace
  14942. * queries to get the statistics using the operation
  14943. * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset
  14944. * by the driver when the SR feature is enabled, when the driver receives
  14945. * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected.
  14946. *
  14947. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
  14948. * Mandatory only when non-SRG is supported by the AP and optional otherwise.
  14949. * This represents the number of non-SRG TX opportunities.
  14950. *
  14951. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
  14952. * Mandatory only when non-SRG is supported by the AP and optional otherwise.
  14953. * This represents the number of non-SRG PPDUs tried to transmit.
  14954. *
  14955. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
  14956. * Mandatory only when non-SRG is supported by the AP and optional otherwise.
  14957. * This represents the number of non-SRG PPDUs successfully transmitted.
  14958. *
  14959. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
  14960. * Mandatory only when SRG is supported by the AP and optional otherwise.
  14961. * This represents the number of SRG TX opportunities.
  14962. *
  14963. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
  14964. * Mandatory only when SRG is supported by the AP and optional otherwise.
  14965. * This represents the number of SRG PPDUs tried to transmit.
  14966. *
  14967. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
  14968. * Mandatory only when SRG is supported by the AP and optional otherwise.
  14969. * This represents the number of SRG PPDUs successfully transmitted.
  14970. */
  14971. enum qca_wlan_vendor_attr_sr_stats {
  14972. QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0,
  14973. QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1,
  14974. QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2,
  14975. QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3,
  14976. QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4,
  14977. QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5,
  14978. QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6,
  14979. /* Keep last */
  14980. QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST,
  14981. QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX =
  14982. QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1,
  14983. };
  14984. /**
  14985. * enum qca_wlan_sr_reason_code - Defines the different reason codes used in
  14986. * Spatial Reuse feature.
  14987. *
  14988. * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to
  14989. * roaming to an AP that doesn't support/supports SR feature, respectively.
  14990. *
  14991. * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due
  14992. * to change in concurrent interfaces that are supported by the driver.
  14993. */
  14994. enum qca_wlan_sr_reason_code {
  14995. QCA_WLAN_SR_REASON_CODE_ROAMING = 0,
  14996. QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1,
  14997. };
  14998. /**
  14999. * enum qca_wlan_sr_operation - Defines the different types of SR operations.
  15000. * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION.
  15001. *
  15002. * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the
  15003. * driver to enable the Spatial Reuse feature. Attributes
  15004. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
  15005. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this
  15006. * operation.
  15007. *
  15008. * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the
  15009. * driver to disable the Spatial Reuse feature.
  15010. *
  15011. * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an
  15012. * asynchronous event sent to userspace when the SR feature is disabled.
  15013. * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE
  15014. * and sent along with the asynchronous event.
  15015. *
  15016. * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an
  15017. * asynchronous event when the SR feature is enabled again after the SR feature
  15018. * was suspended by the driver earlier. The enable reason is
  15019. * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are
  15020. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
  15021. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD.
  15022. *
  15023. * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is
  15024. * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial
  15025. * reuse transmissions. Userspace sends this operation to the driver.
  15026. * The driver/firmware upon receiving this operation shall prohibit PSR-based
  15027. * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
  15028. *
  15029. * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is
  15030. * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial
  15031. * reuse transmissions. Userspace sends this operation to the driver.
  15032. * The driver/firmware upon receiving this operation shall allow PSR-based
  15033. * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
  15034. *
  15035. * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the
  15036. * driver to get the SR statistics and the driver sends a synchronous response
  15037. * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the
  15038. * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS.
  15039. *
  15040. * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the
  15041. * driver to clear the SR statistics and upon receiving this operation
  15042. * the driver/firmware shall clear the SR statistics.
  15043. *
  15044. * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the
  15045. * driver to get the SR parameters and the driver sends the synchronous response
  15046. * with the following required attributes:
  15047. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
  15048. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
  15049. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
  15050. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
  15051. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
  15052. *
  15053. * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an
  15054. * asynchronous event to userspace to update any changes in SR parameters.
  15055. * The following attributes are used with this operation:
  15056. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
  15057. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
  15058. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
  15059. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
  15060. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
  15061. */
  15062. enum qca_wlan_sr_operation {
  15063. QCA_WLAN_SR_OPERATION_SR_ENABLE = 0,
  15064. QCA_WLAN_SR_OPERATION_SR_DISABLE = 1,
  15065. QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2,
  15066. QCA_WLAN_SR_OPERATION_SR_RESUME = 3,
  15067. QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4,
  15068. QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5,
  15069. QCA_WLAN_SR_OPERATION_GET_STATS = 6,
  15070. QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7,
  15071. QCA_WLAN_SR_OPERATION_GET_PARAMS = 8,
  15072. QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9,
  15073. };
  15074. /**
  15075. * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration
  15076. * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS.
  15077. *
  15078. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute.
  15079. * This attribute is optionally set in response to
  15080. * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to
  15081. * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std
  15082. * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more
  15083. * about HESIGA_Spatial_reuse_value15_allowed.
  15084. *
  15085. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute.
  15086. * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS
  15087. * operation. This indicates whether non-SRG OBSS PD SR transmissions are
  15088. * allowed or not at non-AP STAs that are associated with the AP. If present
  15089. * non-SRG OBSS PD SR transmissions are not allowed else are allowed.
  15090. *
  15091. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8
  15092. * attribute. This attribute is used in response to
  15093. * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
  15094. * Min Offset field which contains an unsigned integer that is added to -82 dBm
  15095. * to generate the value of the SRG OBSS PD Min parameter.
  15096. *
  15097. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8
  15098. * attribute. This attribute is used in response to
  15099. * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
  15100. * Max Offset field which contains an unsigned integer that is added to -82 dBm
  15101. * to generate the value of the SRG OBSS PD Max parameter.
  15102. *
  15103. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8
  15104. * attribute. This attribute is used in response to
  15105. * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS
  15106. * PD Max Offset field which contains an unsigned integer that is added to -82
  15107. * dBm to generate the value of the Non-SRG OBSS PD Max parameter.
  15108. *
  15109. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm).
  15110. * Userspace optionally sends this attribute with
  15111. * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
  15112. * preferred SRG PD threshold. The driver shall send this attribute to
  15113. * userspace in SR resume event to indicate the PD threshold being used for SR.
  15114. * When there is change in SRG PD threshold (for example, due to roaming, etc.)
  15115. * the driver shall indicate the userspace the newly configured SRG PD threshold
  15116. * using an asynchronous event.
  15117. *
  15118. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm).
  15119. * Userspace optionally sends this attribute with
  15120. * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
  15121. * preferred non-SRG PD threshold. The driver shall send this attribute to
  15122. * userspace in SR resume event to indicate the PD threshold being used for SR.
  15123. * When there is change in non-SRG PD threshold (for example, due to roaming,
  15124. * etc.) the driver shall indicate the userspace the newly configured non-SRG PD
  15125. * threshold using an asynchronous event.
  15126. *
  15127. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible
  15128. * values are defined in enum qca_wlan_sr_reason_code. This
  15129. * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and
  15130. * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations.
  15131. */
  15132. enum qca_wlan_vendor_attr_sr_params {
  15133. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0,
  15134. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1,
  15135. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2,
  15136. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3,
  15137. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4,
  15138. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5,
  15139. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6,
  15140. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7,
  15141. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8,
  15142. /* keep last */
  15143. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST,
  15144. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX =
  15145. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1,
  15146. };
  15147. /**
  15148. * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor
  15149. * command QCA_NL80211_VENDOR_SUBCMD_SR.
  15150. *
  15151. * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests
  15152. * from userspace to the driver. Possible values are defined in enum
  15153. * qca_wlan_sr_operation.
  15154. *
  15155. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR
  15156. * configuration parameters. The possible attributes inside this attribute are
  15157. * defined in enum qca_wlan_vendor_attr_sr_params.
  15158. * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
  15159. * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and
  15160. * also in response from the driver to userspace when the response is sent for
  15161. * %QCA_WLAN_SR_OPERATION_GET_PARAMS.
  15162. * The driver uses this attribute in asynchronous events in which the operation
  15163. * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME,
  15164. * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS.
  15165. *
  15166. * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR
  15167. * statistics. These attributes used inside this are defined in enum
  15168. * qca_wlan_vendor_attr_sr_stats.
  15169. * This attribute is used in response from the driver to a command in which
  15170. * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
  15171. * %QCA_WLAN_SR_OPERATION_GET_STATS.
  15172. */
  15173. enum qca_wlan_vendor_attr_sr {
  15174. QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0,
  15175. QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1,
  15176. QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2,
  15177. QCA_WLAN_VENDOR_ATTR_SR_STATS = 3,
  15178. /* Keep last */
  15179. QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST,
  15180. QCA_WLAN_VENDOR_ATTR_SR_MAX =
  15181. QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1,
  15182. };
  15183. /**
  15184. * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes
  15185. * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand.
  15186. *
  15187. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address
  15188. * used by the peer on the link that corresponds to the link used for sending
  15189. * the event notification.
  15190. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte
  15191. * MLD MAC address of the peer.
  15192. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute,
  15193. * used to pass ifindex of the primary netdev.
  15194. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX: u32 attribute,
  15195. * used to pass ifindex of the MLD netdev.
  15196. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS: u8 attribute,
  15197. * used to indicate the number of links that the non-AP MLD negotiated to be
  15198. * used in the ML connection.
  15199. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO: Nested
  15200. * attribute, contains information regarding links of the non-AP MLD.
  15201. * User applications need to know all the links of a non-AP MLD that are
  15202. * participating in the ML association. The possible attributes inside this
  15203. * attribute are defined in enum qca_wlan_vendor_attr_mlo_link_info.
  15204. */
  15205. enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event {
  15206. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0,
  15207. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1,
  15208. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2,
  15209. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3,
  15210. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX = 4,
  15211. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS = 5,
  15212. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO = 6,
  15213. /* keep last */
  15214. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST,
  15215. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX =
  15216. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1,
  15217. };
  15218. /**
  15219. * enum qca_wlan_vendor_attr_mlo_link_info - Defines attributes for
  15220. * non-AP MLD link parameters used by the attribute
  15221. * %QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO.
  15222. *
  15223. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX: u32 attribute, used
  15224. * to pass the netdev ifindex of the non-AP MLD link.
  15225. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR: 6 byte MAC address of
  15226. * the non-AP MLD link.
  15227. */
  15228. enum qca_wlan_vendor_attr_mlo_link_info {
  15229. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_INVALID = 0,
  15230. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX = 1,
  15231. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR = 2,
  15232. /* keep last */
  15233. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST,
  15234. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MAX =
  15235. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST - 1,
  15236. };
  15237. /**
  15238. * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with
  15239. * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and
  15240. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range
  15241. * and PSD information.
  15242. *
  15243. * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is
  15244. * u32. This attribute is used to indicate the start of the queried frequency
  15245. * range in MHz.
  15246. *
  15247. * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32.
  15248. * This attribute is used to indicate the end of the queried frequency range
  15249. * in MHz.
  15250. *
  15251. * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32.
  15252. * This attribute will contain the PSD information for a single range as
  15253. * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and
  15254. * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes.
  15255. *
  15256. * The PSD power info (dBm/MHz) from user space should be multiplied
  15257. * by a factor of 100 when sending to the driver to preserve granularity
  15258. * up to 2 decimal places.
  15259. * Example:
  15260. * PSD power value: 10.21 dBm/MHz
  15261. * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021.
  15262. *
  15263. * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only
  15264. * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with
  15265. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when
  15266. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15267. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
  15268. *
  15269. * The following set of attributes will be used to exchange frequency and
  15270. * corresponding PSD information for AFC between the user space and the driver.
  15271. */
  15272. enum qca_wlan_vendor_attr_afc_freq_psd_info {
  15273. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0,
  15274. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1,
  15275. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2,
  15276. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3,
  15277. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST,
  15278. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX =
  15279. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1,
  15280. };
  15281. /**
  15282. * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with
  15283. * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the
  15284. * channel list and corresponding EIRP information.
  15285. *
  15286. * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8.
  15287. * This attribute is used to indicate queried channel from
  15288. * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO.
  15289. *
  15290. * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32.
  15291. * This attribute is used to configure the EIRP power info corresponding
  15292. * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM.
  15293. * The EIRP power info(dBm) from user space should be multiplied
  15294. * by a factor of 100 when sending to Driver to preserve granularity up to
  15295. * 2 decimal places.
  15296. * Example:
  15297. * EIRP power value: 34.23 dBm
  15298. * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423.
  15299. *
  15300. * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with
  15301. * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
  15302. * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when
  15303. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15304. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE:
  15305. *
  15306. * The following set of attributes will be used to exchange Channel and
  15307. * corresponding EIRP information for AFC between the user space and Driver.
  15308. */
  15309. enum qca_wlan_vendor_attr_afc_chan_eirp_info {
  15310. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0,
  15311. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1,
  15312. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2,
  15313. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST,
  15314. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX =
  15315. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1,
  15316. };
  15317. /**
  15318. * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested
  15319. * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
  15320. * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class,
  15321. * channel, and EIRP related information.
  15322. *
  15323. * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8.
  15324. * This attribute is used to indicate the operating class, as listed under
  15325. * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list.
  15326. *
  15327. * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes
  15328. * for updating the channel number and EIRP power information.
  15329. * It uses the attributes defined in
  15330. * enum qca_wlan_vendor_attr_afc_chan_eirp_info.
  15331. *
  15332. * Operating class information packing format for
  15333. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
  15334. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15335. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY.
  15336. *
  15337. * m - Total number of operating classes.
  15338. * n, j - Number of queried channels for the corresponding operating class.
  15339. *
  15340. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
  15341. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
  15342. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  15343. * .....
  15344. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
  15345. * ....
  15346. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
  15347. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
  15348. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  15349. * ....
  15350. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
  15351. *
  15352. * Operating class information packing format for
  15353. * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
  15354. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
  15355. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15356. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
  15357. *
  15358. * m - Total number of operating classes.
  15359. * n, j - Number of channels for the corresponding operating class.
  15360. *
  15361. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
  15362. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
  15363. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  15364. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
  15365. * .....
  15366. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
  15367. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1]
  15368. * ....
  15369. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
  15370. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
  15371. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  15372. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
  15373. * ....
  15374. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
  15375. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1]
  15376. *
  15377. * The following set of attributes will be used to exchange operating class
  15378. * information for AFC between the user space and the driver.
  15379. */
  15380. enum qca_wlan_vendor_attr_afc_opclass_info {
  15381. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0,
  15382. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1,
  15383. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2,
  15384. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST,
  15385. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX =
  15386. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1,
  15387. };
  15388. /**
  15389. * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type.
  15390. * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute.
  15391. *
  15392. * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the
  15393. * driver to userspace in order to query the new AFC power values.
  15394. *
  15395. * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update
  15396. * complete event will be sent from the driver to userspace to indicate
  15397. * processing of the AFC response.
  15398. *
  15399. * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event
  15400. * will be sent from the driver to userspace to indicate last received
  15401. * AFC response data has been cleared on the AP due to invalid data
  15402. * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE.
  15403. *
  15404. * The following enum defines the different event types that will be
  15405. * used by the driver to help trigger corresponding AFC functionality in user
  15406. * space.
  15407. */
  15408. enum qca_wlan_vendor_afc_event_type {
  15409. QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0,
  15410. QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1,
  15411. QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2,
  15412. };
  15413. /**
  15414. * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP
  15415. * deployment type.
  15416. * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute.
  15417. *
  15418. * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment.
  15419. *
  15420. * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment.
  15421. *
  15422. * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment.
  15423. *
  15424. * The following enum defines different deployment modes that the AP might
  15425. * come up in. This information will be essential to retrieve deployment-type
  15426. * specific SP power values for AFC operation.
  15427. */
  15428. enum qca_wlan_vendor_afc_ap_deployment_type {
  15429. QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0,
  15430. QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1,
  15431. QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2,
  15432. };
  15433. /**
  15434. * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to
  15435. * indicate AFC response status.
  15436. * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute.
  15437. *
  15438. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success
  15439. *
  15440. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication
  15441. * command was not received within the expected time of the AFC expiry event
  15442. * being triggered.
  15443. *
  15444. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data
  15445. * parsing error by the driver.
  15446. *
  15447. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local
  15448. * error.
  15449. *
  15450. * The following enum defines the status codes that the driver will use to
  15451. * indicate whether the AFC data is valid or not.
  15452. */
  15453. enum qca_wlan_vendor_afc_evt_status_code {
  15454. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0,
  15455. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1,
  15456. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2,
  15457. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3,
  15458. };
  15459. /**
  15460. * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with
  15461. * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will
  15462. * support sending only a single request to the user space at a time.
  15463. *
  15464. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute.
  15465. * Used with event to notify the type of AFC event received.
  15466. * Valid values are defined in enum qca_wlan_vendor_afc_event_type.
  15467. *
  15468. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when
  15469. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
  15470. * otherwise unused.
  15471. *
  15472. * This attribute is used to indicate the AP deployment type in the AFC request.
  15473. * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type.
  15474. *
  15475. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute.
  15476. * Unique request identifier generated by the AFC client for every
  15477. * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID.
  15478. * The user space application is responsible for ensuring no duplicate values
  15479. * are in-flight with the server, e.g., by delaying a request, should the same
  15480. * value be received from different radios in parallel.
  15481. *
  15482. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional.
  15483. * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15484. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused.
  15485. *
  15486. * This attribute indicates the AFC spec version information. This will
  15487. * indicate the AFC version AFC client must use to query the AFC data.
  15488. * Bits 15:0 - Minor version
  15489. * Bits 31:16 - Major version
  15490. *
  15491. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when
  15492. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
  15493. * otherwise unused.
  15494. * This attribute indicates the minimum desired power (in dBm) for
  15495. * the queried spectrum.
  15496. *
  15497. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when
  15498. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15499. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15500. *
  15501. * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code.
  15502. * This attribute is used to indicate if there were any errors parsing the
  15503. * AFC response.
  15504. *
  15505. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required
  15506. * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15507. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15508. *
  15509. * This attribute indicates the AFC response code. The AFC response codes are
  15510. * in the following categories:
  15511. * -1: General Failure.
  15512. * 0: Success.
  15513. * 100 - 199: General errors related to protocol.
  15514. * 300 - 399: Error events specific to message exchange
  15515. * for the Available Spectrum Inquiry.
  15516. *
  15517. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when
  15518. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15519. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15520. *
  15521. * This attribute indicates the date until which the current response is
  15522. * valid for in UTC format.
  15523. * Date format: bits 7:0 - DD (Day 1-31)
  15524. * bits 15:8 - MM (Month 1-12)
  15525. * bits 31:16 - YYYY (Year)
  15526. *
  15527. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when
  15528. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15529. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15530. *
  15531. * This attribute indicates the time until which the current response is
  15532. * valid for in UTC format.
  15533. * Time format: bits 7:0 - SS (Seconds 0-59)
  15534. * bits 15:8 - MM (Minutes 0-59)
  15535. * bits 23:16 - HH (Hours 0-23)
  15536. * bits 31:24 - Reserved
  15537. *
  15538. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes
  15539. * for updating the list of frequency ranges to be queried.
  15540. * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15541. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
  15542. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15543. * It uses the attributes defined in
  15544. * enum qca_wlan_vendor_attr_afc_freq_psd_info.
  15545. *
  15546. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes
  15547. * for updating the list of operating classes and corresponding channels to be
  15548. * queried.
  15549. * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15550. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
  15551. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15552. * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info.
  15553. */
  15554. enum qca_wlan_vendor_attr_afc_event {
  15555. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0,
  15556. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1,
  15557. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2,
  15558. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3,
  15559. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4,
  15560. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5,
  15561. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6,
  15562. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7,
  15563. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8,
  15564. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9,
  15565. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10,
  15566. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11,
  15567. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST,
  15568. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX =
  15569. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1,
  15570. };
  15571. /**
  15572. * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used
  15573. * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes
  15574. * will support sending only a single AFC response to the driver at a time.
  15575. *
  15576. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute.
  15577. * This attribute will be used to send a single Spectrum Inquiry response object
  15578. * from the 'availableSpectrumInquiryResponses' array object from the response
  15579. * JSON.
  15580. *
  15581. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute.
  15582. *
  15583. * This attribute indicates the period (in seconds) for which the response
  15584. * data received is valid for.
  15585. *
  15586. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute.
  15587. *
  15588. * This attribute indicates the request ID for which the corresponding
  15589. * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID.
  15590. *
  15591. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute.
  15592. *
  15593. * This attribute indicates the date until which the current response is
  15594. * valid for in UTC format.
  15595. * Date format: bits 7:0 - DD (Day 1-31)
  15596. * bits 15:8 - MM (Month 1-12)
  15597. * bits 31:16 - YYYY (Year)
  15598. *
  15599. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME: Required u32 attribute.
  15600. *
  15601. * This attribute indicates the time until which the current response is
  15602. * valid for in UTC format.
  15603. * Time format: bits 7:0 - SS (Seconds 0-59)
  15604. * bits 15:8 - MM (Minutes 0-59)
  15605. * bits 23:16 - HH (Hours 0-23)
  15606. * bits 31:24 - Reserved
  15607. *
  15608. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute.
  15609. *
  15610. * This attribute indicates the AFC response code. The AFC response codes are
  15611. * in the following categories:
  15612. * -1: General Failure.
  15613. * 0: Success.
  15614. * 100 - 199: General errors related to protocol.
  15615. * 300 - 399: Error events specific to message exchange
  15616. * for the Available Spectrum Inquiry.
  15617. *
  15618. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes
  15619. * for PSD info of all the queried frequency ranges. It uses the attributes
  15620. * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute.
  15621. *
  15622. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested
  15623. * attributes for EIRP info of all queried operating class/channels. It uses
  15624. * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and
  15625. * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute.
  15626. *
  15627. */
  15628. enum qca_wlan_vendor_attr_afc_response {
  15629. QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0,
  15630. QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1,
  15631. QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2,
  15632. QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3,
  15633. QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4,
  15634. QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5,
  15635. QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6,
  15636. QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7,
  15637. QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8,
  15638. QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST,
  15639. QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX =
  15640. QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1,
  15641. };
  15642. /**
  15643. * enum qca_wlan_dozed_ap_state - Doze states for AP interface
  15644. *
  15645. * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface.
  15646. *
  15647. * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts
  15648. * beaconing at higher beacon interval with Rx disabled.
  15649. */
  15650. enum qca_wlan_dozed_ap_state {
  15651. QCA_WLAN_DOZED_AP_DISABLE = 0,
  15652. QCA_WLAN_DOZED_AP_ENABLE = 1,
  15653. };
  15654. /**
  15655. * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command
  15656. * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode
  15657. * configuration.
  15658. *
  15659. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute.
  15660. * Configures the doze state for an AP interface. Possible values are defined
  15661. * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event
  15662. * gets triggered asynchronously to provide updated AP interface configuration.
  15663. *
  15664. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by
  15665. * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP
  15666. * command, which is used later to maintain synchronization between commands
  15667. * and asynchronous events.
  15668. *
  15669. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute.
  15670. * Used in event to indicate the next TBTT TSF timer value after applying the
  15671. * doze mode configuration. Next TBTT TSF is the time at which the AP sends
  15672. * the first beacon after entering or exiting dozed mode.
  15673. *
  15674. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute.
  15675. * Used with event to inform the periodicity of beacon transmission that would
  15676. * be skipped at all TBTTs in between.
  15677. */
  15678. enum qca_wlan_vendor_attr_dozed_ap {
  15679. QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0,
  15680. QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1,
  15681. QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2,
  15682. QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3,
  15683. QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4,
  15684. /* Keep last */
  15685. QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST,
  15686. QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX =
  15687. QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1,
  15688. };
  15689. /**
  15690. * enum qca_wlan_vendor_monitor_mode_status - Represents the status codes
  15691. * used with QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE.
  15692. * @QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING: Used to indicate no
  15693. * capture running status.
  15694. * @QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING: Used to indicate
  15695. * capture running status.
  15696. **/
  15697. enum qca_wlan_vendor_monitor_mode_status {
  15698. QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING = 0,
  15699. QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING = 1,
  15700. };
  15701. /**
  15702. * enum qca_wlan_vendor_attr_get_monitor_mode - Used by the
  15703. * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE to report
  15704. * information regarding the local packet capture over the monitor mode.
  15705. *
  15706. * @QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS: u32 attribute. This attribute
  15707. * represents the status of the start capture commands. The values used with
  15708. * this attribute are defined in enum qca_wlan_vendor_monitor_mode_status. This
  15709. * is returned by the driver in the response to the command.
  15710. */
  15711. enum qca_wlan_vendor_attr_get_monitor_mode {
  15712. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_INVALID = 0,
  15713. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS = 1,
  15714. /* Keep last */
  15715. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST,
  15716. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_MAX =
  15717. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST - 1,
  15718. };
  15719. /**
  15720. * enum qca_wlan_vendor_link_state_op_types - Defines different types of
  15721. * operations for which %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE can be used.
  15722. * Will be used with %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE attribute.
  15723. *
  15724. * @QCA_WLAN_VENDOR_LINK_STATE_OP_GET - Get the MLO links state information.
  15725. * @QCA_WLAN_VENDOR_LINK_STATE_OP_SET - Set the MLO links state information.
  15726. */
  15727. enum qca_wlan_vendor_link_state_op_types {
  15728. QCA_WLAN_VENDOR_LINK_STATE_OP_GET = 0,
  15729. QCA_WLAN_VENDOR_LINK_STATE_OP_SET = 1,
  15730. };
  15731. /**
  15732. * enum qca_wlan_vendor_link_state_control_modes - Represents the types of MLO
  15733. * links state control modes. This enum is used by
  15734. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE attribute.
  15735. *
  15736. * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT: MLO links state controlled
  15737. * by the driver.
  15738. * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER: MLO links state controlled by
  15739. * user space.
  15740. * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED: User space provides the
  15741. * desired number of MLO links to operate in active state at any given time.
  15742. * The driver will choose which MLO links should operate in the active state.
  15743. * See enum qca_wlan_vendor_link_state for active state definition.
  15744. */
  15745. enum qca_wlan_vendor_link_state_control_modes {
  15746. QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT = 0,
  15747. QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER = 1,
  15748. QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED = 2,
  15749. };
  15750. /**
  15751. * enum qca_wlan_vendor_link_state_operation_modes - Represents the types of MLO
  15752. * links state operation modes. This enum is used by
  15753. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE attribute.
  15754. *
  15755. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT: In the default operation
  15756. * mode, the driver selects the operating mode of the links, without any
  15757. * guidance from the user space.
  15758. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY: In the low latency
  15759. * operation mode the driver should select MLO links that will achieve low
  15760. * latency.
  15761. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT: In the high
  15762. * throughput operation mode the driver should select MLO links that will
  15763. * achieve higher throughput.
  15764. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER: In the low power
  15765. * operation mode the driver should select MLO links that will achieve low
  15766. * power.
  15767. */
  15768. enum qca_wlan_vendor_link_state_operation_modes {
  15769. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT = 0,
  15770. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY = 1,
  15771. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT = 2,
  15772. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER = 3,
  15773. };
  15774. /**
  15775. * enum qca_wlan_vendor_link_state - Represents the possible link states of an
  15776. * MLO link.
  15777. *
  15778. * @QCA_WLAN_VENDOR_LINK_STATE_INACTIVE: In this state, the link will not
  15779. * be used for data transmission but it can have TIDs mapped to it. It will be
  15780. * in doze state always and does not monitor the beacons.
  15781. * @QCA_WLAN_VENDOR_LINK_STATE_ACTIVE: In this state, the link will be
  15782. * used for data TX/RX and monitors the beacons to check TIM bit indication.
  15783. * It may enter doze state and comes out based on the transmit data traffic and
  15784. * TIM bit indication in the beacon.
  15785. */
  15786. enum qca_wlan_vendor_link_state {
  15787. QCA_WLAN_VENDOR_LINK_STATE_INACTIVE = 0,
  15788. QCA_WLAN_VENDOR_LINK_STATE_ACTIVE = 1,
  15789. };
  15790. /**
  15791. * enum qca_wlan_vendor_attr_link_state_config - Definition of attributes used
  15792. * inside nested attribute %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG.
  15793. *
  15794. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID: u8 attribute, link ID of the
  15795. * MLO link.
  15796. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE: u32 attribute. See
  15797. * enum qca_wlan_vendor_link_state for possible MLO link states.
  15798. */
  15799. enum qca_wlan_vendor_attr_link_state_config {
  15800. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_INVALID = 0,
  15801. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID = 1,
  15802. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE = 2,
  15803. /* Keep last */
  15804. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST,
  15805. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_MAX =
  15806. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST - 1,
  15807. };
  15808. /**
  15809. * enum qca_wlan_vendor_attr_mlo_link_state - Attributes used by
  15810. * %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE vendor command.
  15811. *
  15812. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE: u32 attribute. Indicates the type
  15813. * of the operation %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE intended for.
  15814. * Required only in a command. Possible values for this attribute are defined in
  15815. * enum qca_wlan_vendor_link_state_op_types.
  15816. *
  15817. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE: u32 attribute. Indicates MLO
  15818. * links control mode type. Optional attribute in a command when
  15819. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15820. * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
  15821. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15822. * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
  15823. * See enum qca_wlan_vendor_link_state_control_modes for possible control modes.
  15824. *
  15825. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG: Array of nested attributes.
  15826. * Indicates the state of the each MLO link affiliated with the interface.
  15827. * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
  15828. * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
  15829. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
  15830. * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER. Required attribute in a
  15831. * response when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15832. * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
  15833. * See enum qca_wlan_vendor_attr_link_state_config for the nested attributes.
  15834. *
  15835. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS: u8 attribute.
  15836. * Represents the number of active state links. See enum
  15837. * qca_wlan_vendor_link_state for active state definition.
  15838. * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
  15839. * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
  15840. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
  15841. * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED.
  15842. *
  15843. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE: u32 attribute. Indicates MLO
  15844. * links operation mode type. Optional attribute in a command when
  15845. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15846. * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
  15847. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15848. * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
  15849. * See enum qca_wlan_vendor_link_state_operation_modes for possible operation
  15850. * modes.
  15851. */
  15852. enum qca_wlan_vendor_attr_mlo_link_state {
  15853. QCA_WLAN_VENDOR_ATTR_LINK_STATE_INVALID = 0,
  15854. QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE = 1,
  15855. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE = 2,
  15856. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG = 3,
  15857. QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS = 4,
  15858. QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE = 5,
  15859. /* keep last */
  15860. QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST,
  15861. QCA_WLAN_VENDOR_ATTR_LINK_STATE_MAX =
  15862. QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST - 1,
  15863. };
  15864. /**
  15865. * enum qca_wlan_vendor_attr_tid_link_map_status - Definition of attributes used
  15866. * inside nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
  15867. *
  15868. * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK: Required u16 attribute
  15869. * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
  15870. * Indicates the link mapping bitmap of a TID for uplink traffic. It is a
  15871. * bitmask of the link IDs in which a bit set means that the TID is mapped with
  15872. * that link ID in uplink traffic. Otherwise, the TID is not mapped to uplink
  15873. * traffic for that link.
  15874. *
  15875. * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK: Required u16 attribute
  15876. * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
  15877. * Indicates the link mapping bitmap of a TID for downlink traffic. It is a
  15878. * bitmask of the link IDs in which a bit set means that the TID is mapped with
  15879. * that link ID in downlink traffic. Otherwise, the TID is not mapped to
  15880. * downlink traffic for that link.
  15881. */
  15882. enum qca_wlan_vendor_attr_tid_link_map_status {
  15883. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_INVALID = 0,
  15884. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK = 1,
  15885. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK = 2,
  15886. /* keep last */
  15887. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST,
  15888. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_MAX =
  15889. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST - 1,
  15890. };
  15891. /*
  15892. * enum qca_wlan_vendor_attr_tid_to_link_map: Definition of attributes used with
  15893. * %QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP event.
  15894. *
  15895. * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR: Required attribute. 6-byte
  15896. * AP MLD address with which this TID-to-link negotiation mapping is
  15897. * established/updated.
  15898. *
  15899. * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS: Optional attribute. Array of
  15900. * nested attributes containing TID-to-links mapping information. This will have
  15901. * TID-to-link mapping for TID0 to TID7, each containing the uplink and downlink
  15902. * map information. If this attribute is not present the default TID-to-link
  15903. * mapping is in use, i.e., all TIDs are mapped to all links for both uplink and
  15904. * downlink traffic.
  15905. * See enum qca_wlan_vendor_attr_tid_link_map_status for the nested attributes.
  15906. */
  15907. enum qca_wlan_vendor_attr_tid_to_link_map {
  15908. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_INVALID = 0,
  15909. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR = 1,
  15910. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS = 2,
  15911. /* keep last */
  15912. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST,
  15913. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_MAX =
  15914. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST - 1,
  15915. };
  15916. /**
  15917. * enum qca_wlan_vendor_attr_link_reconfig: Definition of attributes used
  15918. * with %QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG event.
  15919. *
  15920. * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR: Required attribute.
  15921. * 6-byte AP MLD address of the AP which indicated the link reconfiguration.
  15922. *
  15923. * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS: Required u16 attribute.
  15924. * A bitmap of the removed setup links link IDs.
  15925. */
  15926. enum qca_wlan_vendor_attr_link_reconfig {
  15927. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_INVALID = 0,
  15928. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR = 1,
  15929. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS = 2,
  15930. /* keep last */
  15931. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST,
  15932. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_MAX =
  15933. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST - 1,
  15934. };
  15935. /**
  15936. * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext - Attributes used by
  15937. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT vendor command.
  15938. *
  15939. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK: u8 attribute.
  15940. * Indicates the MLO link id on which the TDLS discovery response
  15941. * frame is to be transmitted.
  15942. */
  15943. enum qca_wlan_vendor_attr_tdls_disc_rsp_ext {
  15944. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_INVALID = 0,
  15945. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK = 1,
  15946. /* Keep last */
  15947. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST,
  15948. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_MAX =
  15949. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST - 1,
  15950. };
  15951. /**
  15952. * enum qca_wlan_vendor_tdls_state - Represents the possible TDLS states.
  15953. *
  15954. * @QCA_WLAN_VENDOR_TDLS_STATE_DISABLED: TDLS is not enabled, default status
  15955. * for all stations.
  15956. *
  15957. * @QCA_WLAN_VENDOR_TDLS_STATE_ENABLED: TDLS is enabled, but not yet tried to
  15958. * establish the session.
  15959. *
  15960. * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED: Direct link TDLS session is
  15961. * established.
  15962. *
  15963. * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL: Direct link TDLS
  15964. * session is established using MCC.
  15965. *
  15966. * @QCA_WLAN_VENDOR_TDLS_STATE_DROPPED: Direct link TDLS session was
  15967. * established, but is temporarily dropped currently.
  15968. *
  15969. * @QCA_WLAN_VENDOR_TDLS_STATE_FAILED: TDLS session is failed to establish.
  15970. */
  15971. enum qca_wlan_vendor_tdls_state {
  15972. QCA_WLAN_VENDOR_TDLS_STATE_DISABLED = 1,
  15973. QCA_WLAN_VENDOR_TDLS_STATE_ENABLED = 2,
  15974. QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED = 3,
  15975. QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL = 4,
  15976. QCA_WLAN_VENDOR_TDLS_STATE_DROPPED = 5,
  15977. QCA_WLAN_VENDOR_TDLS_STATE_FAILED = 6,
  15978. };
  15979. /**
  15980. * enum qca_wlan_vendor_tdls_reason - Represents the possible TDLS reasons.
  15981. *
  15982. * @QCA_WLAN_TDLS_REASON_SUCCESS: TDLS session is successfully established.
  15983. *
  15984. * @QCA_WLAN_TDLS_REASON_UNSPECIFIED: Unspecified reason.
  15985. *
  15986. * @QCA_WLAN_TDLS_REASON_NOT_SUPPORTED: TDLS is not supported.
  15987. *
  15988. * @QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND: The specified band is not supported.
  15989. *
  15990. * @QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL: Packets going through AP is better
  15991. * than through direct link.
  15992. *
  15993. * @QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE: Peer station doesn't want the TDLS
  15994. * session anymore.
  15995. */
  15996. enum qca_wlan_vendor_tdls_reason {
  15997. QCA_WLAN_TDLS_REASON_SUCCESS = 0,
  15998. QCA_WLAN_TDLS_REASON_UNSPECIFIED = -1,
  15999. QCA_WLAN_TDLS_REASON_NOT_SUPPORTED = -2,
  16000. QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND = -3,
  16001. QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL = -4,
  16002. QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE = -5,
  16003. };
  16004. /**
  16005. * enum qca_wlan_vendor_attr_tdls_enable - Attributes used by
  16006. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE vendor command.
  16007. *
  16008. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: 6-byte MAC address of the peer
  16009. * station to enable the TDLS session. Optional attribute. The driver sends the
  16010. * TDLS session result as an asynchronous response using the command
  16011. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE when this peer MAC is provided in
  16012. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE command.
  16013. *
  16014. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: u32 attribute. Indicates the
  16015. * channel on which the TDLS session to be established. Required only when
  16016. * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
  16017. *
  16018. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: u32 attribute.
  16019. * Indicates the global operating class of the TDLS session to be established.
  16020. * Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
  16021. *
  16022. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: u32 attribute. Indicates
  16023. * the maximum latency of the WLAN packets to be transmitted/received in
  16024. * milliseconds on TDLS session. Required only when
  16025. * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
  16026. *
  16027. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: u32 attribute.
  16028. * Indicates the minimum bandwidth to be used to establish the TDLS session
  16029. * in kbps. Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is
  16030. * present.
  16031. */
  16032. enum qca_wlan_vendor_attr_tdls_enable {
  16033. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
  16034. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR = 1,
  16035. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL = 2,
  16036. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS = 3,
  16037. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS = 4,
  16038. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS = 5,
  16039. /* keep last */
  16040. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
  16041. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
  16042. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
  16043. };
  16044. /**
  16045. * enum qca_wlan_vendor_attr_tdls_disable - Attributes used by
  16046. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE vendor command.
  16047. *
  16048. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: 6-byte MAC address of the peer
  16049. * station to disable the TDLS session. Optional attribute.
  16050. */
  16051. enum qca_wlan_vendor_attr_tdls_disable {
  16052. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
  16053. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR = 1,
  16054. /* keep last */
  16055. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
  16056. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
  16057. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
  16058. };
  16059. /**
  16060. * enum qca_wlan_vendor_attr_tdls_get_status - Attributes used by
  16061. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS vendor command.
  16062. *
  16063. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: 6-byte MAC address of the
  16064. * peer station. Optional attribute. Used in
  16065. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS request and response.
  16066. *
  16067. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: u32 attribute. Indicates the
  16068. * TDLS session state with the peer specified in
  16069. * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Uses the values from
  16070. * enum qca_wlan_vendor_tdls_state. Used in
  16071. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
  16072. *
  16073. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: s32 attribute. Indicates the
  16074. * reason for the TDLS session state indicated in
  16075. * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE. Uses the values from enum
  16076. * qca_wlan_vendor_tdls_reason. Used in
  16077. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
  16078. *
  16079. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: u32 attribute. Indicates the
  16080. * channel of the TDLS session established with
  16081. * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in
  16082. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
  16083. *
  16084. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: u32 attribute.
  16085. * Indicates the global operating class of the TDLS session established with
  16086. * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in
  16087. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
  16088. *
  16089. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS: u32 attribute. Indicates
  16090. * the current number of active TDLS sessions. This is indicated in the response
  16091. * when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with
  16092. * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute.
  16093. *
  16094. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE: Flag attribute. Indicates
  16095. * whether the driver can initiate new TDLS session. This is indicated in the
  16096. * response when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with
  16097. * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute.
  16098. */
  16099. enum qca_wlan_vendor_attr_tdls_get_status {
  16100. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
  16101. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR = 1,
  16102. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE = 2,
  16103. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON = 3,
  16104. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL = 4,
  16105. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS = 5,
  16106. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS = 6,
  16107. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE = 7,
  16108. /* keep last */
  16109. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
  16110. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
  16111. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
  16112. };
  16113. /**
  16114. * enum qca_wlan_vendor_attr_tdls_state - Attributes used by
  16115. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE vendor command.
  16116. *
  16117. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: 6-byte MAC address of the
  16118. * peer station. Required attribute.
  16119. *
  16120. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CURRENT_STATE: u32 attribute. Indicates
  16121. * the current TDLS state. Required attribute. Uses the values from
  16122. * enum qca_wlan_vendor_tdls_state.
  16123. *
  16124. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: s32 attribute. Indicates the
  16125. * reason of the current TDLS session state. Required attribute. Uses the values
  16126. * from enum qca_wlan_vendor_tdls_reason.
  16127. *
  16128. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: u32 attribute. Indicates the
  16129. * TDLS session channel. Required attribute.
  16130. *
  16131. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: u32 attribute.
  16132. * Indicates the TDLS session global operating class. Required attribute.
  16133. */
  16134. enum qca_wlan_vendor_attr_tdls_state {
  16135. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
  16136. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR = 1,
  16137. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_NEW_STATE = 2,
  16138. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON = 3,
  16139. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL = 4,
  16140. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS = 5,
  16141. /* keep last */
  16142. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
  16143. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
  16144. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
  16145. };
  16146. /*
  16147. * enum qca_wlan_vendor_opm_mode - Modes supported by
  16148. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT vendor attribute.
  16149. *
  16150. * @QCA_WLAN_VENDOR_OPM_MODE_DISABLE: OPM Disabled
  16151. * @QCA_WLAN_VENDOR_OPM_MODE_ENABLE: OPM Enabled
  16152. * @QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED: User defined mode which allows user
  16153. * to configure power save inactivity timeout and speculative wake up
  16154. * interval through %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
  16155. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes.
  16156. */
  16157. enum qca_wlan_vendor_opm_mode {
  16158. QCA_WLAN_VENDOR_OPM_MODE_DISABLE = 0,
  16159. QCA_WLAN_VENDOR_OPM_MODE_ENABLE = 1,
  16160. QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED = 2,
  16161. };
  16162. /* enum qca_wlan_audio_transport_switch_type - Represents the possible transport
  16163. * switch types.
  16164. *
  16165. * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_NON_WLAN: Request to route audio data
  16166. * via non-WLAN transport (ex: bluetooth).
  16167. *
  16168. * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_WLAN: Request to route audio data via
  16169. * WLAN transport.
  16170. */
  16171. enum qca_wlan_audio_transport_switch_type {
  16172. QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_NON_WLAN = 0,
  16173. QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_WLAN = 1,
  16174. };
  16175. /**
  16176. * enum qca_wlan_audio_transport_switch_status - Represents the status of audio
  16177. * transport switch request.
  16178. *
  16179. * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_REJECTED: Request to switch transport
  16180. * has been rejected. For ex: when transport switch is requested from WLAN
  16181. * to non-WLAN transport, user space modules and peers would evaluate the switch
  16182. * request and may not be ready for switch and hence switch to non-WLAN transport
  16183. * gets rejected.
  16184. *
  16185. * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_COMPLETED: Request to switch transport
  16186. * has been completed. This is sent only in command path. Ex: when host driver
  16187. * had requested for audio transport switch and userspace modules as well as
  16188. * peers are ready for the switch, userspace module switches the transport and
  16189. * sends subcommand with status completed to host driver.
  16190. */
  16191. enum qca_wlan_audio_transport_switch_status {
  16192. QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_REJECTED = 0,
  16193. QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_COMPLETED = 1,
  16194. };
  16195. /**
  16196. * enum qca_wlan_vendor_attr_audio_transport_switch - Attributes used by
  16197. * %QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH vendor command.
  16198. *
  16199. * @QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_TYPE: u8 attribute. Indicates
  16200. * the transport switch type from one of the values in enum
  16201. * qca_wlan_audio_transport_switch_type. This is mandatory param in both
  16202. * command and event path. This attribute is included in both requests and
  16203. * responses.
  16204. *
  16205. * @QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_STATUS: u8 attribute. Indicates
  16206. * the transport switch status from one of the values in enum
  16207. * qca_wlan_audio_transport_switch_status. This is optional param and used in
  16208. * both command and event path. This attribute must not be included in requests.
  16209. */
  16210. enum qca_wlan_vendor_attr_audio_transport_switch {
  16211. QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_INVALID = 0,
  16212. QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_TYPE = 1,
  16213. QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_STATUS = 2,
  16214. /* keep last */
  16215. QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_AFTER_LAST,
  16216. QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_MAX =
  16217. QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_AFTER_LAST - 1,
  16218. };
  16219. /*
  16220. * enum qca_wlan_vendor_tx_latency_type - Represents the possible latency
  16221. * types.
  16222. *
  16223. * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER: Per MSDU latency
  16224. * from: An MSDU is presented to the driver
  16225. * to: the MSDU is queued into TCL SRNG
  16226. *
  16227. * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING: Per MSDU latency
  16228. * from: the MSDU is queued into TCL SRNG
  16229. * to: the MSDU is released by the driver
  16230. *
  16231. * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW: Per MSDU latency
  16232. * from: the MSDU is presented to the hardware
  16233. * to: the MSDU is released by the hardware
  16234. *
  16235. * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA: Per PPDU latency
  16236. * The time spent on Clear Channel Assessment, the maximum value is 50000 (us)
  16237. * from: A PPDU is presented to the hardware LMAC
  16238. * to: over-the-air transmission is started for the PPDU
  16239. */
  16240. enum qca_wlan_vendor_tx_latency_type {
  16241. QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER = 0,
  16242. QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING = 1,
  16243. QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW = 2,
  16244. QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA = 3,
  16245. };
  16246. /**
  16247. * enum qca_wlan_vendor_attr_tx_latency_bucket - Definition of attributes
  16248. * used inside nested attributes
  16249. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS and
  16250. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS.
  16251. *
  16252. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE: u8 attribute.
  16253. * Indicates the latency type.
  16254. * See enum qca_wlan_vendor_tx_latency_type for the supported types.
  16255. *
  16256. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY: u32 attribute.
  16257. * Indicates the granularity (in microseconds) of the distribution for the
  16258. * type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE), the value
  16259. * must be positive.
  16260. * If %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE is
  16261. * %QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA, the value must be an integer multiple
  16262. * of 1000, and the maximum allowed value is 15000 (us).
  16263. *
  16264. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE: u32 attribute.
  16265. * Indicates the average of the latency (in microseconds) for the type
  16266. * (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE) within a cycle.
  16267. * If there is no transmitted MSDUs/MPDUs during a cycle, this average is 0;
  16268. * otherwise, it represents the quotient of <accumulated latency of the
  16269. * transmitted MSDUs/MPDUs in a cycle> divided by <the number of the transmitted
  16270. * MSDUs/MPDUs in a cycle>.
  16271. *
  16272. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION:
  16273. * Array of u32, 4 elements in total, represents the latency distribution for
  16274. * the type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE).
  16275. * Each element holds the count of MSDUs/PPDUs (according to the latency type)
  16276. * within a range:
  16277. * element[0]: latency >= 0 && latency < granularity
  16278. * element[1]: latency >= granularity && latency < granularity * 2
  16279. * element[2]: latency >= granularity * 2 && latency < granularity * 3
  16280. * element[3]: latency >= granularity * 3
  16281. */
  16282. enum qca_wlan_vendor_attr_tx_latency_bucket {
  16283. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_INVALID = 0,
  16284. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE = 1,
  16285. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY = 2,
  16286. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE = 3,
  16287. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION = 4,
  16288. /* keep last */
  16289. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST,
  16290. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_MAX =
  16291. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST - 1,
  16292. };
  16293. /**
  16294. * enum qca_wlan_vendor_attr_tx_latency_link - Definition of attributes
  16295. * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS.
  16296. *
  16297. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE: 6-byte MAC address.
  16298. * Indicates link MAC address of the remote peer. For example, when running
  16299. * in station mode, it's the BSSID of the link; while when running in AP
  16300. * mode, it's the link MAC address of the remote station.
  16301. *
  16302. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS:
  16303. * Array of nested attribute.
  16304. * Represents the transmit latency statistics for the link specified by
  16305. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE.
  16306. * Each entry represents the statistics for one of the types defined in
  16307. * enum qca_wlan_vendor_tx_latency_type.
  16308. * Each defined type has and must have one entry.
  16309. * See enum qca_wlan_vendor_attr_tx_latency_bucket for nested attributes.
  16310. */
  16311. enum qca_wlan_vendor_attr_tx_latency_link {
  16312. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_INVALID = 0,
  16313. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE = 1,
  16314. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS = 2,
  16315. /* keep last */
  16316. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST,
  16317. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAX =
  16318. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST - 1,
  16319. };
  16320. /**
  16321. * enum qca_wlan_vendor_tx_latency_action - Represents the possible actions
  16322. * for %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY.
  16323. *
  16324. * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE:
  16325. * Disable transmit latency monitoring.
  16326. *
  16327. * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE:
  16328. * Enable transmit latency monitoring.
  16329. *
  16330. * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET:
  16331. * Get transmit latency statistics of the last cycle (period is specified by
  16332. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD).
  16333. */
  16334. enum qca_wlan_vendor_tx_latency_action {
  16335. QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE = 0,
  16336. QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE = 1,
  16337. QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET = 2,
  16338. };
  16339. /**
  16340. * enum qca_wlan_vendor_attr_tx_latency - Definition of attributes used by
  16341. * %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY to configure, retrieve, and report
  16342. * per-link transmit latency statistics.
  16343. *
  16344. * There are 6 uses of %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY:
  16345. * 1) used as a command to enable the feature
  16346. * Precondition(s):
  16347. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
  16348. * %QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE
  16349. * Mandatory attribute(s):
  16350. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION,
  16351. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD,
  16352. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS with nested attributes
  16353. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE,
  16354. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY.
  16355. * Notes:
  16356. * The driver will monitor the transmit latency for the active links
  16357. * and save the statistics for each cycle (period is set by
  16358. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD) when the feature is enabled.
  16359. * Set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT if periodical
  16360. * report is required.
  16361. *
  16362. * 2) used as a command to disable the feature
  16363. * Precondition(s):
  16364. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
  16365. * %QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE
  16366. * Mandatory attribute(s):
  16367. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION
  16368. *
  16369. * 3) used as a command to retrieve the statistics for all the active links on
  16370. * the requested interface
  16371. * Precondition(s):
  16372. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
  16373. * QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and
  16374. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is NOT present.
  16375. * Mandatory attribute(s):
  16376. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION
  16377. * Notes:
  16378. * The driver returns failure directly if the feature is not enabled or
  16379. * there is no active link.
  16380. * The driver returns the statistics of the last cycle in the case of
  16381. * success.
  16382. *
  16383. * 4) used as a command to retrieve the statistics for the specified links
  16384. * Precondition(s):
  16385. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
  16386. * QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and
  16387. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is present.
  16388. * Mandatory attribute(s):
  16389. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION,
  16390. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attribute
  16391. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE.
  16392. * Notes:
  16393. * The driver returns failure directly if the feature is not enabled or
  16394. * any of the links (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS)
  16395. * does not exist or is not in active state.
  16396. *
  16397. * 5) used as a command response for #3 or #4
  16398. * Precondition(s):
  16399. * Userspace issues command #3 or #4, and the driver gets corresponding
  16400. * statistics successfully.
  16401. * Mandatory attribute(s):
  16402. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes
  16403. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE,
  16404. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested
  16405. * attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE,
  16406. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY,
  16407. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and
  16408. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION.
  16409. *
  16410. * 6) used as an asynchronous event to report the statistics periodically
  16411. * Precondition(s):
  16412. * Userspace set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT in
  16413. * #1.
  16414. * One or more links are in active state.
  16415. * Mandatory attribute(s):
  16416. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes
  16417. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE,
  16418. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested
  16419. * attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE,
  16420. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY,
  16421. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and
  16422. * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION.
  16423. *
  16424. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID: Invalid attribute
  16425. *
  16426. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION: u32 attribute.
  16427. * Action to take in this vendor command.
  16428. * See enum qca_wlan_vendor_tx_latency_action for supported actions.
  16429. *
  16430. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT: Flag attribute.
  16431. * Enable (flag attribute present) - The driver needs to report transmit latency
  16432. * statistics at the end of each statistical period.
  16433. * Disable (flag attribute not present) - The driver doesn't need to report
  16434. * transmit latency statistics periodically.
  16435. *
  16436. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD: u32 attribute.
  16437. * Indicates statistical period for transmit latency in terms of milliseconds,
  16438. * the minimal allowed value is 100 and the maximum allowed value is 60000.
  16439. *
  16440. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS: Array of nested attribute.
  16441. * Each entry represents the latency buckets configuration for one of the types
  16442. * defined in enum qca_wlan_vendor_tx_latency_type.
  16443. * Each defined type has and must have one entry.
  16444. * See enum qca_wlan_vendor_attr_tx_latency_bucket for the list of
  16445. * supported attributes.
  16446. *
  16447. * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS: Array of nested attribute.
  16448. * Information of the links, each entry represents for one link.
  16449. * See enum qca_wlan_vendor_attr_tx_latency_link for the list of
  16450. * supported attributes for each entry.
  16451. */
  16452. enum qca_wlan_vendor_attr_tx_latency {
  16453. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID = 0,
  16454. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION = 1,
  16455. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT = 2,
  16456. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD = 3,
  16457. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS = 4,
  16458. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS = 5,
  16459. /* keep last */
  16460. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST,
  16461. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_MAX =
  16462. QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST - 1,
  16463. };
  16464. #endif