qca_vendor.h 708 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262
  1. /*
  2. * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for
  6. * any purpose with or without fee is hereby granted, provided that the
  7. * above copyright notice and this permission notice appear in all
  8. * copies.
  9. *
  10. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  11. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  12. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  13. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  14. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  15. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  16. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  17. * PERFORMANCE OF THIS SOFTWARE.
  18. */
  19. /**
  20. * DOC: declares vendor commands interfacing with linux kernel
  21. */
  22. #ifndef _WLAN_QCA_VENDOR_H_
  23. #define _WLAN_QCA_VENDOR_H_
  24. /* Vendor id to be used in vendor specific command and events
  25. * to user space.
  26. * NOTE: The authoritative place for definition of QCA_NL80211_VENDOR_ID,
  27. * vendor subcmd definitions prefixed with QCA_NL80211_VENDOR_SUBCMD, and
  28. * qca_wlan_vendor_attr is open source file src/common/qca-vendor.h in
  29. * git://w1.fi/srv/git/hostap.git; the values here are just a copy of that
  30. */
  31. #define QCA_NL80211_VENDOR_ID 0x001374
  32. #ifndef BIT
  33. #define BIT(x) (1U << (x))
  34. #endif
  35. /**
  36. * enum qca_nl80211_vendor_subcmds: NL 80211 vendor sub command
  37. *
  38. * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Unspecified
  39. * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test
  40. * Sub commands 2 to 8 are not used
  41. * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Roaming
  42. * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Avoid frequency.
  43. * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: DFS capability
  44. * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
  45. * NAN Request/Response and NAN Indication messages. These messages are
  46. * interpreted between the framework and the firmware component. While
  47. * sending the command from userspace to the driver, payload is not
  48. * encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
  49. * is used when receiving vendor events in userspace from the driver.
  50. * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT: Ext stats
  51. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET: Link layer stats set
  52. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET: Link layer stats get
  53. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR: Link layer stats clear
  54. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS: Link layer stats radio
  55. * results
  56. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS: Link layer stats interface
  57. * results
  58. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS: Link layer stats peer
  59. * results
  60. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START: Ext scan start
  61. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP: Ext scan stop
  62. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS: Ext scan get valid
  63. * channels
  64. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES: Ext scan get capability
  65. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS: Ext scan get cached
  66. * results
  67. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE: Ext scan results
  68. * available. Used when report_threshold is reached in scan cache.
  69. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT: Ext scan full scan
  70. * result. Used to report scan results when each probe rsp. is received,
  71. * if report_events enabled in wifi_scan_cmd_params.
  72. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT: Ext scan event from target.
  73. * Indicates progress of scanning state-machine.
  74. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND: Ext scan hotlist
  75. * ap found
  76. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST: Ext scan set hotlist
  77. * bssid
  78. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST: Ext scan reset
  79. * hotlist bssid
  80. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE: Ext scan significant
  81. * change
  82. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE: Ext scan set
  83. * significant change
  84. * ap found
  85. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE: Ext scan reset
  86. * significant change
  87. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: Ext tdls enable
  88. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: Ext tdls disable
  89. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: Ext tdls get status
  90. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: Ext tdls state
  91. * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES: Get supported features
  92. * @QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI: Set scanning_mac_oui
  93. * @QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG: No DFS flag
  94. * @QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX: Get Concurrency Matrix
  95. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Get the key mgmt offload keys
  96. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: After roaming, send the
  97. * roaming and auth information.
  98. * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED: Set OCB schedule
  99. *
  100. * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
  101. * invoke the ACS function in device and pass selected channels to
  102. * hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
  103. *
  104. * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Get the supported features by the
  105. * driver.
  106. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Indicate that driver
  107. * started CAC on DFS channel
  108. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Indicate that driver
  109. * completed the CAC check on DFS channel
  110. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Indicate that the CAC
  111. * check was aborted by the driver
  112. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Indicate that the
  113. * driver completed NOP
  114. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Indicate that the
  115. * driver detected radar signal on the current operating channel
  116. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: get wlan driver information
  117. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START: start wifi logger
  118. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP: memory dump request
  119. * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logger feature set
  120. * @QCA_NL80211_VENDOR_SUBCMD_ROAM: roam
  121. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST: extscan set ssid hotlist
  122. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST:
  123. * extscan reset ssid hotlist
  124. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND: hotlist ssid found
  125. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST: hotlist ssid lost
  126. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST: set pno list
  127. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST: set passpoint list
  128. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST:
  129. * reset passpoint list
  130. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND: pno network found
  131. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND:
  132. * passpoint network found
  133. * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: set wifi config
  134. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: get wifi config
  135. * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logging features
  136. * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: get link properties
  137. * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG: set gateway parameters
  138. * @QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST: get preferred channel
  139. list
  140. * @QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL: channel hint
  141. * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the band
  142. * to the host driver. This command sets the band through either
  143. * the attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or
  144. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE
  145. * refers enum qca_set_band as unsigned integer values and
  146. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32 bit unsigned BitMask
  147. * values. Also, the acceptable values for
  148. * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are only till QCA_SETBAND_2G. Further
  149. * values/bitmask's are valid for QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The
  150. * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the
  151. * recommendation is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the
  152. * implementations configure using both the attributes, the configurations
  153. * through QCA_WLAN_VENDOR_ATTR_SETBAND_MASK shall always take the
  154. * precedence.
  155. * @QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN: venodr scan command
  156. * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE: vendor scan complete
  157. * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: vendor abort scan
  158. * @QCA_NL80211_VENDOR_SUBCMD_OTA_TEST: enable OTA test
  159. * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE: set tx power by percentage
  160. * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB: reduce tx power by DB
  161. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG: SAP configuration
  162. * @QCA_NL80211_VENDOR_SUBCMD_TSF: TSF operations command
  163. * @QCA_NL80211_VENDOR_SUBCMD_WISA: WISA mode configuration
  164. * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
  165. * start the P2P Listen Offload function in device and pass the listen
  166. * channel, period, interval, count, number of device types, device
  167. * types and vendor information elements to device driver and firmware.
  168. * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
  169. * indicate stop request/response of the P2P Listen Offload function in
  170. * device. As an event, it indicates either the feature stopped after it
  171. * was already running or feature has actually failed to start.
  172. * @QCA_NL80211_VENDOR_SUBCMD_GET_STATION: send BSS Information
  173. * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After SAP starts
  174. * beaconing, this sub command provides the driver, the frequencies on the
  175. * 5 GHz to check for any radar activity. Driver selects one channel from
  176. * this priority list provided through
  177. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
  178. * to check for radar activity on it. If no radar activity is detected
  179. * during the channel availability check period, driver internally switches
  180. * to the selected frequency of operation. If the frequency is zero, driver
  181. * internally selects a channel. The status of this conditional switch is
  182. * indicated through an event using the same sub command through
  183. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
  184. * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch
  185. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Command/event used to config
  186. * indication period and threshold for MAC layer counters.
  187. * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
  188. * in the host driver. The different TDLS configurations are defined
  189. * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
  190. * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Get HE related capabilities
  191. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS:Set the Specific Absorption Rate
  192. * (SAR) power limits. A critical regulation for FCC compliance, OEMs
  193. * require methods to set SAR limits on TX power of WLAN/WWAN.
  194. * enum qca_vendor_attr_sar_limits attributes are used with this command.
  195. * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: Vendor command used to get/set
  196. * configuration of vendor ACS.
  197. * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
  198. * requisite information leading to a power save failure. The information
  199. * carried as part of this event is represented by the
  200. * enum qca_attr_chip_power_save_failure attributes.
  201. * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
  202. * collection. Uses attributes defined in enum qca_attr_nud_stats_set.
  203. * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
  204. * statistics are represented by the enum qca_attr_nud_stats_get
  205. * attributes.
  206. * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
  207. * the BSS transition status, whether accept or reject, for a list of
  208. * candidate BSSIDs provided by the userspace. This uses the vendor
  209. * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
  210. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
  211. * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
  212. * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
  213. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
  214. * the driver shall specify array of
  215. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
  216. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
  217. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
  218. * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
  219. * specific QCA module. The trace levels are represented by
  220. * enum qca_attr_trace_level attributes.
  221. * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
  222. * Protocol antenna limit in different modes. See enum
  223. * qca_wlan_vendor_attr_brp_ant_limit_mode.
  224. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
  225. * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
  226. * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
  227. * identifying the operation in success case. In failure cases an
  228. * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
  229. * describing the reason for the failure is returned.
  230. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
  231. * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
  232. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
  233. * be stopped.
  234. * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
  235. * specific interface. This can be used to modify some of the low level
  236. * scan parameters (off channel dwell time, home channel time) in the
  237. * driver/firmware. These parameters are maintained within the host
  238. * driver.
  239. * This command is valid only when the interface is in the connected
  240. * state.
  241. * These scan parameters shall be reset by the driver/firmware once
  242. * disconnected. The attributes used with this command are defined in
  243. * enum qca_wlan_vendor_attr_active_tos.
  244. * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
  245. * driver has detected an internal failure. This event carries the
  246. * information indicating the reason that triggered this detection. The
  247. * attributes for this command are defined in
  248. * enum qca_wlan_vendor_attr_hang.
  249. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
  250. * of spectral parameters used. The spectral scan parameters are specified
  251. * by enum qca_wlan_vendor_attr_spectral_scan.
  252. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
  253. * for spectral scan functionality. The debug stats are specified by
  254. * enum qca_wlan_vendor_attr_spectral_diag_stats.
  255. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
  256. * scan system capabilities. The capabilities are specified
  257. * by enum qca_wlan_vendor_attr_spectral_cap.
  258. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
  259. * status of spectral scan. The status values are specified
  260. * by enum qca_wlan_vendor_attr_spectral_scan_status.
  261. * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
  262. * peer pending packets. Specify the peer MAC address in
  263. * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
  264. * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
  265. * in enum qca_wlan_vendor_attr_flush_pending.
  266. * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
  267. * RF Operating Parameter (RROP) information. The attributes for this
  268. * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
  269. * intended for use by external Auto Channel Selection applications.
  270. * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
  271. * (SAR) power limits. This is a companion to the command
  272. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
  273. * settings currently in use. The attributes returned by this command are
  274. * defined by enum qca_vendor_attr_sar_limits.
  275. * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behaviour of
  276. * the WLAN hardware MAC's associated with each WLAN netdev interface.
  277. * This works both as a query (user space asks the current mode) or event
  278. * interface (driver advertizing the current mode to the user space).
  279. * Driver does not trigger this event for temporary hardware mode changes.
  280. * Mode changes w.r.t Wi-Fi connection updation ( VIZ creation / deletion,
  281. * channel change etc ) are updated with this event. Attributes for this
  282. * interface are defined in enum qca_wlan_vendor_attr_mac.
  283. * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
  284. * per peer per TID. Attributes for this command are define in
  285. * enum qca_wlan_set_qdepth_thresh_attr
  286. * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
  287. * guide for WLAN driver. Request to suspend of driver and FW if the
  288. * temperature is higher than the suspend threshold; resume action is
  289. * requested to driver if the temperature is lower than the resume
  290. * threshold. In user poll mode, request temperature data by user. For test
  291. * purpose, getting thermal shutdown configuration parameters is needed.
  292. * Attributes for this interface are defined in
  293. * enum qca_wlan_vendor_attr_thermal_cmd.
  294. * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
  295. * driver. Thermal temperature and indication of resume completion are
  296. * reported as thermal events. The attributes for this command are defined
  297. * in enum qca_wlan_vendor_attr_thermal_event.
  298. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
  299. * test configuration. Attributes for this command are defined in
  300. * enum qca_wlan_vendor_attr_wifi_test_config.
  301. * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
  302. * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
  303. * carried a payload which was a binary blob of data. The command was not
  304. * extendable to send more information. The newer version carries the
  305. * legacy blob encapsulated within an attribute and can be extended with
  306. * additional vendor attributes that can enhance the NAN command
  307. * interface.
  308. * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
  309. * configure parameters per peer to capture Channel Frequency Response
  310. * (CFR) and enable Periodic CFR capture. The attributes for this command
  311. * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command
  312. * can also be used to send CFR data from the driver to userspace when
  313. * netlink events are used to send CFR data.
  314. * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: Sub command to get firmware state.
  315. * The returned firmware state is specified in the attribute
  316. * QCA_WLAN_VENDOR_ATTR_FW_STATE.
  317. * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
  318. * is used by host driver to flush per-peer cached statistics to user space
  319. * application. This interface is used as an event from host driver to
  320. * user space application. Attributes for this event are specified in
  321. * enum qca_wlan_vendor_attr_peer_stats_cache_params.
  322. * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
  323. * sent as event from host driver.
  324. * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
  325. * improve the success rate of Zigbee joining network.
  326. * Due to PTA master limitation, zigbee joining network success rate is
  327. * low while wlan is working. Wlan host driver need to configure some
  328. * parameters including Zigbee state and specific WLAN periods to enhance
  329. * PTA master. All this parameters are delivered by the NetLink attributes
  330. * defined in "enum qca_mpta_helper_vendor_attr".
  331. * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
  332. * implement Beacon frame reporting feature.
  333. *
  334. * Userspace can request the driver/firmware to periodically report
  335. * received Beacon frames whose BSSID is same as the current connected
  336. * BSS's MAC address.
  337. *
  338. * In case the STA seamlessly (without sending disconnect indication to
  339. * userspace) roams to a different BSS, Beacon frame reporting will be
  340. * automatically enabled for the Beacon frames whose BSSID is same as the
  341. * MAC address of the new BSS. Beacon reporting will be stopped when the
  342. * STA is disconnected (when the disconnect indication is sent to
  343. * userspace) and need to be explicitly enabled by userspace for next
  344. * connection.
  345. *
  346. * When a Beacon frame matching configured conditions is received, and if
  347. * userspace has requested to send asynchronous beacon reports, the
  348. * driver/firmware will encapsulate the details of the Beacon frame in an
  349. * event and send it to userspace along with updating the BSS information
  350. * in cfg80211 scan cache, otherwise driver will only update the cfg80211
  351. * scan cache with the information from the received Beacon frame but
  352. * will not send any active report to userspace.
  353. *
  354. * The userspace can request the driver/firmware to stop reporting Beacon
  355. * frames. If the driver/firmware is not able to receive Beacon frames
  356. * due to other Wi-Fi operations such as off-channel activities, etc.,
  357. * the driver/firmware will send a pause event to userspace and stop
  358. * reporting Beacon frames. Whether the beacon reporting will be
  359. * automatically resumed or not by the driver/firmware later will be
  360. * reported to userspace using the
  361. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES flag. The beacon
  362. * reporting shall be resumed for all the cases except either when
  363. * userspace sets QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag
  364. * in the command which triggered the current beacon reporting or during
  365. * any disconnection case as indicated by setting
  366. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
  367. * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
  368. * driver.
  369. *
  370. * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
  371. * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
  372. * flag not set, the next first
  373. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
  374. * shall be considered as un-pause event.
  375. *
  376. * All the attributes used with this command are defined in
  377. * enum qca_wlan_vendor_attr_beacon_reporting_params.
  378. * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some aps have
  379. * interop issues with the DUT. This sub command is used to transfer the
  380. * ap info between driver and user space. This works both as a command
  381. * or event. As a command, it configs the stored list of aps from user
  382. * space to firmware; as an event, it indicates the ap info detected by
  383. * firmware to user space for persistent storage. The attributes defined
  384. * in enum qca_vendor_attr_interop_issues_ap are used to deliver the
  385. * parameters.
  386. * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command is used to send OEM data
  387. * binary blobs from application/service to firmware. The attributes
  388. * defined in enum qca_wlan_vendor_attr_oem_data_params are used to
  389. * deliver the parameters.
  390. * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
  391. * to send/receive avoid frequency data using
  392. * enum qca_wlan_vendor_attr_avoid_frequency_ext.
  393. * This new command is alternative to existing command
  394. * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
  395. * is using stream of bytes instead of structured data using vendor
  396. * attributes. User space sends unsafe frequency ranges to the driver using
  397. * a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On
  398. * reception of this command, the driver shall check if an interface is
  399. * operating on an unsafe frequency and the driver shall try to move to a
  400. * safe channel when needed. If the driver is not able to find a safe
  401. * channel the interface can keep operating on an unsafe channel with the
  402. * TX power limit derived based on internal configurations like
  403. * regulatory/SAR rules.
  404. *
  405. * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
  406. * add the STA node details in driver/firmware. Attributes for this event
  407. * are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
  408. * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
  409. * coex chain mode from application/service.
  410. * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
  411. * to deliver the parameters.
  412. * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
  413. * get information of a station from driver to userspace. This command can
  414. * be used in both STA and AP modes. For STA mode, it provides information
  415. * of the current association when in connected state or the last
  416. * association when in disconnected state. For AP mode, only information
  417. * of the currently connected stations is available. This command uses
  418. * attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
  419. * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
  420. * Host drivers can request the user space entity to set the SAR power
  421. * limits with this event. Accordingly, the user space entity is expected
  422. * to set the SAR power limits. Host drivers can retry this event to the
  423. * user space for the SAR power limits configuration from user space. If
  424. * the driver does not get the SAR power limits from user space for all
  425. * the retried attempts, it can configure a default SAR power limit.
  426. * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
  427. * is used to update the information about the station from the driver to
  428. * userspace. Uses attributes from enum
  429. * qca_wlan_vendor_attr_update_sta_info.
  430. *
  431. * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
  432. * The host driver initiates the disconnection for scenarios such as beacon
  433. * miss, NUD failure, peer kick out, etc. The disconnection indication
  434. * through cfg80211_disconnected() expects the reason codes from enum
  435. * ieee80211_reasoncode which does not signify these various reasons why
  436. * the driver has triggered the disconnection. This event will be used to
  437. * send the driver specific reason codes by the host driver to userspace.
  438. * Host drivers should trigger this event and pass the respective reason
  439. * code immediately prior to triggering cfg80211_disconnected(). The
  440. * attributes used with this event are defined in enum
  441. * qca_wlan_vendor_attr_driver_disconnect_reason.
  442. *
  443. * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
  444. * add/delete TSPEC for each AC. One command is for one specific AC only.
  445. * This command can only be used in STA mode and the STA must be
  446. * associated with an AP when the command is issued. Uses attributes
  447. * defined in enum qca_wlan_vendor_attr_config_tspec.
  448. *
  449. * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
  450. * Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
  451. *
  452. * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the configured band from
  453. * the host driver. The band configurations obtained are referred through
  454. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
  455. *
  456. * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
  457. * assessment.
  458. * Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
  459. *
  460. * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
  461. * used to update SSID information in hostapd when it is updated in the
  462. * driver. Uses the attribute NL80211_ATTR_SSID.
  463. *
  464. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
  465. * the driver to send opaque data from the firmware to userspace. The
  466. * driver sends an event to userspace whenever such data is received from
  467. * the firmware.
  468. *
  469. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
  470. * send this opaque data for this event.
  471. *
  472. * The format of the opaque data is specific to the particular firmware
  473. * version and there is no guarantee of the format remaining same.
  474. *
  475. * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
  476. * The host driver selects Tx VDEV, and notifies user. The attributes
  477. * used with this event are defined in enum
  478. * qca_wlan_vendor_attr_mbssid_tx_vdev_status.
  479. * This event contains Tx VDEV group information contains other VDEVs
  480. * interface index and status information.
  481. *
  482. * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY: Vendor command to
  483. * configure the concurrent session policies when multiple interfaces
  484. * are (getting) active. The attributes used by this command are defined
  485. * in enum qca_wlan_vendor_attr_concurrent_policy.
  486. *
  487. * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command
  488. * to query usable channels for different interface types such as STA,
  489. * AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable
  490. * channels in the response based on country code, different static
  491. * configurations, concurrency combinations, etc. The attributes used
  492. * with this command are defined in
  493. * enum qca_wlan_vendor_attr_usable_channels.
  494. *
  495. * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used
  496. * to get DFS radar history from the driver to userspace. The driver
  497. * returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an
  498. * array of nested entries.
  499. * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to
  500. * enable/disable mDNS offload to the firmware. The attributes used with
  501. * this command are defined in enum qca_wlan_vendor_attr_mdns_offload.
  502. *
  503. * @QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA: Driver uses this command to send
  504. * important debug events that are required for various issues. The
  505. * attributes used with this command are defined in
  506. * enum qca_wlan_vendor_attr_diag.
  507. * This command is defined for temporary usage until this interface is
  508. * moved to the existing diag infra with cnss diag events. This command
  509. * will be deprecated soon and it is not recommended to do any further
  510. * enhancements to this command.
  511. *
  512. * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used
  513. * to set packet monitor mode that aims to send the specified set of TX and
  514. * RX frames on the current client interface to an active monitor interface.
  515. * If this Monitor mode is set, the driver will send the configured frames,
  516. * from the interface on which the command is issued, to an active monitor
  517. * interface. The attributes used with this command are defined in
  518. * enum qca_wlan_vendor_attr_set_monitor_mode.
  519. *
  520. * Though the monitor mode is configured for the respective data/mgmt/ctrl
  521. * frames, it is up to the respective WLAN driver/firmware/hardware designs
  522. * to consider the possibility of sending these frames over the monitor
  523. * interface. For example, the control frames are handled with in the
  524. * hardware and thus passing such frames over the monitor interface is left
  525. * to the respective designs.
  526. *
  527. * Also, this monitor mode is governed to behave accordingly in
  528. * suspend/resume states. If the firmware handles any of such frames
  529. * in suspend state without waking up the host and if the monitor mode
  530. * is configured to notify all such frames, then the firmware is expected
  531. * to resume the host and forward the respective frames to the monitor
  532. * interface. Please note that such a request to get the frames over the
  533. * monitor interface will have a definite power implications.
  534. *
  535. * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both
  536. * as a request to set the driver/firmware with the parameters to trigger
  537. * the roaming events, and also used by the driver/firmware to pass on the
  538. * various roam events to userspace.
  539. * Applicable only for the STA mode. The attributes used with this command
  540. * are defined in enum qca_wlan_vendor_attr_roam_events.
  541. *
  542. * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Sub-command to set or reset the
  543. * rate mask config for a list of phy types. Userspace shall provide
  544. * an array of the vendor attributes defined in
  545. * enum QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS.
  546. *
  547. * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs
  548. * when two interfaces are active on the same band, using two different
  549. * home channels, and only supported by a single radio. In this scenario
  550. * the device must split the use of the radio between the two interfaces.
  551. * The percentage of time allocated to a given interface is the quota.
  552. * Depending on the configuration, the quota can either be fixed or
  553. * dynamic.
  554. *
  555. * When used as an event, the device will report the quota type, and for
  556. * all interfaces operating in MCC it will report the current quota.
  557. * When used as a command, the device can be configured for a specific
  558. * quota type, and in the case of a fixed quota, the quota to apply to one
  559. * of the interfaces.
  560. *
  561. * Applications can use the event to do TX bitrate control based on the
  562. * information, and can use the command to explicitly set the quota to
  563. * enhance performance in specific scenarios.
  564. *
  565. * The attributes used with this command are defined in
  566. * enum qca_wlan_vendor_attr_mcc_quota.
  567. *
  568. * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the
  569. * user space that the driver is ready for operations again after
  570. * recovering from internal failures. This occurs following a failure
  571. * that was indicated by @QCA_NL80211_VENDOR_SUBCMD_HANG.
  572. *
  573. * @QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX: Vendor command to
  574. * get the WLAN radio combinations matrix supported by the device which
  575. * provides the device simultaneous radio configurations such as
  576. * standalone, dual band simultaneous, and single band simultaneous.
  577. *
  578. * The attributes used with this command are defined in
  579. * enum qca_wlan_vendor_attr_radio_combination_matrix.
  580. *
  581. * @QCA_NL80211_VENDOR_SUBCMD_PASN: Subcommand used to offload preassociation
  582. * security negotiation and key generation to user space.
  583. *
  584. * When used as an event, the driver requests userspace to trigger the PASN
  585. * authentication or dropping of a PTKSA for the indicated peer devices.
  586. * When used as a command response, userspace indicates a consolidated
  587. * status report for all the peers that were requested for.
  588. *
  589. * The attributes used with this command are defined in
  590. * enum qca_wlan_vendor_attr_pasn.
  591. *
  592. * @QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT: Subcommand used to set
  593. * secure ranging context such as TK and LTF keyseed for each peer
  594. * requested by the driver with a @QCA_NL80211_VENDOR_SUBCMD_PASN event.
  595. *
  596. * The attributes used with this command are defined in
  597. * enum qca_wlan_vendor_attr_secure_ranging_ctx.
  598. *
  599. * @QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD: This vendor subcommand is used to
  600. * enable/disable offload processing in firmware during system/runtime
  601. * suspend for CoAP messages (see RFC7252: The Constrained Application
  602. * Protocol) and fetch information of the CoAP messages cached during
  603. * offload processing.
  604. *
  605. * The attributes used with this command are defined in
  606. * enum qca_wlan_vendor_attr_coap_offload.
  607. *
  608. * @QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG: Subcommand to configure
  609. * (add, remove, or change) a Stream Classification Service (SCS) rule.
  610. *
  611. * The attributes used with this event are defined in
  612. * enum qca_wlan_vendor_attr_scs_rule_config.
  613. *
  614. * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY: Fetch SAR capabilities
  615. * supported by the WLAN firmware.
  616. *
  617. * The attributes used with this command are defined in
  618. * enum qca_wlan_vendor_attr_sar_capability.
  619. *
  620. * @QCA_NL80211_VENDOR_SUBCMD_SR: Subcommand used to implement Spatial Reuse
  621. * (SR) feature. This command is used by userspace to configure SR
  622. * parameters to the driver and to get the SR related parameters and
  623. * statistics with synchronous responses from the driver.
  624. * The driver also uses this command to send asynchronous events to
  625. * userspace to indicate suspend/resume of SR feature and changes
  626. * in SR parameters.
  627. *
  628. * The attributes used with this command are defined in
  629. * enum qca_wlan_vendor_attr_sr.
  630. *
  631. * @QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT: Subcommand used to
  632. * notify application layer about the primary netdev of an MLO connection.
  633. * In some implementations, MLO has multiple netdevs out of which one
  634. * netdev is designated as primary to provide a unified interface to the
  635. * bridge. In those implementations this event is sent on every MLO peer
  636. * connection.
  637. *
  638. * The attributes used with this event are defined in
  639. * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event.
  640. *
  641. * @QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT: This vendor command is used by the
  642. * driver to notify different AFC events to userspace. The attributes used
  643. * with this command are defined in enum qca_wlan_vendor_attr_afc_event.
  644. *
  645. * @QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE: This vendor command is used by
  646. * userspace to deliver AFC response data to driver. The attributes used
  647. * with this command are defined in enum qca_wlan_vendor_attr_afc_response.
  648. *
  649. * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP: Subcommand to configure AP interface to
  650. * operate in doze mode.
  651. *
  652. * Userspace uses this command to configure the AP interface to enter or
  653. * exit from doze mode. The driver sends this event after it enters or
  654. * exits the doze mode with the updated AP doze mode settings.
  655. *
  656. * The attributes used with this subcommand are defined in
  657. * enum qca_wlan_vendor_attr_dozed_ap.
  658. *
  659. * @QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE: This vendor subcommand is used
  660. * to get the status of local packet capture of monitor mode. The monitor
  661. * mode can be started using QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE
  662. * subcommand.
  663. *
  664. * The attributes used with this command are defined in enum
  665. * qca_wlan_vendor_attr_get_monitor_mode.
  666. *
  667. * @QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS: This vendor command is used to
  668. * get roam information from the driver to user space. It provides the
  669. * latest several instances of roam information cached in the driver.
  670. * The command is only used for STA mode. The attributes used with this
  671. * command are defined in enum qca_wlan_vendor_attr_roam_cached_stats.
  672. *
  673. * @QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE: This vendor subcommand is used to
  674. * configure and fetch the state information of the MLO links affiliated
  675. * with the STA interface. The attributes used with this command are
  676. * defined in enum qca_wlan_vendor_attr_mlo_link_state.
  677. *
  678. * @QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS: Userspace can use this
  679. * vendor subcommand to trigger channel utilization measurement on entire
  680. * channel width of the connected channel(s). For MLO connection, connected
  681. * channel utilization measurement shall be done on all the MLO links.
  682. * The driver may use regular scan or wideband energy detection feature
  683. * based on the hardware capability for connected channel(s) utilization
  684. * measurement. The driver indicates the connected channel(s) utilization
  685. * measurement completion as an asynchronous event with this command ID to
  686. * userspace. Upon receiving this event, userspace can use
  687. * %NL80211_CMD_GET_INTERFACE to determine the channel width of the current
  688. * connected channel(s) and can derive the channel utilization percentage
  689. * (CU) of each 20 MHz sub-channel of the entire connected channel using
  690. * %NL80211_CMD_GET_SURVEY response.
  691. * CU = %NL80211_SURVEY_INFO_TIME_BUSY * 100 / %NL80211_SURVEY_INFO_TIME.
  692. * This command is only used for STA mode.
  693. */
  694. enum qca_nl80211_vendor_subcmds {
  695. QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
  696. QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
  697. QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
  698. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
  699. QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
  700. QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
  701. QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
  702. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
  703. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
  704. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
  705. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
  706. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
  707. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
  708. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20,
  709. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21,
  710. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22,
  711. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23,
  712. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24,
  713. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25,
  714. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26,
  715. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27,
  716. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28,
  717. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29,
  718. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30,
  719. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31,
  720. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32,
  721. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33,
  722. QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
  723. QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
  724. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
  725. QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
  726. QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
  727. QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
  728. QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
  729. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41,
  730. /* Get Concurrency Matrix */
  731. QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
  732. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
  733. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
  734. QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
  735. /* Deprecated */
  736. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53,
  737. QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
  738. QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
  739. /* Off loaded DFS events */
  740. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
  741. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
  742. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
  743. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
  744. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
  745. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
  746. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
  747. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
  748. QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
  749. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65,
  750. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66,
  751. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67,
  752. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68,
  753. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69,
  754. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70,
  755. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71,
  756. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72,
  757. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73,
  758. /* Wi-Fi Configuration subcommands */
  759. QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
  760. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
  761. QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
  762. QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
  763. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
  764. QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
  765. QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
  766. QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
  767. /* NS Offload enable/disable cmd */
  768. QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
  769. QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
  770. QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
  771. QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
  772. QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
  773. /* OCB commands */
  774. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
  775. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
  776. QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
  777. QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
  778. QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
  779. QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
  780. QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
  781. QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
  782. QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
  783. /* subcommand to get link properties */
  784. QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
  785. /* LFR Subnet Detection */
  786. QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
  787. /* DBS subcommands */
  788. QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
  789. QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
  790. /* Vendor setband command */
  791. QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
  792. /* Vendor scan commands */
  793. QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
  794. QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
  795. /* OTA test subcommand */
  796. QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
  797. /* Tx power scaling subcommands */
  798. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
  799. /* Tx power scaling in db subcommands */
  800. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115,
  801. QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
  802. QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117,
  803. QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
  804. QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
  805. QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
  806. QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121,
  807. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
  808. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
  809. QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
  810. QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
  811. QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
  812. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
  813. /* FTM/indoor location subcommands */
  814. QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
  815. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
  816. QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
  817. QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
  818. QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
  819. QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
  820. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
  821. QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
  822. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
  823. /* Encrypt/Decrypt command */
  824. QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
  825. QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
  826. /* DMG low level RF sector operations */
  827. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
  828. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
  829. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
  830. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
  831. /* Configure the TDLS mode from user space */
  832. QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
  833. QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
  834. /* Vendor abort scan command */
  835. QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
  836. /* Set Specific Absorption Rate(SAR) Power Limits */
  837. QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
  838. /* External Auto channel configuration setting */
  839. QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
  840. QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
  841. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
  842. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
  843. QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
  844. /* Set the trace level for QDF */
  845. QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
  846. QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
  847. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
  848. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
  849. QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
  850. QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
  851. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
  852. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
  853. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
  854. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
  855. QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
  856. QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
  857. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
  858. QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
  859. QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
  860. QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
  861. QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
  862. /* Wi-Fi test configuration subcommand */
  863. QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
  864. QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
  865. QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
  866. QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
  867. QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
  868. QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
  869. QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
  870. QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
  871. QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
  872. QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
  873. QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
  874. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
  875. QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
  876. QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
  877. QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
  878. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
  879. QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
  880. QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
  881. QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
  882. QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
  883. QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
  884. QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
  885. QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
  886. QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
  887. QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
  888. QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197,
  889. QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
  890. QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
  891. QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
  892. QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA = 201,
  893. QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
  894. QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
  895. QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
  896. QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
  897. /* 206..212 - reserved for QCA */
  898. QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
  899. QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
  900. QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
  901. QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
  902. QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217,
  903. QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218,
  904. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219,
  905. QCA_NL80211_VENDOR_SUBCMD_SR = 220,
  906. QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221,
  907. QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222,
  908. QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223,
  909. QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224,
  910. QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE = 225,
  911. QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS = 226,
  912. QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE = 227,
  913. QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS = 228,
  914. };
  915. enum qca_wlan_vendor_tos {
  916. QCA_WLAN_VENDOR_TOS_BK = 0,
  917. QCA_WLAN_VENDOR_TOS_BE = 1,
  918. QCA_WLAN_VENDOR_TOS_VI = 2,
  919. QCA_WLAN_VENDOR_TOS_VO = 3,
  920. };
  921. /**
  922. * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
  923. * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
  924. */
  925. enum qca_wlan_vendor_attr_active_tos {
  926. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
  927. /* Type Of Service - Represented by qca_wlan_vendor_tos */
  928. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
  929. /* Flag attribute representing the start (attribute included) or stop
  930. * (attribute not included) of the respective TOS.
  931. */
  932. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
  933. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3,
  934. };
  935. enum qca_wlan_vendor_hang_reason {
  936. /* Unspecified reason */
  937. QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
  938. /* No Map for the MAC entry for the received frame */
  939. QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
  940. /* peer deletion timeout happened */
  941. QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
  942. /* peer unmap timeout */
  943. QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
  944. /* Scan request timed out */
  945. QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
  946. /* Consecutive Scan attempt failures */
  947. QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
  948. /* Unable to get the message buffer */
  949. QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
  950. /* Current command processing is timedout */
  951. QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
  952. /* Timeout for an ACK from FW for suspend request */
  953. QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
  954. /* Timeout for an ACK from FW for resume request */
  955. QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
  956. /* Transmission timeout for consecutive data frames */
  957. QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
  958. /* Timeout for the TX completion status of data frame */
  959. QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
  960. /* DXE failure for tx/Rx, DXE resource unavailability */
  961. QCA_WLAN_HANG_DXE_FAILURE = 12,
  962. /* WMI pending commands exceed the maximum count */
  963. QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
  964. /* Timeout for peer STA connection accept command's response from the
  965. * FW in AP mode. This command is triggered when a STA (peer) connects
  966. * to AP (DUT).
  967. */
  968. QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
  969. /* Timeout for the AP connection accept command's response from the FW
  970. * in STA mode. This command is triggered when the STA (DUT) connects
  971. * to an AP (peer).
  972. */
  973. QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
  974. /* Timeout waiting for the response to the MAC HW mode change command
  975. * sent to FW as a part of MAC mode switch among DBS (Dual Band
  976. * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
  977. * Channel Concurrency) mode.
  978. */
  979. QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
  980. /* Timeout waiting for the response from FW to configure the MAC HW's
  981. * mode. This operation is to configure the single/two MACs in either
  982. * SCC/MCC/DBS mode.
  983. */
  984. QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
  985. /* Timeout waiting for response of VDEV start command from the FW */
  986. QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
  987. /* Timeout waiting for response of VDEV restart command from the FW */
  988. QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
  989. /* Timeout waiting for response of VDEV stop command from the FW */
  990. QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
  991. /* Timeout waiting for response of VDEV delete command from the FW */
  992. QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
  993. /* Timeout waiting for response of peer all delete request command to
  994. * the FW on a specific VDEV.
  995. */
  996. QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
  997. /* WMI sequence mismatch between WMI command and Tx completion */
  998. QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
  999. /* Write to Device HAL register failed */
  1000. QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
  1001. /* No credit left to send the wow_wakeup_from_sleep to firmware */
  1002. QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
  1003. /* Bus failure */
  1004. QCA_WLAN_HANG_BUS_FAILURE = 26,
  1005. /* tasklet/credit latency found */
  1006. QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
  1007. /* MSDU buffers received in REO error ring, exceeding certain
  1008. * threshold
  1009. */
  1010. QCA_WLAN_HANG_RX_MSDU_BUF_RCVD_IN_ERR_RING = 28,
  1011. /* Vdev SM is out of sync and connect req received
  1012. * when already connected
  1013. */
  1014. QCA_WLAN_HANG_VDEV_SM_OUT_OF_SYNC = 29,
  1015. /* Stats request timeout */
  1016. QCA_WLAN_HANG_STATS_REQ_TIMEOUT = 30,
  1017. /* Leak in TX descriptor for a packet */
  1018. QCA_WLAN_HANG_TX_DESC_LEAK = 31,
  1019. /* Scheduler watchdog timeout */
  1020. QCA_WLAN_HANG_SCHED_TIMEOUT = 32,
  1021. /* Failed to send self peer deletion cmd to firmware */
  1022. QCA_WLAN_HANG_SELF_PEER_DEL_FAIL = 33,
  1023. /* Received del self sta without del bss */
  1024. QCA_WLAN_HANG_DEL_SELF_STA_FAIL = 34,
  1025. /* Recovery needed when sending flush completion to userspace */
  1026. QCA_WLAN_HANG_FLUSH_LOGS = 35,
  1027. /* Host wakeup because of page fault */
  1028. QCA_WLAN_HANG_HOST_WAKEUP_REASON_PAGE_FAULT = 36,
  1029. };
  1030. /**
  1031. * enum qca_wlan_vendor_attr_hang - Used by the vendor command
  1032. * QCA_NL80211_VENDOR_SUBCMD_HANG.
  1033. */
  1034. enum qca_wlan_vendor_attr_hang {
  1035. QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
  1036. /*
  1037. * Reason for the Hang - Represented by enum
  1038. * qca_wlan_vendor_hang_reason.
  1039. */
  1040. QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
  1041. /* The binary blob data associated with the hang reason specified by
  1042. * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
  1043. * contain the required dump to analyze the reason for the hang.
  1044. * NLA_BINARY attribute, the max size is 1024 bytes.
  1045. */
  1046. QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
  1047. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
  1048. QCA_WLAN_VENDOR_ATTR_HANG_MAX =
  1049. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
  1050. };
  1051. /**
  1052. * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level
  1053. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level
  1054. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters
  1055. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace
  1056. level needs to be updated.
  1057. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need
  1058. * to be set.
  1059. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last.
  1060. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute.
  1061. */
  1062. enum qca_vendor_attr_set_trace_level {
  1063. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0,
  1064. /*
  1065. * Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM
  1066. * attributes.
  1067. */
  1068. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1,
  1069. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2,
  1070. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3,
  1071. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST,
  1072. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX =
  1073. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1,
  1074. };
  1075. /**
  1076. * enum qca_wlan_vendor_attr_get_station - Sub commands used by
  1077. * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding
  1078. * station information. The information obtained through these
  1079. * commands signify the current info in connected state and
  1080. * latest cached information during the connected state , if queried
  1081. * when in disconnected state.
  1082. *
  1083. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute
  1084. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info
  1085. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason
  1086. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info
  1087. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last
  1088. */
  1089. enum qca_wlan_vendor_attr_get_station {
  1090. QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0,
  1091. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO,
  1092. QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON,
  1093. QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE,
  1094. /* keep last */
  1095. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST,
  1096. QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX =
  1097. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1,
  1098. };
  1099. /**
  1100. * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
  1101. * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
  1102. *
  1103. * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
  1104. * Used in STA mode. This attribute represents the list of channel center
  1105. * frequencies in MHz (u32) the station has learnt during the last connection
  1106. * or roaming attempt. This information shall not signify the channels for
  1107. * an explicit scan request from the user space. Host drivers can update this
  1108. * information to the user space in both connected and disconnected state.
  1109. * In the disconnected state this information shall signify the channels
  1110. * scanned in the last connection/roam attempt that lead to the disconnection.
  1111. */
  1112. enum qca_wlan_vendor_attr_update_sta_info {
  1113. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
  1114. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
  1115. /* keep last */
  1116. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
  1117. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
  1118. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
  1119. };
  1120. /**
  1121. * enum qca_wlan_802_11_mode - dot11 mode
  1122. * @QCA_WLAN_802_11_MODE_11B: mode B
  1123. * @QCA_WLAN_802_11_MODE_11G: mode G
  1124. * @QCA_WLAN_802_11_MODE_11N: mode N
  1125. * @QCA_WLAN_802_11_MODE_11A: mode A
  1126. * @QCA_WLAN_802_11_MODE_11AC: mode AC
  1127. * @QCA_WLAN_802_11_MODE_11AX: mode AX
  1128. * @QCA_WLAN_802_11_MODE_11BE: mode BE
  1129. * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode
  1130. */
  1131. enum qca_wlan_802_11_mode {
  1132. QCA_WLAN_802_11_MODE_11B,
  1133. QCA_WLAN_802_11_MODE_11G,
  1134. QCA_WLAN_802_11_MODE_11N,
  1135. QCA_WLAN_802_11_MODE_11A,
  1136. QCA_WLAN_802_11_MODE_11AC,
  1137. QCA_WLAN_802_11_MODE_11AX,
  1138. QCA_WLAN_802_11_MODE_11BE,
  1139. QCA_WLAN_802_11_MODE_INVALID,
  1140. };
  1141. /**
  1142. * enum qca_wlan_auth_type - Authentication key management type
  1143. * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type
  1144. * @QCA_WLAN_AUTH_TYPE_OPEN: Open key
  1145. * @QCA_WLAN_AUTH_TYPE_SHARED: shared key
  1146. * @QCA_WLAN_AUTH_TYPE_WPA: wpa key
  1147. * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key
  1148. * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key
  1149. * @QCA_WLAN_AUTH_TYPE_RSN: rsn key
  1150. * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key
  1151. * @QCA_WLAN_AUTH_TYPE_FT: ft key
  1152. * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key
  1153. * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key
  1154. * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk
  1155. * @QCA_WLAN_AUTH_TYPE_WAI: wai key
  1156. * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key
  1157. * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key
  1158. * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key
  1159. * @QCA_WLAN_AUTH_TYPE_AUTOSWITCH: Autoswitch key
  1160. * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm
  1161. * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384
  1162. * @QCA_WLAN_AUTH_TYPE_SAE: SAE key
  1163. * @QCA_WLAN_AUTH_TYPE_FILS_SHA256: FILS SHA 256 key
  1164. * @QCA_WLAN_AUTH_TYPE_FILS_SHA384: FILS SAH 384 key
  1165. * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256: FT FILS SHA 256 key
  1166. * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384: FT FILS SHA 384 key
  1167. * @QCA_WLAN_AUTH_TYPE_DPP_RSN: DPP RSN key
  1168. * @QCA_WLAN_AUTH_TYPE_OWE: owe key
  1169. * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256 : EAP SHA 256 key
  1170. * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384 : EAP SHA 384 key
  1171. */
  1172. enum qca_wlan_auth_type {
  1173. QCA_WLAN_AUTH_TYPE_INVALID,
  1174. QCA_WLAN_AUTH_TYPE_OPEN,
  1175. QCA_WLAN_AUTH_TYPE_SHARED,
  1176. QCA_WLAN_AUTH_TYPE_WPA,
  1177. QCA_WLAN_AUTH_TYPE_WPA_PSK,
  1178. QCA_WLAN_AUTH_TYPE_WPA_NONE,
  1179. QCA_WLAN_AUTH_TYPE_RSN,
  1180. QCA_WLAN_AUTH_TYPE_RSN_PSK,
  1181. QCA_WLAN_AUTH_TYPE_FT,
  1182. QCA_WLAN_AUTH_TYPE_FT_PSK,
  1183. QCA_WLAN_AUTH_TYPE_SHA256,
  1184. QCA_WLAN_AUTH_TYPE_SHA256_PSK,
  1185. QCA_WLAN_AUTH_TYPE_WAI,
  1186. QCA_WLAN_AUTH_TYPE_WAI_PSK,
  1187. QCA_WLAN_AUTH_TYPE_CCKM_WPA,
  1188. QCA_WLAN_AUTH_TYPE_CCKM_RSN,
  1189. QCA_WLAN_AUTH_TYPE_AUTOSWITCH,
  1190. QCA_WLAN_AUTH_TYPE_FT_SAE,
  1191. QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384,
  1192. QCA_WLAN_AUTH_TYPE_SAE,
  1193. QCA_WLAN_AUTH_TYPE_FILS_SHA256,
  1194. QCA_WLAN_AUTH_TYPE_FILS_SHA384,
  1195. QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256,
  1196. QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384,
  1197. QCA_WLAN_AUTH_TYPE_DPP_RSN,
  1198. QCA_WLAN_AUTH_TYPE_OWE,
  1199. QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256,
  1200. QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384,
  1201. };
  1202. /**
  1203. * enum qca_wlan_vendor_attr_get_station_info - Station Info queried
  1204. * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION.
  1205. *
  1206. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute
  1207. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR:
  1208. * Get the standard NL attributes Nested with this attribute.
  1209. * Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link -
  1210. * NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) /
  1211. * NL80211_ATTR_STA_INFO
  1212. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR:
  1213. * Get the standard NL attributes Nested with this attribute.
  1214. * Ex : Query HT/VHT Capability advertized by the AP.
  1215. * NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY
  1216. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT:
  1217. * Number of successful Roam attempts before a
  1218. * disconnect, Unsigned 32 bit value
  1219. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM:
  1220. * Authentication Key Management Type used for the connected session.
  1221. * Signified by enum qca_wlan_auth_type
  1222. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the
  1223. * connected Session, signified by enum qca_wlan_802_11_mode
  1224. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION:
  1225. * HS20 Indication Element
  1226. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON:
  1227. * Status Code Corresponding to the Association Failure.
  1228. * Unsigned 32 bit value.
  1229. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE:
  1230. * Max phy rate of remote station
  1231. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS:
  1232. * TX packets to remote station
  1233. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES:
  1234. * TX bytes to remote station
  1235. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS:
  1236. * RX packets from remote station
  1237. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES:
  1238. * RX bytes from remote station
  1239. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE:
  1240. * Last TX rate with remote station
  1241. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE:
  1242. * Last RX rate with remote station
  1243. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM:
  1244. * Remote station enable/disable WMM
  1245. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE:
  1246. * Remote station connection mode
  1247. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU:
  1248. * Remote station AMPDU enable/disable
  1249. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC:
  1250. * Remote station TX Space-time block coding enable/disable
  1251. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC:
  1252. * Remote station RX Space-time block coding enable/disable
  1253. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH:
  1254. * Remote station channel width
  1255. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE:
  1256. * Remote station short GI enable/disable
  1257. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding
  1258. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES: Binary attribute
  1259. * containing the raw information elements from Beacon frames. Represents
  1260. * the Beacon frames of the current BSS in the connected state. When queried
  1261. * in the disconnected state, these IEs correspond to the last connected BSSID.
  1262. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON: u32, Driver
  1263. * disconnect reason for the last disconnection if the disconnection is
  1264. * triggered from the host driver. The values are referred from
  1265. * enum qca_disconnect_reason_codes. If the disconnect is from
  1266. * peer/userspace this value is QCA_DISCONNECT_REASON_UNSPECIFIED.
  1267. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES: Binary attribute
  1268. * Applicable in AP mode only. It contains the raw information elements
  1269. * from assoc request frame of the given peer station. User queries with the
  1270. * mac address of peer station when it disconnects. Host driver sends
  1271. * assoc request frame of the given station. Host driver doesn't provide
  1272. * the IEs when the peer station is still in connected state.
  1273. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION: Attribute type for
  1274. * sending HE operation info.
  1275. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last
  1276. *
  1277. */
  1278. enum qca_wlan_vendor_attr_get_station_info {
  1279. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0,
  1280. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR,
  1281. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR,
  1282. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT,
  1283. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM,
  1284. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE,
  1285. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION,
  1286. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION,
  1287. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION,
  1288. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON,
  1289. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE,
  1290. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS,
  1291. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES,
  1292. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS,
  1293. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES,
  1294. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE,
  1295. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE,
  1296. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM,
  1297. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE,
  1298. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU,
  1299. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC,
  1300. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC,
  1301. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH,
  1302. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE,
  1303. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD,
  1304. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT,
  1305. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT,
  1306. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_FAILURE,
  1307. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AVG_RSSI_PER_CHAIN,
  1308. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_SUCCEED,
  1309. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_LAST_PKT_RSSI,
  1310. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY,
  1311. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST,
  1312. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_TOTAL_FW,
  1313. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_FW,
  1314. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST_FW,
  1315. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES,
  1316. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON,
  1317. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES,
  1318. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION,
  1319. /* keep last */
  1320. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST,
  1321. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX =
  1322. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1,
  1323. };
  1324. /**
  1325. * enum qca_wlan_vendor_attr_tdls_enable - TDLS enable attribute
  1326. *
  1327. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID: Invalid initial value
  1328. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: An array of 6 x Unsigned 8-bit
  1329. * value
  1330. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: Signed 32-bit value, but lets
  1331. * keep as unsigned for now
  1332. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: operating class
  1333. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: Enable max latency in ms
  1334. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: Enable min bandwidth
  1335. * in KBPS
  1336. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST: After last
  1337. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX: Max value
  1338. */
  1339. enum qca_wlan_vendor_attr_tdls_enable {
  1340. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
  1341. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR,
  1342. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL,
  1343. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS,
  1344. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS,
  1345. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS,
  1346. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
  1347. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
  1348. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
  1349. };
  1350. /**
  1351. * enum qca_wlan_vendor_attr_tdls_disable: tdls disable attribute
  1352. *
  1353. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID: Invalid initial value
  1354. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: An array of 6 x Unsigned
  1355. * 8-bit value
  1356. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST: After last
  1357. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX: Max value
  1358. */
  1359. enum qca_wlan_vendor_attr_tdls_disable {
  1360. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
  1361. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR,
  1362. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
  1363. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
  1364. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
  1365. };
  1366. /**
  1367. * qca_chip_power_save_failure_reason: Power save failure reason
  1368. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure
  1369. * due to protocol/module.
  1370. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure
  1371. * due to hardware
  1372. */
  1373. enum qca_chip_power_save_failure_reason {
  1374. QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
  1375. QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
  1376. };
  1377. /**
  1378. * qca_attr_chip_power_save_failure: attributes to vendor subcmd
  1379. * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite
  1380. * information leading to the power save failure.
  1381. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid
  1382. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason
  1383. * represented by enum qca_chip_power_save_failure_reason
  1384. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last
  1385. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value
  1386. */
  1387. enum qca_attr_chip_power_save_failure {
  1388. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
  1389. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
  1390. /* keep last */
  1391. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
  1392. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
  1393. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
  1394. };
  1395. /**
  1396. * enum qca_wlan_vendor_attr_tdls_get_status - tdls get status attribute
  1397. *
  1398. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID: Invalid initial value
  1399. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: An array of 6 x Unsigned
  1400. * 8-bit value
  1401. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: get status state,
  1402. * unsigned 32-bit value
  1403. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: get status reason
  1404. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: get status channel,
  1405. * unsigned 32-bit value
  1406. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: get operating
  1407. * class, unsigned 32-bit value
  1408. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST: After last
  1409. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX: Max value
  1410. */
  1411. enum qca_wlan_vendor_attr_tdls_get_status {
  1412. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
  1413. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR,
  1414. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE,
  1415. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON,
  1416. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL,
  1417. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS,
  1418. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
  1419. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
  1420. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
  1421. };
  1422. /**
  1423. * enum qca_wlan_vendor_attr_tdls_state - tdls state attribute
  1424. *
  1425. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID: Initial invalid value
  1426. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: An array of 6 x Unsigned
  1427. * 8-bit value
  1428. * @QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE: TDLS new state,
  1429. * unsigned 32-bit value
  1430. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: TDLS state reason
  1431. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: TDLS state channel,
  1432. * unsigned 32-bit value
  1433. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: TDLS state
  1434. * operating class, unsigned 32-bit value
  1435. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST: After last
  1436. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX: Max value
  1437. */
  1438. enum qca_wlan_vendor_attr_tdls_state {
  1439. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
  1440. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR,
  1441. QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE,
  1442. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON,
  1443. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL,
  1444. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS,
  1445. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
  1446. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
  1447. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
  1448. };
  1449. /* enum's to provide TDLS capabilities */
  1450. enum qca_wlan_vendor_attr_get_tdls_capabilities {
  1451. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
  1452. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1,
  1453. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2,
  1454. /* keep last */
  1455. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
  1456. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
  1457. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
  1458. };
  1459. /* Compatibility defines for previously used subcmd names.
  1460. * These values should not be used in any new implementation.
  1461. */
  1462. #define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \
  1463. QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY
  1464. enum qca_wlan_vendor_attr {
  1465. QCA_WLAN_VENDOR_ATTR_INVALID = 0,
  1466. /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
  1467. QCA_WLAN_VENDOR_ATTR_DFS = 1,
  1468. /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
  1469. QCA_WLAN_VENDOR_ATTR_NAN = 2,
  1470. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  1471. QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
  1472. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  1473. QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
  1474. /*
  1475. * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
  1476. * by enum qca_roaming_policy.
  1477. */
  1478. QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
  1479. QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
  1480. /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
  1481. QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
  1482. QCA_WLAN_VENDOR_ATTR_TEST = 8,
  1483. /*
  1484. * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES
  1485. * Unsigned 32-bit value.
  1486. */
  1487. QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
  1488. /* Unsigned 32-bit value */
  1489. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
  1490. /* Unsigned 32-bit value */
  1491. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
  1492. /* Unsigned 32-bit value from enum qca_set_band. Also, the acceptable
  1493. * value for this attribute are only till QCA_SETBAND_2G. This attribute
  1494. * is deprecated. Recommendation is to use
  1495. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. If the band is configured
  1496. * using both the attributes, the ones configured through
  1497. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK take the precedence.
  1498. */
  1499. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
  1500. /* Dummy (NOP) attribute for 64 bit padding */
  1501. QCA_WLAN_VENDOR_ATTR_PAD = 13,
  1502. /*
  1503. * Unique FTM session cookie (Unsigned 64 bit). Specified in
  1504. * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
  1505. * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
  1506. * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
  1507. */
  1508. QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
  1509. /*
  1510. * Indoor location capabilities, returned by
  1511. * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
  1512. * see enum qca_wlan_vendor_attr_loc_capa.
  1513. */
  1514. QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
  1515. /*
  1516. * Array of nested attributes containing information about each peer
  1517. * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
  1518. * for supported attributes for each peer.
  1519. */
  1520. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
  1521. /*
  1522. * Array of nested attributes containing measurement results for
  1523. * one or more peers, reported by the
  1524. * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
  1525. * See enum qca_wlan_vendor_attr_peer_result for list of supported
  1526. * attributes.
  1527. */
  1528. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
  1529. /* Flag attribute for enabling or disabling responder functionality. */
  1530. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
  1531. /*
  1532. * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  1533. * command to specify the LCI report that will be sent by
  1534. * the responder during a measurement exchange. The format is
  1535. * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
  1536. */
  1537. QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
  1538. /*
  1539. * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  1540. * command to specify the location civic report that will
  1541. * be sent by the responder during a measurement exchange.
  1542. * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
  1543. */
  1544. QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
  1545. /*
  1546. * Session/measurement completion status code,
  1547. * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
  1548. * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
  1549. * see enum qca_vendor_attr_loc_session_status.
  1550. */
  1551. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
  1552. /*
  1553. * Initial dialog token used by responder (0 if not specified),
  1554. * unsigned 8 bit value.
  1555. */
  1556. QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
  1557. /*
  1558. * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
  1559. * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
  1560. * AOA measurements are needed as part of an FTM session.
  1561. * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
  1562. * enum qca_wlan_vendor_attr_aoa_type.
  1563. */
  1564. QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
  1565. /*
  1566. * A bit mask (unsigned 32 bit value) of antenna arrays used
  1567. * by indoor location measurements. Refers to the antenna
  1568. * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
  1569. */
  1570. QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
  1571. /*
  1572. * AOA measurement data. Its contents depends on the AOA measurement
  1573. * type and antenna array mask:
  1574. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
  1575. * phase of the strongest CIR path for each antenna in the measured
  1576. * array(s).
  1577. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
  1578. * values, phase and amplitude of the strongest CIR path for each
  1579. * antenna in the measured array(s).
  1580. */
  1581. QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
  1582. /*
  1583. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1584. * to specify the chain number (unsigned 32 bit value) to inquire
  1585. * the corresponding antenna RSSI value */
  1586. QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
  1587. /*
  1588. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1589. * to report the specific antenna RSSI value (unsigned 32 bit value) */
  1590. QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
  1591. /* Frequency in MHz, various uses. Unsigned 32 bit value */
  1592. QCA_WLAN_VENDOR_ATTR_FREQ = 28,
  1593. /*
  1594. * TSF timer value, unsigned 64 bit value.
  1595. * May be returned by various commands.
  1596. */
  1597. QCA_WLAN_VENDOR_ATTR_TSF = 29,
  1598. /*
  1599. * DMG RF sector index, unsigned 16 bit number. Valid values are
  1600. * 0..127 for sector indices or 65535 as special value used to
  1601. * unlock sector selection in
  1602. * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
  1603. */
  1604. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
  1605. /*
  1606. * DMG RF sector type, unsigned 8 bit value. One of the values
  1607. * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
  1608. */
  1609. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
  1610. /*
  1611. * Bitmask of DMG RF modules for which information is requested. Each
  1612. * bit corresponds to an RF module with the same index as the bit
  1613. * number. Unsigned 32 bit number but only low 8 bits can be set since
  1614. * all DMG chips currently have up to 8 RF modules.
  1615. */
  1616. QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
  1617. /*
  1618. * Array of nested attributes where each entry is DMG RF sector
  1619. * configuration for a single RF module.
  1620. * Attributes for each entry are taken from enum
  1621. * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
  1622. * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
  1623. * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
  1624. */
  1625. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
  1626. /*
  1627. * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
  1628. * to report frame aggregation statistics to userspace.
  1629. */
  1630. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
  1631. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
  1632. /*
  1633. * Unsigned 8-bit value representing MBO transition reason code as
  1634. * provided by the AP used by subcommand
  1635. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
  1636. * specified by the userspace in the request to the driver.
  1637. */
  1638. QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
  1639. /*
  1640. * Array of nested attributes, BSSID and status code, used by subcommand
  1641. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
  1642. * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
  1643. * The userspace space specifies the list/array of candidate BSSIDs in
  1644. * the order of preference in the request. The driver specifies the
  1645. * status code, for each BSSID in the list, in the response. The
  1646. * acceptable candidates are listed in the order preferred by the
  1647. * driver.
  1648. */
  1649. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
  1650. /*
  1651. * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
  1652. * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
  1653. */
  1654. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
  1655. /*
  1656. * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
  1657. * to define the number of antennas to use for BRP.
  1658. * different purpose in each ANT_LIMIT_MODE:
  1659. * DISABLE - ignored
  1660. * EFFECTIVE - upper limit to number of antennas to be used
  1661. * FORCE - exact number of antennas to be used
  1662. * unsigned 8 bit value
  1663. */
  1664. QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
  1665. /*
  1666. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1667. * to report the corresponding antenna index to the chain RSSI value
  1668. */
  1669. QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
  1670. /*
  1671. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1672. * to report the specific antenna EVM value (unsigned 32 bit value).
  1673. * With a determinate group of antennas, the driver specifies the
  1674. * EVM value for each antenna ID, and application extract them
  1675. * in user space.
  1676. */
  1677. QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
  1678. /*
  1679. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
  1680. * wlan firmware current state. FW state is an unsigned 8 bit value,
  1681. * one of the values in enum qca_wlan_vendor_attr_fw_state.
  1682. */
  1683. QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
  1684. /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
  1685. * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only the
  1686. * integer values of enum qca_set_band till QCA_SETBAND_2G are valid.
  1687. * This attribute shall consider the bitmask combinations to define
  1688. * the respective Band combinations and always takes precedence over
  1689. * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE.
  1690. */
  1691. QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
  1692. /* keep last */
  1693. QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
  1694. QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1
  1695. };
  1696. enum qca_wlan_vendor_attr_extscan_config_params {
  1697. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
  1698. /* Unsigned 32-bit value */
  1699. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
  1700. /*
  1701. * Attributes for data used by
  1702. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command.
  1703. */
  1704. /* Unsigned 32-bit value */
  1705. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
  1706. = 2,
  1707. /* Unsigned 32-bit value */
  1708. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
  1709. = 3,
  1710. /*
  1711. * Attributes for input params used by
  1712. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command.
  1713. */
  1714. /* Unsigned 32-bit value; channel frequency */
  1715. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4,
  1716. /* Unsigned 32-bit value; dwell time in ms. */
  1717. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
  1718. /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
  1719. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6,
  1720. /* Unsigned 8-bit value; channel class */
  1721. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7,
  1722. /* Unsigned 8-bit value; bucket index, 0 based */
  1723. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8,
  1724. /* Unsigned 8-bit value; band. */
  1725. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9,
  1726. /* Unsigned 32-bit value; desired period, in ms. */
  1727. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10,
  1728. /* Unsigned 8-bit value; report events semantics. */
  1729. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
  1730. /*
  1731. * Unsigned 32-bit value. Followed by a nested array of
  1732. * EXTSCAN_CHANNEL_SPEC_* attributes.
  1733. */
  1734. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
  1735. /*
  1736. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes.
  1737. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  1738. */
  1739. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13,
  1740. /* Unsigned 32-bit value; base timer period in ms. */
  1741. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
  1742. /*
  1743. * Unsigned 32-bit value; number of APs to store in each scan in the
  1744. * BSSID/RSSI history buffer (keep the highest RSSI APs).
  1745. */
  1746. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
  1747. /*
  1748. * Unsigned 8-bit value; in %, when scan buffer is this much full, wake
  1749. * up AP.
  1750. */
  1751. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
  1752. = 16,
  1753. /*
  1754. * Unsigned 8-bit value; number of scan bucket specs; followed by a
  1755. * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size
  1756. * of the array is determined by NUM_BUCKETS.
  1757. */
  1758. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
  1759. /*
  1760. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes.
  1761. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
  1762. */
  1763. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18,
  1764. /* Unsigned 8-bit value */
  1765. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
  1766. = 19,
  1767. /* Unsigned 32-bit value; maximum number of results to be returned. */
  1768. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
  1769. = 20,
  1770. /* An array of 6 x unsigned 8-bit value */
  1771. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
  1772. /* Signed 32-bit value */
  1773. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
  1774. /* Signed 32-bit value */
  1775. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
  1776. /* Unsigned 32-bit value */
  1777. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
  1778. /*
  1779. * Number of hotlist APs as unsigned 32-bit value, followed by a nested
  1780. * array of AP_THRESHOLD_PARAM attributes and values. The size of the
  1781. * array is determined by NUM_AP.
  1782. */
  1783. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
  1784. /*
  1785. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes.
  1786. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  1787. */
  1788. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26,
  1789. /* Unsigned 32-bit value; number of samples for averaging RSSI. */
  1790. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
  1791. = 27,
  1792. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  1793. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
  1794. = 28,
  1795. /* Unsigned 32-bit value; number of APs breaching threshold. */
  1796. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
  1797. /*
  1798. * Unsigned 32-bit value; number of APs. Followed by an array of
  1799. * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
  1800. */
  1801. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
  1802. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  1803. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
  1804. = 31,
  1805. /*
  1806. * Unsigned 32-bit value. If max_period is non zero or different than
  1807. * period, then this bucket is an exponential backoff bucket.
  1808. */
  1809. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
  1810. /* Unsigned 32-bit value. */
  1811. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33,
  1812. /*
  1813. * Unsigned 32-bit value. For exponential back off bucket, number of
  1814. * scans to perform for a given period.
  1815. */
  1816. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34,
  1817. /*
  1818. * Unsigned 8-bit value; in number of scans, wake up AP after these
  1819. * many scans.
  1820. */
  1821. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
  1822. = 35,
  1823. /*
  1824. * Attributes for data used by
  1825. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command.
  1826. */
  1827. /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
  1828. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
  1829. = 36,
  1830. /*
  1831. * Number of hotlist SSIDs as unsigned 32-bit value, followed by a
  1832. * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
  1833. * size of the array is determined by NUM_SSID.
  1834. */
  1835. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
  1836. /*
  1837. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_*
  1838. * attributes.
  1839. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
  1840. */
  1841. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38,
  1842. /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
  1843. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
  1844. /* Unsigned 8-bit value */
  1845. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
  1846. /* Signed 32-bit value */
  1847. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
  1848. /* Signed 32-bit value */
  1849. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
  1850. /* Unsigned 32-bit value; a bitmask with additional extscan config flag.
  1851. */
  1852. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43,
  1853. /* keep last */
  1854. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
  1855. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX =
  1856. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
  1857. };
  1858. enum qca_wlan_vendor_attr_extscan_results {
  1859. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0,
  1860. /*
  1861. * Unsigned 32-bit value; must match the request Id supplied by
  1862. * Wi-Fi HAL in the corresponding subcmd NL msg.
  1863. */
  1864. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1,
  1865. /*
  1866. * Unsigned 32-bit value; used to indicate the status response from
  1867. * firmware/driver for the vendor sub-command.
  1868. */
  1869. QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2,
  1870. /*
  1871. * EXTSCAN Valid Channels attributes */
  1872. /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
  1873. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3,
  1874. /*
  1875. * An array of NUM_CHANNELS x unsigned 32-bit value integers
  1876. * representing channel numbers.
  1877. */
  1878. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4,
  1879. /* EXTSCAN Capabilities attributes */
  1880. /* Unsigned 32-bit value */
  1881. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
  1882. /* Unsigned 32-bit value */
  1883. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
  1884. /* Unsigned 32-bit value */
  1885. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
  1886. = 7,
  1887. /* Unsigned 32-bit value */
  1888. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
  1889. = 8,
  1890. /* Signed 32-bit value */
  1891. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
  1892. = 9,
  1893. /* Unsigned 32-bit value */
  1894. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
  1895. /* Unsigned 32-bit value */
  1896. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
  1897. = 11,
  1898. /* Unsigned 32-bit value */
  1899. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
  1900. = 12,
  1901. /*
  1902. * EXTSCAN Attributes used with
  1903. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command.
  1904. */
  1905. /* Unsigned 32-bit value */
  1906. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
  1907. /*
  1908. * EXTSCAN attributes used with
  1909. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command.
  1910. */
  1911. /*
  1912. * An array of NUM_RESULTS_AVAILABLE x
  1913. * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_*
  1914. */
  1915. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14,
  1916. /* Unsigned 64-bit value; age of sample at the time of retrieval */
  1917. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
  1918. /* 33 x unsigned 8-bit value; NULL terminated SSID */
  1919. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16,
  1920. /* An array of 6 x unsigned 8-bit value */
  1921. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
  1922. /* Unsigned 32-bit value; channel frequency in MHz */
  1923. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
  1924. /* Signed 32-bit value */
  1925. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
  1926. /* Unsigned 32-bit value */
  1927. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20,
  1928. /* Unsigned 32-bit value */
  1929. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
  1930. /* Unsigned 16-bit value */
  1931. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
  1932. /* Unsigned 16-bit value */
  1933. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
  1934. /* Unsigned 32-bit value; size of the IE DATA blob */
  1935. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
  1936. /*
  1937. * An array of IE_LENGTH x unsigned 8-bit value; blob of all the
  1938. * information elements found in the beacon; this data should be a
  1939. * packed list of wifi_information_element objects, one after the
  1940. * other.
  1941. */
  1942. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
  1943. /*
  1944. * Unsigned 8-bit value; set by driver to indicate more scan results are
  1945. * available.
  1946. */
  1947. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
  1948. /*
  1949. * EXTSCAN attributes for
  1950. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command.
  1951. */
  1952. /* Unsigned 8-bit value */
  1953. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
  1954. /* Unsigned 32-bit value */
  1955. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
  1956. /*
  1957. * EXTSCAN attributes for
  1958. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command.
  1959. */
  1960. /*
  1961. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  1962. * to indicate number of results.
  1963. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
  1964. * list of results.
  1965. */
  1966. /*
  1967. * EXTSCAN attributes for
  1968. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command.
  1969. */
  1970. /* An array of 6 x unsigned 8-bit value */
  1971. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
  1972. /* Unsigned 32-bit value */
  1973. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
  1974. = 30,
  1975. /* Unsigned 32-bit value. */
  1976. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
  1977. = 31,
  1978. /*
  1979. * A nested array of signed 32-bit RSSI values. Size of the array is
  1980. * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
  1981. */
  1982. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
  1983. = 32,
  1984. /*
  1985. * EXTSCAN attributes used with
  1986. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command.
  1987. */
  1988. /*
  1989. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  1990. * to indicate number of extscan cached results returned.
  1991. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate
  1992. * the list of extscan cached results.
  1993. */
  1994. /*
  1995. * An array of NUM_RESULTS_AVAILABLE x
  1996. * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_*
  1997. */
  1998. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33,
  1999. /* Unsigned 32-bit value; a unique identifier for the scan unit. */
  2000. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34,
  2001. /*
  2002. * Unsigned 32-bit value; a bitmask w/additional information about scan.
  2003. */
  2004. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35,
  2005. /*
  2006. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  2007. * to indicate number of wifi scan results/bssids retrieved by the scan.
  2008. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
  2009. * list of wifi scan results returned for each cached result block.
  2010. */
  2011. /*
  2012. * EXTSCAN attributes for
  2013. * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
  2014. */
  2015. /*
  2016. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
  2017. * number of results.
  2018. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
  2019. * list of wifi scan results returned for each
  2020. * wifi_passpoint_match_result block.
  2021. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
  2022. */
  2023. /*
  2024. * EXTSCAN attributes for
  2025. * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
  2026. */
  2027. /* Unsigned 32-bit value */
  2028. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
  2029. = 36,
  2030. /*
  2031. * A nested array of
  2032. * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
  2033. * attributes. Array size =
  2034. * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
  2035. */
  2036. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
  2037. /* Unsigned 32-bit value; network block id for the matched network */
  2038. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
  2039. /*
  2040. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
  2041. * list of wifi scan results returned for each
  2042. * wifi_passpoint_match_result block.
  2043. */
  2044. /* Unsigned 32-bit value */
  2045. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
  2046. /*
  2047. * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
  2048. * ANQP data in the information_element format.
  2049. */
  2050. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
  2051. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2052. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
  2053. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2054. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
  2055. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2056. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
  2057. = 43,
  2058. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2059. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
  2060. = 44,
  2061. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45,
  2062. QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
  2063. /* keep last */
  2064. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST,
  2065. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX =
  2066. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1,
  2067. };
  2068. /**
  2069. * enum qca_vendor_interop_issues_ap_type - interop issues type
  2070. * This enum defines the valid set of values of interop issues type. These
  2071. * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
  2072. *
  2073. * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue
  2074. * when the STA's Qpower feature is enabled.
  2075. */
  2076. enum qca_vendor_interop_issues_ap_type {
  2077. QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
  2078. QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
  2079. };
  2080. /**
  2081. * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues
  2082. * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
  2083. *
  2084. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value
  2085. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type
  2086. * 32-bit unsigned value, The type defined in enum
  2087. * qca_vendor_interop_issues_ap_type are used.
  2088. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container
  2089. * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes,
  2090. * it is present and mandatory for the command but is not used for
  2091. * the event since only a single BSSID is reported in an event.
  2092. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid
  2093. * 6-byte MAC address. It is used within the nested
  2094. * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case
  2095. * and without such encapsulation in the event case.
  2096. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
  2097. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
  2098. */
  2099. enum qca_vendor_attr_interop_issues_ap {
  2100. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
  2101. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
  2102. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
  2103. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
  2104. /* keep last */
  2105. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
  2106. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
  2107. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
  2108. };
  2109. #ifdef WLAN_FEATURE_LINK_LAYER_STATS
  2110. enum qca_wlan_vendor_attr_ll_stats_set {
  2111. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
  2112. /* Unsigned 32-bit value */
  2113. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
  2114. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
  2115. /* keep last */
  2116. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
  2117. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
  2118. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
  2119. };
  2120. /**
  2121. * qca_wlan_ll_stats_clr_req_bitmap - Represents the bitmap to clear LL STATS
  2122. * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK.
  2123. *
  2124. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO: Clear all radio statistics.
  2125. *
  2126. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA: Clear cca_busy_time within
  2127. * radio statistics.
  2128. *
  2129. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNEL: Clear all channel
  2130. * statistics within radio statistics.
  2131. *
  2132. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_SCAN: Clear all scan statistics within
  2133. * radio statistics.
  2134. *
  2135. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE: Clear all interface statistics.
  2136. *
  2137. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE: Clear all TX rate statistics
  2138. * within interface statistics.
  2139. *
  2140. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC: Clear all AC statistics within
  2141. * interface statistics.
  2142. *
  2143. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION: Clear all contention
  2144. * (min, max, avg) statistics within AC statistics.
  2145. *
  2146. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER: Clear all peer statistics
  2147. * on this interface.
  2148. *
  2149. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER: Clear particular peer
  2150. * statistics depending on the peer_mac.
  2151. */
  2152. enum qca_wlan_ll_stats_clr_req_bitmap {
  2153. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO = BIT(0),
  2154. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA = BIT(1),
  2155. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNELS = BIT(2),
  2156. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_SCAN = BIT(3),
  2157. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE = BIT(4),
  2158. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE = BIT(5),
  2159. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC = BIT(6),
  2160. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION = BIT(7),
  2161. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER = BIT(8),
  2162. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER = BIT(9),
  2163. };
  2164. enum qca_wlan_vendor_attr_ll_stats_clr {
  2165. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
  2166. /* Unsigned 32bit bitmap for clearing statistics, specified
  2167. * in the enum qca_wlan_ll_stats_clr_req_bitmap.
  2168. */
  2169. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
  2170. /* Unsigned 8 bit value: Request to stop statistics collection */
  2171. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
  2172. /* Unsigned 32 bit bitmap: Response from the driver
  2173. * for the cleared statistics
  2174. */
  2175. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
  2176. /* Unsigned 8 bit value: Response from driver/firmware
  2177. * for the stop request
  2178. */
  2179. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
  2180. /* keep last */
  2181. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
  2182. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
  2183. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
  2184. };
  2185. /**
  2186. * qca_wlan_ll_stats_get_req_bitmap - Represents the bitmap to request LL STATS
  2187. * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK.
  2188. *
  2189. * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO: Request all radio statistics.
  2190. *
  2191. * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE: Request interface statistics.
  2192. *
  2193. * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER: Request all peer statistics.
  2194. *
  2195. * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER: Request per peer statistics.
  2196. */
  2197. enum qca_wlan_ll_stats_get_req_bitmap {
  2198. QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO = BIT(0),
  2199. QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE = BIT(1),
  2200. QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER = BIT(2),
  2201. QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER = BIT(3),
  2202. };
  2203. enum qca_wlan_vendor_attr_ll_stats_get {
  2204. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
  2205. /* Unsigned 32 bit value provided by the caller issuing the GET stats
  2206. * command. When reporting the stats results, the driver uses the same
  2207. * value to indicate which GET request the results correspond to.
  2208. */
  2209. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
  2210. /* Unsigned 32 bit value - bit mask to identify what statistics are
  2211. * requested for retrieval specified in the enum
  2212. * qca_wlan_ll_stats_get_req_bitmap
  2213. */
  2214. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
  2215. /* keep last */
  2216. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
  2217. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
  2218. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
  2219. };
  2220. enum qca_wlan_vendor_attr_ll_stats_results {
  2221. QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
  2222. /*
  2223. * For Multi Link Operation (MLO) connection, per-link statistics will
  2224. * be sent inside of %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and
  2225. * cumulative statistics will be sent outside of
  2226. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to maintain backward
  2227. * compatibility with legacy user space. Attributes which don't have
  2228. * explicit documentation for MLO will be sent only outside of
  2229. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK, such attributes values
  2230. * don't depend on whether the connection is MLO capable or not, e.g.,
  2231. * radio and channel specific attributes.
  2232. */
  2233. /* Unsigned 32bit value. Used by the driver; must match the request id
  2234. * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
  2235. */
  2236. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
  2237. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2238. * the link with the best RSSI outside
  2239. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2240. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2241. */
  2242. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
  2243. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2244. * the link with the best RSSI outside
  2245. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2246. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2247. */
  2248. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
  2249. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2250. * the link with the best RSSI outside
  2251. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2252. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2253. */
  2254. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
  2255. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2256. * the link with the best RSSI outside
  2257. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2258. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2259. */
  2260. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
  2261. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2262. * the link with the best RSSI outside
  2263. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2264. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2265. */
  2266. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
  2267. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2268. * the link with the best RSSI outside
  2269. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2270. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2271. */
  2272. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
  2273. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2274. * the link with the best RSSI outside
  2275. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2276. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2277. */
  2278. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
  2279. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
  2280. * nested within the interface stats.
  2281. */
  2282. /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
  2283. * Type = enum wifi_interface_mode.
  2284. */
  2285. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
  2286. /* Interface MAC address. An array of 6 Unsigned int8 */
  2287. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
  2288. /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
  2289. * AUTHENTICATING, etc. valid for STA, CLI only.
  2290. */
  2291. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
  2292. /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
  2293. */
  2294. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
  2295. /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
  2296. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
  2297. /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
  2298. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
  2299. /* For non-MLO connection, BSSID of the AP. For MLO connection, MLD
  2300. * address of the AP. An array of 6 unsigned 8 bit values
  2301. */
  2302. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
  2303. /* Country string advertised by AP. An array of 3 unsigned 8 bit
  2304. * values.
  2305. */
  2306. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
  2307. /* Country string for this association. An array of 3 unsigned 8 bit
  2308. * values.
  2309. */
  2310. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
  2311. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
  2312. * be nested within the interface stats.
  2313. * For an MLO connection, all %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
  2314. * attributes except %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_*
  2315. * indicate the aggregate of all links outside
  2316. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2317. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_* attributes
  2318. * indicate value of the MLO link with the best RSSI outside
  2319. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2320. * These attributes indicate the link specific value inside
  2321. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2322. */
  2323. /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
  2324. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
  2325. /* Unsigned int 32 value corresponding to respective AC */
  2326. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
  2327. /* Unsigned int 32 value corresponding to respective AC */
  2328. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
  2329. /* Unsigned int 32 value corresponding to respective AC */
  2330. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
  2331. /* Unsigned int 32 value corresponding to respective AC */
  2332. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
  2333. /* Unsigned int 32 value corresponding to respective AC */
  2334. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
  2335. /* Unsigned int 32 value corresponding to respective AC */
  2336. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
  2337. /* Unsigned int 32 value corresponding to respective AC */
  2338. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
  2339. /* Unsigned int 32 value corresponding to respective AC */
  2340. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
  2341. /* Unsigned int 32 value corresponding to respective AC */
  2342. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
  2343. /* Unsigned int 32 values corresponding to respective AC */
  2344. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
  2345. /* Unsigned int 32 values corresponding to respective AC */
  2346. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
  2347. /* Unsigned int 32 values corresponding to respective AC */
  2348. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
  2349. /* Unsigned int 32 values corresponding to respective AC */
  2350. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
  2351. /* Unsigned int 32 values corresponding to respective AC */
  2352. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
  2353. /* Unsigned 32 bit value. Number of peers */
  2354. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
  2355. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
  2356. * nested within the interface stats.
  2357. */
  2358. /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
  2359. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
  2360. /* MAC addr corresponding to respective peer. An array of 6 unsigned
  2361. * 8 bit values.
  2362. */
  2363. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
  2364. /* Unsigned int 32 bit value representing capabilities corresponding
  2365. * to respective peer.
  2366. */
  2367. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
  2368. /* Unsigned 32 bit value. Number of rates */
  2369. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
  2370. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
  2371. * are nested within the rate stat.
  2372. */
  2373. /* Wi-Fi Rate - separate attributes defined for individual fields */
  2374. /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
  2375. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
  2376. /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
  2377. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
  2378. /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
  2379. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
  2380. /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
  2381. * in the units of 0.5 Mbps HT/VHT it would be MCS index
  2382. */
  2383. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
  2384. /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
  2385. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
  2386. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
  2387. * nested within the peer info stats.
  2388. */
  2389. /* Unsigned int 32 bit value. Number of successfully transmitted data
  2390. * packets, i.e., with ACK received corresponding to the respective
  2391. * rate.
  2392. */
  2393. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
  2394. /* Unsigned int 32 bit value. Number of received data packets
  2395. * corresponding to the respective rate.
  2396. */
  2397. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
  2398. /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
  2399. * received corresponding to the respective rate.
  2400. */
  2401. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
  2402. /* Unsigned int 32 bit value. Total number of data packet retries for
  2403. * the respective rate.
  2404. */
  2405. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
  2406. /* Unsigned int 32 bit value. Total number of short data packet retries
  2407. * for the respective rate.
  2408. */
  2409. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
  2410. /* Unsigned int 32 bit value. Total number of long data packet retries
  2411. * for the respective rate.
  2412. */
  2413. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
  2414. /* Unsigned 32 bit value. This is used to indicate radio ID of the radio
  2415. * statistics when %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
  2416. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used
  2417. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate radio ID
  2418. * of the MLO link.
  2419. */
  2420. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
  2421. /* Unsigned 32 bit value. Total number of msecs the radio is awake
  2422. * accruing over time.
  2423. */
  2424. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
  2425. /* Unsigned 32 bit value. Total number of msecs the radio is
  2426. * transmitting accruing over time.
  2427. */
  2428. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
  2429. /* Unsigned 32 bit value. Total number of msecs the radio is in active
  2430. * receive accruing over time.
  2431. */
  2432. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
  2433. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2434. * to all scan accruing over time.
  2435. */
  2436. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
  2437. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2438. * to NAN accruing over time.
  2439. */
  2440. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
  2441. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2442. * to GSCAN accruing over time.
  2443. */
  2444. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
  2445. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2446. * to roam scan accruing over time.
  2447. */
  2448. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
  2449. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2450. * to PNO scan accruing over time.
  2451. */
  2452. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
  2453. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2454. * to Hotspot 2.0 scans and GAS exchange accruing over time.
  2455. */
  2456. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
  2457. /* Unsigned 32 bit value. Number of channels. */
  2458. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
  2459. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
  2460. * be nested within the channel stats.
  2461. */
  2462. /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
  2463. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
  2464. /* Unsigned 32 bit value. Primary 20 MHz channel. This is used to
  2465. * indicate the primary frequency of the channel when
  2466. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
  2467. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used inside
  2468. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate the frequency
  2469. * on which the MLO link is operating.
  2470. */
  2471. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
  2472. /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
  2473. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
  2474. /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
  2475. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
  2476. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
  2477. * nested within the radio stats.
  2478. */
  2479. /* Unsigned int 32 bit value representing total number of msecs the
  2480. * radio is awake on that channel accruing over time, corresponding to
  2481. * the respective channel.
  2482. */
  2483. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
  2484. /* Unsigned int 32 bit value representing total number of msecs the CCA
  2485. * register is busy accruing over time corresponding to the respective
  2486. * channel.
  2487. */
  2488. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
  2489. QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
  2490. /* Signifies the nested list of channel attributes
  2491. * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
  2492. */
  2493. QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
  2494. /* Signifies the nested list of peer info attributes
  2495. * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*. For MLO connection,
  2496. * this also contains %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID to
  2497. * indicate on which link the peer is connected.
  2498. */
  2499. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
  2500. /* Signifies the nested list of rate info attributes
  2501. * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
  2502. */
  2503. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
  2504. /* Signifies the nested list of wmm info attributes
  2505. * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
  2506. */
  2507. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
  2508. /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
  2509. * that more stats, e.g., peers or radio, are to follow in the next
  2510. * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
  2511. * Otherwise, it is set to 0.
  2512. */
  2513. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
  2514. /* Unsigned 64 bit value. For an MLO connection, indicates the value of
  2515. * the link with the best RSSI outside
  2516. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2517. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2518. */
  2519. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
  2520. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2521. * the link with the best RSSI outside
  2522. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2523. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2524. */
  2525. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
  2526. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2527. * the link with the best RSSI outside
  2528. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2529. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2530. */
  2531. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
  2532. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2533. * the link with the best RSSI outside
  2534. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2535. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2536. */
  2537. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
  2538. /* Unsigned 32 bit value */
  2539. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
  2540. /* Unsigned 32 bit value */
  2541. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
  2542. /* Number of msecs the radio spent in transmitting for each power level
  2543. */
  2544. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
  2545. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2546. * the link with the best RSSI outside
  2547. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2548. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2549. */
  2550. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
  2551. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2552. * the link with the best RSSI outside
  2553. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2554. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2555. */
  2556. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
  2557. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2558. * the link with the best RSSI outside
  2559. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2560. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2561. */
  2562. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
  2563. /* Unsigned 32 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_PPDU_FAIL_CNT = 82,
  2569. /* Unsigned int 32 value.
  2570. * Pending MSDUs corresponding to respective AC.
  2571. */
  2572. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
  2573. /* u32 value representing total time in milliseconds for which the radio
  2574. * is transmitting on this channel. This attribute will be nested
  2575. * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
  2576. */
  2577. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
  2578. /* u32 value representing total time in milliseconds for which the radio
  2579. * is receiving all 802.11 frames intended for this device on this
  2580. * channel. This attribute will be nested within
  2581. * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
  2582. */
  2583. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
  2584. /* u8 value representing the channel load percentage. Possible values
  2585. * are 0-100.
  2586. */
  2587. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
  2588. /* u8 value representing the time slicing duty cycle percentage.
  2589. * Possible values are 0-100. For an MLO connection, indicates the value
  2590. * of the link with the best RSSI outside
  2591. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2592. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2593. */
  2594. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
  2595. /* Unsigned 32 bit value. The number of Beacon frames which are received
  2596. * from the associated AP and indicate buffered unicast frame(s) for us
  2597. * in the TIM element. For an MLO connection, indicates the value of the
  2598. * link with the best RSSI outside
  2599. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2600. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2601. */
  2602. QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88,
  2603. /* Unsigned 32 bit value. The total number of Beacon frames received
  2604. * from the associated AP that have wrongly indicated buffered unicast
  2605. * traffic in the TIM element for us.
  2606. * Below scenarios will be considered as wrong TIM element beacon:
  2607. * 1) The related TIM element is set in the beacon for STA but STA
  2608. * doesn’t receive any unicast data after this beacon.
  2609. * 2) The related TIM element is still set in the beacon for STA
  2610. * after STA has indicated power save exit by QoS Null Data frame.
  2611. * For an MLO connection, indicates the value of the link with the best
  2612. * RSSI outside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link
  2613. * specific value inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2614. */
  2615. QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89,
  2616. /* Signed 32 bit value. It represents the noise floor calibration value.
  2617. * Possible values are -120~-50 dBm. For an MLO connection, indicates
  2618. * the value of the link with the best RSSI outside
  2619. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2620. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2621. */
  2622. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NF_CAL_VAL = 90,
  2623. /* Attribute used for padding for 64-bit alignment */
  2624. QCA_WLAN_VENDOR_ATTR_LL_STATS_PAD = 91,
  2625. /* Unsigned u8 value, link ID of an MLO link. Used inside nested
  2626. * attribute %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to represent the
  2627. * link ID of the MLO link for which the statistics are embedded in the
  2628. * nested attribute. Used inside nested attribute
  2629. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO to represent the connected
  2630. * link ID of the peer.
  2631. */
  2632. QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID = 92,
  2633. /* A nested array of attributes for each MLO link, each containing
  2634. * per-link statistics of a multi link connection. The attributes used
  2635. * inside this nested attribute are defined in enum
  2636. * qca_wlan_vendor_attr_ll_stats_results.
  2637. *
  2638. * For non-MLO connection, this attribute is not present and the
  2639. * statistics will be sent outside this attribute (without nesting).
  2640. *
  2641. * For MLO connection, this attribute is present and also cumulative
  2642. * statistics of all the links will be sent outside of this attribute
  2643. * to be compatible with legacy user space.
  2644. */
  2645. QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK = 93,
  2646. /* keep last */
  2647. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
  2648. QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
  2649. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
  2650. };
  2651. enum qca_wlan_vendor_attr_ll_stats_type {
  2652. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
  2653. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
  2654. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
  2655. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
  2656. /* keep last */
  2657. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
  2658. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
  2659. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
  2660. };
  2661. #endif /* WLAN_FEATURE_LINK_LAYER_STATS */
  2662. /**
  2663. * enum qca_wlan_vendor_attr_get_supported_features - get supported feature
  2664. *
  2665. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value
  2666. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value
  2667. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last
  2668. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
  2669. */
  2670. enum qca_wlan_vendor_attr_get_supported_features {
  2671. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0,
  2672. QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1,
  2673. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST,
  2674. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX =
  2675. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1,
  2676. };
  2677. /**
  2678. * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui
  2679. *
  2680. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value
  2681. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit
  2682. * value
  2683. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last
  2684. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value
  2685. */
  2686. enum qca_wlan_vendor_attr_set_scanning_mac_oui {
  2687. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0,
  2688. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1,
  2689. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST,
  2690. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX =
  2691. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1,
  2692. };
  2693. /**
  2694. * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
  2695. * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
  2696. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
  2697. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
  2698. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
  2699. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
  2700. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
  2701. */
  2702. enum qca_wlan_vendor_scan_priority {
  2703. QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
  2704. QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
  2705. QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
  2706. QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
  2707. QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
  2708. };
  2709. /**
  2710. * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
  2711. *
  2712. * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
  2713. * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
  2714. * with frequencies to be scanned (in MHz)
  2715. * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
  2716. * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
  2717. * rates to be included
  2718. * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
  2719. * at non CCK rate in 2GHz band
  2720. * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
  2721. * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
  2722. * driver for the specific scan request
  2723. * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
  2724. * request decoded as in enum scan_status
  2725. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
  2726. * scan flag is set
  2727. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
  2728. * randomisation
  2729. * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
  2730. * specific BSSID to scan for.
  2731. * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
  2732. * microseconds. This is a common value which applies across all
  2733. * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
  2734. * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
  2735. * other scan requests. It is a u32 attribute and takes values from enum
  2736. * qca_wlan_vendor_scan_priority. This is an optional attribute.
  2737. * If this attribute is not configured, the driver shall use
  2738. * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
  2739. */
  2740. enum qca_wlan_vendor_attr_scan {
  2741. QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
  2742. QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
  2743. QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
  2744. QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
  2745. QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
  2746. QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
  2747. QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
  2748. QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
  2749. QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
  2750. QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
  2751. QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
  2752. QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
  2753. QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
  2754. QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
  2755. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
  2756. QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
  2757. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
  2758. };
  2759. /**
  2760. * enum scan_status - Specifies the valid values the vendor scan attribute
  2761. * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
  2762. * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
  2763. * new scan results
  2764. * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
  2765. */
  2766. enum scan_status {
  2767. VENDOR_SCAN_STATUS_NEW_RESULTS,
  2768. VENDOR_SCAN_STATUS_ABORTED,
  2769. VENDOR_SCAN_STATUS_MAX,
  2770. };
  2771. /**
  2772. * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix
  2773. *
  2774. * NL attributes for data used by
  2775. * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command.
  2776. *
  2777. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value
  2778. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX:
  2779. * Unsigned 32-bit value
  2780. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE:
  2781. * Unsigned 32-bit value
  2782. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An
  2783. * array of SET_SIZE x Unsigned 32bit values representing concurrency
  2784. * combinations
  2785. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last
  2786. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value
  2787. */
  2788. enum qca_wlan_vendor_attr_get_concurrency_matrix {
  2789. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0,
  2790. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX
  2791. = 1,
  2792. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2,
  2793. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3,
  2794. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST,
  2795. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX =
  2796. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1,
  2797. };
  2798. /**
  2799. * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag
  2800. *
  2801. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value
  2802. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value
  2803. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last
  2804. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value
  2805. */
  2806. enum qca_wlan_vendor_attr_set_no_dfs_flag {
  2807. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0,
  2808. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1,
  2809. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST,
  2810. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX =
  2811. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1,
  2812. };
  2813. /**
  2814. * enum qca_vendor_attr_wisa_cmd
  2815. * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr
  2816. * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32)
  2817. * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last
  2818. * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value
  2819. * WISA setup vendor commands
  2820. */
  2821. enum qca_vendor_attr_wisa_cmd {
  2822. QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
  2823. QCA_WLAN_VENDOR_ATTR_WISA_MODE,
  2824. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
  2825. QCA_WLAN_VENDOR_ATTR_WISA_MAX =
  2826. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
  2827. };
  2828. enum qca_roaming_policy {
  2829. QCA_ROAMING_NOT_ALLOWED,
  2830. QCA_ROAMING_ALLOWED_WITHIN_ESS,
  2831. };
  2832. /**
  2833. * enum qca_roam_reason - Represents the reason codes for roaming. Used by
  2834. * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
  2835. *
  2836. * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
  2837. * reasons.
  2838. *
  2839. * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached
  2840. * the configured threshold.
  2841. *
  2842. * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
  2843. * beacon misses from the then connected AP.
  2844. *
  2845. * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
  2846. * by the connected AP.
  2847. *
  2848. * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a
  2849. * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is
  2850. * not poor.
  2851. *
  2852. * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
  2853. * or environment being very noisy / congested.
  2854. *
  2855. * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
  2856. * from the user (user space).
  2857. *
  2858. * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from
  2859. * connected AP.
  2860. *
  2861. * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
  2862. * breaching out the configured threshold.
  2863. *
  2864. * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
  2865. * transition request.
  2866. *
  2867. * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended,
  2868. * there is no data activity with the AP and the current rssi falls below a
  2869. * certain threshold.
  2870. *
  2871. * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to
  2872. * deauthentication or disassociation frames received from the connected AP.
  2873. *
  2874. * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic
  2875. * scan that happens when there is no candidate AP found during the poor
  2876. * RSSI scan trigger.
  2877. *
  2878. * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan
  2879. * results obtained from an external scan (not aimed at roaming).
  2880. *
  2881. * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to bluetooth
  2882. * connection is established when the station is connected in 2.4 Ghz band.
  2883. *
  2884. * @QCA_ROAM_REASON_STA_KICKOUT: Roam triggered due to continuous TX Data frame
  2885. * failures to the connected AP.
  2886. */
  2887. enum qca_roam_reason {
  2888. QCA_ROAM_REASON_UNKNOWN,
  2889. QCA_ROAM_REASON_PER,
  2890. QCA_ROAM_REASON_BEACON_MISS,
  2891. QCA_ROAM_REASON_POOR_RSSI,
  2892. QCA_ROAM_REASON_BETTER_RSSI,
  2893. QCA_ROAM_REASON_CONGESTION,
  2894. QCA_ROAM_REASON_USER_TRIGGER,
  2895. QCA_ROAM_REASON_BTM,
  2896. QCA_ROAM_REASON_BSS_LOAD,
  2897. QCA_ROAM_REASON_WTC,
  2898. QCA_ROAM_REASON_IDLE,
  2899. QCA_ROAM_REASON_DISCONNECTION,
  2900. QCA_ROAM_REASON_PERIODIC_TIMER,
  2901. QCA_ROAM_REASON_BACKGROUND_SCAN,
  2902. QCA_ROAM_REASON_BT_ACTIVITY,
  2903. QCA_ROAM_REASON_STA_KICKOUT,
  2904. };
  2905. /**
  2906. * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming
  2907. *
  2908. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE
  2909. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE
  2910. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status
  2911. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter
  2912. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK
  2913. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK
  2914. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status
  2915. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS:
  2916. * Indicates the status of re-association requested by user space for
  2917. * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
  2918. * Type u16.
  2919. * Represents the status code from AP. Use
  2920. * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
  2921. * real status code for failures.
  2922. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION:
  2923. * This attribute indicates that the old association was maintained when
  2924. * a re-association is requested by user space and that re-association
  2925. * attempt fails (i.e., cannot connect to the requested BSS, but can
  2926. * remain associated with the BSS with which the association was in
  2927. * place when being requested to roam). Used along with
  2928. * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
  2929. * re-association status. Type flag.
  2930. * This attribute is applicable only for re-association failure cases.
  2931. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK
  2932. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID
  2933. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next
  2934. * seq number
  2935. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value
  2936. * representing the reasons for the roaming. Defined by enum
  2937. * qca_roam_reason.
  2938. */
  2939. enum qca_wlan_vendor_attr_roam_auth {
  2940. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
  2941. /* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address
  2942. * of the roamed AP for MLO roaming.
  2943. */
  2944. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
  2945. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
  2946. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
  2947. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
  2948. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
  2949. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
  2950. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
  2951. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
  2952. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
  2953. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
  2954. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK,
  2955. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID,
  2956. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM,
  2957. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON,
  2958. /* A nested attribute containing per-link information of all the links
  2959. * of MLO connection done while roaming. The attributes used inside this
  2960. * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links.
  2961. */
  2962. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15,
  2963. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
  2964. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
  2965. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
  2966. };
  2967. /**
  2968. * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside
  2969. * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS.
  2970. *
  2971. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link.
  2972. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link.
  2973. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link.
  2974. */
  2975. enum qca_wlan_vendor_attr_mlo_links {
  2976. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0,
  2977. QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1,
  2978. QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2,
  2979. QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3,
  2980. /* Keep last */
  2981. QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST,
  2982. QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX =
  2983. QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1,
  2984. };
  2985. /**
  2986. * enum qca_wlan_vendor_attr_wifi_config - wifi config
  2987. *
  2988. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value
  2989. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM
  2990. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor
  2991. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time
  2992. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last
  2993. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value
  2994. */
  2995. enum qca_wlan_vendor_attr_wifi_config {
  2996. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0,
  2997. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1,
  2998. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2,
  2999. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3,
  3000. /* keep last */
  3001. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST,
  3002. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX =
  3003. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1,
  3004. };
  3005. /**
  3006. * enum qca_wlan_epno_type - the type of request to the EPNO command
  3007. * @QCA_WLAN_EPNO: epno type request
  3008. * @QCA_WLAN_PNO: pno type request
  3009. */
  3010. enum qca_wlan_epno_type {
  3011. QCA_WLAN_EPNO,
  3012. QCA_WLAN_PNO
  3013. };
  3014. /**
  3015. * enum qca_wlan_vendor_attr_pno_config_params - pno config params
  3016. *
  3017. * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value
  3018. *
  3019. * NL attributes for data used by
  3020. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
  3021. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM:
  3022. * Unsigned 32-bit value; pno passpoint number of networks
  3023. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY:
  3024. * Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
  3025. * attributes. Array size =
  3026. * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
  3027. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID:
  3028. * Unsigned 32-bit value; network id
  3029. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM:
  3030. * An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded
  3031. * realm, 0 if unspecified.
  3032. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID:
  3033. * An array of 16 x Unsigned 32-bit value; roaming consortium ids
  3034. * to match, 0 if unspecified.
  3035. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN:
  3036. * An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if
  3037. * unspecified.
  3038. *
  3039. * NL attributes for data used by
  3040. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
  3041. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS:
  3042. * Unsigned 32-bit value; set pno number of networks
  3043. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST:
  3044. * Array of nested
  3045. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
  3046. * attributes. Array size =
  3047. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS
  3048. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID:
  3049. * An array of 33 x Unsigned 8-bit value; NULL terminated SSID
  3050. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD:
  3051. * Signed 8-bit value; threshold for considering this SSID as found,
  3052. * required granularity for this threshold is 4dBm to 8dBm
  3053. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS:
  3054. * Unsigned 8-bit value; WIFI_PNO_FLAG_XXX
  3055. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT:
  3056. * Unsigned 8-bit value; auth bit field for matching WPA IE
  3057. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE
  3058. * Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type
  3059. *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST
  3060. * Nested attribute to send the channel list
  3061. *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL
  3062. * Unsigned 32-bit value; indicates the Interval between PNO scan
  3063. * cycles in msec
  3064. *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI
  3065. * Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered
  3066. *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI
  3067. * Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered
  3068. * This attribute is obsolete now.
  3069. *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX
  3070. * Signed 32-bit value; the maximum score that a network
  3071. * can have before bonuses
  3072. *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS
  3073. * Signed 32-bit value; only report when there is a network's
  3074. * score this much higher han the current connection
  3075. *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS
  3076. * Signed 32-bit value; score bonus for all networks with
  3077. * the same network flag
  3078. *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS
  3079. * Signed 32-bit value; score bonus for networks that are not open
  3080. *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS
  3081. * Signed 32-bit value; 5GHz RSSI score bonus applied to all
  3082. * 5GHz networks
  3083. *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID
  3084. * Unsigned 32-bit value, representing the PNO Request ID
  3085. * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last
  3086. * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max
  3087. */
  3088. enum qca_wlan_vendor_attr_pno_config_params {
  3089. QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
  3090. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
  3091. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
  3092. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
  3093. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
  3094. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
  3095. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
  3096. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
  3097. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
  3098. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
  3099. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10,
  3100. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
  3101. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
  3102. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
  3103. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
  3104. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
  3105. QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
  3106. QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
  3107. QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
  3108. QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
  3109. QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
  3110. QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
  3111. QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
  3112. QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
  3113. /* keep last */
  3114. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
  3115. QCA_WLAN_VENDOR_ATTR_PNO_MAX =
  3116. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
  3117. };
  3118. /**
  3119. * enum qca_scan_freq_list_type: Frequency list types
  3120. *
  3121. * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
  3122. * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
  3123. * a preferred frequency list for roaming.
  3124. *
  3125. * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
  3126. * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
  3127. * a specific frequency list for roaming.
  3128. */
  3129. enum qca_scan_freq_list_type {
  3130. QCA_PREFERRED_SCAN_FREQ_LIST = 1,
  3131. QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
  3132. };
  3133. /**
  3134. * enum qca_roam_scan_scheme: scan scheme
  3135. *
  3136. * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No Frequencies specified to scan.
  3137. * Indicates the driver to not scan on a Roam Trigger scenario, but
  3138. * Disconnect.e.g., On a BTM request from the AP driver/firmware shall
  3139. * disconnect from the current connected AP by notifying a failure
  3140. * code in the BTM response.
  3141. *
  3142. * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
  3143. * trigger partial frequency scans. These frequencies are the ones learnt
  3144. * or maintained by the driver based on the probability of finding the
  3145. * BSSID's in the ESS for which the roaming is triggered.
  3146. *
  3147. * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
  3148. * trigger the scan on all the valid frequencies to find the better
  3149. * candidates to roam.
  3150. */
  3151. enum qca_roam_scan_scheme {
  3152. QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
  3153. QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
  3154. QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
  3155. };
  3156. /**
  3157. * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
  3158. *
  3159. * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values.
  3160. * List of frequencies in MHz to be considered for a roam scan.
  3161. *
  3162. * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
  3163. * Type of frequency list scheme being configured/gotten as defined by the
  3164. * enum qca_scan_freq_list_type.
  3165. */
  3166. enum qca_vendor_attr_scan_freq_list_scheme {
  3167. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
  3168. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
  3169. /* keep last */
  3170. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
  3171. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
  3172. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
  3173. };
  3174. /*
  3175. * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
  3176. *
  3177. * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
  3178. * a bad packet error rates (PER).
  3179. * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
  3180. * based on beacon misses from the connected AP.
  3181. * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
  3182. * due to poor RSSI of the connected AP.
  3183. * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
  3184. * upon finding a BSSID with a better RSSI than the connected BSSID.
  3185. * Here the RSSI of the current BSSID need not be poor.
  3186. * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
  3187. * by triggering a periodic scan to find a better AP to roam.
  3188. * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
  3189. * when the connected channel environment is too noisy/congested.
  3190. * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
  3191. * when BTM Request frame is received from the connected AP.
  3192. * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
  3193. * when the channel utilization is goes above the configured threshold.
  3194. * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
  3195. * based on the request from the user (space).
  3196. * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
  3197. * device receives Deauthentication/Disassociation frame from connected
  3198. * AP.
  3199. * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
  3200. * DUT is in idle state (no tx/rx) and suspend mode, if the current RSSI
  3201. * is determined to be a poor one.
  3202. * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
  3203. * based on continuous TX Data Frame failures to the connected AP.
  3204. * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
  3205. * based on the scan results obtained from an external scan (not
  3206. * triggered to aim roaming)
  3207. *
  3208. * Set the corresponding roam trigger reason bit to consider it for roam
  3209. * trigger.
  3210. * Userspace can set multiple bits and send to the driver. The driver shall
  3211. * consider all of them to trigger/initiate a roam scan.
  3212. */
  3213. enum qca_vendor_roam_triggers {
  3214. QCA_ROAM_TRIGGER_REASON_PER = 1 << 0,
  3215. QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1,
  3216. QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2,
  3217. QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3,
  3218. QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4,
  3219. QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5,
  3220. QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6,
  3221. QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7,
  3222. QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8,
  3223. QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9,
  3224. QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10,
  3225. QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11,
  3226. QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12,
  3227. };
  3228. /*
  3229. * enum qca_vendor_roam_fail_reasons: Defines the various roam
  3230. * fail reasons. This enum value is used in
  3231. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
  3232. *
  3233. * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
  3234. * able to trigger the scan.
  3235. * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
  3236. * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
  3237. * scan.
  3238. * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
  3239. * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
  3240. * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
  3241. * status code.
  3242. * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
  3243. * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
  3244. * frame.
  3245. * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
  3246. * with error status code.
  3247. * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
  3248. * received.
  3249. * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
  3250. * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
  3251. * frame.
  3252. * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
  3253. * internally before transmission.
  3254. * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
  3255. * Request frame.
  3256. * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
  3257. * dropped internally.
  3258. * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
  3259. * times out.
  3260. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
  3261. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
  3262. * internally.
  3263. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
  3264. * M2 frame.
  3265. * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
  3266. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
  3267. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
  3268. * internally.
  3269. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
  3270. * frame.
  3271. * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
  3272. * started for final beacon miss case.
  3273. * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
  3274. * received from the AP during roaming handoff.
  3275. * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
  3276. * or host is suspended and gives the indication of the last roamed AP only
  3277. * when the Apps is resumed. If the Apps is resumed while the roaming is in
  3278. * progress, this ongoing roaming is aborted and the last roamed AP is
  3279. * indicated to host.
  3280. * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
  3281. * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
  3282. * out.
  3283. * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
  3284. * @QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK: Roam scan did not happen since the
  3285. * current network conditions are fine.
  3286. */
  3287. enum qca_vendor_roam_fail_reasons {
  3288. QCA_ROAM_FAIL_REASON_NONE = 0,
  3289. QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
  3290. QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
  3291. QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
  3292. QCA_ROAM_FAIL_REASON_HOST = 4,
  3293. QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
  3294. QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
  3295. QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
  3296. QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
  3297. QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
  3298. QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
  3299. QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
  3300. QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
  3301. QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
  3302. QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
  3303. QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
  3304. QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
  3305. QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
  3306. QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
  3307. QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
  3308. QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
  3309. QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
  3310. QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
  3311. QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
  3312. QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
  3313. QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
  3314. QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
  3315. QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
  3316. QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
  3317. QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
  3318. QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK = 30,
  3319. };
  3320. /*
  3321. * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
  3322. * invoke fail reasons. This enum value is used in
  3323. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
  3324. *
  3325. * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
  3326. * in roam invoke command.
  3327. * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
  3328. * enabled.
  3329. * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
  3330. * length is invalid.
  3331. * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
  3332. * in progress.
  3333. * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
  3334. * of the AP in the roam invoke command to firmware. This reason is sent by the
  3335. * firmware when the given AP is configured to be ignored or SSID/security
  3336. * does not match.
  3337. * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
  3338. * firmware internal reasons.
  3339. * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
  3340. * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
  3341. * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
  3342. * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
  3343. * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
  3344. * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
  3345. */
  3346. enum qca_vendor_roam_invoke_fail_reasons {
  3347. QCA_ROAM_INVOKE_STATUS_NONE = 0,
  3348. QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
  3349. QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
  3350. QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
  3351. QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
  3352. QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
  3353. QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
  3354. QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
  3355. QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
  3356. QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
  3357. QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
  3358. QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
  3359. QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
  3360. };
  3361. /**
  3362. * enum qca_vendor_attr_roam_candidate_selection_criteria:
  3363. *
  3364. * Each attribute carries a weightage in percentage (%).
  3365. *
  3366. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
  3367. * Represents the weightage to be given for the RSSI selection
  3368. * criteria among other parameters.
  3369. *
  3370. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
  3371. * Represents the weightage to be given for the rate selection
  3372. * criteria among other parameters.
  3373. *
  3374. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
  3375. * Represents the weightage to be given for the band width selection
  3376. * criteria among other parameters.
  3377. *
  3378. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
  3379. * Represents the weightage to be given for the band selection
  3380. * criteria among other parameters.
  3381. *
  3382. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
  3383. * Represents the weightage to be given for the NSS selection
  3384. * criteria among other parameters.
  3385. *
  3386. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
  3387. * Represents the weightage to be given for the channel congestion
  3388. * selection criteria among other parameters.
  3389. *
  3390. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
  3391. * Represents the weightage to be given for the beamforming selection
  3392. * criteria among other parameters.
  3393. *
  3394. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
  3395. * Represents the weightage to be given for the OCE selection
  3396. * criteria among other parameters.
  3397. */
  3398. enum qca_vendor_attr_roam_candidate_selection_criteria {
  3399. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
  3400. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
  3401. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
  3402. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
  3403. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
  3404. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
  3405. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
  3406. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
  3407. /* keep last */
  3408. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
  3409. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
  3410. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
  3411. };
  3412. /**
  3413. * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
  3414. * The following attributes are used to set/get/clear the respective
  3415. * configurations to/from the driver.
  3416. * For the get, the attribute for the configuration to be queried shall
  3417. * carry any of its acceptable values to the driver. In return, the driver
  3418. * shall send the configured values within the same attribute to the user
  3419. * space.
  3420. *
  3421. * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
  3422. * Signifies to enable/disable roam control in driver.
  3423. * 1-enable, 0-disable
  3424. * Enable: Mandates the driver to do the further roams using the
  3425. * configuration parameters set through
  3426. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
  3427. * Disable: Disables the driver/firmware roaming triggered through
  3428. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
  3429. * expected to continue with the default configurations.
  3430. *
  3431. * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
  3432. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
  3433. * Roam control status is obtained through this attribute.
  3434. *
  3435. * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
  3436. * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
  3437. * is to be cleared in the driver.
  3438. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
  3439. * and shall be ignored if used with other sub commands.
  3440. * If this attribute is specified along with subcmd
  3441. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
  3442. * all other attributes, if there are any.
  3443. * If this attribute is not specified when the subcmd
  3444. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
  3445. * clear the data corresponding to the attributes specified.
  3446. *
  3447. * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
  3448. * list of frequencies and its type, represented by
  3449. * enum qca_vendor_attr_scan_freq_list_scheme.
  3450. * Frequency list and its type are mandatory for this attribute to set
  3451. * the frequencies.
  3452. * Frequency type is mandatory for this attribute to get the frequencies
  3453. * and the frequency list is obtained through
  3454. * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
  3455. * Frequency list type is mandatory for this attribute to clear the
  3456. * frequencies.
  3457. *
  3458. * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
  3459. * Carries the value of scan period in seconds to set.
  3460. * The value of scan period is obtained with the same attribute for get.
  3461. * Clears the scan period in the driver when specified with clear command.
  3462. * Scan period is the idle time in seconds between each subsequent
  3463. * channel scans.
  3464. *
  3465. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
  3466. * Carries the value of full scan period in seconds to set.
  3467. * The value of full scan period is obtained with the same attribute for
  3468. * get.
  3469. * Clears the full scan period in the driver when specified with clear
  3470. * command. Full scan period is the idle period in seconds between two
  3471. * successive full channel roam scans.
  3472. *
  3473. * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
  3474. * Carries a bitmap of the roam triggers specified in
  3475. * enum qca_vendor_roam_triggers.
  3476. * The driver shall enable roaming by enabling corresponding roam triggers
  3477. * based on the trigger bits sent with this attribute.
  3478. * If this attribute is not configured, the driver shall proceed with
  3479. * default behavior.
  3480. * The bitmap configured is obtained with the same attribute for get.
  3481. * Clears the bitmap configured in driver when specified with clear
  3482. * command.
  3483. *
  3484. * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
  3485. * weightage in percentage (%) to be given for each selection criteria.
  3486. * Different roam candidate selection criteria are represented by
  3487. * enum qca_vendor_attr_roam_candidate_selection_criteria.
  3488. * The driver shall select the roam candidate based on corresponding
  3489. * candidate selection scores sent.
  3490. *
  3491. * An empty nested attribute is used to indicate that no specific
  3492. * preference score/criteria is configured (i.e., to disable this mechanism
  3493. * in the set case and to show that the mechanism is disabled in the get
  3494. * case).
  3495. *
  3496. * Userspace can send multiple attributes out of this enum to the driver.
  3497. * Since this attribute represents the weight/percentage of preference for
  3498. * the respective selection criteria, it is preferred to configure 100%
  3499. * total weightage. The value in each attribute or cumulative weight of the
  3500. * values in all the nested attributes should not exceed 100%. The driver
  3501. * shall reject such configuration.
  3502. *
  3503. * If the weights configured through this attribute are less than 100%,
  3504. * the driver shall honor the weights (x%) passed for the corresponding
  3505. * selection criteria and choose/distribute rest of the weight (100-x)%
  3506. * for the other selection criteria, based on its internal logic.
  3507. *
  3508. * The selection criteria configured is obtained with the same
  3509. * attribute for get.
  3510. *
  3511. * Clears the selection criteria configured in the driver when specified
  3512. * with clear command.
  3513. *
  3514. * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
  3515. * Represents value of scan frequency scheme from
  3516. * enum qca_roam_scan_scheme.
  3517. *
  3518. * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
  3519. * signifying the RSSI threshold of the current connected AP, indicating
  3520. * the driver to trigger roam only when the current connected AP's RSSI
  3521. * is lesser than this threshold.
  3522. *
  3523. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
  3524. * signifying the RSSI threshold of the candidate AP, indicating
  3525. * the driver to trigger roam only to the candidate AP with RSSI
  3526. * better than this threshold. If RSSI thresholds for candidate APs found
  3527. * in the 2.4GHz, 5GHz and 6Ghz bands are configured separately using
  3528. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
  3529. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
  3530. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, then those values
  3531. * will take precedence over the value configured using
  3532. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
  3533. *
  3534. * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
  3535. * user triggered reason code to be sent to the AP in response to AP's
  3536. * request to trigger the roam if the roaming cannot be triggered.
  3537. * Applies to all the scenarios of AP assisted roaming (e.g., BTM).
  3538. *
  3539. * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
  3540. * Carries a bitmap of the roam triggers specified in
  3541. * enum qca_vendor_roam_triggers.
  3542. * Represents the roam triggers for which the specific scan scheme from
  3543. * enum qca_roam_scan_scheme has to be applied.
  3544. * It's an optional attribute. If this attribute is not configured, but
  3545. * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, then the scan scheme
  3546. * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
  3547. * all the roams.
  3548. * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
  3549. * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
  3550. * driver shall proceed with the default behavior.
  3551. *
  3552. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
  3553. * in dBm, signifying the RSSI threshold of the candidate AP found in
  3554. * 2.4GHz band. The driver/firmware shall trigger roaming to the candidate
  3555. * AP found in 2.4GHz band only if it's RSSI value is better than this
  3556. * threshold. Optional attribute. If this attribute is not included, then
  3557. * threshold value specified by the
  3558. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3559. *
  3560. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
  3561. * dBm, signifying the RSSI threshold of the candidate AP found in 5GHz
  3562. * band. The driver/firmware shall trigger roaming to the candidate AP
  3563. * found in 5GHz band only if it's RSSI value is better than this
  3564. * threshold. Optional attribute. If this attribute is not included, then
  3565. * threshold value specified by the
  3566. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3567. *
  3568. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
  3569. * dBm, signifying the RSSI threshold of the candidate AP found in 6GHz
  3570. * band. The driver/firmware shall trigger roaming to the candidate AP
  3571. * found in 6GHz band only if it's RSSI value is better than this
  3572. * threshold. Optional attribute. If this attribute is not included, then
  3573. * threshold value specified by the
  3574. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3575. *
  3576. * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
  3577. * Carries bitmask value of bits from &enum qca_set_band and represents
  3578. * all the bands in which roaming is allowed. The configuration is valid
  3579. * until next disconnection. If this attribute is not present, the
  3580. * existing configuration shall be used. By default, roaming is allowed
  3581. * on all bands supported by local device. When the value is set to
  3582. * %QCA_SETBAND_AUTO, all supported bands shall be enabled.
  3583. *
  3584. * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps.
  3585. * Optional parameter. RX link speed threshold to disable roaming.
  3586. * If the current RX link speed is above the threshold, roaming is not
  3587. * needed. If this attribute is not configured, or if it is set to 0, the
  3588. * driver will not consider the RX link speed in the roaming decision.
  3589. *
  3590. * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds.
  3591. * Optional parameter. This configuration delays hand-off (in msec) by the
  3592. * specified duration to receive pending rx frames from current BSS.
  3593. *
  3594. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit
  3595. * value.
  3596. * During the roam scan, if there are no desired APs found in the partial
  3597. * frequency list, an immediate full scan on all the supported frequencies
  3598. * is initiated as a fallback. This flag controls the frequency list
  3599. * creation for the full scan on the following lines.
  3600. * 1 - Full scan to exclude the frequencies that were already scanned by
  3601. * the previous partial scan.
  3602. * 0 - Full scan to include all the supported frequencies irrespective of
  3603. * the ones part of the earlier partial scan.
  3604. * If this flag is not specified, a full scan shall include all the
  3605. * supported frequencies irrespective of the ones part of an earlier
  3606. * partial scan.
  3607. *
  3608. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit
  3609. * value.
  3610. * During the roam scan, if there are no desired APs found in the partial
  3611. * frequency list, an immediate full scan on all the supported frequencies
  3612. * is initiated as a fallback. This full scan would add the 2.4/5/6 GHz
  3613. * frequencies, including all PSC frequencies by default. This attribute
  3614. * controls the inclusion of the 6 GHz PSC frequencies for the full scan
  3615. * as following.
  3616. * 1 - Full scan to include the supported 6 GHz PSC frequencies only on the
  3617. * prior discovery of any 6 GHz frequency support in the environment.
  3618. * This discovery can happen through a prior RNR, 11k neighbor
  3619. * request, 11v BTM request, host scan, etc.
  3620. * 0 - Default behavior. Full scan to include all the supported 6 GHz
  3621. * PSC frequencies regardless of whether 6 GHz BSSs have been
  3622. * discovered.
  3623. * The default behavior if this flag is not specified is to include all
  3624. * the supported 6 GHz PSC frequencies in the roam full scan.
  3625. */
  3626. enum qca_vendor_attr_roam_control {
  3627. QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
  3628. QCA_ATTR_ROAM_CONTROL_STATUS = 2,
  3629. QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
  3630. QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
  3631. QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
  3632. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
  3633. QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
  3634. QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
  3635. QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
  3636. QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
  3637. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
  3638. QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
  3639. QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
  3640. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
  3641. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
  3642. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
  3643. QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
  3644. QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD = 24,
  3645. QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25,
  3646. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26,
  3647. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27,
  3648. /* keep last */
  3649. QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
  3650. QCA_ATTR_ROAM_CONTROL_MAX =
  3651. QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
  3652. };
  3653. /**
  3654. * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
  3655. * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
  3656. *
  3657. * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
  3658. * Represents the different roam sub commands referred by
  3659. * enum qca_wlan_vendor_roaming_subcmd.
  3660. *
  3661. * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
  3662. * Represents the Request ID for the specific set of commands.
  3663. * This also helps to map specific set of commands to the respective
  3664. * ID / client. e.g., helps to identify the user entity configuring the
  3665. * Blacklist BSSID and accordingly clear the respective ones with the
  3666. * matching ID.
  3667. *
  3668. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
  3669. * 32-bit value.Represents the number of whitelist SSIDs configured.
  3670. *
  3671. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
  3672. * to carry the list of Whitelist SSIDs.
  3673. *
  3674. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
  3675. * 0..32 octets). Represents the white list SSID. Whitelist SSIDs
  3676. * represent the list of SSIDs to which the firmware/driver can consider
  3677. * to roam to.
  3678. *
  3679. * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
  3680. * comparing with a 2.4GHz BSSID. They are not applied when comparing two
  3681. * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
  3682. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS.
  3683. *
  3684. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
  3685. * value, RSSI threshold above which 5GHz RSSI is favored.
  3686. *
  3687. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
  3688. * value, RSSI threshold below which 5GHz RSSI is penalized.
  3689. *
  3690. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
  3691. * value, factor by which 5GHz RSSI is boosted.
  3692. * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
  3693. *
  3694. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
  3695. * value, factor by which 5GHz RSSI is penalized.
  3696. * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
  3697. *
  3698. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
  3699. * value, maximum boost that can be applied to a 5GHz RSSI.
  3700. *
  3701. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
  3702. * value, boost applied to current BSSID to ensure the currently
  3703. * associated BSSID is favored so as to prevent ping-pong situations.
  3704. *
  3705. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
  3706. * value, RSSI below which "Alert" roam is enabled.
  3707. * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID
  3708. * because the RSSI is low, or because many successive beacons have been
  3709. * lost or other bad link conditions.
  3710. *
  3711. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
  3712. * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
  3713. * firmware is hunting for a better BSSID or white listed SSID even though
  3714. * the RSSI of the link is good. The parameters enabling the roaming are
  3715. * configured through the PARAM_A_BAND_XX attrbutes.
  3716. *
  3717. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
  3718. * represents the BSSIDs preferred over others while evaluating them
  3719. * for the roaming.
  3720. *
  3721. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
  3722. * 32-bit value. Represents the number of preferred BSSIDs set.
  3723. *
  3724. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
  3725. * address representing the BSSID to be preferred.
  3726. *
  3727. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
  3728. * 32-bit value, representing the modifier to be applied to the RSSI of
  3729. * the BSSID for the purpose of comparing it with other roam candidate.
  3730. *
  3731. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
  3732. * represents the BSSIDs to get blacklisted for roaming.
  3733. *
  3734. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
  3735. * 32-bit value, represents the number of blacklisted BSSIDs.
  3736. *
  3737. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
  3738. * address representing the Blacklisted BSSID.
  3739. *
  3740. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
  3741. * indicates this BSSID blacklist as a hint to the driver. The driver can
  3742. * select this BSSID in the worst case (when no other BSSIDs are better).
  3743. *
  3744. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
  3745. * set/get/clear the roam control config as
  3746. * defined @enum qca_vendor_attr_roam_control.
  3747. *
  3748. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last
  3749. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max
  3750. */
  3751. enum qca_wlan_vendor_attr_roaming_config_params {
  3752. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
  3753. QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
  3754. QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
  3755. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
  3756. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
  3757. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
  3758. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
  3759. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
  3760. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
  3761. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
  3762. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
  3763. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
  3764. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
  3765. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
  3766. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
  3767. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
  3768. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
  3769. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
  3770. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
  3771. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
  3772. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
  3773. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
  3774. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
  3775. /* keep last */
  3776. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
  3777. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
  3778. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
  3779. };
  3780. /**
  3781. * enum qca_wlan_vendor_roaming_subcmd: Referred by
  3782. * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
  3783. *
  3784. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
  3785. * configure the white list SSIDs. These are configured through
  3786. * the following attributes.
  3787. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
  3788. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
  3789. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
  3790. *
  3791. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to
  3792. * configure the Roam params. These parameters are evaluated on the extscan
  3793. * results. Refers the attributes PARAM_A_BAND_XX above to configure the
  3794. * params.
  3795. *
  3796. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
  3797. * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
  3798. * to enable/disable Lazy roam.
  3799. *
  3800. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
  3801. * preference. Contains the attribute
  3802. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
  3803. * preference.
  3804. *
  3805. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params
  3806. *
  3807. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist
  3808. * BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to
  3809. * set the same.
  3810. *
  3811. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
  3812. * roam control config to the driver with the attribute
  3813. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3814. *
  3815. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
  3816. * roam control config from driver with the attribute
  3817. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3818. * For the get, the attribute for the configuration to be queried shall
  3819. * carry any of its acceptable value to the driver. In return, the driver
  3820. * shall send the configured values within the same attribute to the user
  3821. * space.
  3822. *
  3823. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
  3824. * roam control config in the driver with the attribute
  3825. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3826. * The driver shall continue with its default roaming behavior when data
  3827. * corresponding to an attribute is cleared.
  3828. */
  3829. enum qca_wlan_vendor_roaming_subcmd {
  3830. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
  3831. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2,
  3832. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
  3833. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
  3834. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
  3835. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
  3836. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
  3837. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
  3838. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
  3839. };
  3840. /**
  3841. * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information
  3842. *
  3843. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value
  3844. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version
  3845. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version
  3846. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index
  3847. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last
  3848. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max
  3849. */
  3850. enum qca_wlan_vendor_attr_get_wifi_info {
  3851. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
  3852. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
  3853. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
  3854. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
  3855. /* KEEP LAST */
  3856. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
  3857. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
  3858. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
  3859. };
  3860. enum qca_wlan_vendor_attr_logger_results {
  3861. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
  3862. /*
  3863. * Unsigned 32-bit value; must match the request Id supplied by
  3864. * Wi-Fi HAL in the corresponding subcmd NL msg.
  3865. */
  3866. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
  3867. /*
  3868. * Unsigned 32-bit value; used to indicate the size of memory
  3869. * dump to be allocated.
  3870. */
  3871. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
  3872. /* keep last */
  3873. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
  3874. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
  3875. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
  3876. };
  3877. /**
  3878. * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
  3879. * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
  3880. */
  3881. enum qca_wlan_vendor_channel_prop_flags {
  3882. /* Bits 0, 1, 2, and 3 are reserved */
  3883. /* Turbo channel */
  3884. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
  3885. /* CCK channel */
  3886. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
  3887. /* OFDM channel */
  3888. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
  3889. /* 2.4 GHz spectrum channel. */
  3890. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
  3891. /* 5 GHz spectrum channel */
  3892. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
  3893. /* Only passive scan allowed */
  3894. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
  3895. /* Dynamic CCK-OFDM channel */
  3896. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
  3897. /* GFSK channel (FHSS PHY) */
  3898. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
  3899. /* Radar found on channel */
  3900. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
  3901. /* 11a static turbo channel only */
  3902. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
  3903. /* Half rate channel */
  3904. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
  3905. /* Quarter rate channel */
  3906. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
  3907. /* HT 20 channel */
  3908. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
  3909. /* HT 40 with extension channel above */
  3910. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
  3911. /* HT 40 with extension channel below */
  3912. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
  3913. /* HT 40 intolerant */
  3914. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
  3915. /* VHT 20 channel */
  3916. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
  3917. /* VHT 40 with extension channel above */
  3918. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
  3919. /* VHT 40 with extension channel below */
  3920. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
  3921. /* VHT 80 channel */
  3922. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
  3923. /* HT 40 intolerant mark bit for ACS use */
  3924. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
  3925. /* Channel temporarily blocked due to noise */
  3926. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
  3927. /* VHT 160 channel */
  3928. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
  3929. /* VHT 80+80 channel */
  3930. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
  3931. /* HE 20 channel */
  3932. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
  3933. /* HE 40 with extension channel above */
  3934. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
  3935. /* HE 40 with extension channel below */
  3936. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
  3937. /* HE 40 intolerant */
  3938. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1U << 31,
  3939. };
  3940. /**
  3941. * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
  3942. * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
  3943. * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
  3944. */
  3945. enum qca_wlan_vendor_channel_prop_flags_2 {
  3946. /* HE 40 intolerant mark bit for ACS use */
  3947. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
  3948. /* HE 80 channel */
  3949. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
  3950. /* HE 160 channel */
  3951. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
  3952. /* HE 80+80 channel */
  3953. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
  3954. };
  3955. /**
  3956. * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
  3957. * each channel. This is used by
  3958. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
  3959. */
  3960. enum qca_wlan_vendor_channel_prop_flags_ext {
  3961. /* Radar found on channel */
  3962. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
  3963. /* DFS required on channel */
  3964. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
  3965. /* DFS required on channel for 2nd band of 80+80 */
  3966. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
  3967. /* If channel has been checked for DFS */
  3968. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
  3969. /* Excluded in 802.11d */
  3970. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
  3971. /* Channel Switch Announcement received on this channel */
  3972. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
  3973. /* Ad-hoc is not allowed */
  3974. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
  3975. /* Station only channel */
  3976. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
  3977. /* DFS radar history for slave device (STA mode) */
  3978. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
  3979. /* DFS CAC valid for slave device (STA mode) */
  3980. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
  3981. };
  3982. /**
  3983. * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
  3984. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
  3985. * information to start/stop the NUD statistics collection.
  3986. */
  3987. enum qca_attr_nud_stats_set {
  3988. QCA_ATTR_NUD_STATS_SET_INVALID = 0,
  3989. /*
  3990. * Flag to start/stop the NUD statistics collection.
  3991. * Start - If included, Stop - If not included
  3992. */
  3993. QCA_ATTR_NUD_STATS_SET_START = 1,
  3994. /* IPv4 address of the default gateway (in network byte order) */
  3995. QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
  3996. /*
  3997. * Represents the data packet type to be monitored.
  3998. * Host driver tracks the stats corresponding to each data frame
  3999. * represented by these flags.
  4000. * These data packets are represented by
  4001. * enum qca_wlan_vendor_nud_stats_set_data_pkt_info.
  4002. */
  4003. QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
  4004. /* keep last */
  4005. QCA_ATTR_NUD_STATS_SET_LAST,
  4006. QCA_ATTR_NUD_STATS_SET_MAX =
  4007. QCA_ATTR_NUD_STATS_SET_LAST - 1,
  4008. };
  4009. /**
  4010. * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd
  4011. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  4012. * information to start / stop the NUD stats collection.
  4013. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats
  4014. * Bitmap to Flag to Start / Stop the NUD stats collection
  4015. * Start - If included , Stop - If not included
  4016. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gateway ipv4 address
  4017. * IPv4 address of Default Gateway (in network byte order)
  4018. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  4019. * information to start / stop the NUD stats collection.
  4020. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats
  4021. * Flag to Start / Stop the NUD stats collection
  4022. * Start - If included , Stop - If not included
  4023. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gateway ipv4 address
  4024. * IPv4 address of Default Gateway (in network byte order)
  4025. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  4026. * information to start / stop the NUD stats collection.
  4027. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats
  4028. * Flag to Start / Stop the NUD stats collection
  4029. * Start - If included , Stop - If not included
  4030. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gateway ipv4 address
  4031. * IPv4 address of Default Gateway (in network byte order)
  4032. */
  4033. enum qca_attr_connectivity_check_stats_set {
  4034. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0,
  4035. QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1,
  4036. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2,
  4037. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3,
  4038. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4,
  4039. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5,
  4040. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6,
  4041. /* keep last */
  4042. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST,
  4043. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX =
  4044. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1,
  4045. };
  4046. /**
  4047. * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
  4048. * data types for which the stats have to get collected.
  4049. */
  4050. enum qca_wlan_vendor_connectivity_check_pkt_flags {
  4051. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0,
  4052. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1,
  4053. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2,
  4054. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3,
  4055. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4,
  4056. /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
  4057. * to represent the stats of respective data type.
  4058. */
  4059. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5,
  4060. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6,
  4061. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7,
  4062. };
  4063. enum qca_attr_connectivity_check_stats {
  4064. QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0,
  4065. /* Data packet type for which the stats are collected.
  4066. * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
  4067. */
  4068. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1,
  4069. /* ID corresponding to the DNS frame for which the respective DNS stats
  4070. * are monitored (u32).
  4071. */
  4072. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2,
  4073. /* source / destination port on which the respective proto stats are
  4074. * collected (u32).
  4075. */
  4076. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3,
  4077. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4,
  4078. /* IPv4/IPv6 address for which the destined data packets are
  4079. * monitored. (in network byte order)
  4080. */
  4081. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5,
  4082. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6,
  4083. /* Data packet Request count received from netdev */
  4084. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
  4085. /* Data packet Request count sent to lower MAC from upper MAC */
  4086. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
  4087. /* Data packet Request count received by lower MAC from upper MAC */
  4088. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
  4089. /* Data packet Request count successfully transmitted by the device */
  4090. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
  4091. /* Data packet Response count received by lower MAC */
  4092. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
  4093. /* Data packet Response count received by upper MAC */
  4094. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
  4095. /* Data packet Response count delivered to netdev */
  4096. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
  4097. /* Data Packet Response count that are dropped out of order */
  4098. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
  4099. /* keep last */
  4100. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST,
  4101. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX =
  4102. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1,
  4103. };
  4104. /**
  4105. * qca_attr_nud_stats_get: Attributes to vendor subcmd
  4106. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
  4107. * NUD statistics collected when queried.
  4108. */
  4109. enum qca_attr_nud_stats_get {
  4110. QCA_ATTR_NUD_STATS_GET_INVALID = 0,
  4111. /* ARP Request count from netdev */
  4112. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
  4113. /* ARP Request count sent to lower MAC from upper MAC */
  4114. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
  4115. /* ARP Request count received by lower MAC from upper MAC */
  4116. QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
  4117. /* ARP Request count successfully transmitted by the device */
  4118. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
  4119. /* ARP Response count received by lower MAC */
  4120. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
  4121. /* ARP Response count received by upper MAC */
  4122. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
  4123. /* ARP Response count delivered to netdev */
  4124. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
  4125. /* ARP Response count delivered to netdev */
  4126. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
  4127. /*
  4128. * Flag indicating if the station's link to the AP is active.
  4129. * Active Link - If included, Inactive link - If not included
  4130. */
  4131. QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
  4132. /*
  4133. * Flag indicating if there is any duplicate address detected (DAD).
  4134. * Yes - If detected, No - If not detected.
  4135. */
  4136. QCA_ATTR_NUD_STATS_IS_DAD = 10,
  4137. /*
  4138. * List of Data types for which the stats are requested.
  4139. * This list does not carry ARP stats as they are done by the
  4140. * above attributes. Represented by enum qca_attr_nud_data_stats.
  4141. */
  4142. QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
  4143. /* keep last */
  4144. QCA_ATTR_NUD_STATS_GET_LAST,
  4145. QCA_ATTR_NUD_STATS_GET_MAX =
  4146. QCA_ATTR_NUD_STATS_GET_LAST - 1,
  4147. };
  4148. enum qca_wlan_btm_candidate_status {
  4149. QCA_STATUS_ACCEPT = 0,
  4150. QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
  4151. QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
  4152. QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
  4153. QCA_STATUS_REJECT_LOW_RSSI = 4,
  4154. QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
  4155. QCA_STATUS_REJECT_UNKNOWN = 6,
  4156. };
  4157. enum qca_wlan_vendor_attr_btm_candidate_info {
  4158. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
  4159. /* 6-byte MAC address representing the BSSID of transition candidate */
  4160. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
  4161. /*
  4162. * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
  4163. * returned by the driver. It says whether the BSSID provided in
  4164. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
  4165. * the driver, if not it specifies the reason for rejection.
  4166. * Note that the user-space can overwrite the transition reject reason
  4167. * codes provided by driver based on more information.
  4168. */
  4169. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
  4170. /* keep last */
  4171. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
  4172. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
  4173. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
  4174. };
  4175. enum qca_attr_trace_level {
  4176. QCA_ATTR_TRACE_LEVEL_INVALID = 0,
  4177. /*
  4178. * Nested array of the following attributes:
  4179. * QCA_ATTR_TRACE_LEVEL_MODULE,
  4180. * QCA_ATTR_TRACE_LEVEL_MASK.
  4181. */
  4182. QCA_ATTR_TRACE_LEVEL_PARAM = 1,
  4183. /*
  4184. * Specific QCA host driver module. Please refer to the QCA host
  4185. * driver implementation to get the specific module ID.
  4186. */
  4187. QCA_ATTR_TRACE_LEVEL_MODULE = 2,
  4188. /* Different trace level masks represented in the QCA host driver. */
  4189. QCA_ATTR_TRACE_LEVEL_MASK = 3,
  4190. /* keep last */
  4191. QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
  4192. QCA_ATTR_TRACE_LEVEL_MAX =
  4193. QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
  4194. };
  4195. /**
  4196. * enum qca_wlan_vendor_attr_get_logger_features - value for logger
  4197. * supported features
  4198. * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid
  4199. * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features
  4200. * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum
  4201. * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type
  4202. *
  4203. * enum values are used for NL attributes for data used by
  4204. * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command.
  4205. */
  4206. enum qca_wlan_vendor_attr_get_logger_features {
  4207. QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
  4208. QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
  4209. /* keep last */
  4210. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
  4211. QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
  4212. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
  4213. };
  4214. /**
  4215. * enum qca_wlan_vendor_attr_link_properties - link properties
  4216. *
  4217. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value
  4218. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to
  4219. * specify the number of spatial streams negotiated
  4220. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value
  4221. * to specify negotiated rate flags i.e. ht, vht and channel width
  4222. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to
  4223. * specify the operating frequency
  4224. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer
  4225. * (STA / AP ) for the connected link.
  4226. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
  4227. * &struct nl80211_sta_flag_update for the respective connected link. MAC
  4228. * address of the peer represented by
  4229. * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
  4230. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last
  4231. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value
  4232. */
  4233. enum qca_wlan_vendor_attr_link_properties {
  4234. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
  4235. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1,
  4236. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2,
  4237. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3,
  4238. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
  4239. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
  4240. /* KEEP LAST */
  4241. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
  4242. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX =
  4243. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
  4244. };
  4245. /**
  4246. * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support
  4247. *
  4248. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid
  4249. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload
  4250. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum
  4251. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type
  4252. *
  4253. * enum values are used for NL attributes for data used by
  4254. * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command.
  4255. */
  4256. enum qca_wlan_vendor_attr_nd_offload {
  4257. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
  4258. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
  4259. /* Keep last */
  4260. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
  4261. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
  4262. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
  4263. };
  4264. /**
  4265. * enum qca_wlan_vendor_features - Vendor device/driver feature flags
  4266. *
  4267. * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
  4268. * management offload, a mechanism where the station's firmware
  4269. * does the exchange with the AP to establish the temporal keys
  4270. * after roaming, rather than having the user space wpa_supplicant do it.
  4271. * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
  4272. * band selection based on channel selection results.
  4273. * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
  4274. * simultaneous off-channel operations.
  4275. * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
  4276. * Listen offload; a mechanism where the station's firmware takes care of
  4277. * responding to incoming Probe Request frames received from other P2P
  4278. * Devices whilst in Listen state, rather than having the user space
  4279. * wpa_supplicant do it. Information from received P2P requests are
  4280. * forwarded from firmware to host whenever the host processor wakes up.
  4281. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
  4282. * specific features.
  4283. * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
  4284. * features.
  4285. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
  4286. * specific features only. If a Device sets this bit but not the
  4287. * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
  4288. * this Device may not support all OCE AP functionalities but can support
  4289. * only OCE STA-CFON functionalities.
  4290. * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
  4291. * managed regulatory.
  4292. * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
  4293. * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
  4294. * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
  4295. * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
  4296. * and applying thermal configuration through
  4297. * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
  4298. * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
  4299. * userspace.
  4300. * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
  4301. * With Adaptive 11r feature, access points advertise the vendor
  4302. * specific IEs and MDE but do not include FT AKM in the RSNE.
  4303. * The Adaptive 11r supported stations are expected to identify
  4304. * such vendor specific IEs and connect to the AP in FT mode though
  4305. * the profile is configured in non-FT mode.
  4306. * The driver-based SME cases also need to have this support for
  4307. * Adaptive 11r to handle the connection and roaming scenarios.
  4308. * This flag indicates the support for the same to the user space.
  4309. * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
  4310. * concurrent network sessions on different Wi-Fi Bands. This feature
  4311. * capability is attributed to the hardware's capability to support
  4312. * the same (e.g., DBS).
  4313. * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
  4314. * responses for the respective TWT operations are asynchronous (separate)
  4315. * event message) from the driver. If not specified, the responses are
  4316. * synchronous (in vendor command reply) to the request. Each TWT
  4317. * operation is specifically mentioned (against its respective)
  4318. * documentation) to support either of these or both modes.
  4319. * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
  4320. * that the driver requires add/del virtual interface path using the
  4321. * generic nl80211 commands for NDP interface create/delete and to
  4322. * register/unregister the netdev instead of creating/deleting the NDP
  4323. * interface using the vendor commands
  4324. * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
  4325. * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
  4326. * (5.12 version onward), interface creation/deletion is not allowed using
  4327. * vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
  4328. * during the register/unregister of netdev. Create and delete NDP
  4329. * interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
  4330. * commands respectively if the driver advertises this capability set.
  4331. * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in
  4332. * station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is
  4333. * set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored.
  4334. * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP
  4335. * mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then
  4336. * QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored.
  4337. * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in
  4338. * station mode supports secure RTT measurement exchange. If
  4339. * NL80211_EXT_FEATURE_SECURE_RTT is set,
  4340. * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored.
  4341. * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP
  4342. * mode supports secure RTT measurement exchange. If
  4343. * NL80211_EXT_FEATURE_SECURE_RTT is set,
  4344. * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored.
  4345. * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that
  4346. * the device in station mode supports protection of range negotiation and
  4347. * measurement management frames. If
  4348. * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
  4349. * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored.
  4350. * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that
  4351. * the device in AP mode supports protection of range negotiation and
  4352. * measurement management frames. If
  4353. * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
  4354. * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored.
  4355. * @QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST: Flag indicates that the device
  4356. * in AP mode supports configuring allowed frequency list for AP operation
  4357. * with %QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST.
  4358. * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
  4359. */
  4360. enum qca_wlan_vendor_features {
  4361. QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
  4362. QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
  4363. QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
  4364. QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
  4365. QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
  4366. QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
  4367. QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
  4368. QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
  4369. QCA_WLAN_VENDOR_FEATURE_TWT = 8,
  4370. QCA_WLAN_VENDOR_FEATURE_11AX = 9,
  4371. QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
  4372. QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
  4373. QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
  4374. QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
  4375. QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
  4376. QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
  4377. QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA = 16,
  4378. QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP = 17,
  4379. QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA = 18,
  4380. QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP = 19,
  4381. QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20,
  4382. QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21,
  4383. QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST = 22,
  4384. NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
  4385. };
  4386. /**
  4387. * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP
  4388. * conditional channel switch
  4389. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial
  4390. * value
  4391. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based
  4392. * frequency list (an array of u32 values in host byte order)
  4393. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the
  4394. * conditional switch (u32)- 0: Success, Non-zero: Failure
  4395. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last
  4396. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max
  4397. */
  4398. enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
  4399. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
  4400. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
  4401. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
  4402. /* Keep Last */
  4403. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
  4404. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
  4405. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
  4406. };
  4407. /**
  4408. * enum wifi_logger_supported_features - values for supported logger features
  4409. * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW
  4410. * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics
  4411. * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events
  4412. * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver
  4413. * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver
  4414. * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health
  4415. * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump
  4416. * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate
  4417. */
  4418. enum wifi_logger_supported_features {
  4419. WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)),
  4420. WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)),
  4421. WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)),
  4422. WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)),
  4423. WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)),
  4424. WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)),
  4425. WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)),
  4426. WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)),
  4427. WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8))
  4428. };
  4429. /**
  4430. * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
  4431. * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
  4432. *
  4433. * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
  4434. * Used with event to notify the primary channel number selected in ACS
  4435. * operation.
  4436. * Note: If both the driver and user-space application supports the 6 GHz band,
  4437. * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
  4438. * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
  4439. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
  4440. * is still used if either of the driver or user space application doesn't
  4441. * support the 6 GHz band.
  4442. *
  4443. * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
  4444. * Used with event to notify the secondary channel number selected in ACS
  4445. * operation.
  4446. * Note: If both the driver and user-space application supports the 6 GHz band,
  4447. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
  4448. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
  4449. * To maintain backward compatibility,
  4450. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
  4451. * the driver or user space application doesn't support 6 GHz band.
  4452. *
  4453. * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
  4454. * (a) Used with command to configure hw_mode from
  4455. * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
  4456. * (b) Also used with event to notify the hw_mode of selected primary channel
  4457. * in ACS operation.
  4458. *
  4459. * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
  4460. * Used with command to configure ACS operation for HT mode.
  4461. * Disable (flag attribute not present) - HT disabled and
  4462. * Enable (flag attribute present) - HT enabled.
  4463. *
  4464. * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
  4465. * Used with command to configure ACS operation for HT40 mode.
  4466. * Disable (flag attribute not present) - HT40 disabled and
  4467. * Enable (flag attribute present) - HT40 enabled.
  4468. *
  4469. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
  4470. * Used with command to configure ACS operation for VHT mode.
  4471. * Disable (flag attribute not present) - VHT disabled and
  4472. * Enable (flag attribute present) - VHT enabled.
  4473. *
  4474. * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
  4475. * mandatory with event.
  4476. * If specified in command path, ACS operation is configured with the given
  4477. * channel width (in MHz).
  4478. * In event path, specifies the channel width of the primary channel selected.
  4479. *
  4480. * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
  4481. * Used with command to configure channel list using an array of
  4482. * channel numbers (u8).
  4483. * Note: If both the driver and user-space application supports the 6 GHz band,
  4484. * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
  4485. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
  4486. *
  4487. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
  4488. * Used with event to notify the VHT segment 0 center channel number selected in
  4489. * ACS operation.
  4490. * Note: If both the driver and user-space application supports the 6 GHz band,
  4491. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
  4492. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
  4493. * To maintain backward compatibility,
  4494. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
  4495. * the driver or user space application doesn't support the 6 GHz band.
  4496. *
  4497. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
  4498. * Used with event to notify the VHT segment 1 center channel number selected in
  4499. * ACS operation.
  4500. * Note: If both the driver and user-space application supports the 6 GHz band,
  4501. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
  4502. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
  4503. * To maintain backward compatibility,
  4504. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
  4505. * the driver or user space application doesn't support the 6 GHz band.
  4506. *
  4507. * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
  4508. * Used with command to configure the channel list using an array of channel
  4509. * center frequencies in MHz (u32).
  4510. * Note: If both the driver and user-space application supports the 6 GHz band,
  4511. * the driver first parses the frequency list and if it fails to get a frequency
  4512. * list, parses the channel list specified using
  4513. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
  4514. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
  4515. *
  4516. * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
  4517. * Used with event to notify the primary channel center frequency (MHz) selected
  4518. * in ACS operation.
  4519. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4520. * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
  4521. *
  4522. * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
  4523. * Used with event to notify the secondary channel center frequency (MHz)
  4524. * selected in ACS operation.
  4525. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4526. * includes this attribute along with
  4527. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
  4528. *
  4529. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
  4530. * Used with event to notify the VHT segment 0 center channel frequency (MHz)
  4531. * selected in ACS operation.
  4532. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4533. * includes this attribute along with
  4534. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
  4535. *
  4536. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
  4537. * Used with event to notify the VHT segment 1 center channel frequency (MHz)
  4538. * selected in ACS operation.
  4539. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4540. * includes this attribute along with
  4541. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
  4542. *
  4543. * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
  4544. * Used with command to notify the driver of EDMG request for ACS
  4545. * operation.
  4546. *
  4547. * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
  4548. * Used with event to notify the EDMG channel number selected in ACS
  4549. * operation.
  4550. * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
  4551. *
  4552. * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
  4553. * Used with event to notify the puncture pattern selected in ACS operation.
  4554. * Encoding for this attribute will follow the convention used in the Disabled
  4555. * Subchannel Bitmap field of the EHT Operation IE.
  4556. *
  4557. * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
  4558. * Used with command to configure ACS operation for EHT mode.
  4559. * Disable (flag attribute not present) - EHT disabled and
  4560. * Enable (flag attribute present) - EHT enabled.
  4561. *
  4562. * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
  4563. * Used with command to configure how older scan can be considered for ACS
  4564. * scoring. In case scan was performed on partial set of channels configured
  4565. * with this command, within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
  4566. * (in ms), then scan only remaining channels.
  4567. */
  4568. enum qca_wlan_vendor_attr_acs_offload {
  4569. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
  4570. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
  4571. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
  4572. QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
  4573. QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
  4574. QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
  4575. QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
  4576. QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
  4577. QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
  4578. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
  4579. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
  4580. QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
  4581. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
  4582. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
  4583. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
  4584. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
  4585. QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
  4586. QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
  4587. QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
  4588. QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
  4589. QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
  4590. /* keep last */
  4591. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
  4592. QCA_WLAN_VENDOR_ATTR_ACS_MAX =
  4593. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
  4594. };
  4595. /**
  4596. * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
  4597. * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
  4598. *
  4599. * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
  4600. * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
  4601. * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
  4602. * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
  4603. * @QCA_ACS_MODE_IEEE80211ANY: all modes
  4604. * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
  4605. */
  4606. enum qca_wlan_vendor_acs_hw_mode {
  4607. QCA_ACS_MODE_IEEE80211B,
  4608. QCA_ACS_MODE_IEEE80211G,
  4609. QCA_ACS_MODE_IEEE80211A,
  4610. QCA_ACS_MODE_IEEE80211AD,
  4611. QCA_ACS_MODE_IEEE80211ANY,
  4612. QCA_ACS_MODE_IEEE80211AX,
  4613. };
  4614. /**
  4615. * enum qca_access_policy - access control policy
  4616. *
  4617. * Access control policy is applied on the configured IE
  4618. * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
  4619. * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
  4620. *
  4621. * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match
  4622. *» with the specific configuration (IE) set, i.e. allow all the
  4623. *» connections which do not match the configuration.
  4624. * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match
  4625. *» with the specific configuration (IE) set, i.e. deny all the
  4626. *» connections which do not match the configuration.
  4627. */
  4628. enum qca_access_policy {
  4629. QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
  4630. QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
  4631. };
  4632. /**
  4633. * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values
  4634. *
  4635. * The valid values for the ignore assoc disallowed
  4636. *
  4637. * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed
  4638. * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed
  4639. *
  4640. */
  4641. enum qca_ignore_assoc_disallowed {
  4642. QCA_IGNORE_ASSOC_DISALLOWED_DISABLE,
  4643. QCA_IGNORE_ASSOC_DISALLOWED_ENABLE
  4644. };
  4645. /* Attributes for data used by
  4646. * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
  4647. * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
  4648. */
  4649. #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES\
  4650. QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
  4651. #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL\
  4652. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
  4653. #define QCA_WLAN_VENDOR_ATTR_ROAM_REASON\
  4654. QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON
  4655. enum qca_wlan_vendor_attr_config {
  4656. QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
  4657. /*
  4658. * Unsigned 32-bit value to set the DTIM period.
  4659. * Whether the wifi chipset wakes at every dtim beacon or a multiple of
  4660. * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
  4661. * DTIM beacons.
  4662. */
  4663. QCA_WLAN_VENDOR_ATTR_CONFIG_MODULATED_DTIM = 1,
  4664. /*
  4665. * Unsigned 32-bit value to set the wifi_iface stats averaging factor
  4666. * used to calculate statistics like average the TSF offset or average
  4667. * number of frame leaked.
  4668. * For instance, upon Beacon frame reception:
  4669. * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
  4670. * For instance, when evaluating leaky APs:
  4671. * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
  4672. */
  4673. QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
  4674. /*
  4675. * Unsigned 32-bit value to configure guard time, i.e., when
  4676. * implementing IEEE power management based on frame control PM bit, how
  4677. * long the driver waits before shutting down the radio and after
  4678. * receiving an ACK frame for a Data frame with PM bit set.
  4679. */
  4680. QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
  4681. /* Unsigned 32-bit value to change the FTM capability dynamically */
  4682. QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
  4683. /* Unsigned 16-bit value to configure maximum TX rate dynamically */
  4684. QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
  4685. /*
  4686. * Unsigned 32-bit value to configure the number of continuous
  4687. * Beacon Miss which shall be used by the firmware to penalize
  4688. * the RSSI.
  4689. */
  4690. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
  4691. /*
  4692. * Unsigned 8-bit value to configure the channel avoidance indication
  4693. * behavior. Firmware to send only one indication and ignore duplicate
  4694. * indications when set to avoid multiple Apps wakeups.
  4695. */
  4696. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
  4697. /*
  4698. * 8-bit unsigned value to configure the maximum TX MPDU for
  4699. * aggregation.
  4700. */
  4701. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
  4702. /*
  4703. * 8-bit unsigned value to configure the maximum RX MPDU for
  4704. * aggregation.
  4705. */
  4706. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
  4707. /*
  4708. * 8-bit unsigned value to configure the Non aggregrate/11g sw
  4709. * retry threshold (0 disable, 31 max).
  4710. */
  4711. QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
  4712. /*
  4713. * 8-bit unsigned value to configure the aggregrate sw
  4714. * retry threshold (0 disable, 31 max).
  4715. */
  4716. QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
  4717. /*
  4718. * 8-bit unsigned value to configure the MGMT frame
  4719. * retry threshold (0 disable, 31 max).
  4720. */
  4721. QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
  4722. /*
  4723. * 8-bit unsigned value to configure the CTRL frame
  4724. * retry threshold (0 disable, 31 max).
  4725. */
  4726. QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
  4727. /*
  4728. * 8-bit unsigned value to configure the propagation delay for
  4729. * 2G/5G band (0~63, units in us)
  4730. */
  4731. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
  4732. /*
  4733. * Unsigned 32-bit value to configure the number of unicast TX fail
  4734. * packet count. The peer is disconnected once this threshold is
  4735. * reached.
  4736. */
  4737. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
  4738. /*
  4739. * Attribute used to set scan default IEs to the driver.
  4740. *
  4741. * These IEs can be used by scan operations that will be initiated by
  4742. * the driver/firmware.
  4743. *
  4744. * For further scan requests coming to the driver, these IEs should be
  4745. * merged with the IEs received along with scan request coming to the
  4746. * driver. If a particular IE is present in the scan default IEs but not
  4747. * present in the scan request, then that IE should be added to the IEs
  4748. * sent in the Probe Request frames for that scan request.
  4749. */
  4750. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
  4751. /* Unsigned 32-bit attribute for generic commands */
  4752. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
  4753. /* Unsigned 32-bit value attribute for generic commands */
  4754. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
  4755. /* Unsigned 32-bit data attribute for generic command response */
  4756. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
  4757. /*
  4758. * Unsigned 32-bit length attribute for
  4759. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  4760. */
  4761. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
  4762. /*
  4763. * Unsigned 32-bit flags attribute for
  4764. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  4765. */
  4766. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
  4767. /*
  4768. * Unsigned 32-bit, defining the access policy.
  4769. * See enum qca_access_policy. Used with
  4770. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
  4771. */
  4772. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
  4773. /*
  4774. * Sets the list of full set of IEs for which a specific access policy
  4775. * has to be applied. Used along with
  4776. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
  4777. * Zero length payload can be used to clear this access constraint.
  4778. */
  4779. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
  4780. /*
  4781. * Unsigned 32-bit, specifies the interface index (netdev) for which the
  4782. * corresponding configurations are applied. If the interface index is
  4783. * not specified, the configurations are attributed to the respective
  4784. * wiphy.
  4785. */
  4786. QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
  4787. /*
  4788. * 8-bit unsigned value to trigger QPower:
  4789. * 1-Enable, 0-Disable
  4790. */
  4791. QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
  4792. /*
  4793. * 8-bit unsigned value to configure the driver and below layers to
  4794. * ignore the assoc disallowed set by APs while connecting
  4795. * 1-Ignore, 0-Don't ignore
  4796. */
  4797. QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
  4798. /*
  4799. * 32-bit unsigned value to trigger antenna diversity features:
  4800. * 1-Enable, 0-Disable
  4801. */
  4802. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
  4803. /* 32-bit unsigned value to configure specific chain antenna */
  4804. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
  4805. /*
  4806. * 32-bit unsigned value to trigger cycle selftest
  4807. * 1-Enable, 0-Disable
  4808. */
  4809. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
  4810. /*
  4811. * 32-bit unsigned to configure the cycle time of selftest
  4812. * the unit is micro-second
  4813. */
  4814. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
  4815. /* 32-bit unsigned value to set reorder timeout for AC_VO */
  4816. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
  4817. /* 32-bit unsigned value to set reorder timeout for AC_VI */
  4818. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
  4819. /* 32-bit unsigned value to set reorder timeout for AC_BE */
  4820. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
  4821. /* 32-bit unsigned value to set reorder timeout for AC_BK */
  4822. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
  4823. /* 6-byte MAC address to point out the specific peer */
  4824. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
  4825. /* 32-bit unsigned value to set window size for specific peer */
  4826. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
  4827. /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
  4828. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
  4829. /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
  4830. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
  4831. /*
  4832. * 32-bit unsigned value to configure 5 or 10 MHz channel width for
  4833. * station device while in disconnect state. The attribute use the
  4834. * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
  4835. * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
  4836. * 10 MHz channel width, the station will not connect to a BSS using 20
  4837. * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
  4838. * clear this constraint.
  4839. */
  4840. QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
  4841. /*
  4842. * 32-bit unsigned value to configure the propagation absolute delay
  4843. * for 2G/5G band (units in us)
  4844. */
  4845. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
  4846. /* 32-bit unsigned value to set probe period */
  4847. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
  4848. /* 32-bit unsigned value to set stay period */
  4849. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
  4850. /* 32-bit unsigned value to set snr diff */
  4851. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
  4852. /* 32-bit unsigned value to set probe dwell time */
  4853. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
  4854. /* 32-bit unsigned value to set mgmt snr weight */
  4855. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
  4856. /* 32-bit unsigned value to set data snr weight */
  4857. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
  4858. /* 32-bit unsigned value to set ack snr weight */
  4859. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
  4860. /*
  4861. * 32-bit unsigned value to configure the listen interval.
  4862. * This is in units of beacon intervals. This configuration alters
  4863. * the negotiated listen interval with the AP during the connection.
  4864. * It is highly recommended to configure a value less than or equal to
  4865. * the one negotiated during the association. Configuring any greater
  4866. * value can have adverse effects (frame loss, AP disassociating STA,
  4867. * etc.).
  4868. */
  4869. QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
  4870. /*
  4871. * 8 bit unsigned value that is set on an AP/GO virtual interface to
  4872. * disable operations that would cause the AP/GO to leave its operating
  4873. * channel.
  4874. *
  4875. * This will restrict the scans to the AP/GO operating channel and the
  4876. * channels of the other band, if DBS is supported.A STA/CLI interface
  4877. * brought up after this setting is enabled, will be restricted to
  4878. * connecting to devices only on the AP/GO interface's operating channel
  4879. * or on the other band in DBS case. P2P supported channel list is
  4880. * modified, to only include AP interface's operating-channel and the
  4881. * channels of the other band if DBS is supported.
  4882. *
  4883. * These restrictions are only applicable as long as the AP/GO interface
  4884. * is alive. If the AP/GO interface is brought down then this
  4885. * setting/restriction is forgotten.
  4886. *
  4887. * If this variable is set on an AP/GO interface while a multi-channel
  4888. * concurrent session is active, it has no effect on the operation of
  4889. * the current interfaces, other than restricting the scan to the AP/GO
  4890. * operating channel and the other band channels if DBS is supported.
  4891. * However, if the STA is brought down and restarted then the new STA
  4892. * connection will either be formed on the AP/GO channel or on the
  4893. * other band in a DBS case. This is because of the scan being
  4894. * restricted on these channels as mentioned above.
  4895. *
  4896. * 1-Disable offchannel operations, 0-Enable offchannel operations.
  4897. */
  4898. QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
  4899. /*
  4900. * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
  4901. * on an interface.
  4902. * 1 - Enable , 0 - Disable.
  4903. */
  4904. QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
  4905. /*
  4906. * 8 bit unsigned value to globally enable/disable scan
  4907. * 1 - Enable, 0 - Disable.
  4908. */
  4909. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
  4910. /* 8-bit unsigned value to set the total beacon miss count */
  4911. QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
  4912. /*
  4913. * Unsigned 32-bit value to configure the number of continuous
  4914. * Beacon Miss which shall be used by the firmware to penalize
  4915. * the RSSI for BTC.
  4916. */
  4917. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
  4918. /*
  4919. * 8-bit unsigned value to configure the driver and below layers to
  4920. * enable/disable all fils features.
  4921. * 0-enable, 1-disable
  4922. */
  4923. QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
  4924. /* 16-bit unsigned value to configure the level of WLAN latency
  4925. * module. See enum qca_wlan_vendor_attr_config_latency_level.
  4926. */
  4927. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
  4928. /*
  4929. * 8-bit unsigned value indicating the driver to use the RSNE as-is from
  4930. * the connect interface. Exclusively used for the scenarios where the
  4931. * device is used as a test bed device with special functionality and
  4932. * not recommended for production. This helps driver to not validate the
  4933. * RSNE passed from user space and thus allow arbitrary IE data to be
  4934. * used for testing purposes.
  4935. * 1-enable, 0-disable.
  4936. * Applications set/reset this configuration. If not reset, this
  4937. * parameter remains in use until the driver is unloaded.
  4938. */
  4939. QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
  4940. /*
  4941. * 8-bit unsigned value to trigger green Tx power saving.
  4942. * 1-Enable, 0-Disable
  4943. */
  4944. QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
  4945. /*
  4946. * Attribute to configure disconnect IEs to the driver.
  4947. * This carries an array of unsigned 8-bit characters.
  4948. *
  4949. * If this is configured, driver shall fill the IEs in disassoc/deauth
  4950. * frame.
  4951. * These IEs are expected to be considered only for the next
  4952. * immediate disconnection (disassoc/deauth frame) originated by
  4953. * the DUT, irrespective of the entity (user space/driver/firmware)
  4954. * triggering the disconnection.
  4955. * The host drivers are not expected to use the IEs set through
  4956. * this interface for further disconnections after the first immediate
  4957. * disconnection initiated post the configuration.
  4958. * If the IEs are also updated through cfg80211 interface (after the
  4959. * enhancement to cfg80211_disconnect), host driver is expected to
  4960. * take the union of IEs from both of these interfaces and send in
  4961. * further disassoc/deauth frames.
  4962. */
  4963. QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
  4964. /* 8-bit unsigned value for ELNA bypass.
  4965. * 0 - Disable eLNA bypass.
  4966. * 1 - Enable eLNA bypass.
  4967. * 2 - Reset eLNA bypass configuration, the driver should
  4968. * revert to the default configuration of eLNA bypass.
  4969. */
  4970. QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
  4971. /* 8-bit unsigned value. This attribute enables/disables the host driver
  4972. * to send the Beacon Report response with failure reason for the
  4973. * scenarios where STA cannot honor the Beacon report request from AP.
  4974. * 1-Enable, 0-Disable.
  4975. */
  4976. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
  4977. /* 8-bit unsigned value. This attribute enables/disables the host driver
  4978. * to send roam reason information in the reassociation request to the
  4979. * AP. 1-Enable, 0-Disable.
  4980. */
  4981. QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
  4982. /* 32-bit unsigned value to configure different PHY modes to the
  4983. * driver/firmware. The possible values are defined in
  4984. * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
  4985. * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
  4986. * the driver.
  4987. */
  4988. QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
  4989. /* 8-bit unsigned value to configure the maximum supported channel width
  4990. * for STA mode. If this value is configured when STA is in connected
  4991. * state, it should not exceed the negotiated channel width. If it is
  4992. * configured when STA is in disconnected state, the configured value
  4993. * will take effect for the next immediate connection.
  4994. * Possible values are:
  4995. * NL80211_CHAN_WIDTH_20
  4996. * NL80211_CHAN_WIDTH_40
  4997. * NL80211_CHAN_WIDTH_80
  4998. * NL80211_CHAN_WIDTH_80P80
  4999. * NL80211_CHAN_WIDTH_160
  5000. */
  5001. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
  5002. /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
  5003. * This attribute is only applicable for STA mode. When dynamic
  5004. * bandwidth adjustment is disabled, STA will use static channel width
  5005. * the value of which is negotiated during connection.
  5006. * 1-enable (default), 0-disable
  5007. */
  5008. QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
  5009. /* 8-bit unsigned value to configure the maximum number of subframes of
  5010. * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
  5011. * it is decided by hardware.
  5012. */
  5013. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
  5014. /* 8-bit unsigned value to configure the maximum number of subframes of
  5015. * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
  5016. * it is decided by hardware.
  5017. */
  5018. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
  5019. /* 8-bit unsigned value. This attribute is used to dynamically
  5020. * enable/disable the LDPC capability of the device. When configured in
  5021. * the disconnected state, the updated configuration will be considered
  5022. * for the immediately following connection attempt. If this
  5023. * configuration is modified while the device is in the connected state,
  5024. * the LDPC TX will be updated with this configuration immediately,
  5025. * while the LDPC RX configuration update will take place starting from
  5026. * the subsequent association attempt.
  5027. * 1-Enable, 0-Disable.
  5028. */
  5029. QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
  5030. /* 8-bit unsigned value. This attribute is used to dynamically
  5031. * enable/disable the TX STBC capability of the device. When configured
  5032. * in the disconnected state, the updated configuration will be
  5033. * considered for the immediately following connection attempt. If the
  5034. * connection is formed with TX STBC enabled and if this configuration
  5035. * is disabled during that association, the TX will be impacted
  5036. * immediately. Further connection attempts will disable TX STBC.
  5037. * However, enabling the TX STBC for a connected session with disabled
  5038. * capability is not allowed and will fail.
  5039. * 1-Enable, 0-Disable.
  5040. */
  5041. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
  5042. /* 8-bit unsigned value. This attribute is used to dynamically
  5043. * enable/disable the RX STBC capability of the device. When configured
  5044. * in the disconnected state, the updated configuration will be
  5045. * considered for the immediately following connection attempt. If the
  5046. * configuration is modified in the connected state, there will be no
  5047. * impact for the current association, but further connection attempts
  5048. * will use the updated configuration.
  5049. * 1-Enable, 0-Disable.
  5050. */
  5051. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
  5052. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5053. * the number of spatial streams. When configured in the disconnected
  5054. * state, the updated configuration will be considered for the
  5055. * immediately following connection attempt. If the NSS is updated after
  5056. * the connection, the updated NSS value is notified to the peer using
  5057. * the Operating Mode Notification/Spatial Multiplexing Power Save
  5058. * frame. The updated NSS value after the connection shall not be
  5059. * greater than the one negotiated during the connection. Any such
  5060. * higher value configuration shall be returned with a failure.
  5061. * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
  5062. * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
  5063. * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
  5064. * configure the asymmetric NSS configuration (such as 1X2).
  5065. */
  5066. QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
  5067. /*
  5068. * 8-bit unsigned value to trigger Optimized Power Management:
  5069. * 1-Enable, 0-Disable
  5070. */
  5071. QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
  5072. /* 8-bit unsigned value. This attribute takes the QOS/access category
  5073. * value represented by the enum qca_wlan_ac_type and expects the driver
  5074. * to upgrade the UDP frames to this QOS. The value of QCA_WLAN_AC_ALL
  5075. * is invalid for this attribute. This will override the DSCP value
  5076. * configured in the frame with the intention to only upgrade the QOS.
  5077. * That said, it is not intended to downgrade the QOS for the frames.
  5078. * Set the value to 0 ( corresponding to BE ) if the QOS upgrade needs
  5079. * to disable.
  5080. *
  5081. * If only UDP frames of BE or BK access category needs to be upgraded
  5082. * without changing the access category of VO or VI UDP frames, refer to
  5083. * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK.
  5084. *
  5085. * This attribute is not recommended to be used as it blindly forces all
  5086. * UDP packets to a higher access category which could impact the
  5087. * traffic pattern of all apps using UDP and can cause unknown behavior.
  5088. */
  5089. QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
  5090. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5091. * the number of chains to be used for transmitting data. This
  5092. * configuration is allowed only when in connected state and will be
  5093. * effective until disconnected. The driver rejects this configuration
  5094. * if the number of spatial streams being used in the current connection
  5095. * cannot be supported by this configuration.
  5096. */
  5097. QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
  5098. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5099. * the number of chains to be used for receiving data. This
  5100. * configuration is allowed only when in connected state and will be
  5101. * effective until disconnected. The driver rejects this configuration
  5102. * if the number of spatial streams being used in the current connection
  5103. * cannot be supported by this configuration.
  5104. */
  5105. QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
  5106. /* 8-bit unsigned value to configure ANI setting type.
  5107. * See &enum qca_wlan_ani_setting for possible values.
  5108. */
  5109. QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
  5110. /* 32-bit signed value to configure ANI level. This is used when
  5111. * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
  5112. * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
  5113. * is invalid, the driver will return a failure.
  5114. */
  5115. QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
  5116. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5117. * the number of spatial streams used for transmitting the data. When
  5118. * configured in the disconnected state, the configured value will
  5119. * be considered for the following connection attempt.
  5120. * If the NSS is updated after the connection, the updated NSS value
  5121. * is notified to the peer using the Operating Mode Notification/Spatial
  5122. * Multiplexing Power Save frame.
  5123. * The TX NSS value configured after the connection shall not be greater
  5124. * than the value negotiated during the connection. Any such higher
  5125. * value configuration shall be treated as invalid configuration by
  5126. * the driver. This attribute shall be configured along with
  5127. * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
  5128. * configuration (such as 2X2 or 1X1) or the asymmetric
  5129. * configuration (such as 1X2).
  5130. * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
  5131. * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
  5132. * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
  5133. */
  5134. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
  5135. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5136. * the number of spatial streams used for receiving the data. When
  5137. * configured in the disconnected state, the configured value will
  5138. * be considered for the following connection attempt.
  5139. * If the NSS is updated after the connection, the updated NSS value
  5140. * is notified to the peer using the Operating Mode Notification/Spatial
  5141. * Multiplexing Power Save frame.
  5142. * The RX NSS value configured after the connection shall not be greater
  5143. * than the value negotiated during the connection. Any such higher
  5144. * value configuration shall be treated as invalid configuration by
  5145. * the driver. This attribute shall be configured along with
  5146. * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
  5147. * configuration (such as 2X2 or 1X1) or the asymmetric
  5148. * configuration (such as 1X2).
  5149. * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
  5150. * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
  5151. * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
  5152. */
  5153. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
  5154. /*
  5155. * 8-bit unsigned value. This attribute, when set, indicates whether the
  5156. * specified interface is the primary STA interface when there are more
  5157. * than one STA interfaces concurrently active.
  5158. *
  5159. * This configuration helps the firmware/hardware to support certain
  5160. * features (e.g., roaming) on this primary interface, if the same
  5161. * cannot be supported on the concurrent STA interfaces simultaneously.
  5162. *
  5163. * This configuration is only applicable for a single STA interface on
  5164. * a device and gives the priority for it only over other concurrent STA
  5165. * interfaces.
  5166. *
  5167. * If the device is a multi wiphy/soc, this configuration applies to a
  5168. * single STA interface across the wiphys.
  5169. *
  5170. * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
  5171. */
  5172. QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
  5173. /*
  5174. * 8-bit unsigned value. This attribute can be used to configure the
  5175. * driver to enable/disable FT-over-DS feature. Possible values for
  5176. * this attribute are 1-Enable and 0-Disable.
  5177. */
  5178. QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
  5179. /*
  5180. * 8-bit unsigned value. This attribute can be used to configure the
  5181. * firmware to enable/disable ARP/NS offload feature. Possible values
  5182. * for this attribute are 0-Disable and 1-Enable.
  5183. *
  5184. * This attribute is only applicable for STA/P2P-Client interface,
  5185. * and is optional, default behavior is APR/NS offload Enable.
  5186. *
  5187. * This attribute can be set in disconncted and connected state, and
  5188. * will restore to default behavior if interface is closed.
  5189. */
  5190. QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
  5191. /*
  5192. * 8-bit unsigned value. This attribute can be used to configure the
  5193. * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values
  5194. * for this attribute are defined in the enum qca_dbam_config.
  5195. */
  5196. QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
  5197. /* 8-bit unsigned value. This attribute takes the QoS/access category
  5198. * value represented by the enum qca_wlan_ac_type and expects the driver
  5199. * to upgrade the UDP frames of BE or BK access category to this access
  5200. * category. This attribute will not modify UDP frames of VO or VI
  5201. * access category. The value of QCA_WLAN_AC_ALL is invalid for this
  5202. * attribute.
  5203. *
  5204. * This will override the DSCP value configured in the frame with the
  5205. * intention to only upgrade the access category. That said, it is not
  5206. * intended to downgrade the access category for the frames.
  5207. * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
  5208. * disabled, as BK is of the lowest priority and an upgrade to it does
  5209. * not result in any changes for the frames.
  5210. *
  5211. * This attribute behavior is similar to
  5212. * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that
  5213. * only UDP frames of BE or BK access category are upgraded and not
  5214. * UDP frames of VI or VO access category.
  5215. *
  5216. * This attribute is not recommended to be used as it blindly forces all
  5217. * UDP packets of BE or BK access category to a higher access category
  5218. * which could impact the traffic pattern of all apps using UDP and can
  5219. * cause unknown behavior.
  5220. */
  5221. QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84,
  5222. /* 8-bit unsigned value to configure the driver to enable/disable the
  5223. * periodic sounding for Tx beamformer functionality. The default
  5224. * behavior uses algorithm to do sounding based on packet stats.
  5225. *
  5226. * 0 - Default behavior.
  5227. * 1 - Enable the periodic sounding for Tx beamformer.
  5228. * This attribute is used for testing purposes.
  5229. */
  5230. QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85,
  5231. /* 8-bit unsigned value, whenever wifi calling (wfc) begin or end,
  5232. * Userspace sends this information to driver/firmware to configure
  5233. * wfc state. Driver/Firmware uses this information to
  5234. * optimize power savings, rate adaption, roaming, etc.
  5235. *
  5236. * 1 - wfc is on.
  5237. * 0 - wfc is off.
  5238. */
  5239. QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86,
  5240. /* 8-bit unsigned value to configure the driver to enable/disable the
  5241. * EHT EML capability in management frame EHT capabilities.
  5242. * 1 - Enable, 0 - Disable.
  5243. */
  5244. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_EML_CAPABILITY = 87,
  5245. /* 8-bit unsigned value to configure the driver with EHT MLO max
  5246. * simultaneous links to be used for MLO connection.
  5247. * The range of the value is 0 to 14.
  5248. */
  5249. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_SIMULTANEOUS_LINKS = 88,
  5250. /* 8-bit unsigned value to configure the driver with EHT MLO maximum
  5251. * number of links to be used for MLO connection.
  5252. * The range of the value is 1 to 16.
  5253. */
  5254. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_NUM_LINKS = 89,
  5255. /* 8-bit unsigned value to configure the driver with EHT MLO mode.
  5256. * Uses enum qca_wlan_eht_mlo_mode values.
  5257. */
  5258. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MODE = 90,
  5259. /* Nested attribute with frequencies in u32 attributes to configure a
  5260. * list of allowed 20 MHz channel center frequencies in MHz for AP
  5261. * operation. Whenever performing a channel selection operation, the
  5262. * driver shall generate a new list based on this provided list by
  5263. * filtering out channels that cannot be used at that time due to
  5264. * regulatory or other constraints. The resulting list is used as the
  5265. * list of all allowed channels, i.e., operation on any channel that is
  5266. * not included is not allowed, whenever performing operations like ACS
  5267. * and DFS.
  5268. *
  5269. * Userspace shall configure this before starting the AP and the
  5270. * configuration is valid only from the next BSS start and until the
  5271. * BSS is stopped. The driver shall clear this configuration when the
  5272. * AP is stopped and fall back to the default behavior for subsequent
  5273. * AP operation.
  5274. *
  5275. * The default behavior when this configuration is not applicable is the
  5276. * driver can choose any of the channels supported by the hardware
  5277. * except the channels that cannot be used due to regulatory or other
  5278. * constraints.
  5279. *
  5280. * The driver shall reject this configuration if done after the AP is
  5281. * started. This attribute can be used to specify user's choice of
  5282. * frequencies and static puncture channel list, etc.
  5283. */
  5284. QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST = 91,
  5285. /* Nested attribute to indicate EHT MLO links to be forced active.
  5286. * It contains link MAC address attributes. These nested attributes are
  5287. * of the type NL80211_ATTR_MAC and are used to force enabling of the
  5288. * MLO links corresponding to the indicated link MAC addresses.
  5289. * Subsequently, the links corresponding to the link MAC addresses that
  5290. * are not indicated are forced inactive.
  5291. */
  5292. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_ACTIVE_LINKS = 92,
  5293. /* 8-bit unsigned value to configure EMLSR mode entry or exit.
  5294. * Uses enum qca_wlan_emlsr_mode values.
  5295. */
  5296. QCA_WLAN_VENDOR_ATTR_CONFIG_EMLSR_MODE_SWITCH = 93,
  5297. /* keep last */
  5298. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
  5299. QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
  5300. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
  5301. };
  5302. /**
  5303. * enum qca_dbam_config - Specifies DBAM config mode
  5304. * @QCA_DBAM_DISABLE: Firmware disables DBAM
  5305. * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when
  5306. * internal criteria are met.
  5307. * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully.
  5308. */
  5309. enum qca_dbam_config {
  5310. QCA_DBAM_DISABLE = 0,
  5311. QCA_DBAM_ENABLE = 1,
  5312. QCA_DBAM_FORCE_ENABLE = 2,
  5313. };
  5314. /**
  5315. * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting
  5316. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute
  5317. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID
  5318. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level
  5319. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag
  5320. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value
  5321. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value
  5322. */
  5323. enum qca_wlan_vendor_attr_wifi_logger_start {
  5324. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
  5325. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
  5326. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
  5327. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
  5328. /* keep last */
  5329. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
  5330. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX =
  5331. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
  5332. };
  5333. /*
  5334. * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data
  5335. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute
  5336. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID
  5337. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value
  5338. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value
  5339. */
  5340. enum qca_wlan_vendor_attr_wifi_logger_get_ring_data {
  5341. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0,
  5342. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1,
  5343. /* keep last */
  5344. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST,
  5345. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX =
  5346. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1,
  5347. };
  5348. #ifdef WLAN_FEATURE_OFFLOAD_PACKETS
  5349. /**
  5350. * enum wlan_offloaded_packets_control - control commands
  5351. * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets
  5352. * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets
  5353. *
  5354. */
  5355. enum wlan_offloaded_packets_control {
  5356. WLAN_START_OFFLOADED_PACKETS = 1,
  5357. WLAN_STOP_OFFLOADED_PACKETS = 2
  5358. };
  5359. /**
  5360. * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
  5361. *
  5362. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
  5363. * the offloaded data.
  5364. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
  5365. * data.
  5366. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
  5367. * indication.
  5368. */
  5369. enum qca_wlan_vendor_attr_data_offload_ind {
  5370. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
  5371. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
  5372. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
  5373. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
  5374. /* keep last */
  5375. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
  5376. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
  5377. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
  5378. };
  5379. /**
  5380. * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
  5381. * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
  5382. */
  5383. enum qca_wlan_vendor_attr_offloaded_packets {
  5384. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
  5385. /* Takes valid value from the enum
  5386. * qca_wlan_offloaded_packets_sending_control
  5387. * Unsigned 32-bit value
  5388. */
  5389. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
  5390. /* Unsigned 32-bit value */
  5391. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
  5392. /* array of u8 len: Max packet size */
  5393. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
  5394. /* 6-byte MAC address used to represent source MAC address */
  5395. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
  5396. /* 6-byte MAC address used to represent destination MAC address */
  5397. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
  5398. /* Unsigned 32-bit value, in milli seconds */
  5399. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
  5400. /* This optional unsigned 16-bit attribute is used for specifying
  5401. * ethernet protocol type. If not specified ethertype defaults to IPv4.
  5402. */
  5403. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
  5404. /* keep last */
  5405. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
  5406. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
  5407. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
  5408. };
  5409. #endif /* WLAN_FEATURE_OFFLOAD_PACKETS */
  5410. /**
  5411. * enum qca_wlan_rssi_monitoring_control - rssi control commands
  5412. * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid
  5413. * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start
  5414. * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop
  5415. */
  5416. enum qca_wlan_rssi_monitoring_control {
  5417. QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
  5418. QCA_WLAN_RSSI_MONITORING_START,
  5419. QCA_WLAN_RSSI_MONITORING_STOP,
  5420. };
  5421. /**
  5422. * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring
  5423. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid
  5424. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control
  5425. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi
  5426. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi
  5427. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid
  5428. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi
  5429. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last
  5430. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max
  5431. */
  5432. enum qca_wlan_vendor_attr_rssi_monitoring {
  5433. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
  5434. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
  5435. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
  5436. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
  5437. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
  5438. /* attributes to be used/received in callback */
  5439. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
  5440. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
  5441. /* keep last */
  5442. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
  5443. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
  5444. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
  5445. };
  5446. /**
  5447. * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
  5448. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  5449. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID
  5450. * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd
  5451. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID:
  5452. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicates a service info
  5453. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz
  5454. * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC
  5455. * address
  5456. * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being
  5457. * created
  5458. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use
  5459. * NCS_SK_TYPE/PMK/SCID instead
  5460. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS
  5461. * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info
  5462. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id
  5463. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids
  5464. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response
  5465. * code: accept/reject
  5466. * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address
  5467. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by
  5468. * driver
  5469. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by
  5470. * driver
  5471. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration
  5472. * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type
  5473. * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO
  5474. * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the
  5475. * PMKID
  5476. * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase
  5477. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name
  5478. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule
  5479. * update:
  5480. * BIT_0: NSS Update
  5481. * BIT_1: Channel list update
  5482. * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss
  5483. * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL
  5484. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH:
  5485. * 0:20 MHz,
  5486. * 1:40 MHz,
  5487. * 2:80 MHz,
  5488. * 3:160 MHz
  5489. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width
  5490. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute
  5491. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type
  5492. * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array
  5493. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating
  5494. * transport port used by NDP.
  5495. * QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating
  5496. * protocol used by NDP and assigned by the Internet Assigned Numbers Authority
  5497. * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
  5498. * QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT: Unsigned 8-bit value indicating if
  5499. * NDP remote peer supports NAN NDPE. 1:support 0:not support
  5500. * QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID: As per Wi-Fi Aware Specification v3.2
  5501. * Service Id is the first 48 bits of the SHA-256 hash of the Service Name.
  5502. * A lower-case representation of the Service Name shall be used to
  5503. * calculate the Service ID.
  5504. * Array of u8: length is 6 bytes
  5505. * This attribute is used and optional for ndp indication.
  5506. */
  5507. enum qca_wlan_vendor_attr_ndp_params {
  5508. QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
  5509. QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1,
  5510. QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2,
  5511. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3,
  5512. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4,
  5513. QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5,
  5514. QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6,
  5515. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7,
  5516. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8,
  5517. QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9,
  5518. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10,
  5519. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11,
  5520. QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12,
  5521. QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13,
  5522. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14,
  5523. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15,
  5524. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16,
  5525. QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17,
  5526. QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18,
  5527. QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19,
  5528. QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20,
  5529. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21,
  5530. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22,
  5531. QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23,
  5532. QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24,
  5533. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25,
  5534. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26,
  5535. QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
  5536. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
  5537. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
  5538. QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
  5539. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
  5540. /* keep last */
  5541. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
  5542. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
  5543. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
  5544. };
  5545. /**
  5546. * enum qca_wlan_ndp_sub_cmd - NDP sub comands types for
  5547. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  5548. * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value
  5549. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: Command to create a NAN
  5550. * data path interface.
  5551. * This command was initially designed to both create and start a NAN
  5552. * data path interface. However, changes to Linux 5.12 no longer allow
  5553. * interface creation via vendor commands. When the driver advertises
  5554. * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
  5555. * userspace must explicitly first create the interface using
  5556. * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
  5557. * to start the interface.
  5558. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: command to delete a NAN
  5559. * data path interface.
  5560. * This command was initially designed to both stop and delete a NAN
  5561. * data path interface. However, changes to Linux 5.12 no longer allow
  5562. * interface deletion via vendor commands. When the driver advertises
  5563. * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
  5564. * userspace must explicitly delete the interface using
  5565. * NL80211_CMD_DEL_INTERFACE after calling this command.
  5566. * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above
  5567. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session
  5568. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above
  5569. * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end
  5570. * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above
  5571. * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request
  5572. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete
  5573. * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request
  5574. * being received
  5575. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule
  5576. * update
  5577. */
  5578. enum qca_wlan_ndp_sub_cmd {
  5579. QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
  5580. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
  5581. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
  5582. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
  5583. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
  5584. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
  5585. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
  5586. QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
  5587. QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
  5588. QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
  5589. QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
  5590. QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
  5591. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
  5592. };
  5593. /**
  5594. * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
  5595. * information. These attributes are sent as part of
  5596. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
  5597. * attributes correspond to a single channel.
  5598. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16)
  5599. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  5600. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16)
  5601. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  5602. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency
  5603. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum
  5604. * regulatory transmission power
  5605. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum
  5606. * transmission power
  5607. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum
  5608. * transmission power
  5609. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory
  5610. * class id
  5611. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum
  5612. * antenna gain in dbm
  5613. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0
  5614. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1
  5615. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0: Segment 0
  5616. * center frequency in MHz.
  5617. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht
  5618. * segment 0 in center freq in MHz. (this is the legacy alias)
  5619. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1: Segment 1
  5620. * center frequency in MHz.
  5621. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht
  5622. * segment 1 in center freq in MHz. (this is the legacy alias)
  5623. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES: 3-bits
  5624. * flag indicating the AP power modes supported by the channel, as given by
  5625. * enum qca_wlan_vendor_external_acs_chan_power_level.
  5626. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR: Array of nested
  5627. * attributes for each power mode. It takes attr as defined in enum
  5628. * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
  5629. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1:
  5630. * This indicates the overlapping 320 MHz center frequency in MHz, if the
  5631. * given primary channel supports more than one 320 MHz channel bonding.
  5632. *
  5633. */
  5634. enum qca_wlan_vendor_external_acs_event_chan_info_attr {
  5635. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
  5636. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
  5637. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
  5638. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
  5639. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
  5640. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
  5641. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
  5642. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
  5643. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
  5644. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
  5645. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
  5646. /*
  5647. * A bitmask (u32) with flags specified in
  5648. * enum qca_wlan_vendor_channel_prop_flags_2.
  5649. */
  5650. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
  5651. /*
  5652. * Segment 0 in MHz (u32).
  5653. *
  5654. * For 20/40/80 MHz bandwidth, this indicates the channel center
  5655. * frequency index for the 20/40/80 MHz operating channel.
  5656. * For 160 MHz bandwidth, this indicates the channel center
  5657. * frequency of the primary 80 MHz channel.
  5658. * For 320 MHz bandwidth, indicates the channel center frequency
  5659. * of the primary 160 MHz channel.
  5660. *
  5661. * To maintain backward compatibility,
  5662. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5663. * is also maintained.
  5664. */
  5665. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12,
  5666. /* Legacy alias for the Segment 0 attribute.
  5667. *
  5668. * VHT segment 0 in MHz (u32) and the attribute is mandatory.
  5669. * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
  5670. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5671. * along with
  5672. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
  5673. *
  5674. * If both the driver and user-space application supports the 6 GHz
  5675. * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
  5676. * is deprecated and
  5677. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5678. * should be used.
  5679. *
  5680. * To maintain backward compatibility,
  5681. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5682. * is still used if either of the driver or user space application
  5683. * doesn't support the 6 GHz band.
  5684. */
  5685. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 =
  5686. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0,
  5687. /*
  5688. * Segment 1 in MHz (u32).
  5689. *
  5690. * For 20/40/80 MHz bandwidth, this is set to 0.
  5691. * For 160 MHz bandwidth, indicates the channel center frequency of the
  5692. * 160 MHz channel.
  5693. * For 320 MHz bandwidth, indicates the channel center frequency of the
  5694. * 320 MHz channel.
  5695. *
  5696. * To maintain backward compatibility,
  5697. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5698. * is also maintained.
  5699. */
  5700. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13,
  5701. /* Legacy alias for the Segment 1 attribute.
  5702. *
  5703. * VHT segment 1 in MHz (u32) and the attribute is mandatory.
  5704. * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
  5705. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5706. * along with
  5707. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
  5708. *
  5709. * If both the driver and user-space application supports the 6 GHz
  5710. * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
  5711. * is deprecated and
  5712. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5713. * should be considered.
  5714. *
  5715. * To maintain backward compatibility,
  5716. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5717. * is still used if either of the driver or user space application
  5718. * doesn't support the 6 GHz band.
  5719. */
  5720. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 =
  5721. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1,
  5722. /*
  5723. * 16-bit attribute of bits indicating the AP power modes supported by
  5724. * the channel (u16).
  5725. * Note: Currently, only 3 bits are used in the attribute and each bit
  5726. * corresponds to the power mode mentioned in enum
  5727. * qca_wlan_vendor_external_acs_chan_power_level and a given bit is
  5728. * set if the associated mode is supported.
  5729. */
  5730. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
  5731. = 14,
  5732. /* Array of nested attributes for each power mode. It takes attr as
  5733. * defined in enum
  5734. * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
  5735. */
  5736. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR = 15,
  5737. /*
  5738. * This indicates the overlapping 320 MHz center frequency in MHz
  5739. * (u32), if the given primary channel supports more than one
  5740. * 320 MHz channel bonding.
  5741. *
  5742. * Example:
  5743. * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0
  5744. * center frequency (primary 160 MHz) is 6185 MHz and there can be two
  5745. * possible segment 2 frequencies for this (320 MHz center
  5746. * frequencies):
  5747. *
  5748. * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding
  5749. * from frequency 5945 MHz - 6265 MHz
  5750. * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding
  5751. * from frequency 6105 MHz - 6425 MHz
  5752. *
  5753. * In this case,
  5754. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will
  5755. * return 6185 MHz.
  5756. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will
  5757. * return 6105 MHz.
  5758. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
  5759. * will return 6265 MHz.
  5760. */
  5761. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
  5762. = 16,
  5763. /* keep last */
  5764. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
  5765. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
  5766. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
  5767. };
  5768. /**
  5769. * qca_wlan_vendor_external_acs_chan_power_level - Specifies the valid
  5770. * values that the vendor external ACS channel power attribute
  5771. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
  5772. * take.
  5773. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
  5774. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
  5775. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
  5776. */
  5777. enum qca_wlan_vendor_external_acs_chan_power_level {
  5778. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
  5779. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
  5780. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
  5781. };
  5782. /**
  5783. * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
  5784. * attributes for power mode type and power values corresponding to that.
  5785. * These attributes are sent as part of
  5786. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
  5787. */
  5788. enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
  5789. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
  5790. /*
  5791. * Power mode (u8) takes the values defined in enum
  5792. * qca_wlan_vendor_external_acs_chan_power_mode
  5793. */
  5794. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
  5795. = 1,
  5796. /*
  5797. * Indicates if power value is a PSD/EIRP value (flag). If flag is
  5798. * present, it indicates a PSD value.
  5799. */
  5800. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
  5801. /*
  5802. * Power value (u32) PSD/EIRP as indicated by
  5803. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
  5804. * for power mode corresponding to the
  5805. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
  5806. * Units for PSD - dBm/MHz
  5807. * Units for EIRP - dBm
  5808. */
  5809. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
  5810. = 3,
  5811. /* keep last */
  5812. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
  5813. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
  5814. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
  5815. };
  5816. /**
  5817. * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command
  5818. * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host
  5819. * driver.
  5820. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to
  5821. * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why
  5822. * ACS need to be started
  5823. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does
  5824. * driver supports spectral scanning or not
  5825. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is
  5826. * offloaded to firmware.
  5827. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver
  5828. * provides additional channel capability as part of scan operation.
  5829. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate
  5830. * interface status is UP
  5831. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of
  5832. * interface. It takes one of nl80211_iftype values.
  5833. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound
  5834. * of chan width. ACS logic should try to get a channel with specified width
  5835. * if not found then look for lower values.
  5836. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands
  5837. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as
  5838. * a/b/g/n/ac.
  5839. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list
  5840. * among which ACS should choose best frequency.
  5841. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the
  5842. * driver which will have <channel(u8), weight(u8)> format as array of
  5843. * nested values.
  5844. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute
  5845. * for each channel. It takes attr as defined in
  5846. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as
  5847. * PCL mandatory, PCL preferred, etc.It uses values defined in enum
  5848. * qca_wlan_vendor_attr_external_acs_policy.
  5849. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF
  5850. * Operating Parameter (RROP) availability information (u16). It uses values
  5851. * defined in enum qca_wlan_vendor_attr_rropavail_info.
  5852. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY: Flag attribute to
  5853. * indicate if driver supports 6 GHz AFC trigger for External ACS.
  5854. */
  5855. enum qca_wlan_vendor_attr_external_acs_event {
  5856. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
  5857. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
  5858. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
  5859. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
  5860. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
  5861. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
  5862. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
  5863. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
  5864. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
  5865. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
  5866. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
  5867. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
  5868. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
  5869. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
  5870. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
  5871. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
  5872. /* keep last */
  5873. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
  5874. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
  5875. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
  5876. };
  5877. enum qca_iface_type {
  5878. QCA_IFACE_TYPE_STA,
  5879. QCA_IFACE_TYPE_AP,
  5880. QCA_IFACE_TYPE_P2P_CLIENT,
  5881. QCA_IFACE_TYPE_P2P_GO,
  5882. QCA_IFACE_TYPE_IBSS,
  5883. QCA_IFACE_TYPE_TDLS,
  5884. };
  5885. /**
  5886. * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command
  5887. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
  5888. * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
  5889. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value
  5890. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number
  5891. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight
  5892. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency
  5893. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask
  5894. */
  5895. enum qca_wlan_vendor_attr_pcl_config {
  5896. QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
  5897. QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
  5898. QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
  5899. QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
  5900. QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
  5901. };
  5902. enum qca_set_band {
  5903. QCA_SETBAND_AUTO = 0,
  5904. QCA_SETBAND_5G = BIT(0),
  5905. QCA_SETBAND_2G = BIT(1),
  5906. QCA_SETBAND_6G = BIT(2),
  5907. };
  5908. /**
  5909. * enum set_reset_packet_filter - set packet filter control commands
  5910. * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter
  5911. * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter
  5912. * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data
  5913. * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data
  5914. * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter
  5915. * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter
  5916. */
  5917. enum set_reset_packet_filter {
  5918. QCA_WLAN_SET_PACKET_FILTER = 1,
  5919. QCA_WLAN_GET_PACKET_FILTER = 2,
  5920. QCA_WLAN_WRITE_PACKET_FILTER = 3,
  5921. QCA_WLAN_READ_PACKET_FILTER = 4,
  5922. QCA_WLAN_ENABLE_PACKET_FILTER = 5,
  5923. QCA_WLAN_DISABLE_PACKET_FILTER = 6,
  5924. };
  5925. /**
  5926. * enum qca_wlan_vendor_attr_packet_filter - APF control commands
  5927. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid
  5928. * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID
  5929. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version
  5930. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length
  5931. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset
  5932. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions
  5933. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program
  5934. * section in packet filter buffer
  5935. */
  5936. enum qca_wlan_vendor_attr_packet_filter {
  5937. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
  5938. QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER,
  5939. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
  5940. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
  5941. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
  5942. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
  5943. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
  5944. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH,
  5945. /* keep last */
  5946. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
  5947. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
  5948. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
  5949. };
  5950. /**
  5951. * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
  5952. * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
  5953. */
  5954. enum qca_wlan_vendor_attr_wake_stats {
  5955. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
  5956. /* Unsigned 32-bit value indicating the total count of wake event */
  5957. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
  5958. /* Array of individual wake count, each index representing wake reason
  5959. */
  5960. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
  5961. /* Unsigned 32-bit value representing wake count array */
  5962. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
  5963. /* Unsigned 32-bit total wake count value of driver/fw */
  5964. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
  5965. /* Array of wake stats of driver/fw */
  5966. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
  5967. /* Unsigned 32-bit total wake count value of driver/fw */
  5968. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
  5969. /* Unsigned 32-bit total wake count value of packets received */
  5970. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
  5971. /* Unsigned 32-bit wake count value unicast packets received */
  5972. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
  5973. /* Unsigned 32-bit wake count value multicast packets received */
  5974. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
  5975. /* Unsigned 32-bit wake count value broadcast packets received */
  5976. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
  5977. /* Unsigned 32-bit wake count value of ICMP packets */
  5978. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
  5979. /* Unsigned 32-bit wake count value of ICMP6 packets */
  5980. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
  5981. /* Unsigned 32-bit value ICMP6 router advertisement */
  5982. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
  5983. /* Unsigned 32-bit value ICMP6 neighbor advertisement */
  5984. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
  5985. /* Unsigned 32-bit value ICMP6 neighbor solicitation */
  5986. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
  5987. /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
  5988. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
  5989. /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
  5990. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
  5991. /* Unsigned 32-bit wake count value of receive side multicast */
  5992. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
  5993. /* Unsigned 32-bit wake count value of a given RSSI breach */
  5994. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
  5995. /* Unsigned 32-bit wake count value of low RSSI */
  5996. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
  5997. /* Unsigned 32-bit value GSCAN count */
  5998. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
  5999. /* Unsigned 32-bit value PNO complete count */
  6000. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
  6001. /* Unsigned 32-bit value PNO match count */
  6002. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
  6003. /* keep last */
  6004. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
  6005. QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
  6006. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
  6007. };
  6008. /**
  6009. * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
  6010. * configured by userspace to the driver/firmware. The values will be
  6011. * encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL attribute.
  6012. * The driver/firmware takes necessary actions requested by userspace
  6013. * such as throttling wifi tx etc. in order to mitigate high temperature.
  6014. *
  6015. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
  6016. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle tx lightly.
  6017. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle tx moderately.
  6018. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle tx severely.
  6019. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
  6020. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
  6021. */
  6022. enum qca_wlan_vendor_thermal_level {
  6023. QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
  6024. QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
  6025. QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
  6026. QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
  6027. QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
  6028. QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
  6029. };
  6030. /**
  6031. * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
  6032. * cmd value. Used for NL attributes for data used by
  6033. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
  6034. */
  6035. enum qca_wlan_vendor_attr_thermal_cmd {
  6036. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
  6037. /* The value of command, driver will implement different operations
  6038. * according to this value. It uses values defined in
  6039. * enum qca_wlan_vendor_attr_thermal_cmd_type.
  6040. * u32 attribute.
  6041. */
  6042. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
  6043. /* Userspace uses this attribute to configure thermal level to the
  6044. * driver/firmware, or get thermal level from the driver/firmware.
  6045. * Used in request or response, u32 attribute,
  6046. * possible values are defined in enum qca_wlan_vendor_thermal_level.
  6047. */
  6048. QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
  6049. /* Userspace uses this attribute to configure the time in which the
  6050. * driver/firmware should complete applying settings it received from
  6051. * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
  6052. * command type. Used in request, u32 attribute, value is in
  6053. * milliseconds. A value of zero indicates to apply the settings
  6054. * immediately. The driver/firmware can delay applying the configured
  6055. * thermal settings within the time specified in this attribute if
  6056. * there is any critical ongoing operation.
  6057. */
  6058. QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
  6059. /* Nested attribute, driver/firmware uses this attribute to report
  6060. * thermal stats of different thermal levels to userspace when requested
  6061. * using QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
  6062. * type. This attribute contains nested array of records of thermal
  6063. * statistics of multiple levels. The attributes used inside this nested
  6064. * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
  6065. */
  6066. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
  6067. /* keep last */
  6068. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
  6069. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
  6070. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
  6071. };
  6072. /**
  6073. * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
  6074. * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
  6075. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
  6076. * thermal command types sent to driver.
  6077. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
  6078. * get thermal shutdown configuration parameters for display. Parameters
  6079. * responded from driver are defined in
  6080. * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
  6081. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
  6082. * get temperature. Host should respond with a temperature data. It is defined
  6083. * in enum qca_wlan_vendor_attr_thermal_get_temperature.
  6084. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
  6085. * suspend action.
  6086. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
  6087. * resume action.
  6088. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
  6089. * the driver/firmware.
  6090. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
  6091. * thermal level from the driver/firmware. The driver should respond with a
  6092. * thermal level defined in enum qca_wlan_vendor_thermal_level.
  6093. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
  6094. * current thermal stats from the driver/firmware. The driver should respond
  6095. * with stats of all thermal levels encapsulated in attribute
  6096. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
  6097. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
  6098. * the current thermal stats all thermal levels maintained in the
  6099. * driver/firmware and start counting from zero again.
  6100. */
  6101. enum qca_wlan_vendor_attr_thermal_cmd_type {
  6102. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
  6103. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
  6104. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
  6105. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
  6106. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
  6107. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
  6108. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
  6109. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
  6110. };
  6111. /**
  6112. * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
  6113. * to get chip temperature by user.
  6114. * enum values are used for NL attributes for data used by
  6115. * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
  6116. * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
  6117. */
  6118. enum qca_wlan_vendor_attr_thermal_get_temperature {
  6119. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
  6120. /* Temperature value (degree Celsius) from driver.
  6121. * u32 attribute.
  6122. */
  6123. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
  6124. /* keep last */
  6125. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
  6126. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
  6127. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
  6128. };
  6129. /**
  6130. * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
  6131. * report thermal events from driver to user space.
  6132. * enum values are used for NL attributes for data used by
  6133. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
  6134. */
  6135. enum qca_wlan_vendor_attr_thermal_event {
  6136. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
  6137. /* Temperature value (degree Celsius) from driver.
  6138. * u32 attribute.
  6139. */
  6140. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
  6141. /* Indication of resume completion from power save mode.
  6142. * NLA_FLAG attribute.
  6143. */
  6144. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
  6145. /* Thermal level from the driver.
  6146. * u32 attribute. Possible values are defined in
  6147. * enum qca_wlan_vendor_thermal_level.
  6148. */
  6149. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
  6150. /* keep last */
  6151. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
  6152. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
  6153. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
  6154. };
  6155. /**
  6156. * enum qca_vendor_element_id - QCA Vendor Specific element types
  6157. *
  6158. * These values are used to identify QCA Vendor Specific elements. The
  6159. * payload of the element starts with the three octet OUI (OUI_QCA) and
  6160. * is followed by a single octet type which is defined by this enum.
  6161. *
  6162. * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
  6163. * This element can be used to specify preference order for supported
  6164. * channels. The channels in this list are in preference order (the first
  6165. * one has the highest preference) and are described as a pair of
  6166. * (global) Operating Class and Channel Number (each one octet) fields.
  6167. *
  6168. * This extends the standard P2P functionality by providing option to have
  6169. * more than one preferred operating channel. When this element is present,
  6170. * it replaces the preference indicated in the Operating Channel attribute.
  6171. * For supporting other implementations, the Operating Channel attribute is
  6172. * expected to be used with the highest preference channel. Similarly, all
  6173. * the channels included in this Preferred channel list element are
  6174. * expected to be included in the Channel List attribute.
  6175. *
  6176. * This vendor element may be included in GO Negotiation Request, P2P
  6177. * Invitation Request, and Provision Discovery Request frames.
  6178. *
  6179. * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
  6180. * This element can be used for pre-standard publication testing of HE
  6181. * before P802.11ax draft assigns the element ID. The payload of this
  6182. * vendor specific element is defined by the latest P802.11ax draft.
  6183. * Please note that the draft is still work in progress and this element
  6184. * payload is subject to change.
  6185. *
  6186. * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
  6187. * This element can be used for pre-standard publication testing of HE
  6188. * before P802.11ax draft assigns the element ID. The payload of this
  6189. * vendor specific element is defined by the latest P802.11ax draft.
  6190. * Please note that the draft is still work in progress and this element
  6191. * payload is subject to change.
  6192. *
  6193. * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
  6194. * element).
  6195. * This element can be used for pre-standard publication testing of HE
  6196. * before P802.11ax draft assigns the element ID extension. The payload of
  6197. * this vendor specific element is defined by the latest P802.11ax draft
  6198. * (not including the Element ID Extension field). Please note that the
  6199. * draft is still work in progress and this element payload is subject to
  6200. * change.
  6201. *
  6202. * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
  6203. * This element can be used for pre-standard publication testing of HE
  6204. * before P802.11ax draft assigns the element ID extension. The payload of
  6205. * this vendor specific element is defined by the latest P802.11ax draft
  6206. * (not including the Element ID Extension field). Please note that the
  6207. * draft is still work in progress and this element payload is subject to
  6208. * change.
  6209. *
  6210. * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
  6211. * This element can be used for pre-standard publication testing of HE
  6212. * before P802.11ax draft assigns the element ID extension. The payload of
  6213. * this vendor specific element is defined by the latest P802.11ax draft
  6214. * (not including the Element ID Extension field). Please note that the
  6215. * draft is still work in progress and this element payload is subject to
  6216. * change.
  6217. */
  6218. enum qca_vendor_element_id {
  6219. QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
  6220. QCA_VENDOR_ELEM_HE_CAPAB = 1,
  6221. QCA_VENDOR_ELEM_HE_OPER = 2,
  6222. QCA_VENDOR_ELEM_RAPS = 3,
  6223. QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
  6224. QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
  6225. };
  6226. /**
  6227. * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
  6228. * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
  6229. * Specify the TSF command. Possible values are defined in
  6230. * &enum qca_tsf_cmd.
  6231. * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
  6232. * This attribute contains TSF timer value. This attribute is only available
  6233. * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
  6234. * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
  6235. * This attribute contains SOC timer value at TSF capture. This attribute is
  6236. * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
  6237. * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
  6238. * This attribute is used to provide TSF sync interval and only applicable when
  6239. * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
  6240. * driver will use the default value. Time unit is in milliseconds.
  6241. */
  6242. enum qca_vendor_attr_tsf_cmd {
  6243. QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
  6244. QCA_WLAN_VENDOR_ATTR_TSF_CMD,
  6245. QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
  6246. QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
  6247. QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
  6248. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
  6249. QCA_WLAN_VENDOR_ATTR_TSF_MAX =
  6250. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
  6251. };
  6252. /**
  6253. * enum qca_tsf_cmd: TSF driver commands
  6254. * @QCA_TSF_CAPTURE: Initiate TSF Capture
  6255. * @QCA_TSF_GET: Get TSF capture value
  6256. * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
  6257. * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
  6258. * will automatically send TSF report to the host. To query
  6259. * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
  6260. * initiated first.
  6261. * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
  6262. * will not automatically send TSF report to the host. If
  6263. * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
  6264. * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
  6265. * operation needs to be initiated.
  6266. * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
  6267. * fetches TSF and host time mapping from the firmware with interval configured
  6268. * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
  6269. * interval value is not provided the driver will use the default value. The
  6270. * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
  6271. * command.
  6272. * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
  6273. */
  6274. enum qca_tsf_cmd {
  6275. QCA_TSF_CAPTURE,
  6276. QCA_TSF_GET,
  6277. QCA_TSF_SYNC_GET,
  6278. QCA_TSF_AUTO_REPORT_ENABLE,
  6279. QCA_TSF_AUTO_REPORT_DISABLE,
  6280. QCA_TSF_SYNC_START,
  6281. QCA_TSF_SYNC_STOP,
  6282. };
  6283. /**
  6284. * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list
  6285. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value
  6286. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type
  6287. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list
  6288. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight
  6289. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last
  6290. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max
  6291. */
  6292. enum qca_vendor_attr_get_preferred_freq_list {
  6293. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
  6294. /* A 32-unsigned value; the interface type/mode for which the preferred
  6295. * frequency list is requested (see enum qca_iface_type for possible
  6296. * values); used in both south- and north-bound.
  6297. */
  6298. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
  6299. /* An array of 32-unsigned values; values are frequency (MHz); used
  6300. * in north-bound only.
  6301. */
  6302. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
  6303. /* An array of nested values as per enum
  6304. * qca_wlan_vendor_attr_pcl_config attribute.
  6305. * Each element contains frequency (MHz), weight, and flag
  6306. * bit mask indicating how the frequency should be used in P2P
  6307. * negotiation.
  6308. */
  6309. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
  6310. /* keep last */
  6311. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
  6312. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
  6313. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
  6314. };
  6315. /**
  6316. * enum qca_vendor_attr_probable_oper_channel - channel hint
  6317. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value
  6318. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type
  6319. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value
  6320. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last
  6321. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max
  6322. */
  6323. enum qca_vendor_attr_probable_oper_channel {
  6324. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
  6325. /* 32-bit unsigned value; indicates the connection/iface type likely to
  6326. * come on this channel (see enum qca_iface_type).
  6327. */
  6328. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
  6329. /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
  6330. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
  6331. /* keep last */
  6332. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
  6333. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
  6334. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
  6335. };
  6336. /**
  6337. * enum qca_wlan_vendor_attr_gw_param_config - gateway param config
  6338. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid
  6339. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr
  6340. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr
  6341. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr
  6342. */
  6343. enum qca_wlan_vendor_attr_gw_param_config {
  6344. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0,
  6345. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR,
  6346. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR,
  6347. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR,
  6348. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST,
  6349. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX =
  6350. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1,
  6351. };
  6352. /**
  6353. * enum drv_dbs_capability - DBS capability
  6354. * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled
  6355. * @DRV_DBS_CAPABILITY_1X1: 1x1
  6356. * @DRV_DBS_CAPABILITY_2X2: 2x2
  6357. */
  6358. enum drv_dbs_capability {
  6359. DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */
  6360. DRV_DBS_CAPABILITY_1X1,
  6361. DRV_DBS_CAPABILITY_2X2,
  6362. };
  6363. /**
  6364. * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
  6365. *
  6366. * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
  6367. */
  6368. enum qca_vendor_attr_txpower_decr_db {
  6369. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
  6370. /*
  6371. * 8-bit unsigned value to indicate the reduction of TX power in dB for
  6372. * a virtual interface.
  6373. */
  6374. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
  6375. /* keep last */
  6376. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
  6377. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
  6378. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
  6379. };
  6380. /**
  6381. * enum qca_vendor_attr_ota_test - Enable OTA test
  6382. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value
  6383. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test
  6384. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last
  6385. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max
  6386. */
  6387. enum qca_vendor_attr_ota_test {
  6388. QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
  6389. /* 8-bit unsigned value to indicate if OTA test is enabled */
  6390. QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
  6391. /* keep last */
  6392. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
  6393. QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
  6394. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
  6395. };
  6396. /** enum qca_vendor_attr_txpower_scale - vendor sub commands index
  6397. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value
  6398. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
  6399. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value
  6400. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value
  6401. */
  6402. enum qca_vendor_attr_txpower_scale {
  6403. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
  6404. /* 8-bit unsigned value to indicate the scaling of tx power */
  6405. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
  6406. /* keep last */
  6407. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
  6408. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
  6409. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
  6410. };
  6411. /**
  6412. * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index
  6413. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value
  6414. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value
  6415. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value
  6416. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value
  6417. */
  6418. enum qca_vendor_attr_txpower_scale_decr_db {
  6419. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID,
  6420. /* 8-bit unsigned value to indicate the scaling of tx power */
  6421. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB,
  6422. /* keep last */
  6423. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST,
  6424. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX =
  6425. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1
  6426. };
  6427. /**
  6428. * enum dfs_mode - state of DFS mode
  6429. * @DFS_MODE_NONE: DFS mode attribute is none
  6430. * @DFS_MODE_ENABLE: DFS mode is enabled
  6431. * @DFS_MODE_DISABLE: DFS mode is disabled
  6432. * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning
  6433. */
  6434. enum dfs_mode {
  6435. DFS_MODE_NONE,
  6436. DFS_MODE_ENABLE,
  6437. DFS_MODE_DISABLE,
  6438. DFS_MODE_DEPRIORITIZE
  6439. };
  6440. /**
  6441. * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
  6442. * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
  6443. *
  6444. * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
  6445. * DFS mode for ACS operation from enum qca_acs_dfs_mode.
  6446. *
  6447. * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
  6448. * channel number hint for ACS operation, if valid channel is specified then
  6449. * ACS operation gives priority to this channel.
  6450. * Note: If both the driver and user space application supports the 6 GHz band,
  6451. * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
  6452. * should be used.
  6453. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
  6454. * is still used if either of the driver or user space application doesn't
  6455. * support the 6 GHz band.
  6456. *
  6457. * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
  6458. * Channel center frequency (MHz) hint for ACS operation, if a valid center
  6459. * frequency is specified, ACS operation gives priority to this channel.
  6460. */
  6461. enum qca_wlan_vendor_attr_acs_config {
  6462. QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
  6463. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
  6464. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
  6465. QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
  6466. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
  6467. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
  6468. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
  6469. };
  6470. /**
  6471. * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
  6472. */
  6473. enum qca_wlan_vendor_attr_get_hw_capability {
  6474. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
  6475. /*
  6476. * Antenna isolation
  6477. * An attribute used in the response.
  6478. * The content of this attribute is encoded in a byte array. Each byte
  6479. * value is an antenna isolation value. The array length is the number
  6480. * of antennas.
  6481. */
  6482. QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
  6483. /*
  6484. * Request HW capability
  6485. * An attribute used in the request.
  6486. * The content of this attribute is a u32 array for one or more of
  6487. * hardware capabilities (attribute IDs) that are being requested. Each
  6488. * u32 value has a value from this
  6489. * enum qca_wlan_vendor_attr_get_hw_capability
  6490. * identifying which capabilities are requested.
  6491. */
  6492. QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
  6493. /* keep last */
  6494. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
  6495. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
  6496. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
  6497. };
  6498. /**
  6499. * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config -
  6500. * config params for sta roam policy
  6501. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid
  6502. * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels
  6503. * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL:
  6504. * If sta should skip unsafe channels or not in scanning
  6505. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST:
  6506. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute
  6507. */
  6508. enum qca_wlan_vendor_attr_sta_connect_roam_policy_config {
  6509. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0,
  6510. QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE,
  6511. QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL,
  6512. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST,
  6513. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX =
  6514. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1,
  6515. };
  6516. /* Attributes for FTM commands and events */
  6517. /**
  6518. * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
  6519. *
  6520. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
  6521. * enum qca_wlan_vendor_attr_loc_capa_flags.
  6522. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
  6523. * of measurement sessions that can run concurrently.
  6524. * Default is one session (no session concurrency).
  6525. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
  6526. * peers that are supported in running sessions. For example,
  6527. * if the value is 8 and maximum number of sessions is 2, you can
  6528. * have one session with 8 unique peers, or 2 sessions with 4 unique
  6529. * peers each, and so on.
  6530. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
  6531. * of bursts per peer, as an exponent (2^value). Default is 0,
  6532. * meaning no multi-burst support.
  6533. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
  6534. * of measurement exchanges allowed in a single burst.
  6535. * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
  6536. * types. A bit mask (unsigned 32 bit value), each bit corresponds
  6537. * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
  6538. */
  6539. enum qca_wlan_vendor_attr_loc_capa {
  6540. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
  6541. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
  6542. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
  6543. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
  6544. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
  6545. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
  6546. QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
  6547. /* keep last */
  6548. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
  6549. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
  6550. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
  6551. };
  6552. /**
  6553. * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
  6554. *
  6555. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
  6556. * can be configured as an FTM responder (for example, an AP that
  6557. * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  6558. * will be supported if set.
  6559. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
  6560. * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
  6561. * will be supported if set.
  6562. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
  6563. * supports immediate (ASAP) response.
  6564. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
  6565. * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
  6566. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
  6567. * requesting AOA measurements as part of an FTM session.
  6568. */
  6569. enum qca_wlan_vendor_attr_loc_capa_flags {
  6570. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
  6571. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
  6572. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
  6573. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
  6574. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
  6575. };
  6576. /**
  6577. * enum qca_wlan_ani_setting - ANI setting type
  6578. * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
  6579. * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
  6580. */
  6581. enum qca_wlan_ani_setting {
  6582. QCA_WLAN_ANI_SETTING_AUTO = 0,
  6583. QCA_WLAN_ANI_SETTING_FIXED = 1,
  6584. };
  6585. /**
  6586. * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
  6587. *
  6588. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
  6589. * Channel number on which Access Point should restart.
  6590. * Note: If both the driver and user space application supports the 6 GHz band,
  6591. * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
  6592. * should be used.
  6593. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
  6594. * is still used if either of the driver or user space application doesn't
  6595. * support the 6 GHz band.
  6596. *
  6597. * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required
  6598. * Nested attribute to hold list of center frequencies on which AP is
  6599. * expected to operate. This is irrespective of ACS configuration.
  6600. * This list is a priority based one and is looked for before the AP is
  6601. * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC)
  6602. * co-exist in the system.
  6603. *
  6604. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
  6605. * Channel center frequency (MHz) on which the access point should restart.
  6606. */
  6607. enum qca_wlan_vendor_attr_sap_config {
  6608. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
  6609. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
  6610. QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
  6611. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
  6612. /* Keep last */
  6613. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
  6614. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
  6615. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
  6616. };
  6617. /**
  6618. * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
  6619. * a single peer in a measurement session.
  6620. *
  6621. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
  6622. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
  6623. * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
  6624. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
  6625. * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
  6626. * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
  6627. * list of supported attributes.
  6628. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
  6629. * secure measurement.
  6630. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
  6631. * measurement every <value> bursts. If 0 or not specified,
  6632. * AOA measurements will be disabled for this peer.
  6633. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
  6634. * the measurement frames are exchanged. Optional; if not
  6635. * specified, try to locate the peer in the kernel scan
  6636. * results cache and use frequency from there.
  6637. */
  6638. enum qca_wlan_vendor_attr_ftm_peer_info {
  6639. QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
  6640. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
  6641. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
  6642. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
  6643. QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
  6644. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
  6645. QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
  6646. /* keep last */
  6647. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
  6648. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
  6649. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
  6650. };
  6651. /**
  6652. * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
  6653. * per-peer
  6654. *
  6655. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
  6656. * immediate (ASAP) response from peer.
  6657. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
  6658. * LCI report from peer. The LCI report includes the absolute
  6659. * location of the peer in "official" coordinates (similar to GPS).
  6660. * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
  6661. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
  6662. * Location civic report from peer. The LCR includes the location
  6663. * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
  6664. * 11.24.6.7 for more information.
  6665. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
  6666. * request a secure measurement.
  6667. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
  6668. */
  6669. enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
  6670. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
  6671. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
  6672. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
  6673. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
  6674. };
  6675. /**
  6676. * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
  6677. *
  6678. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
  6679. * to perform in a single burst.
  6680. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
  6681. * perform, specified as an exponent (2^value).
  6682. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
  6683. * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
  6684. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
  6685. * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
  6686. * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
  6687. */
  6688. enum qca_wlan_vendor_attr_ftm_meas_param {
  6689. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
  6690. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
  6691. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
  6692. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
  6693. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
  6694. /* keep last */
  6695. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
  6696. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
  6697. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
  6698. };
  6699. /**
  6700. * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
  6701. *
  6702. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
  6703. * peer.
  6704. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
  6705. * request for this peer.
  6706. * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
  6707. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
  6708. * to measurement results for this peer.
  6709. * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
  6710. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
  6711. * request failed and peer requested not to send an additional request
  6712. * for this number of seconds.
  6713. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
  6714. * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  6715. * 9.4.2.22.10.
  6716. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
  6717. * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  6718. * 9.4.2.22.13.
  6719. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
  6720. * overridden some measurement request parameters. See
  6721. * enum qca_wlan_vendor_attr_ftm_meas_param.
  6722. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
  6723. * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
  6724. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
  6725. * results. Each entry is a nested attribute defined
  6726. * by enum qca_wlan_vendor_attr_ftm_meas.
  6727. */
  6728. enum qca_wlan_vendor_attr_ftm_peer_result {
  6729. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
  6730. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
  6731. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
  6732. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
  6733. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
  6734. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
  6735. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
  6736. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
  6737. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
  6738. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
  6739. /* keep last */
  6740. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
  6741. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
  6742. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
  6743. };
  6744. /**
  6745. * enum qca_wlan_vendor_attr_ftm_peer_result_status
  6746. *
  6747. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
  6748. * will be provided. Peer may have overridden some measurement parameters,
  6749. * in which case overridden parameters will be report by
  6750. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
  6751. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
  6752. * of performing the measurement request. No more results will be sent
  6753. * for this peer in this session.
  6754. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
  6755. * failed, and requested not to send an additional request for number
  6756. * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
  6757. * attribute.
  6758. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
  6759. * failed. Request was not sent over the air.
  6760. */
  6761. enum qca_wlan_vendor_attr_ftm_peer_result_status {
  6762. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
  6763. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
  6764. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
  6765. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
  6766. };
  6767. /**
  6768. * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
  6769. * for measurement result, per-peer
  6770. *
  6771. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
  6772. * measurement completed for this peer. No more results will be reported
  6773. * for this peer in this session.
  6774. */
  6775. enum qca_wlan_vendor_attr_ftm_peer_result_flags {
  6776. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
  6777. };
  6778. /**
  6779. * enum qca_vendor_attr_loc_session_status: Session completion status code
  6780. *
  6781. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
  6782. * successfully.
  6783. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
  6784. * by request.
  6785. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
  6786. * was invalid and was not started.
  6787. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
  6788. * and did not complete normally (for example out of resources).
  6789. */
  6790. enum qca_vendor_attr_loc_session_status {
  6791. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
  6792. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
  6793. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
  6794. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
  6795. };
  6796. /**
  6797. * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
  6798. *
  6799. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
  6800. * recorded by responder, in picoseconds.
  6801. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6802. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
  6803. * initiator, in picoseconds.
  6804. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6805. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
  6806. * initiator, in picoseconds.
  6807. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6808. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
  6809. * responder, in picoseconds.
  6810. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6811. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
  6812. * during this measurement exchange. Optional and will be provided if
  6813. * the hardware can measure it.
  6814. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
  6815. * responder. Not always provided.
  6816. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6817. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
  6818. * responder. Not always provided.
  6819. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6820. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
  6821. * initiator. Not always provided.
  6822. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6823. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
  6824. * initiator. Not always provided.
  6825. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6826. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
  6827. */
  6828. enum qca_wlan_vendor_attr_ftm_meas {
  6829. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
  6830. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
  6831. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
  6832. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
  6833. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
  6834. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
  6835. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
  6836. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
  6837. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
  6838. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
  6839. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
  6840. /* keep last */
  6841. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
  6842. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
  6843. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
  6844. };
  6845. /**
  6846. * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index
  6847. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value
  6848. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL:
  6849. * A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
  6850. * of the social channels.
  6851. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period
  6852. * A 32-bit unsigned value; the P2P listen offload period (ms).
  6853. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL:
  6854. * A 32-bit unsigned value; the P2P listen interval duration (ms).
  6855. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT:
  6856. * A 32-bit unsigned value; number of interval times the Firmware needs
  6857. * to run the offloaded P2P listen operation before it stops.
  6858. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types
  6859. * An array of unsigned 8-bit characters; vendor information elements.
  6860. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs
  6861. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW
  6862. * A 32-bit unsigned value; a control flag to indicate whether listen
  6863. * results need to be flushed to wpa_supplicant.
  6864. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason
  6865. * A 8-bit unsigned value; reason code for P2P listen offload stop
  6866. * event.
  6867. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value
  6868. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value
  6869. */
  6870. enum qca_wlan_vendor_attr_p2p_listen_offload {
  6871. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
  6872. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
  6873. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
  6874. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
  6875. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
  6876. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
  6877. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
  6878. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
  6879. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
  6880. /* keep last */
  6881. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
  6882. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
  6883. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
  6884. };
  6885. /**
  6886. * enum qca_wlan_vendor_drv_info - WLAN driver info
  6887. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid
  6888. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info
  6889. * between Firmware & Host.
  6890. */
  6891. enum qca_wlan_vendor_drv_info {
  6892. QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
  6893. QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
  6894. /* keep last */
  6895. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
  6896. QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
  6897. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
  6898. };
  6899. /**
  6900. * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
  6901. *
  6902. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
  6903. * CIR (channel impulse response) path for each antenna.
  6904. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
  6905. * of the strongest CIR path for each antenna.
  6906. */
  6907. enum qca_wlan_vendor_attr_aoa_type {
  6908. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
  6909. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
  6910. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
  6911. };
  6912. /**
  6913. * enum qca_wlan_vendor_attr_encryption_test - Attributes to
  6914. * validate encryption engine
  6915. *
  6916. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
  6917. * This will be included if the request is for decryption; if not included,
  6918. * the request is treated as a request for encryption by default.
  6919. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
  6920. * indicating the key cipher suite. Takes same values as
  6921. * NL80211_ATTR_KEY_CIPHER.
  6922. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
  6923. * Key Id to be used for encryption
  6924. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
  6925. * Key (TK) to be used for encryption/decryption
  6926. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
  6927. * Packet number to be specified for encryption/decryption
  6928. * 6 bytes for TKIP/CCMP/GCMP.
  6929. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
  6930. * representing the 802.11 packet (header + payload + FCS) that
  6931. * needs to be encrypted/decrypted.
  6932. * Encrypted/decrypted response from the driver will also be sent
  6933. * to userspace with the same attribute.
  6934. */
  6935. enum qca_wlan_vendor_attr_encryption_test {
  6936. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
  6937. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
  6938. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
  6939. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
  6940. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
  6941. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
  6942. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
  6943. /* keep last */
  6944. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
  6945. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
  6946. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
  6947. };
  6948. /**
  6949. * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
  6950. * sector for DMG RF sector operations.
  6951. *
  6952. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
  6953. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
  6954. */
  6955. enum qca_wlan_vendor_attr_dmg_rf_sector_type {
  6956. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
  6957. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
  6958. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
  6959. };
  6960. /**
  6961. * enum qca_wlan_vendor_attr_fw_state - State of firmware
  6962. *
  6963. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
  6964. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
  6965. */
  6966. enum qca_wlan_vendor_attr_fw_state {
  6967. QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
  6968. QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
  6969. QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
  6970. };
  6971. /**
  6972. * BRP antenna limit mode
  6973. *
  6974. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
  6975. * antenna limit, BRP will be performed as usual.
  6976. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
  6977. * antennas limit. the hardware may use less antennas than the
  6978. * maximum limit.
  6979. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
  6980. * use exactly the specified number of antennas for BRP.
  6981. */
  6982. enum qca_wlan_vendor_attr_brp_ant_limit_mode {
  6983. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
  6984. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
  6985. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
  6986. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
  6987. };
  6988. /**
  6989. * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
  6990. * DMG RF sector configuration for a single RF module.
  6991. * The values are defined in a compact way which closely matches
  6992. * the way it is stored in HW registers.
  6993. * The configuration provides values for 32 antennas and 8 distribution
  6994. * amplifiers, and together describes the characteristics of the RF
  6995. * sector - such as a beam in some direction with some gain.
  6996. *
  6997. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
  6998. * of RF module for this configuration.
  6999. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
  7000. * amplifier gain index. Unsigned 32 bit number containing
  7001. * bits for all 32 antennas.
  7002. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
  7003. * amplifier gain index. Unsigned 32 bit number containing
  7004. * bits for all 32 antennas.
  7005. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
  7006. * amplifier gain index. Unsigned 32 bit number containing
  7007. * bits for all 32 antennas.
  7008. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
  7009. * for first 16 antennas, 2 bits per antenna.
  7010. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
  7011. * for last 16 antennas, 2 bits per antenna.
  7012. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
  7013. * DTYPE values (3 bits) for each distribution amplifier, followed
  7014. * by X16 switch bits for each distribution amplifier. There are
  7015. * total of 8 distribution amplifiers.
  7016. */
  7017. enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
  7018. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
  7019. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
  7020. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
  7021. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
  7022. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
  7023. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
  7024. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
  7025. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
  7026. /* keep last */
  7027. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
  7028. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
  7029. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
  7030. };
  7031. /**
  7032. * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
  7033. * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver.
  7034. *
  7035. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
  7036. * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
  7037. * represents the different TDLS trigger modes.
  7038. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
  7039. * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
  7040. * of packets shall meet the criteria for implicit TDLS setup.
  7041. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx
  7042. * packets within a duration.
  7043. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate
  7044. * a TDLS setup.
  7045. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
  7046. * a TDLS Discovery to the Peer.
  7047. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
  7048. * discovery attempts to know the TDLS capability of the peer. A peer is
  7049. * marked as TDLS not capable if there is no response for all the attempts.
  7050. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
  7051. * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
  7052. * number of TX / RX frames meet the criteria for TDLS teardown.
  7053. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number
  7054. * (u32) of Tx/Rx packets within a duration
  7055. * CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link
  7056. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
  7057. * corresponding to the RSSI of the peer below which a TDLS
  7058. * setup is triggered.
  7059. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
  7060. * corresponding to the RSSI of the peer above which
  7061. * a TDLS teardown is triggered.
  7062. */
  7063. enum qca_wlan_vendor_attr_tdls_configuration {
  7064. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
  7065. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
  7066. /* Attributes configuring the TDLS Implicit Trigger */
  7067. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
  7068. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
  7069. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
  7070. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
  7071. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
  7072. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
  7073. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
  7074. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
  7075. /* keep last */
  7076. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
  7077. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
  7078. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
  7079. };
  7080. /**
  7081. * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
  7082. * the driver.
  7083. *
  7084. * The following are the different values for
  7085. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
  7086. *
  7087. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to
  7088. * initiate/teardown the TDLS connection to a respective peer comes
  7089. * from the user space. wpa_supplicant provides the commands
  7090. * TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this.
  7091. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
  7092. * setup/teardown to the eligible peer once the configured criteria
  7093. * (such as TX/RX threshold, RSSI) is met. The attributes
  7094. * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
  7095. * the different configuration criteria for the TDLS trigger from the
  7096. * host driver.
  7097. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
  7098. * the TDLS setup / teardown through the implicit mode, only to the
  7099. * configured MAC addresses(wpa_supplicant, with tdls_external_control = 1,
  7100. * configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands).
  7101. * External mode works on top of the implicit mode, thus the host Driver
  7102. * is expected to be configured in TDLS Implicit mode too to operate in
  7103. * External mode. Configuring External mode alone without Implicit
  7104. * mode is invalid.
  7105. *
  7106. * All the above implementations work as expected only when the host driver
  7107. * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP -
  7108. * representing that the TDLS message exchange is not internal to the host
  7109. * driver, but depends on wpa_supplicant to do the message exchange.
  7110. */
  7111. enum qca_wlan_vendor_tdls_trigger_mode {
  7112. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
  7113. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
  7114. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
  7115. };
  7116. /**
  7117. * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
  7118. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
  7119. * that is hard-coded in the Board Data File (BDF).
  7120. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
  7121. * that is hard-coded in the Board Data File (BDF).
  7122. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
  7123. * that is hard-coded in the Board Data File (BDF).
  7124. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
  7125. * that is hard-coded in the Board Data File (BDF).
  7126. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
  7127. * that is hard-coded in the Board Data File (BDF).
  7128. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
  7129. * source of SAR power limits, thereby disabling the SAR power
  7130. * limit feature.
  7131. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
  7132. * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  7133. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
  7134. * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  7135. *
  7136. * This enumerates the valid set of values that may be supplied for
  7137. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
  7138. * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
  7139. * the response to an instance of the
  7140. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  7141. */
  7142. enum qca_vendor_attr_sar_limits_selections {
  7143. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
  7144. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
  7145. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
  7146. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
  7147. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
  7148. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
  7149. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
  7150. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
  7151. };
  7152. /**
  7153. * enum qca_vendor_attr_sar_limits_spec_modulations -
  7154. * SAR limits specification modulation
  7155. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
  7156. * CCK modulation
  7157. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
  7158. * OFDM modulation
  7159. *
  7160. * This enumerates the valid set of values that may be supplied for
  7161. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
  7162. * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
  7163. * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
  7164. * command or in the response to an instance of the
  7165. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  7166. */
  7167. enum qca_vendor_attr_sar_limits_spec_modulations {
  7168. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
  7169. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
  7170. };
  7171. /**
  7172. * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
  7173. *
  7174. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
  7175. * select which SAR power limit table should be used. Valid
  7176. * values are enumerated in enum
  7177. * %qca_vendor_attr_sar_limits_selections. The existing SAR
  7178. * power limit selection is unchanged if this attribute is not
  7179. * present.
  7180. *
  7181. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
  7182. * which specifies the number of SAR power limit specifications
  7183. * which will follow.
  7184. *
  7185. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
  7186. * limit specifications. The number of specifications is
  7187. * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
  7188. * specification contains a set of
  7189. * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
  7190. * specification is uniquely identified by the attributes
  7191. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
  7192. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
  7193. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
  7194. * contains as a payload the attribute
  7195. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
  7196. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
  7197. * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
  7198. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
  7199. * needed based upon the value of
  7200. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
  7201. *
  7202. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
  7203. * indicate for which band this specification applies. Valid
  7204. * values are enumerated in enum %nl80211_band (although not all
  7205. * bands may be supported by a given device). If the attribute is
  7206. * not supplied then the specification will be applied to all
  7207. * supported bands.
  7208. *
  7209. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
  7210. * to indicate for which antenna chain this specification
  7211. * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
  7212. * attribute is not supplied then the specification will be
  7213. * applied to all chains.
  7214. *
  7215. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
  7216. * value to indicate for which modulation scheme this
  7217. * specification applies. Valid values are enumerated in enum
  7218. * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
  7219. * is not supplied then the specification will be applied to all
  7220. * modulation schemes.
  7221. *
  7222. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
  7223. * value to specify the actual power limit value in units of 0.5
  7224. * dBm (i.e., a value of 11 represents 5.5 dBm).
  7225. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  7226. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
  7227. *
  7228. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
  7229. * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
  7230. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  7231. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
  7232. *
  7233. * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
  7234. * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
  7235. */
  7236. enum qca_vendor_attr_sar_limits {
  7237. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
  7238. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
  7239. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
  7240. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
  7241. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
  7242. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
  7243. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
  7244. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
  7245. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
  7246. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
  7247. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
  7248. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
  7249. };
  7250. /**
  7251. * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
  7252. * offload which is an extension for LL_STATS.
  7253. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
  7254. * If MAC counters do not exceed the threshold, FW will report monitored
  7255. * link layer counters periodically as this setting. The first report is
  7256. * always triggered by this timer.
  7257. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
  7258. * For each MAC layer counter, FW holds two copies. One is the current value.
  7259. * The other is the last report. Once a current counter's increment is larger
  7260. * than the threshold, FW will indicate that counter to host even if the
  7261. * monitoring timer does not expire.
  7262. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
  7263. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
  7264. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
  7265. * failure code.
  7266. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
  7267. * 1: TX packet discarded
  7268. * 2: No ACK
  7269. * 3: Postpone
  7270. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
  7271. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
  7272. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
  7273. * Threshold for all monitored parameters. If per counter dedicated threshold
  7274. * is not enabled, this threshold will take effect.
  7275. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
  7276. * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
  7277. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
  7278. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
  7279. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
  7280. * Bit0: TX counter unit in MSDU
  7281. * Bit1: TX counter unit in MPDU
  7282. * Bit2: TX counter unit in PPDU
  7283. * Bit3: TX counter unit in byte
  7284. * Bit4: Dropped MSDUs
  7285. * Bit5: Dropped Bytes
  7286. * Bit6: MPDU retry counter
  7287. * Bit7: MPDU failure counter
  7288. * Bit8: PPDU failure counter
  7289. * Bit9: MPDU aggregation counter
  7290. * Bit10: MCS counter for ACKed MPDUs
  7291. * Bit11: MCS counter for Failed MPDUs
  7292. * Bit12: TX Delay counter
  7293. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
  7294. * Bit0: MAC RX counter unit in MPDU
  7295. * Bit1: MAC RX counter unit in byte
  7296. * Bit2: PHY RX counter unit in PPDU
  7297. * Bit3: PHY RX counter unit in byte
  7298. * Bit4: Disorder counter
  7299. * Bit5: Retry counter
  7300. * Bit6: Duplication counter
  7301. * Bit7: Discard counter
  7302. * Bit8: MPDU aggregation size counter
  7303. * Bit9: MCS counter
  7304. * Bit10: Peer STA power state change (wake to sleep) counter
  7305. * Bit11: Peer STA power save counter, total time in PS mode
  7306. * Bit12: Probe request counter
  7307. * Bit13: Other management frames counter
  7308. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
  7309. * Bit0: Idle time
  7310. * Bit1: TX time
  7311. * Bit2: time RX in current bss
  7312. * Bit3: Out of current bss time
  7313. * Bit4: Wireless medium busy time
  7314. * Bit5: RX in bad condition time
  7315. * Bit6: TX in bad condition time
  7316. * Bit7: time wlan card not available
  7317. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
  7318. * Bit0: Per channel SNR counter
  7319. * Bit1: Per channel noise floor counter
  7320. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
  7321. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
  7322. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
  7323. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
  7324. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
  7325. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
  7326. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
  7327. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
  7328. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
  7329. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
  7330. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
  7331. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
  7332. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
  7333. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
  7334. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
  7335. * aggregation stats buffer length
  7336. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
  7337. * buffer for ACKed MPDUs.
  7338. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
  7339. * buffer for failed MPDUs.
  7340. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
  7341. * length of delay stats array.
  7342. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
  7343. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
  7344. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
  7345. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
  7346. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
  7347. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
  7348. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
  7349. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
  7350. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
  7351. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
  7352. * flagged as retransmissions
  7353. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
  7354. * flagged as duplicated
  7355. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
  7356. * packets discarded
  7357. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
  7358. * stats buffer.
  7359. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
  7360. * stats buffer.
  7361. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
  7362. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
  7363. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
  7364. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
  7365. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
  7366. * requests received
  7367. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
  7368. * frames received
  7369. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
  7370. * there is no TX, nor RX, nor interference.
  7371. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
  7372. * transmitting packets.
  7373. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
  7374. * for receiving.
  7375. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
  7376. * interference detected.
  7377. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
  7378. * receiving packets with errors.
  7379. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
  7380. * TX no-ACK.
  7381. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
  7382. * the chip is unable to work in normal conditions.
  7383. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
  7384. * receiving packets in current BSS.
  7385. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
  7386. * receiving packets not in current BSS.
  7387. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
  7388. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
  7389. * This is a container for per antenna signal stats.
  7390. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
  7391. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
  7392. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
  7393. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
  7394. */
  7395. enum qca_wlan_vendor_attr_ll_stats_ext {
  7396. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
  7397. /* Attributes for configurations */
  7398. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
  7399. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
  7400. /* Peer STA power state change */
  7401. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
  7402. /* TX failure event */
  7403. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
  7404. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
  7405. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
  7406. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
  7407. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
  7408. /* MAC counters */
  7409. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
  7410. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
  7411. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
  7412. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
  7413. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
  7414. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
  7415. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
  7416. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
  7417. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
  7418. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
  7419. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
  7420. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
  7421. /* Sub-attributes for PEER_AC_TX */
  7422. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
  7423. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
  7424. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
  7425. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
  7426. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
  7427. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
  7428. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
  7429. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
  7430. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
  7431. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
  7432. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
  7433. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
  7434. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
  7435. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
  7436. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
  7437. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
  7438. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
  7439. /* Sub-attributes for PEER_AC_RX */
  7440. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
  7441. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
  7442. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
  7443. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
  7444. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
  7445. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
  7446. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
  7447. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
  7448. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
  7449. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
  7450. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
  7451. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
  7452. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
  7453. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
  7454. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
  7455. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
  7456. /* Sub-attributes for CCA_BSS */
  7457. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
  7458. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
  7459. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
  7460. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
  7461. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
  7462. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
  7463. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
  7464. /* sub-attribute for BSS_RX_TIME */
  7465. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
  7466. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
  7467. /* Sub-attributes for PEER_SIGNAL */
  7468. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
  7469. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
  7470. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
  7471. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
  7472. /* Sub-attributes for IFACE_BSS */
  7473. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
  7474. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
  7475. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
  7476. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
  7477. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
  7478. };
  7479. /**
  7480. * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
  7481. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
  7482. * in priority order as decided after ACS operation in userspace.
  7483. *
  7484. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
  7485. * One of reason code from enum qca_wlan_vendor_acs_select_reason.
  7486. *
  7487. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
  7488. * Array of nested values for each channel with following attributes:
  7489. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  7490. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  7491. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  7492. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  7493. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7494. * Note: If both the driver and user-space application supports the 6 GHz band,
  7495. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
  7496. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
  7497. * To maintain backward compatibility,
  7498. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
  7499. * is still used if either of the driver or user space application doesn't
  7500. * support the 6 GHz band.
  7501. *
  7502. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
  7503. * Primary channel number
  7504. * Note: If both the driver and user-space application supports the 6 GHz band,
  7505. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
  7506. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
  7507. * To maintain backward compatibility,
  7508. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
  7509. * is still used if either of the driver or user space application doesn't
  7510. * support the 6 GHz band.
  7511. *
  7512. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
  7513. * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
  7514. * Note: If both the driver and user-space application supports the 6 GHz band,
  7515. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
  7516. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
  7517. * To maintain backward compatibility,
  7518. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
  7519. * is still used if either of the driver or user space application
  7520. * doesn't support the 6 GHz band.
  7521. *
  7522. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
  7523. * VHT seg0 channel number
  7524. * Note: If both the driver and user-space application supports the 6 GHz band,
  7525. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
  7526. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
  7527. * To maintain backward compatibility,
  7528. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
  7529. * is still used if either of the driver or user space application
  7530. * doesn't support the 6 GHz band.
  7531. *
  7532. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
  7533. * VHT seg1 channel number
  7534. * Note: If both the driver and user-space application supports the 6 GHz band,
  7535. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
  7536. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
  7537. * To maintain backward compatibility,
  7538. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
  7539. * is still used if either of the driver or user space application
  7540. * doesn't support the 6 GHz band.
  7541. *
  7542. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
  7543. * Takes one of enum nl80211_chan_width values.
  7544. *
  7545. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
  7546. * Array of nested values for each channel with following attributes:
  7547. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
  7548. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
  7549. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
  7550. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
  7551. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7552. * Note: If user-space application has no support of the 6 GHz band, this
  7553. * attribute is optional.
  7554. *
  7555. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
  7556. * Primary channel frequency in MHz
  7557. * Note: If user-space application has no support of the 6 GHz band, this
  7558. * attribute is optional.
  7559. *
  7560. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
  7561. * Secondary channel frequency in MHz used for HT 40 MHz channels.
  7562. * Note: If user-space application has no support of the 6 GHz band, this
  7563. * attribute is optional.
  7564. *
  7565. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
  7566. * VHT seg0 channel frequency in MHz
  7567. * Note: If user-space application has no support of the 6GHz band, this
  7568. * attribute is optional.
  7569. *
  7570. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
  7571. * VHT seg1 channel frequency in MHz
  7572. * Note: If user-space application has no support of the 6 GHz band, this
  7573. * attribute is optional.
  7574. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16)
  7575. * Puncture Bitmap for selected primary channel. Optional if no support
  7576. * for EHT (IEEE 802.11be). Encoding for this attribute follows the
  7577. * convention used in the Disabled Subchannel Bitmap field of the EHT Operation
  7578. * element.
  7579. */
  7580. enum qca_wlan_vendor_attr_external_acs_channels {
  7581. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
  7582. /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
  7583. */
  7584. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
  7585. /* Array of nested values for each channel with following attributes:
  7586. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
  7587. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  7588. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  7589. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  7590. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  7591. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7592. */
  7593. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
  7594. /* This (u8) will hold values of one of enum nl80211_bands */
  7595. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
  7596. /* Primary channel (u8) */
  7597. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
  7598. /* Secondary channel (u8) used for HT 40 MHz channels */
  7599. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
  7600. /* VHT seg0 channel (u8) */
  7601. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
  7602. /* VHT seg1 channel (u8) */
  7603. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
  7604. /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
  7605. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
  7606. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
  7607. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
  7608. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
  7609. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
  7610. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
  7611. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14,
  7612. /* keep last */
  7613. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
  7614. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
  7615. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
  7616. };
  7617. /**
  7618. * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
  7619. * the ACS has to be triggered. These values are used by
  7620. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
  7621. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
  7622. */
  7623. enum qca_wlan_vendor_acs_select_reason {
  7624. /* Represents the reason that the ACS triggered during the AP start */
  7625. QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
  7626. /* Represents the reason that DFS found with the current channel */
  7627. QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
  7628. /* Represents the reason that LTE co-exist in the current band. */
  7629. QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
  7630. /* Represents the reason that generic, uncategorized interference has
  7631. * been found in the current channel.
  7632. */
  7633. QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
  7634. /* Represents the reason that excessive 802.11 interference has been
  7635. * found in the current channel.
  7636. */
  7637. QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
  7638. /* Represents the reason that generic Continuous Wave (CW) interference
  7639. * has been found in the current channel.
  7640. */
  7641. QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
  7642. /* Represents the reason that Microwave Oven (MWO) interference has been
  7643. * found in the current channel.
  7644. */
  7645. QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
  7646. /* Represents the reason that generic Frequency-Hopping Spread Spectrum
  7647. * (FHSS) interference has been found in the current channel. This may
  7648. * include 802.11 waveforms.
  7649. */
  7650. QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
  7651. /* Represents the reason that non-802.11 generic Frequency-Hopping
  7652. * Spread Spectrum (FHSS) interference has been found in the current
  7653. * channel.
  7654. */
  7655. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
  7656. /* Represents the reason that generic Wideband (WB) interference has
  7657. * been found in the current channel. This may include 802.11 waveforms.
  7658. */
  7659. QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
  7660. /* Represents the reason that non-802.11 generic Wideband (WB)
  7661. * interference has been found in the current channel.
  7662. */
  7663. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
  7664. /* Represents the reason that Jammer interference has been found in the
  7665. * current channel.
  7666. */
  7667. QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
  7668. /* Represents the reason that ACS triggered by AFC */
  7669. QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
  7670. };
  7671. /**
  7672. * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
  7673. *
  7674. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
  7675. * value to specify the gpio command, please refer to enum qca_gpio_cmd_type
  7676. * to get the available value that this item can use.
  7677. *
  7678. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
  7679. * value to specify the gpio number.
  7680. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7681. * %QCA_WLAN_VENDOR_GPIO_CONFIG or %.QCA_WLAN_VENDOR_GPIO_OUTPUT.
  7682. *
  7683. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
  7684. * value to specify the gpio output level, please refer to enum qca_gpio_value
  7685. * to get the available value that this item can use.
  7686. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7687. * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
  7688. *
  7689. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
  7690. * value to specify the gpio pull type, please refer to enum qca_gpio_pull_type
  7691. * to get the available value that this item can use.
  7692. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7693. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7694. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7695. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7696. * attribute is present.
  7697. *
  7698. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
  7699. * value to specify the gpio interrupt mode, please refer to enum
  7700. * qca_gpio_interrupt_mode to get the available value that this item can use.
  7701. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7702. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7703. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7704. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7705. * attribute is present.
  7706. *
  7707. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
  7708. * value to specify the gpio direction, please refer to enum qca_gpio_direction
  7709. * to get the available value that this item can use.
  7710. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7711. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7712. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7713. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7714. * attribute is present.
  7715. *
  7716. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
  7717. * Value to specify the mux config. Meaning of a given value is dependent
  7718. * on the target chipset and gpio pin. Must be of the range 0-15.
  7719. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7720. * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
  7721. *
  7722. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
  7723. * Value to specify the drive, Refer to enum qca_gpio_drive.
  7724. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7725. * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
  7726. *
  7727. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
  7728. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7729. * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
  7730. * other parameters for the given GPIO will be obtained from internal
  7731. * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
  7732. * specified to indicate the GPIO pin being configured.
  7733. */
  7734. enum qca_wlan_gpio_attr {
  7735. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
  7736. /* Unsigned 32-bit attribute for GPIO command */
  7737. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
  7738. /* Unsigned 32-bit attribute for GPIO PIN number to configure */
  7739. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
  7740. /* Unsigned 32-bit attribute for GPIO value to configure */
  7741. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
  7742. /* Unsigned 32-bit attribute for GPIO pull type */
  7743. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
  7744. /* Unsigned 32-bit attribute for GPIO interrupt mode */
  7745. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
  7746. /* Unsigned 32-bit attribute for GPIO direction to configure */
  7747. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
  7748. /* Unsigned 32-bit attribute for GPIO mux config */
  7749. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
  7750. /* Unsigned 32-bit attribute for GPIO drive */
  7751. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
  7752. /* Flag attribute for using internal gpio configuration */
  7753. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
  7754. /* keep last */
  7755. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
  7756. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
  7757. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1,
  7758. };
  7759. /**
  7760. * enum gpio_cmd_type - GPIO configuration command type
  7761. * @QCA_WLAN_VENDOR_GPIO_CONFIG: set gpio configuration info
  7762. * @QCA_WLAN_VENDOR_GPIO_OUTPUT: set gpio output level
  7763. */
  7764. enum qca_gpio_cmd_type {
  7765. QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
  7766. QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
  7767. };
  7768. /**
  7769. * enum qca_gpio_pull_type - GPIO pull type
  7770. * @QCA_WLAN_GPIO_PULL_NONE: set gpio pull type to none
  7771. * @QCA_WLAN_GPIO_PULL_UP: set gpio pull up
  7772. * @QCA_WLAN_GPIO_PULL_DOWN: set gpio pull down
  7773. */
  7774. enum qca_gpio_pull_type {
  7775. QCA_WLAN_GPIO_PULL_NONE = 0,
  7776. QCA_WLAN_GPIO_PULL_UP = 1,
  7777. QCA_WLAN_GPIO_PULL_DOWN = 2,
  7778. QCA_WLAN_GPIO_PULL_MAX,
  7779. };
  7780. /**
  7781. * enum qca_gpio_direction - GPIO direction
  7782. * @QCA_WLAN_GPIO_INPUT: set gpio as input mode
  7783. * @QCA_WLAN_GPIO_OUTPUT: set gpio as output mode
  7784. * @QCA_WLAN_GPIO_VALUE_MAX: invalid value
  7785. */
  7786. enum qca_gpio_direction {
  7787. QCA_WLAN_GPIO_INPUT = 0,
  7788. QCA_WLAN_GPIO_OUTPUT = 1,
  7789. QCA_WLAN_GPIO_DIR_MAX,
  7790. };
  7791. /**
  7792. * enum qca_gpio_value - GPIO Value
  7793. * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
  7794. * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
  7795. * @QCA_WLAN_GPIO_LEVEL_MAX: invalid value
  7796. */
  7797. enum qca_gpio_value {
  7798. QCA_WLAN_GPIO_LEVEL_LOW = 0,
  7799. QCA_WLAN_GPIO_LEVEL_HIGH = 1,
  7800. QCA_WLAN_GPIO_LEVEL_MAX,
  7801. };
  7802. /**
  7803. * enum gpio_interrupt_mode - GPIO interrupt mode
  7804. * @QCA_WLAN_GPIO_INTMODE_DISABLE: disable interrupt trigger
  7805. * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: interrupt with gpio rising edge trigger
  7806. * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: interrupt with gpio falling edge trigger
  7807. * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: interrupt with gpio both edge trigger
  7808. * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: interrupt with gpio level low trigger
  7809. * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: interrupt with gpio level high trigger
  7810. * @QCA_WLAN_GPIO_INTMODE_MAX: invalid value
  7811. */
  7812. enum qca_gpio_interrupt_mode {
  7813. QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
  7814. QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
  7815. QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
  7816. QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
  7817. QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
  7818. QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
  7819. QCA_WLAN_GPIO_INTMODE_MAX,
  7820. };
  7821. /**
  7822. * enum gpio_drive - GPIO drive
  7823. * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
  7824. * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
  7825. * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
  7826. * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
  7827. * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
  7828. * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
  7829. * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
  7830. * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
  7831. * @QCA_WLAN_GPIO_DRIVE_MAX: invalid gpio drive
  7832. */
  7833. enum qca_gpio_drive {
  7834. QCA_WLAN_GPIO_DRIVE_2MA = 0,
  7835. QCA_WLAN_GPIO_DRIVE_4MA = 1,
  7836. QCA_WLAN_GPIO_DRIVE_6MA = 2,
  7837. QCA_WLAN_GPIO_DRIVE_8MA = 3,
  7838. QCA_WLAN_GPIO_DRIVE_10MA = 4,
  7839. QCA_WLAN_GPIO_DRIVE_12MA = 5,
  7840. QCA_WLAN_GPIO_DRIVE_14MA = 6,
  7841. QCA_WLAN_GPIO_DRIVE_16MA = 7,
  7842. QCA_WLAN_GPIO_DRIVE_MAX,
  7843. };
  7844. /**
  7845. * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
  7846. * MSDUQ depth threshold per peer per tid in the target
  7847. *
  7848. * Associated Vendor Command:
  7849. * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
  7850. */
  7851. enum qca_wlan_set_qdepth_thresh_attr {
  7852. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
  7853. /* 6-byte MAC address */
  7854. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
  7855. /* Unsigned 32-bit attribute for holding the TID */
  7856. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
  7857. /* Unsigned 32-bit attribute for holding the update mask
  7858. * bit 0 - Update high priority msdu qdepth threshold
  7859. * bit 1 - Update low priority msdu qdepth threshold
  7860. * bit 2 - Update UDP msdu qdepth threshold
  7861. * bit 3 - Update Non UDP msdu qdepth threshold
  7862. * rest of bits are reserved
  7863. */
  7864. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
  7865. /* Unsigned 32-bit attribute for holding the threshold value */
  7866. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
  7867. /* keep last */
  7868. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
  7869. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
  7870. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
  7871. };
  7872. /**
  7873. * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
  7874. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
  7875. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
  7876. * external ACS policies to select the channels w.r.t. the PCL weights.
  7877. * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
  7878. * their PCL weights.)
  7879. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
  7880. * select a channel with non-zero PCL weight.
  7881. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
  7882. * channel with non-zero PCL weight.
  7883. *
  7884. */
  7885. enum qca_wlan_vendor_attr_external_acs_policy {
  7886. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
  7887. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
  7888. };
  7889. /**
  7890. * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
  7891. */
  7892. enum qca_wlan_vendor_attr_spectral_scan {
  7893. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
  7894. /*
  7895. * Number of times the chip enters spectral scan mode before
  7896. * deactivating spectral scans. When set to 0, chip will enter spectral
  7897. * scan mode continuously. u32 attribute.
  7898. */
  7899. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
  7900. /*
  7901. * Spectral scan period. Period increment resolution is 256*Tclk,
  7902. * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
  7903. */
  7904. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
  7905. /* Spectral scan priority. u32 attribute. */
  7906. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
  7907. /* Number of FFT data points to compute. u32 attribute. */
  7908. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
  7909. /*
  7910. * Enable targeted gain change before starting the spectral scan FFT.
  7911. * u32 attribute.
  7912. */
  7913. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
  7914. /* Restart a queued spectral scan. u32 attribute. */
  7915. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
  7916. /*
  7917. * Noise floor reference number for the calculation of bin power.
  7918. * u32 attribute.
  7919. */
  7920. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
  7921. /*
  7922. * Disallow spectral scan triggers after TX/RX packets by setting
  7923. * this delay value to roughly SIFS time period or greater.
  7924. * u32 attribute.
  7925. */
  7926. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
  7927. /*
  7928. * Number of strong bins (inclusive) per sub-channel, below
  7929. * which a signal is declared a narrow band tone. u32 attribute.
  7930. */
  7931. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
  7932. /*
  7933. * Specify the threshold over which a bin is declared strong (for
  7934. * scan bandwidth analysis). u32 attribute.
  7935. */
  7936. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
  7937. /* Spectral scan report mode. u32 attribute. */
  7938. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
  7939. /*
  7940. * RSSI report mode, if the ADC RSSI is below
  7941. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
  7942. * then FFTs will not trigger, but timestamps and summaries get
  7943. * reported. u32 attribute.
  7944. */
  7945. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
  7946. /*
  7947. * ADC RSSI must be greater than or equal to this threshold (signed dB)
  7948. * to ensure spectral scan reporting with normal error code.
  7949. * u32 attribute.
  7950. */
  7951. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
  7952. /*
  7953. * Format of frequency bin magnitude for spectral scan triggered FFTs:
  7954. * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
  7955. * u32 attribute.
  7956. */
  7957. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
  7958. /*
  7959. * Format of FFT report to software for spectral scan triggered FFTs.
  7960. * 0: No FFT report (only spectral scan summary report)
  7961. * 1: 2-dword summary of metrics for each completed FFT + spectral scan
  7962. * report
  7963. * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
  7964. * bins (in-band) per FFT + spectral scan summary report
  7965. * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
  7966. * bins (all) per FFT + spectral scan summary report
  7967. * u32 attribute.
  7968. */
  7969. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
  7970. /*
  7971. * Number of LSBs to shift out in order to scale the FFT bins.
  7972. * u32 attribute.
  7973. */
  7974. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
  7975. /*
  7976. * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
  7977. * in dBm power. u32 attribute.
  7978. */
  7979. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
  7980. /*
  7981. * Per chain enable mask to select input ADC for search FFT.
  7982. * u32 attribute.
  7983. */
  7984. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
  7985. /*
  7986. * An unsigned 64-bit integer provided by host driver to identify the
  7987. * spectral scan request. This attribute is included in the scan
  7988. * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
  7989. * and used as an attribute in
  7990. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
  7991. * specific scan to be stopped.
  7992. */
  7993. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
  7994. /* Skip interval for FFT reports. u32 attribute */
  7995. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
  7996. /* Set to report only one set of FFT results.
  7997. * u32 attribute.
  7998. */
  7999. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
  8000. /* Debug level for spectral module in driver.
  8001. * 0 : Verbosity level 0
  8002. * 1 : Verbosity level 1
  8003. * 2 : Verbosity level 2
  8004. * 3 : Matched filterID display
  8005. * 4 : One time dump of FFT report
  8006. * u32 attribute.
  8007. */
  8008. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
  8009. /* Type of spectral scan request. u32 attribute.
  8010. * It uses values defined in enum
  8011. * qca_wlan_vendor_attr_spectral_scan_request_type.
  8012. */
  8013. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
  8014. /* This specifies the frequency span over which spectral
  8015. * scan would be carried out. Its value depends on the
  8016. * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
  8017. * the relation is as follows.
  8018. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
  8019. * Not applicable. Spectral scan would happen in the
  8020. * operating span.
  8021. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
  8022. * Center frequency (in MHz) of the span of interest or
  8023. * for convenience, center frequency (in MHz) of any channel
  8024. * in the span of interest. For 80+80 MHz agile spectral scan
  8025. * request it represents center frequency (in MHz) of the primary
  8026. * 80 MHz span or for convenience, center frequency (in MHz) of any
  8027. * channel in the primary 80 MHz span. If agile spectral scan is
  8028. * initiated without setting a valid frequency it returns the
  8029. * error code
  8030. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
  8031. * u32 attribute.
  8032. */
  8033. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
  8034. /* Spectral scan mode. u32 attribute.
  8035. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  8036. * If this attribute is not present, it is assumed to be
  8037. * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
  8038. */
  8039. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
  8040. /* Spectral scan error code. u32 attribute.
  8041. * It uses values defined in enum
  8042. * qca_wlan_vendor_spectral_scan_error_code.
  8043. * This attribute is included only in failure scenarios.
  8044. */
  8045. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
  8046. /* 8-bit unsigned value to enable/disable debug of the
  8047. * Spectral DMA ring.
  8048. * 1-enable, 0-disable
  8049. */
  8050. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
  8051. /* 8-bit unsigned value to enable/disable debug of the
  8052. * Spectral DMA buffers.
  8053. * 1-enable, 0-disable
  8054. */
  8055. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
  8056. /* This specifies the frequency span over which spectral scan would be
  8057. * carried out. Its value depends on the value of
  8058. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
  8059. * follows.
  8060. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
  8061. * Not applicable. Spectral scan would happen in the operating span.
  8062. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
  8063. * This attribute is applicable only for agile spectral scan
  8064. * requests in 80+80 MHz mode. It represents center frequency (in
  8065. * MHz) of the secondary 80 MHz span or for convenience, center
  8066. * frequency (in MHz) of any channel in the secondary 80 MHz span.
  8067. * u32 attribute.
  8068. */
  8069. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
  8070. /* This attribute specifies the bandwidth to be used for Spectral scan
  8071. * operation. This is an u8 attribute and uses the values in enum
  8072. * nl80211_chan_width. This is an optional attribute.
  8073. * If this attribute is not populated, the driver should configure the
  8074. * Spectral scan bandwidth to the maximum value supported by the target
  8075. * for the current operating bandwidth.
  8076. */
  8077. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
  8078. /* Spectral FFT recapture flag attribute, to enable/disable FFT
  8079. * recapture. Recapture can only be enabled for Scan period greater
  8080. * than 52us.
  8081. * If this attribute is enabled, re-triggers will be enabled in uCode
  8082. * when AGC gain changes.
  8083. */
  8084. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
  8085. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
  8086. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
  8087. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
  8088. };
  8089. /**
  8090. * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
  8091. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
  8092. */
  8093. enum qca_wlan_vendor_attr_spectral_diag_stats {
  8094. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
  8095. /* Number of spectral TLV signature mismatches.
  8096. * u64 attribute.
  8097. */
  8098. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
  8099. /* Number of spectral phyerror events with insufficient length when
  8100. * parsing for secondary 80 search FFT report. u64 attribute.
  8101. */
  8102. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
  8103. /* Number of spectral phyerror events without secondary 80
  8104. * search FFT report. u64 attribute.
  8105. */
  8106. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
  8107. /* Number of spectral phyerror events with vht operation segment 1 id
  8108. * mismatches in search fft report. u64 attribute.
  8109. */
  8110. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
  8111. /* Number of spectral phyerror events with vht operation segment 2 id
  8112. * mismatches in search fft report. u64 attribute.
  8113. */
  8114. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
  8115. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
  8116. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
  8117. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
  8118. };
  8119. /**
  8120. * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
  8121. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
  8122. */
  8123. enum qca_wlan_vendor_attr_spectral_cap {
  8124. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
  8125. /* Flag attribute to indicate phydiag capability */
  8126. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
  8127. /* Flag attribute to indicate radar detection capability */
  8128. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
  8129. /* Flag attribute to indicate spectral capability */
  8130. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
  8131. /* Flag attribute to indicate advanced spectral capability */
  8132. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
  8133. /* Spectral hardware generation. u32 attribute.
  8134. * It uses values defined in enum
  8135. * qca_wlan_vendor_spectral_scan_cap_hw_gen.
  8136. */
  8137. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
  8138. /* Spectral bin scaling formula ID. u16 attribute.
  8139. * It uses values defined in enum
  8140. * qca_wlan_vendor_spectral_scan_cap_formula_id.
  8141. */
  8142. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
  8143. /* Spectral bin scaling param - low level offset.
  8144. * s16 attribute.
  8145. */
  8146. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
  8147. /* Spectral bin scaling param - high level offset.
  8148. * s16 attribute.
  8149. */
  8150. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
  8151. /* Spectral bin scaling param - RSSI threshold.
  8152. * s16 attribute.
  8153. */
  8154. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
  8155. /* Spectral bin scaling param - default AGC max gain.
  8156. * u8 attribute.
  8157. */
  8158. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
  8159. /* Flag attribute to indicate agile spectral scan capability
  8160. * for 20/40/80 MHz modes.
  8161. */
  8162. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
  8163. /* Flag attribute to indicate agile spectral scan capability
  8164. * for 160 MHz mode.
  8165. */
  8166. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
  8167. /* Flag attribute to indicate agile spectral scan capability
  8168. * for 80+80 MHz mode.
  8169. */
  8170. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
  8171. /* Number of spectral detectors used for scan in 20 MHz.
  8172. * u32 attribute.
  8173. */
  8174. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
  8175. /* Number of spectral detectors used for scan in 40 MHz.
  8176. * u32 attribute.
  8177. */
  8178. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
  8179. /* Number of spectral detectors used for scan in 80 MHz.
  8180. * u32 attribute.
  8181. */
  8182. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
  8183. /* Number of spectral detectors used for scan in 160 MHz.
  8184. * u32 attribute.
  8185. */
  8186. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
  8187. /* Number of spectral detectors used for scan in 80+80 MHz.
  8188. * u32 attribute.
  8189. */
  8190. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
  8191. /* Flag attribute to indicate agile spectral scan capability
  8192. * for 320 MHz mode.
  8193. */
  8194. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
  8195. /* Number of spectral detectors used for scan in 320 MHz.
  8196. * u32 attribute.
  8197. */
  8198. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
  8199. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
  8200. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
  8201. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
  8202. };
  8203. /**
  8204. * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
  8205. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
  8206. */
  8207. enum qca_wlan_vendor_attr_spectral_scan_status {
  8208. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
  8209. /* Flag attribute to indicate whether spectral scan is enabled */
  8210. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
  8211. /* Flag attribute to indicate whether spectral scan is in progress*/
  8212. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
  8213. /* Spectral scan mode. u32 attribute.
  8214. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  8215. * If this attribute is not present, normal mode
  8216. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
  8217. * requested.
  8218. */
  8219. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
  8220. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
  8221. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
  8222. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
  8223. };
  8224. /**
  8225. * enum qca_wlan_vendor_attr_config_latency_level - Level for
  8226. * wlan latency module.
  8227. *
  8228. * There will be various of Wi-Fi functionality like scan/roaming/adaptive
  8229. * power saving which would causing data exchange out of service, this
  8230. * would be a big impact on latency. For latency sensitive applications over
  8231. * Wi-Fi are intolerant to such operations and thus would configure them
  8232. * to meet their respective needs. It is well understood by such applications
  8233. * that altering the default behavior would degrade the Wi-Fi functionality
  8234. * w.r.t the above pointed WLAN operations.
  8235. *
  8236. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
  8237. * Default WLAN operation level which throughput orientated.
  8238. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
  8239. * Use XR level to benefit XR (extended reality) application to achieve
  8240. * latency and power by via constraint scan/roaming/adaptive PS.
  8241. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
  8242. * Use low latency level to benefit application like concurrent
  8243. * downloading or video streaming via constraint scan/adaptive PS.
  8244. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
  8245. * Use ultra low latency level to benefit for gaming/voice
  8246. * application via constraint scan/roaming/adaptive PS.
  8247. */
  8248. enum qca_wlan_vendor_attr_config_latency_level {
  8249. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
  8250. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
  8251. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
  8252. /* legacy name */
  8253. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
  8254. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
  8255. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
  8256. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
  8257. /* keep last */
  8258. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
  8259. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
  8260. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
  8261. };
  8262. /**
  8263. * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
  8264. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
  8265. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
  8266. * spectral scan request types.
  8267. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
  8268. * set the spectral parameters and start scan.
  8269. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
  8270. * only set the spectral parameters.
  8271. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
  8272. * only start the spectral scan.
  8273. */
  8274. enum qca_wlan_vendor_attr_spectral_scan_request_type {
  8275. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
  8276. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
  8277. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
  8278. };
  8279. /**
  8280. * qca_wlan_vendor_spectral_scan_mode: Attribute values for
  8281. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
  8282. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
  8283. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
  8284. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
  8285. * spectral scan modes.
  8286. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
  8287. * spectral scan in the current operating span.
  8288. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
  8289. * spectral scan in the configured agile span.
  8290. */
  8291. enum qca_wlan_vendor_spectral_scan_mode {
  8292. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
  8293. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
  8294. };
  8295. /**
  8296. * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
  8297. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
  8298. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
  8299. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
  8300. * of a parameter is not supported.
  8301. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
  8302. * mode is not supported.
  8303. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
  8304. * has invalid value.
  8305. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
  8306. * is not initialized.
  8307. */
  8308. enum qca_wlan_vendor_spectral_scan_error_code {
  8309. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
  8310. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
  8311. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
  8312. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
  8313. };
  8314. /**
  8315. * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
  8316. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
  8317. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  8318. * spectral hardware generation.
  8319. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
  8320. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
  8321. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
  8322. */
  8323. enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
  8324. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
  8325. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
  8326. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
  8327. };
  8328. /**
  8329. * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
  8330. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
  8331. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  8332. * Spectral bin scaling formula ID.
  8333. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
  8334. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
  8335. * and RSSI threshold based formula.
  8336. */
  8337. enum qca_wlan_vendor_spectral_scan_cap_formula_id {
  8338. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
  8339. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
  8340. };
  8341. /**
  8342. * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
  8343. * RF Operating Parameter (RROP) information is available, and if so, at which
  8344. * point in the application-driver interaction sequence it can be retrieved by
  8345. * the application from the driver. This point may vary by architecture and
  8346. * other factors. This is a u16 value.
  8347. */
  8348. enum qca_wlan_vendor_attr_rropavail_info {
  8349. /* RROP information is unavailable. */
  8350. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
  8351. /* RROP information is available and the application can retrieve the
  8352. * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
  8353. * event from the driver.
  8354. */
  8355. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
  8356. /* RROP information is available only after a vendor specific scan
  8357. * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
  8358. * successfully completed. The application can retrieve the information
  8359. * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
  8360. * the driver.
  8361. */
  8362. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
  8363. };
  8364. /**
  8365. * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
  8366. * Representative RF Operating Parameter (RROP) information. It is sent for the
  8367. * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
  8368. * intended for use by external Auto Channel Selection applications. It provides
  8369. * guidance values for some RF parameters that are used by the system during
  8370. * operation. These values could vary by channel, band, radio, and so on.
  8371. */
  8372. enum qca_wlan_vendor_attr_rrop_info {
  8373. QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
  8374. /* Representative Tx Power List (RTPL) which has an array of nested
  8375. * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
  8376. */
  8377. QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
  8378. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
  8379. QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
  8380. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
  8381. };
  8382. /**
  8383. * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
  8384. * entry instances in the Representative Tx Power List (RTPL). It provides
  8385. * simplified power values intended for helping external Auto channel Selection
  8386. * applications compare potential Tx power performance between channels, other
  8387. * operating conditions remaining identical. These values are not necessarily
  8388. * the actual Tx power values that will be used by the system. They are also not
  8389. * necessarily the max or average values that will be used. Instead, they are
  8390. * relative, summarized keys for algorithmic use computed by the driver or
  8391. * underlying firmware considering a number of vendor specific factors.
  8392. */
  8393. enum qca_wlan_vendor_attr_rtplinst {
  8394. QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
  8395. /* Primary channel number (u8).
  8396. * Note: If both the driver and user space application support the
  8397. * 6 GHz band, this attribute is deprecated and
  8398. * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
  8399. * maintain backward compatibility,
  8400. * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
  8401. * driver or user space application or both do not support the 6 GHz
  8402. * band.
  8403. */
  8404. QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
  8405. /* Representative Tx power in dBm (s32) with emphasis on throughput. */
  8406. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
  8407. /* Representative Tx power in dBm (s32) with emphasis on range. */
  8408. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
  8409. /* Primary channel center frequency (u32) in MHz */
  8410. QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
  8411. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
  8412. QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
  8413. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
  8414. };
  8415. /**
  8416. * enum qca_wlan_vendor_attr_mac - Used by the vendor command
  8417. * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  8418. *
  8419. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an
  8420. * array of nested values as per attributes in
  8421. * enum qca_wlan_vendor_attr_mac_mode_info.
  8422. */
  8423. enum qca_wlan_vendor_attr_mac {
  8424. QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
  8425. QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
  8426. /* keep last */
  8427. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
  8428. QCA_WLAN_VENDOR_ATTR_MAC_MAX =
  8429. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
  8430. };
  8431. /**
  8432. * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
  8433. * WiFi netdev interface on a respective MAC. Used by the attribute
  8434. * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
  8435. *
  8436. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32).
  8437. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of
  8438. * the connected Wi-Fi interface(u32).
  8439. */
  8440. enum qca_wlan_vendor_attr_mac_iface_info {
  8441. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
  8442. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
  8443. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
  8444. /* keep last */
  8445. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
  8446. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
  8447. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
  8448. };
  8449. /**
  8450. * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
  8451. * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
  8452. * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  8453. *
  8454. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the
  8455. * MAC (u32)
  8456. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC
  8457. * at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described
  8458. * in enum nl80211_band.
  8459. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev
  8460. * interfaces associated with this MAC. Represented by enum
  8461. * qca_wlan_vendor_attr_mac_iface_info.
  8462. */
  8463. enum qca_wlan_vendor_attr_mac_info {
  8464. QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
  8465. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
  8466. QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
  8467. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
  8468. /* keep last */
  8469. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
  8470. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
  8471. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
  8472. };
  8473. /**
  8474. * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
  8475. * to get thermal status from driver/firmware.
  8476. * enum values are used for NL attributes encapsulated inside
  8477. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
  8478. *
  8479. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
  8480. * of a thermal level in Celsius. u32 size.
  8481. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
  8482. * of a thermal level in Celsius. u32 size.
  8483. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
  8484. * thermal level in milliseconds. u32 size.
  8485. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
  8486. * of times the temperature crossed into the temperature range defined by the
  8487. * thermal level from both higher and lower directions. u32 size.
  8488. */
  8489. enum qca_wlan_vendor_attr_thermal_stats {
  8490. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
  8491. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
  8492. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
  8493. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
  8494. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
  8495. /* keep last */
  8496. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
  8497. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
  8498. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
  8499. };
  8500. /**
  8501. * enum he_fragmentation_val - HE fragmentation support values
  8502. * Indicates level of dynamic fragmentation that is supported by
  8503. * a STA as a recipient.
  8504. * HE fragmentation values are defined as per 11ax spec and are used in
  8505. * HE capability IE to advertise the support. These values are validated
  8506. * in the driver to check the device capability and advertised in the HE
  8507. * capability element.
  8508. *
  8509. * @HE_FRAG_DISABLE: no support for dynamic fragmentation
  8510. * @HE_FRAG_LEVEL1: support for dynamic fragments that are
  8511. * contained within an MPDU or S-MPDU, no support for dynamic fragments
  8512. * within an A-MPDU that is not an S-MPDU.
  8513. * @HE_FRAG_LEVEL2: support for dynamic fragments that are
  8514. * contained within an MPDU or S-MPDU and support for up to one dynamic
  8515. * fragment for each MSDU, each A-MSDU if supported by the recipient, and
  8516. * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
  8517. * MPDU or S-MPDU.
  8518. * @HE_FRAG_LEVEL3: support for dynamic fragments that are
  8519. * contained within an MPDU or S-MPDU and support for multiple dynamic
  8520. * fragments for each MSDU and for each A-MSDU if supported by the
  8521. * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
  8522. * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
  8523. */
  8524. enum he_fragmentation_val {
  8525. HE_FRAG_DISABLE,
  8526. HE_FRAG_LEVEL1,
  8527. HE_FRAG_LEVEL2,
  8528. HE_FRAG_LEVEL3,
  8529. };
  8530. /**
  8531. * enum he_mcs_config - HE MCS support configuration
  8532. *
  8533. * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
  8534. * These values are used in driver to configure the HE MCS map to advertise
  8535. * Tx/Rx MCS map in HE capability and these values are applied for all the
  8536. * streams supported by the device. To configure MCS for different bandwidths,
  8537. * vendor command needs to be sent using this attribute with appropriate value.
  8538. * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
  8539. * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS
  8540. * for HE_160_MCS0_11 send this command using HE MCS config attribute with
  8541. * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11;
  8542. *
  8543. * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7
  8544. * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9
  8545. * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11
  8546. * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7
  8547. * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9
  8548. * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11
  8549. * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7
  8550. * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9
  8551. * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11
  8552. */
  8553. enum he_mcs_config {
  8554. HE_80_MCS0_7 = 0,
  8555. HE_80_MCS0_9 = 1,
  8556. HE_80_MCS0_11 = 2,
  8557. HE_160_MCS0_7 = 4,
  8558. HE_160_MCS0_9 = 5,
  8559. HE_160_MCS0_11 = 6,
  8560. HE_80p80_MCS0_7 = 8,
  8561. HE_80p80_MCS0_9 = 9,
  8562. HE_80p80_MCS0_11 = 10,
  8563. };
  8564. /**
  8565. * enum qca_wlan_ba_session_config - BA session configuration
  8566. *
  8567. * Indicates the configuration values for BA session configuration attribute.
  8568. *
  8569. * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
  8570. * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
  8571. */
  8572. enum qca_wlan_ba_session_config {
  8573. QCA_WLAN_ADD_BA = 1,
  8574. QCA_WLAN_DELETE_BA = 2,
  8575. };
  8576. /**
  8577. * enum qca_wlan_ac_type - access category type
  8578. *
  8579. * Indicates the access category type value.
  8580. *
  8581. * @QCA_WLAN_AC_BE: BE access category
  8582. * @QCA_WLAN_AC_BK: BK access category
  8583. * @QCA_WLAN_AC_VI: VI access category
  8584. * @QCA_WLAN_AC_VO: VO access category
  8585. * @QCA_WLAN_AC_ALL: All ACs
  8586. */
  8587. enum qca_wlan_ac_type {
  8588. QCA_WLAN_AC_BE = 0,
  8589. QCA_WLAN_AC_BK = 1,
  8590. QCA_WLAN_AC_VI = 2,
  8591. QCA_WLAN_AC_VO = 3,
  8592. QCA_WLAN_AC_ALL = 4,
  8593. };
  8594. /**
  8595. * enum qca_wlan_he_ltf_cfg - HE LTF configuration
  8596. *
  8597. * Indicates the HE LTF configuration value.
  8598. *
  8599. * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to
  8600. * the mandatory HE-LTF based on the GI setting
  8601. * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
  8602. * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
  8603. * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
  8604. */
  8605. enum qca_wlan_he_ltf_cfg {
  8606. QCA_WLAN_HE_LTF_AUTO = 0,
  8607. QCA_WLAN_HE_LTF_1X = 1,
  8608. QCA_WLAN_HE_LTF_2X = 2,
  8609. QCA_WLAN_HE_LTF_4X = 3,
  8610. };
  8611. /**
  8612. * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
  8613. *
  8614. * Indicates the HE trigger frame MAC padding duration value.
  8615. *
  8616. * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
  8617. * process the trigger frame.
  8618. * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
  8619. * trigger frame.
  8620. * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
  8621. * trigger frame.
  8622. */
  8623. enum qca_wlan_he_mac_padding_dur {
  8624. QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
  8625. QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
  8626. QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
  8627. };
  8628. /**
  8629. * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
  8630. *
  8631. * Indicates the HE Operating mode control channel width setting value.
  8632. *
  8633. * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
  8634. * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
  8635. * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
  8636. * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
  8637. */
  8638. enum qca_wlan_he_om_ctrl_ch_bw {
  8639. QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
  8640. QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
  8641. QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
  8642. QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
  8643. };
  8644. /**
  8645. * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
  8646. *
  8647. * Indicates the frame types to use for keep alive data.
  8648. *
  8649. * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
  8650. * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
  8651. * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
  8652. */
  8653. enum qca_wlan_keep_alive_data_type {
  8654. QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
  8655. QCA_WLAN_KEEP_ALIVE_DATA = 1,
  8656. QCA_WLAN_KEEP_ALIVE_MGMT = 2,
  8657. };
  8658. /**
  8659. * enum eht_mcs_config - EHT MCS support configuration
  8660. *
  8661. * Configures the EHT Tx/Rx MCS map in EHT Capability element.
  8662. * These values are used in the driver to configure the EHT MCS map to advertise
  8663. * Tx/Rx MCS map in EHT capability and these values are applied for all the
  8664. * streams supported by the device.
  8665. * @EHT_MCS0_7: EHT MCS 0 to 7 support
  8666. * @EHT_MCS0_9: EHT MCS 0 to 9 support
  8667. * @EHT_MCS0_11: EHT MCS 0 to 11 support
  8668. * @EHT_MCS0_13: EHT MCS 0 to 13 support
  8669. */
  8670. enum eht_mcs_config {
  8671. EHT_MCS0_7 = 0,
  8672. EHT_MCS0_9 = 1,
  8673. EHT_MCS0_11 = 2,
  8674. EHT_MCS0_13 = 3,
  8675. };
  8676. /**
  8677. * enum qca_wlan_eht_mlo_mode: EHT MLO mode configuration.
  8678. * @QCA_WLAN_EHT_MODE_INVALID: Invalid.
  8679. * @QCA_WLAN_EHT_MLSR: Multi-link single radio mode
  8680. * @QCA_WLAN_EHT_EMLSR: Enhanced multi-link single radio mode.
  8681. * @QCA_WLAN_EHT_NON_STR_MLMR: Non simultaneous transmit and receive
  8682. * multi-link multi radio mode.
  8683. * @QCA_WLAN_EHT_STR_MLMR: Simultaneous transmit and receive
  8684. * multi-link multi radio mode.
  8685. */
  8686. enum qca_wlan_eht_mlo_mode {
  8687. QCA_WLAN_EHT_MODE_INVALID = 0,
  8688. QCA_WLAN_EHT_MLSR = 1,
  8689. QCA_WLAN_EHT_EMLSR = 2,
  8690. QCA_WLAN_EHT_NON_STR_MLMR = 3,
  8691. QCA_WLAN_EHT_STR_MLMR = 4,
  8692. };
  8693. /**
  8694. * enum qca_wlan_emlsr_mode: Enhanced Multi-link Single Radio mode configuration
  8695. * @QCA_WLAN_EMLSR_MODE_ENTER: Enter EMLSR mode
  8696. * @QCA_WLAN_EMLSR_MODE_EXIT: Exit EMLSR mode
  8697. */
  8698. enum qca_wlan_emlsr_mode {
  8699. QCA_WLAN_EMLSR_MODE_ENTER = 0,
  8700. QCA_WLAN_EMLSR_MODE_EXIT = 1,
  8701. };
  8702. /**
  8703. * enum qca_wlan_vendor_attr_omi_tx: Represents attributes for HE and
  8704. * EHT operating mode control transmit request. These attributes are
  8705. * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX and
  8706. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  8707. *
  8708. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
  8709. * indicates the maximum number of spatial streams, NSS, that the STA
  8710. * supports in reception for PPDU bandwidths less than or equal to 80 MHz
  8711. * and is set to NSS - 1.
  8712. *
  8713. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
  8714. * indicates the operating channel width supported by the STA for both
  8715. * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
  8716. *
  8717. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
  8718. * indicates the all trigger based UL MU operations by the STA.
  8719. * 0 - UL MU operations are enabled by the STA.
  8720. * 1 - All triggered UL MU transmissions are suspended by the STA.
  8721. *
  8722. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
  8723. * indicates the maximum number of space-time streams, NSTS, that
  8724. * the STA supports in transmission and is set to NSTS - 1.
  8725. *
  8726. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
  8727. * combined with the UL MU Disable subfield and the recipient's setting
  8728. * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
  8729. * capabilities to determine which HE TB PPDUs are possible by the
  8730. * STA to transmit.
  8731. * 0 - UL MU data operations are enabled by the STA.
  8732. * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
  8733. * bit is not set, else UL MU Tx is suspended.
  8734. *
  8735. * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN: 8-bit unsigned value in the EHT OM
  8736. * Control subfield combined with the Rx NSS subfield in the OM Control subfield
  8737. * indicates NSS - 1, where NSS is the maximum number of spatial streams that
  8738. * STA supports in reception for PPDU bandwidths less than or equal to 80 MHz.
  8739. *
  8740. * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN: 8-bit unsigned value indicates
  8741. * 320 MHz operating channel width supported by the EHT STA for both reception
  8742. * and transmission.
  8743. *
  8744. * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN: 8-bit unsigned value in the EHT OM
  8745. * Control subfield combined with the Tx NSTS subfield in OM Control subfield
  8746. * indicates NSTS - 1, where NSTS is the maximum number of space-time streams
  8747. * that the STA supports in transmission for PPDU bandwidths less than or equal
  8748. * to 80 MHz.
  8749. */
  8750. enum qca_wlan_vendor_attr_omi_tx {
  8751. QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
  8752. QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
  8753. QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
  8754. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
  8755. QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
  8756. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
  8757. QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN = 6,
  8758. QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN = 7,
  8759. QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN = 8,
  8760. /* keep last */
  8761. QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST,
  8762. QCA_WLAN_VENDOR_ATTR_OMI_MAX =
  8763. QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST - 1,
  8764. };
  8765. /* deprecated legacy names */
  8766. #define QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX \
  8767. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX
  8768. #define qca_wlan_vendor_attr_he_omi_tx \
  8769. qca_wlan_vendor_attr_omi_tx
  8770. #define QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST \
  8771. QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST
  8772. #define QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX \
  8773. QCA_WLAN_VENDOR_ATTR_OMI_MAX
  8774. /**
  8775. * enum qca_wlan_vendor_phy_mode - Different PHY modes
  8776. * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
  8777. *
  8778. * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
  8779. * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
  8780. * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
  8781. * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
  8782. * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
  8783. * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
  8784. * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
  8785. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
  8786. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
  8787. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
  8788. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
  8789. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
  8790. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
  8791. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
  8792. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
  8793. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
  8794. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
  8795. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
  8796. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
  8797. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
  8798. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
  8799. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
  8800. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
  8801. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
  8802. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
  8803. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
  8804. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
  8805. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
  8806. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
  8807. */
  8808. enum qca_wlan_vendor_phy_mode {
  8809. QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
  8810. QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
  8811. QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
  8812. QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
  8813. QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
  8814. QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
  8815. QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
  8816. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
  8817. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
  8818. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
  8819. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
  8820. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
  8821. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
  8822. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
  8823. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
  8824. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
  8825. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
  8826. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
  8827. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
  8828. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
  8829. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
  8830. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
  8831. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
  8832. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
  8833. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
  8834. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
  8835. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
  8836. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
  8837. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
  8838. };
  8839. /* Attributes for data used by
  8840. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
  8841. */
  8842. enum qca_wlan_vendor_attr_wifi_test_config {
  8843. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
  8844. /* 8-bit unsigned value to configure the driver to enable/disable
  8845. * WMM feature. This attribute is used to configure testbed device.
  8846. * 1-enable, 0-disable
  8847. */
  8848. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
  8849. /* 8-bit unsigned value to configure the driver to accept/reject
  8850. * the addba request from peer. This attribute is used to configure
  8851. * the testbed device.
  8852. * 1-accept addba, 0-reject addba
  8853. */
  8854. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
  8855. /* 8-bit unsigned value to configure the driver to send or not to
  8856. * send the addba request to peer.
  8857. * This attribute is used to configure the testbed device.
  8858. * 1-send addba, 0-do not send addba
  8859. */
  8860. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
  8861. /* 8-bit unsigned value to indicate the HE fragmentation support.
  8862. * Uses enum he_fragmentation_val values.
  8863. * This attribute is used to configure the testbed device to
  8864. * allow the advertised hardware capabilities to be downgraded
  8865. * for testing purposes.
  8866. */
  8867. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
  8868. /* 8-bit unsigned value to indicate the HE MCS support.
  8869. * Uses enum he_mcs_config values.
  8870. * This attribute is used to configure the testbed device to
  8871. * allow the advertised hardware capabilities to be downgraded
  8872. * for testing purposes.
  8873. */
  8874. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
  8875. /* 8-bit unsigned value to configure the driver to allow or not to
  8876. * allow the connection with WEP/TKIP in HT/VHT/HE modes.
  8877. * This attribute is used to configure the testbed device.
  8878. * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip
  8879. */
  8880. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
  8881. /* 8-bit unsigned value to configure the driver to add a
  8882. * new BA session or delete the existing BA session for
  8883. * given TID. ADDBA command uses the buffer size and tid
  8884. * configuration if user specifies the values else default
  8885. * value for buffer size is used for all tids if the tid
  8886. * also not specified. For DEL_BA command TID value is
  8887. * required to process the command.
  8888. * Uses enum qca_wlan_ba_session_config values.
  8889. * This attribute is used to configure the testbed device.
  8890. */
  8891. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
  8892. /* 16-bit unsigned value to configure the buffer size in addba
  8893. * request and response frames.
  8894. * This attribute is used to configure the testbed device.
  8895. * The range of the value is 0 to 256.
  8896. */
  8897. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
  8898. /* 8-bit unsigned value to configure the buffer size in addba
  8899. * request and response frames.
  8900. * This attribute is used to configure the testbed device.
  8901. */
  8902. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
  8903. /* 8-bit unsigned value to configure the no ack policy.
  8904. * To configure no ack policy, access category value
  8905. * is required to process the command.
  8906. * This attribute is used to configure the testbed device.
  8907. * 1 - enable no ack, 0 - disable no ack
  8908. */
  8909. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
  8910. /* 8-bit unsigned value to configure the AC for no ack policy
  8911. * This attribute is used to configure the testbed device.
  8912. * uses the enum qca_wlan_ac_type values
  8913. */
  8914. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
  8915. /* 8-bit unsigned value to configure the HE LTF
  8916. * This attribute is used to configure the testbed device.
  8917. * Uses the enum qca_wlan_he_ltf_cfg values.
  8918. */
  8919. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
  8920. /* 8-bit unsigned value to configure the tx beamformee.
  8921. * This attribute is used to configure the testbed device.
  8922. * 1 - enable, 0 - disable.
  8923. */
  8924. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
  8925. /* 8-bit unsigned value to configure the tx beamformee number of
  8926. * space-time streams.
  8927. * This attribute is used to configure the testbed device.
  8928. * The range of the value is 0 to 8
  8929. */
  8930. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
  8931. /* 8-bit unsigned value to configure the MU EDCA params for given AC
  8932. * This attribute is used to configure the testbed device.
  8933. * Uses the enum qca_wlan_ac_type values.
  8934. */
  8935. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
  8936. /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
  8937. * To configure MU EDCA AIFSN value, MU EDCA access category value
  8938. * is required to process the command.
  8939. * This attribute is used to configure the testbed device.
  8940. */
  8941. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
  8942. /* 8-bit unsigned value to configure the MU EDCA ECW min value for
  8943. * given AC.
  8944. * To configure MU EDCA ECW min value, MU EDCA access category value
  8945. * is required to process the command.
  8946. * This attribute is used to configure the testbed device.
  8947. */
  8948. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
  8949. /* 8-bit unsigned value to configure the MU EDCA ECW max value for
  8950. * given AC.
  8951. * To configure MU EDCA ECW max value, MU EDCA access category value
  8952. * is required to process the command.
  8953. * This attribute is used to configure the testbed device.
  8954. */
  8955. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
  8956. /* 8-bit unsigned value to configure the MU EDCA timer for given AC
  8957. * To configure MU EDCA timer value, MU EDCA access category value
  8958. * is required to process the command.
  8959. * This attribute is used to configure the testbed device.
  8960. */
  8961. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
  8962. /* 8-bit unsigned value to configure the HE trigger frame MAC padding
  8963. * duration.
  8964. * This attribute is used to configure the testbed device.
  8965. * Uses the enum qca_wlan_he_mac_padding_dur values.
  8966. */
  8967. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
  8968. /* 8-bit unsigned value to override the MU EDCA params to defaults
  8969. * regardless of the AP beacon MU EDCA params. If it is enabled use
  8970. * the default values else use the MU EDCA params from AP beacon.
  8971. * This attribute is used to configure the testbed device.
  8972. * 1 - enable override, 0 - disable.
  8973. */
  8974. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
  8975. /* 8-bit unsigned value to configure the support for receiving
  8976. * an MPDU that contains an operating mode control subfield.
  8977. * This attribute is used to configure the testbed device.
  8978. * 1-enable, 0-disable.
  8979. */
  8980. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
  8981. /* Nested attribute values required to setup the TWT session.
  8982. * enum qca_wlan_vendor_attr_twt_setup provides the necessary
  8983. * information to set up the session. It contains broadcast flags,
  8984. * set_up flags, trigger value, flow type, flow ID, wake interval
  8985. * exponent, protection, target wake time, wake duration, wake interval
  8986. * mantissa. These nested attributes are used to setup a host triggered
  8987. * TWT session.
  8988. */
  8989. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
  8990. /* This nested attribute is used to terminate the current TWT session.
  8991. * It does not currently carry any attributes.
  8992. */
  8993. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
  8994. /* This nested attribute is used to suspend the current TWT session.
  8995. * It does not currently carry any attributes.
  8996. */
  8997. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
  8998. /* Nested attribute values to indicate the request for resume.
  8999. * This attribute is used to resume the TWT session.
  9000. * enum qca_wlan_vendor_attr_twt_resume provides the necessary
  9001. * parameters required to resume the TWT session.
  9002. */
  9003. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
  9004. /* 8-bit unsigned value to set the HE operating mode control
  9005. * (OM CTRL) Channel Width subfield.
  9006. * The Channel Width subfield indicates the operating channel width
  9007. * supported by the STA for both reception and transmission.
  9008. * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
  9009. * This setting is cleared with the
  9010. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  9011. * flag attribute to reset defaults.
  9012. * This attribute is used to configure the testbed device.
  9013. */
  9014. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
  9015. /* 8-bit unsigned value to configure the number of spatial
  9016. * streams in HE operating mode control field.
  9017. * This setting is cleared with the
  9018. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  9019. * flag attribute to reset defaults.
  9020. * This attribute is used to configure the testbed device.
  9021. */
  9022. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
  9023. /* Flag attribute to configure the UL MU disable bit in
  9024. * HE operating mode control field.
  9025. * This setting is cleared with the
  9026. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  9027. * flag attribute to reset defaults.
  9028. * This attribute is used to configure the testbed device.
  9029. */
  9030. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
  9031. /* Flag attribute to clear the previously set HE operating mode
  9032. * control field configuration.
  9033. * This attribute is used to configure the testbed device to reset
  9034. * defaults to clear any previously set HE operating mode control
  9035. * field configuration.
  9036. */
  9037. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
  9038. /* 8-bit unsigned value to configure HE single user PPDU
  9039. * transmission. By default this setting is disabled and it
  9040. * is disabled in the reset defaults of the device configuration.
  9041. * This attribute is used to configure the testbed device.
  9042. * 1-enable, 0-disable
  9043. */
  9044. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
  9045. /* 8-bit unsigned value to configure action frame transmission
  9046. * in HE trigger based PPDU transmission.
  9047. * By default this setting is disabled and it is disabled in
  9048. * the reset defaults of the device configuration.
  9049. * This attribute is used to configure the testbed device.
  9050. * 1-enable, 0-disable
  9051. */
  9052. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
  9053. /* Nested attribute to indicate HE operating mode control field
  9054. * transmission. It contains operating mode control field Nss,
  9055. * channel bandwidth, Tx Nsts and UL MU disable attributes.
  9056. * These nested attributes are used to send HE operating mode control
  9057. * with configured values.
  9058. * Uses the enum qca_wlan_vendor_attr_omi_tx attributes.
  9059. * This attribute is used to configure the testbed device.
  9060. */
  9061. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX = 33,
  9062. /* 8-bit unsigned value to configure +HTC_HE support to indicate the
  9063. * support for the reception of a frame that carries an HE variant
  9064. * HT Control field.
  9065. * This attribute is used to configure the testbed device.
  9066. * 1-enable, 0-disable
  9067. */
  9068. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
  9069. /* 8-bit unsigned value to configure VHT support in 2.4G band.
  9070. * This attribute is used to configure the testbed device.
  9071. * 1-enable, 0-disable
  9072. */
  9073. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
  9074. /* 8-bit unsigned value to configure HE testbed defaults.
  9075. * This attribute is used to configure the testbed device.
  9076. * 1-set the device HE capabilities to testbed defaults.
  9077. * 0-reset the device HE capabilities to supported config.
  9078. */
  9079. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
  9080. /* 8-bit unsigned value to configure twt request support.
  9081. * This attribute is used to configure the testbed device.
  9082. * 1-enable, 0-disable.
  9083. */
  9084. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
  9085. /* 8-bit unsigned value to configure protection for Management
  9086. * frames when PMF is enabled for the association.
  9087. * This attribute is used to configure the testbed device.
  9088. * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
  9089. */
  9090. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
  9091. /* Flag attribute to inject Disassociation frame to the connected AP.
  9092. * This attribute is used to configure the testbed device.
  9093. */
  9094. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
  9095. /* 8-bit unsigned value to configure an override for the RSNXE Used
  9096. * subfield in the MIC control field of the FTE in FT Reassociation
  9097. * Request frame.
  9098. * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
  9099. * This attribute is used to configure the testbed device.
  9100. * This attribute can be configured when STA is in disconnected or
  9101. * associated state and the configuration is valid until the next
  9102. * disconnection.
  9103. */
  9104. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
  9105. /* 8-bit unsigned value to configure the driver to ignore CSA (Channel
  9106. * Switch Announcement) when STA is in connected state.
  9107. * 0 - Default behavior, 1 - Ignore CSA.
  9108. * This attribute is used to configure the testbed device.
  9109. * This attribute can be configured when STA is in disconnected or
  9110. * associated state and the configuration is valid until the next
  9111. * disconnection.
  9112. */
  9113. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
  9114. /* Nested attribute values required to configure OCI (Operating Channel
  9115. * Information). Attributes defined in enum
  9116. * qca_wlan_vendor_attr_oci_override are nested within this attribute.
  9117. * This attribute is used to configure the testbed device.
  9118. * This attribute can be configured when STA is in disconnected or
  9119. * associated state and the configuration is valid until the next
  9120. * disconnection.
  9121. */
  9122. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
  9123. /* 8-bit unsigned value to configure the driver/firmware to ignore SA
  9124. * Query timeout. If this configuration is enabled STA shall not send
  9125. * Deauthentication frmae when SA Query times out (mainly, after a
  9126. * channel switch when OCV is enabled).
  9127. * 0 - Default behavior, 1 - Ignore SA Query timeout.
  9128. * This attribute is used to configure the testbed device.
  9129. * This attribute can be configured only when STA is in associated state
  9130. * and the configuration is valid until the disconnection.
  9131. */
  9132. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
  9133. /* 8-bit unsigned value to configure the driver/firmware to start or
  9134. * stop transmitting FILS discovery frames.
  9135. * 0 - Stop transmitting FILS discovery frames
  9136. * 1 - Start transmitting FILS discovery frames
  9137. * This attribute is used to configure the testbed device.
  9138. * This attribute can be configured only in AP mode and the
  9139. * configuration is valid until AP restart.
  9140. */
  9141. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
  9142. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9143. * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
  9144. * information field.
  9145. * 0 - Disable full bandwidth UL MU-MIMO subfield
  9146. * 1 - Enable full bandwidth UL MU-MIMO subfield
  9147. * This attribute is used to configure the testbed device.
  9148. */
  9149. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
  9150. /* 16-bit unsigned value to configure the driver with a specific BSS
  9151. * max idle period to advertise in the BSS Max Idle Period element
  9152. * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
  9153. * This attribute is used to configure the testbed device.
  9154. */
  9155. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
  9156. /* 8-bit unsigned value to configure the driver to use only RU 242 tone
  9157. * for data transmission.
  9158. * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
  9159. * This attribute is used to configure the testbed device.
  9160. */
  9161. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
  9162. /* 8-bit unsigned value to configure the driver to disable data and
  9163. * management response frame transmission to test the BSS max idle
  9164. * feature.
  9165. * 0 - Default behavior, 1 - Disable data and management response Tx.
  9166. * This attribute is used to configure the testbed device.
  9167. */
  9168. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
  9169. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9170. * disable Punctured Preamble Rx subfield in the HE PHY capabilities
  9171. * information field.
  9172. * 0 - Disable Punctured Preamble Rx subfield
  9173. * 1 - Enable Punctured Preamble Rx subfield
  9174. * This attribute is used to configure the testbed device.
  9175. */
  9176. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
  9177. /* 8-bit unsigned value to configure the driver to ignore the SAE H2E
  9178. * requirement mismatch for 6 GHz connection.
  9179. * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
  9180. * This attribute is used to configure the testbed device.
  9181. */
  9182. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
  9183. /* 8-bit unsigned value to configure the driver to allow 6 GHz
  9184. * connection with all security modes.
  9185. * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
  9186. * modes.
  9187. * This attribute is used for testing purposes.
  9188. */
  9189. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
  9190. /* 8-bit unsigned value to configure the driver to transmit data with
  9191. * ER SU PPDU type.
  9192. *
  9193. * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
  9194. * This attribute is used for testing purposes.
  9195. */
  9196. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
  9197. /* 8-bit unsigned value to configure the driver to use Data or
  9198. * Management frame type for keep alive data.
  9199. * Uses enum qca_wlan_keep_alive_data_type values.
  9200. *
  9201. * This attribute is used for testing purposes.
  9202. */
  9203. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
  9204. /* 8-bit unsigned value to configure the driver to use scan request
  9205. * BSSID value in Probe Request frame RA(A1) during the scan. The
  9206. * driver saves this configuration and applies this setting to all user
  9207. * space scan requests until the setting is cleared. If this
  9208. * configuration is set, the driver uses the BSSID value from the scan
  9209. * request to set the RA(A1) in the Probe Request frames during the
  9210. * scan.
  9211. *
  9212. * 0 - Default behavior uses the broadcast RA in Probe Request frames.
  9213. * 1 - Uses the scan request BSSID in RA in Probe Request frames.
  9214. * This attribute is used for testing purposes.
  9215. */
  9216. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
  9217. /* 8-bit unsigned value to configure the driver to enable/disable the
  9218. * BSS max idle period support.
  9219. *
  9220. * 0 - Disable the BSS max idle support.
  9221. * 1 - Enable the BSS max idle support.
  9222. * This attribute is used for testing purposes.
  9223. */
  9224. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
  9225. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9226. * disable Rx control frame to MultiBSS subfield in the HE MAC
  9227. * capabilities information field.
  9228. * 0 - Disable Rx control frame to MultiBSS subfield
  9229. * 1 - Enable Rx control frame to MultiBSS subfield
  9230. * This attribute is used to configure the testbed device.
  9231. */
  9232. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
  9233. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9234. * disable Broadcast TWT support subfield in the HE MAC capabilities
  9235. * information field.
  9236. * 0 - Disable Broadcast TWT support subfield
  9237. * 1 - Enable Broadcast TWT support subfield
  9238. * This attribute is used to configure the testbed device.
  9239. */
  9240. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
  9241. /* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
  9242. * mode for 802.11be MLO capable devices. If the attribute is set to 1,
  9243. * and if the FW supports this capability too, then the STA host
  9244. * advertises this capability to AP over assoc request frame. This
  9245. * attribute will not have any effect on legacy devices with no 802.11be
  9246. * support.
  9247. * 0 - Default behavior
  9248. * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
  9249. * This attribute is used to configure the testbed device.
  9250. */
  9251. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
  9252. /* 8-bit unsigned value to configure the driver to enable/disable the
  9253. * periodic sounding for Tx beamformer functionality. The default
  9254. * behavior uses algorithm to do sounding based on packet stats.
  9255. *
  9256. * 0 - Default behavior.
  9257. * 1 - Enable the periodic sounding for Tx beamformer.
  9258. * This attribute is used for testing purposes.
  9259. */
  9260. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59,
  9261. /* 8-bit unsigned value to configure beamformee SS EHT capability
  9262. * to indicate the maximum number of spatial streams that the STA
  9263. * can receive in an EHT sounding NDP for <= 80 MHz bandwidth.
  9264. * The range of the value is 3 to 7.
  9265. * This attribute is used to configure the testbed device.
  9266. */
  9267. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_80MHZ = 60,
  9268. /* 8-bit unsigned value to configure beamformee SS EHT capability
  9269. * to indicate the maximum number of spatial streams that the STA
  9270. * can receive in an EHT sounding NDP for 160 MHz bandwidth.
  9271. * The range of the value is 3 to 7.
  9272. * This attribute is used to configure the testbed device.
  9273. */
  9274. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_160MHZ = 61,
  9275. /* 8-bit unsigned value to configure beamformee SS EHT capability
  9276. * to indicate the maximum number of spatial streams that the STA
  9277. * can receive in an EHT sounding NDP for 320 MHz bandwidth.
  9278. * The range of the value is 3 to 7.
  9279. * This attribute is used to configure the testbed device.
  9280. */
  9281. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_320MHZ = 62,
  9282. /* 8-bit unsigned value to configure the driver to exclude station
  9283. * profile in Probe Request frame Multi-Link element.
  9284. * 0 - Default behavior, sends the Probe Request frame with station
  9285. * profile data included in the Multi-Link element.
  9286. * 1 - Exclude station profile in Probe Request frame Multi-Link
  9287. * element.
  9288. * This attribute is used to configure the testbed device.
  9289. */
  9290. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EXCLUDE_STA_PROF_IN_PROBE_REQ = 63,
  9291. /* 8-bit unsigned value to configure EHT testbed defaults.
  9292. * This attribute is used to configure the testbed device.
  9293. * 1 - Set the device EHT capabilities to testbed defaults.
  9294. * 0 - Reset the device EHT capabilities to supported config.
  9295. */
  9296. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_EHT_TESTBED_DEFAULTS = 64,
  9297. /* 8-bit unsigned value to indicate the EHT MCS support.
  9298. * Uses enum eht_mcs_config values.
  9299. * This attribute is used to configure the testbed device to
  9300. * allow the advertised hardware capabilities to be downgraded
  9301. * for testing purposes.
  9302. */
  9303. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MCS = 65,
  9304. /* 8-bit unsigned value to configure EHT TB Sounding Feedback
  9305. * Rate Limit capability.
  9306. * This attribute is used to configure the testbed device.
  9307. * 0 - Indicates no maximum supported data rate limitation.
  9308. * 1 - Indicates the maximum supported data rate is the lower of
  9309. * the 1500 Mb/s and the maximum supported data rate.
  9310. */
  9311. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_TB_SOUNDING_FB_RL = 66,
  9312. /* 8-bit unsigned value to configure the support for receiving an MPDU
  9313. * that contains an EHT operating mode control subfield.
  9314. * This attribute is used to configure the testbed device.
  9315. * 1-enable, 0-disable.
  9316. */
  9317. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_OM_CTRL_SUPPORT = 67,
  9318. /* 8-bit unsigned value to configure the driver with EMLSR padding delay
  9319. * subfield value.
  9320. *
  9321. * 0 - 0 us
  9322. * 1 - 32 us
  9323. * 2 - 64 us
  9324. * 3 - 128 us
  9325. * 4 - 256 us
  9326. * 5-255 - Reserved
  9327. *
  9328. * This attribute is used for testing purposes.
  9329. */
  9330. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EMLSR_PADDING_DELAY = 68,
  9331. /* keep last */
  9332. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
  9333. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
  9334. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
  9335. };
  9336. /**
  9337. * enum qca_wlan_twt_operation - Operation of the config TWT request
  9338. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
  9339. * The response for the respective operations can be either synchronous or
  9340. * asynchronous (wherever specified). If synchronous, the response to this
  9341. * operation is obtained in the corresponding vendor command reply to the user
  9342. * space. For the asynchronous case the response is obtained as an event with
  9343. * the same operation type.
  9344. *
  9345. * Drivers shall support either of these modes but not both simultaneously.
  9346. * This support for asynchronous mode is advertised through the flag
  9347. * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
  9348. * the driver shall support synchronous mode.
  9349. *
  9350. * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
  9351. * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9352. * qca_wlan_vendor_attr_twt_setup. Depending upon the
  9353. * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
  9354. * synchronous or asynchronous operation.
  9355. *
  9356. * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
  9357. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9358. * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
  9359. *
  9360. * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
  9361. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9362. * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
  9363. * This terminate can either get triggered by the user space or can as well be
  9364. * a notification from the firmware if it initiates a terminate.
  9365. * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
  9366. * the request from user space can either be a synchronous or asynchronous
  9367. * operation.
  9368. *
  9369. * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
  9370. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9371. * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
  9372. * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
  9373. * this is either a synchronous or asynchronous operation.
  9374. *
  9375. * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
  9376. * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9377. * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
  9378. * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
  9379. * request.
  9380. * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
  9381. * capability, this is either a synchronous or asynchronous operation.
  9382. *
  9383. * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
  9384. * combination of suspend and resume in a single request. Required parameters
  9385. * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
  9386. * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
  9387. * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
  9388. * capability, this is either a synchronous or asynchronous operation.
  9389. *
  9390. * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
  9391. * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
  9392. * session is setup. It's a synchronous operation.
  9393. *
  9394. * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
  9395. * Valid only after the TWT session is setup. It's a synchronous operation.
  9396. *
  9397. * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
  9398. * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
  9399. * operation.
  9400. *
  9401. * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is
  9402. * ready for a new TWT session setup after it issued a twt teardown.
  9403. *
  9404. * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
  9405. * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
  9406. * the enum qca_wlan_vendor_attr_twt_set_param.
  9407. *
  9408. * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
  9409. * related information for example TWT required bit in AP capabilities etc.
  9410. * The reason for the notification is sent using
  9411. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
  9412. */
  9413. enum qca_wlan_twt_operation {
  9414. QCA_WLAN_TWT_SET = 0,
  9415. QCA_WLAN_TWT_GET = 1,
  9416. QCA_WLAN_TWT_TERMINATE = 2,
  9417. QCA_WLAN_TWT_SUSPEND = 3,
  9418. QCA_WLAN_TWT_RESUME = 4,
  9419. QCA_WLAN_TWT_NUDGE = 5,
  9420. QCA_WLAN_TWT_GET_STATS = 6,
  9421. QCA_WLAN_TWT_CLEAR_STATS = 7,
  9422. QCA_WLAN_TWT_GET_CAPABILITIES = 8,
  9423. QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
  9424. QCA_WLAN_TWT_SET_PARAM = 10,
  9425. QCA_WLAN_TWT_NOTIFY = 11,
  9426. };
  9427. /* enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
  9428. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT
  9429. *
  9430. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION:
  9431. * u8 attribute. Specify the TWT operation of this request. Possible values
  9432. * are defined in enum qca_wlan_twt_operation. The parameters for the
  9433. * respective operation is specified through
  9434. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
  9435. *
  9436. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
  9437. * parameters configured for TWT. These parameters are represented by
  9438. * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
  9439. * enum qca_wlan_vendor_attr_twt_set_param or
  9440. * enum qca_wlan_vendor_attr_twt_stats based on the operation.
  9441. *
  9442. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
  9443. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
  9444. * The values used by this attribute are defined in
  9445. * enum qca_wlan_vendor_twt_status.
  9446. */
  9447. enum qca_wlan_vendor_attr_config_twt {
  9448. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
  9449. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
  9450. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
  9451. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
  9452. /* keep last */
  9453. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
  9454. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
  9455. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
  9456. };
  9457. /**
  9458. * qca_wlan_twt_setup_state: Represents the TWT session states.
  9459. *
  9460. * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
  9461. * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
  9462. * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
  9463. */
  9464. enum qca_wlan_twt_setup_state {
  9465. QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
  9466. QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
  9467. QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
  9468. };
  9469. /**
  9470. * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
  9471. * TWT (Target Wake Time) setup request. These attributes are sent as part of
  9472. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
  9473. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
  9474. * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9475. *
  9476. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
  9477. * Disable (flag attribute not present) - Individual TWT
  9478. * Enable (flag attribute present) - Broadcast TWT.
  9479. * Individual means the session is between the STA and the AP.
  9480. * This session is established using a separate negotiation between
  9481. * STA and AP.
  9482. * Broadcast means the session is across multiple STAs and an AP. The
  9483. * configuration parameters are announced in Beacon frames by the AP.
  9484. * This is used in
  9485. * 1. TWT SET Request and Response
  9486. * 2. TWT GET Response
  9487. *
  9488. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
  9489. * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
  9490. * specify the TWT request type. This is used in TWT SET operation.
  9491. *
  9492. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
  9493. * Enable (flag attribute present) - TWT with trigger support.
  9494. * Disable (flag attribute not present) - TWT without trigger support.
  9495. * Trigger means the AP will send the trigger frame to allow STA to send data.
  9496. * Without trigger, the STA will wait for the MU EDCA timer before
  9497. * transmitting the data.
  9498. * This is used in
  9499. * 1. TWT SET Request and Response
  9500. * 2. TWT GET Response
  9501. *
  9502. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
  9503. * 0 - Announced TWT - In this mode, STA may skip few service periods to
  9504. * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
  9505. * NULL frame to AP.
  9506. * 1 - Unannounced TWT - The STA will wakeup during every SP.
  9507. * This is a required parameter for
  9508. * 1. TWT SET Request and Response
  9509. * 2. TWT GET Response
  9510. *
  9511. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
  9512. * Flow ID is the unique identifier for each TWT session.
  9513. * If not provided then dialog ID will be set to zero.
  9514. * This is an optional parameter for
  9515. * 1. TWT SET Request and Response
  9516. * 2. TWT GET Request and Response
  9517. * 3. TWT TERMINATE Request and Response
  9518. * 4. TWT SUSPEND Request and Response
  9519. * Flow Id values from 0 to 254 represent a single TWT session
  9520. * Flow ID value of 255 represents all twt sessions for the following
  9521. * 1. TWT TERMINATE Request and Response
  9522. * 2. TWT SUSPEND Request and Response
  9523. * 4. TWT CLEAR STATISTICS request
  9524. * 5. TWT GET STATISTICS request and response
  9525. * If an invalid dialog id is provided, status
  9526. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  9527. *
  9528. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
  9529. * This attribute (exp) is used along with the mantissa to derive the
  9530. * wake interval using the following formula:
  9531. * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
  9532. * Wake interval is the interval between 2 successive SP.
  9533. * This is a required parameter for
  9534. * 1. TWT SET Request and Response
  9535. * 2. TWT GET Response
  9536. *
  9537. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
  9538. * Enable (flag attribute present) - Protection required.
  9539. * Disable (flag attribute not present) - Protection not required.
  9540. * If protection is enabled, then the AP will use protection
  9541. * mechanism using RTS/CTS to self to reserve the airtime.
  9542. * This is used in
  9543. * 1. TWT SET Request and Response
  9544. * 2. TWT GET Response
  9545. *
  9546. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
  9547. * This attribute is used as the SP offset which is the offset from
  9548. * TSF after which the wake happens. The units are in microseconds. If
  9549. * this attribute is not provided, then the value will be set to zero.
  9550. * This is an optional parameter for
  9551. * 1. TWT SET Request and Response
  9552. * 2. TWT GET Response
  9553. *
  9554. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
  9555. * This is the duration of the service period. This is specified as
  9556. * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
  9557. * This is a required parameter for
  9558. * 1. TWT SET Request and Response
  9559. * 2. TWT GET Response
  9560. *
  9561. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
  9562. * This attribute is used to configure wake interval mantissa.
  9563. * The units are in TU.
  9564. * This is a required parameter for
  9565. * 1. TWT SET Request and Response
  9566. * 2. TWT GET Response
  9567. *
  9568. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
  9569. * This field is applicable for TWT response only.
  9570. * This contains status values in enum qca_wlan_vendor_twt_status
  9571. * and is passed to the userspace. This is used in TWT SET operation.
  9572. * This is a required parameter for
  9573. * 1. TWT SET Response
  9574. * 2. TWT TERMINATE Response
  9575. * 3. TWT SUSPEND Response
  9576. * 4. TWT RESUME Response
  9577. * 5. TWT NUDGE Response
  9578. *
  9579. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
  9580. * This field is applicable for TWT response only.
  9581. * This field contains response type from the TWT responder and is
  9582. * passed to the userspace. The values for this field are defined in
  9583. * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
  9584. * response.
  9585. *
  9586. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
  9587. * In TWT setup command this field contains absolute TSF that will
  9588. * be used by TWT requester during setup.
  9589. * In TWT response this field contains absolute TSF value of the
  9590. * wake time received from the TWT responder and is passed to
  9591. * the userspace.
  9592. * This is an optional parameter for
  9593. * 1. TWT SET Request
  9594. * This is a required parameter for
  9595. * 1. TWT SET Response
  9596. * 2. TWT GET Response
  9597. *
  9598. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
  9599. * Enable (flag attribute present) - Indicates that the TWT responder
  9600. * supports reception of TWT information frame from the TWT requestor.
  9601. * Disable (flag attribute not present) - Indicates that the responder
  9602. * doesn't support reception of TWT information frame from requestor.
  9603. * This is used in
  9604. * 1. TWT SET Response
  9605. * 2. TWT GET Response
  9606. *
  9607. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
  9608. * Represents the MAC address of the peer for which the TWT session
  9609. * is being configured. This is used in AP mode to represent the respective
  9610. * client
  9611. * In AP mode, this is a required parameter in response for
  9612. * 1. TWT SET
  9613. * 2. TWT GET
  9614. * 3. TWT TERMINATE
  9615. * 4. TWT SUSPEND
  9616. * In STA mode, this is an optional parameter in request and response for
  9617. * the above four TWT operations.
  9618. * In AP mode, this is a required parameter in request for
  9619. * 1. TWT GET
  9620. * 2. TWT TERMINATE
  9621. *
  9622. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
  9623. * Minimum tolerance limit of wake interval parameter in microseconds.
  9624. *
  9625. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
  9626. * Maximum tolerance limit of wake interval parameter in microseconds.
  9627. *
  9628. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
  9629. * Minimum tolerance limit of wake duration parameter in microseconds.
  9630. *
  9631. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
  9632. * Maximum tolerance limit of wake duration parameter in microseconds.
  9633. *
  9634. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
  9635. * TWT state for the given dialog id. The values for this are represented
  9636. * by enum qca_wlan_twt_setup_state.
  9637. * This is obtained through TWT GET operation.
  9638. *
  9639. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
  9640. * This attribute is used to configure wake interval mantissa.
  9641. * The unit is microseconds. This attribute, when specified, takes
  9642. * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
  9643. * This parameter is used for
  9644. * 1. TWT SET Request and Response
  9645. * 2. TWT GET Response
  9646. *
  9647. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
  9648. * This attribute is used to configure Broadcast TWT ID.
  9649. * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
  9650. * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
  9651. * This parameter is used for
  9652. * 1. TWT SET Request
  9653. * 2. TWT TERMINATE Request
  9654. *
  9655. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
  9656. * This attribute is used to configure Broadcast TWT recommendation.
  9657. * The Broadcast TWT Recommendation subfield contains a value that indicates
  9658. * recommendations on the types of frames that are transmitted by TWT
  9659. * scheduled STAs and scheduling AP during the broadcast TWT SP.
  9660. * The allowed values are 0 - 3.
  9661. * This parameter is used for
  9662. * 1. TWT SET Request
  9663. *
  9664. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
  9665. * This attribute is used to configure Broadcast TWT Persistence.
  9666. * The Broadcast TWT Persistence subfield indicates the number of
  9667. * TBTTs during which the Broadcast TWT SPs corresponding to this
  9668. * broadcast TWT Parameter set are present. The number of beacon intervals
  9669. * during which the Broadcast TWT SPs are present is equal to the value in the
  9670. * Broadcast TWT Persistence subfield plus 1 except that the value 255
  9671. * indicates that the Broadcast TWT SPs are present until explicitly terminated.
  9672. * This parameter is used for
  9673. * 1. TWT SET Request
  9674. *
  9675. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
  9676. * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
  9677. * from TWT response frame.
  9678. * This parameter is used for
  9679. * 1. TWT SET Response
  9680. * 2. TWT GET Response
  9681. *
  9682. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
  9683. * This attribute is used to configure the announce timeout value (in us) in
  9684. * firmware. This timeout value is only applicable for announced TWT. If
  9685. * timeout value is non-zero then firmware waits upto timeout value to use
  9686. * data frame as announcement frame. If timeout value is 0 then firmware sends
  9687. * explicit QoS NULL frame as announcement frame on SP start. Default value in
  9688. * firmware is 0.
  9689. * This parameter is used for
  9690. * 1. TWT SET Request
  9691. */
  9692. enum qca_wlan_vendor_attr_twt_setup {
  9693. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
  9694. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
  9695. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
  9696. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
  9697. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
  9698. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
  9699. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
  9700. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
  9701. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
  9702. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
  9703. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
  9704. /* TWT Response only attributes */
  9705. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
  9706. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
  9707. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
  9708. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
  9709. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
  9710. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
  9711. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
  9712. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
  9713. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
  9714. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
  9715. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
  9716. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
  9717. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
  9718. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
  9719. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
  9720. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
  9721. /* keep last */
  9722. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
  9723. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
  9724. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
  9725. };
  9726. /**
  9727. * enum qca_wlan_vendor_twt_status - Represents the status of the requested
  9728. * TWT operation
  9729. *
  9730. * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
  9731. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
  9732. * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
  9733. * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
  9734. * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
  9735. * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
  9736. * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
  9737. * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
  9738. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
  9739. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
  9740. * request/response frame
  9741. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
  9742. * frame
  9743. * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
  9744. * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
  9745. * unknown reason
  9746. * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
  9747. * suspend state
  9748. * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
  9749. * invalid IE in the received TWT frame
  9750. * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
  9751. * the responder are not in the specified range
  9752. * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
  9753. * session due to request from the responder. Used on the TWT_TERMINATE
  9754. * notification from the firmware.
  9755. * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
  9756. * session due to roaming. Used on the TWT_TERMINATE notification from the
  9757. * firmware.
  9758. * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
  9759. * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel)
  9760. * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
  9761. * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
  9762. * request due to roaming in progress.
  9763. * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
  9764. * setup request due to channel switch in progress.
  9765. * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
  9766. * request due to scan in progress.
  9767. * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
  9768. * terminate an existing TWT session on power save exit request from userspace.
  9769. * Used on the TWT_TERMINATE notification from the driver/firmware.
  9770. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
  9771. * required bit in its capabilities.
  9772. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
  9773. * the TWT required bit(1->0) in its capabilities.
  9774. */
  9775. enum qca_wlan_vendor_twt_status {
  9776. QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
  9777. QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
  9778. QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
  9779. QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
  9780. QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
  9781. QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
  9782. QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
  9783. QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
  9784. QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
  9785. QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
  9786. QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
  9787. QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
  9788. QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
  9789. QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
  9790. QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
  9791. QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
  9792. QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
  9793. QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
  9794. QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
  9795. QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
  9796. QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
  9797. QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
  9798. QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
  9799. QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
  9800. QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
  9801. };
  9802. /**
  9803. * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
  9804. * TWT (Target Wake Time) resume request. These attributes are sent as part of
  9805. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
  9806. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
  9807. * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9808. *
  9809. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
  9810. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
  9811. * These attributes are used as the SP offset which is the offset from TSF after
  9812. * which the wake happens. The units are in microseconds. Please note that
  9813. * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
  9814. * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
  9815. * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
  9816. * will be set to zero.
  9817. *
  9818. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
  9819. * This attribute represents the next TWT subfield size.
  9820. * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
  9821. * and 4 for 64 bits.
  9822. *
  9823. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
  9824. * Flow ID is the unique identifier for each TWT session. This attribute
  9825. * represents the respective TWT session to resume.
  9826. * Flow Id values from 0 to 254 represent a single TWT session
  9827. * Flow ID value of 255 represents all TWT sessions.
  9828. * If an invalid dialog id is provided, status
  9829. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  9830. *
  9831. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
  9832. * Represents the MAC address of the peer to which TWT Resume is
  9833. * being sent. This is used in AP mode to represent the respective
  9834. * client and is a required parameter. In STA mode, this is an optional
  9835. * parameter
  9836. *
  9837. */
  9838. enum qca_wlan_vendor_attr_twt_resume {
  9839. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
  9840. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
  9841. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
  9842. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
  9843. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
  9844. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
  9845. /* keep last */
  9846. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
  9847. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
  9848. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
  9849. };
  9850. /**
  9851. * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
  9852. * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
  9853. * and resume in a single request. These attributes are sent as part of
  9854. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9855. *
  9856. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
  9857. * Flow ID is the unique identifier for each TWT session. This attribute
  9858. * represents the respective TWT session to suspend and resume.
  9859. *
  9860. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
  9861. * Flow ID is the unique identifier for each TWT session. This attribute
  9862. * represents the respective TWT session to suspend and resume.
  9863. * Flow Id values from 0 to 254 represent a single TWT session
  9864. * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
  9865. * and response.
  9866. * If an invalid dialog id is provided, status
  9867. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  9868. *
  9869. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
  9870. * This attribute is used as the SP offset which is the offset from
  9871. * TSF after which the wake happens. The units are in microseconds.
  9872. *
  9873. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
  9874. * This attribute represents the next TWT subfield size.
  9875. * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
  9876. * and 4 for 64 bits.
  9877. *
  9878. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
  9879. * Represents the MAC address of the peer to which TWT Suspend and Resume is
  9880. * being sent. This is used in AP mode to represent the respective
  9881. * client and is a required parameter. In STA mode, this is an optional
  9882. * parameter.
  9883. *
  9884. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
  9885. * This field contains absolute TSF value of the time at which twt
  9886. * sesion will be resumed.
  9887. *
  9888. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32)
  9889. * This field will be used when device supports Flexible TWT.
  9890. * This field contains an offset value by which to shift the starting time
  9891. * of the next service period. The value of offset can be negative or positive.
  9892. * If provided, this attribute will override
  9893. * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds.
  9894. */
  9895. enum qca_wlan_vendor_attr_twt_nudge {
  9896. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
  9897. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
  9898. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
  9899. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
  9900. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
  9901. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
  9902. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6,
  9903. /* keep last */
  9904. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
  9905. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
  9906. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
  9907. };
  9908. /**
  9909. * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
  9910. * TWT (Target Wake Time) get statistics and clear statistics request.
  9911. * These attributes are sent as part of
  9912. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9913. *
  9914. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
  9915. * Flow ID is the unique identifier for each TWT session. This attribute
  9916. * represents the respective TWT session for get and clear TWT statistics.
  9917. * Flow Id values from 0 to 254 represent a single TWT session
  9918. * Flow ID value of 255 represents all TWT sessions in
  9919. * 1) TWT GET STATISTICS request and response
  9920. * 2) TWT CLEAR STATISTICS request
  9921. *
  9922. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
  9923. * Represents the MAC address of the peer for which TWT Statistics
  9924. * is required.
  9925. * In AP mode this is used to represent the respective
  9926. * client and is a required parameter for
  9927. * 1) TWT GET STATISTICS request and response
  9928. * 2) TWT CLEAR STATISTICS request and response
  9929. * In STA mode, this is an optional parameter.
  9930. *
  9931. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
  9932. * This is the duration of the service period in microseconds.
  9933. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9934. *
  9935. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
  9936. * Average of actual wake duration observed so far. Unit is microseconds.
  9937. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9938. *
  9939. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
  9940. * Number of TWT service period elapsed so far.
  9941. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9942. *
  9943. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
  9944. * This is the minimum value of wake duration observed across
  9945. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
  9946. * microseconds.
  9947. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9948. *
  9949. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
  9950. * This is the maximum value of wake duration observed across
  9951. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
  9952. * microseconds.
  9953. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9954. *
  9955. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
  9956. * Average number of MPDU's transmitted successfully across
  9957. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  9958. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9959. *
  9960. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
  9961. * Average number of MPDU's received successfully across
  9962. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  9963. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9964. *
  9965. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
  9966. * Average number of bytes transmitted successfully across
  9967. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  9968. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9969. *
  9970. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET SIZE: Required (u32)
  9971. * Average number of bytes received successfully across
  9972. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  9973. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9974. *
  9975. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
  9976. * Status of the TWT GET STATISTICS request.
  9977. * This contains status values in enum qca_wlan_vendor_twt_status
  9978. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9979. */
  9980. enum qca_wlan_vendor_attr_twt_stats {
  9981. QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
  9982. QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
  9983. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
  9984. QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
  9985. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
  9986. QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
  9987. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
  9988. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
  9989. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
  9990. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
  9991. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
  9992. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
  9993. QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
  9994. /* keep last */
  9995. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
  9996. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
  9997. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
  9998. };
  9999. /**
  10000. * qca_wlan_twt_get_capa - Represents the Bitmap of TWT capabilities
  10001. * supported by the device and peer.
  10002. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
  10003. *
  10004. * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
  10005. * TWT non-scheduling STA. This capability is advertised in the HE
  10006. * capability/Extended capabilities information element in the
  10007. * Association request frame by the device.
  10008. *
  10009. * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised
  10010. * by the TWT scheduling AP. This capability is advertised in the extended
  10011. * capabilities/HE capabilities information element.
  10012. *
  10013. * @QCA_WLAN_TWT_CAPA_BROADCAST: On requestor side, this indicates support
  10014. * for the broadcast TWT functionality. On responder side, this indicates
  10015. * support for the role of broadcast TWT scheduling functionality. This
  10016. * capability is advertised in the HE capabilities information element.
  10017. *
  10018. * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: Device supports flexible TWT schedule.
  10019. * This capability is advertised in the HE capabilities information element.
  10020. *
  10021. * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
  10022. * that it mandates the associated HE STAs to support TWT. This capability is
  10023. * advertised by AP in the HE Operation Parameters field of the HE operation
  10024. * information element.
  10025. */
  10026. enum qca_wlan_twt_capa {
  10027. QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
  10028. QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
  10029. QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
  10030. QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3),
  10031. QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4),
  10032. };
  10033. /**
  10034. * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT
  10035. * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
  10036. * operation.
  10037. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
  10038. * Represents the MAC address of the peer for which the TWT capabilities
  10039. * are being queried. This is used in AP mode to represent the respective
  10040. * client. In STA mode, this is an optional parameter.
  10041. *
  10042. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
  10043. * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
  10044. * enum qca_wlan_twt_capa.
  10045. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
  10046. * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
  10047. * enum qca_wlan_twt_capa.
  10048. */
  10049. enum qca_wlan_vendor_attr_twt_capability {
  10050. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
  10051. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
  10052. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
  10053. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
  10054. /* keep last */
  10055. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
  10056. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
  10057. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
  10058. };
  10059. /**
  10060. * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
  10061. * TWT (Target Wake Time) related parameters. It is used when
  10062. * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
  10063. * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  10064. *
  10065. * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
  10066. * This attribute configures AC parameters to be used for all TWT
  10067. * sessions in AP mode.
  10068. * Uses the enum qca_wlan_ac_type values.
  10069. */
  10070. enum qca_wlan_vendor_attr_twt_set_param {
  10071. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
  10072. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
  10073. /* keep last */
  10074. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
  10075. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
  10076. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
  10077. };
  10078. /**
  10079. * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
  10080. * the TWT responder
  10081. *
  10082. * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
  10083. * parameters that are different from TWT requesting STA suggested
  10084. * or demanded TWT parameters
  10085. * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
  10086. * parameters that are different from TWT requesting STA TWT suggested
  10087. * or demanded parameters
  10088. * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
  10089. * setup
  10090. * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
  10091. * setup.
  10092. */
  10093. enum qca_wlan_vendor_twt_setup_resp_type {
  10094. QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
  10095. QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
  10096. QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
  10097. QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
  10098. };
  10099. /**
  10100. * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
  10101. * Represents the setup type being requested for TWT.
  10102. * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
  10103. * parameters but relying on AP to fill the parameters during the negotiation.
  10104. * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
  10105. * values which the AP may accept or AP may provide alternative parameters
  10106. * which the STA may accept.
  10107. * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
  10108. * alternate parameters than the requested ones.
  10109. */
  10110. enum qca_wlan_vendor_twt_setup_req_type {
  10111. QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
  10112. QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
  10113. QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
  10114. };
  10115. /**
  10116. * enum qca_wlan_throughput_level - Current throughput level
  10117. *
  10118. * Indicates the current level of throughput calculated by driver. The driver
  10119. * may choose different thresholds to decide whether the throughput level is
  10120. * low or medium or high based on variety of parameters like physical link
  10121. * capacity of current connection, number of pakcets being dispatched per
  10122. * second etc. The throughput level events might not be consistent with the
  10123. * actual current throughput value being observed.
  10124. *
  10125. * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
  10126. * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
  10127. * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
  10128. */
  10129. enum qca_wlan_throughput_level {
  10130. QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
  10131. QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
  10132. QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
  10133. };
  10134. /**
  10135. * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
  10136. * report throughput changes from driver to user space. enum values are used
  10137. * for NL attributes sent with
  10138. * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
  10139. */
  10140. enum qca_wlan_vendor_attr_throughput_change {
  10141. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
  10142. /*
  10143. * Indicates the direction of throughput in which the change is being
  10144. * reported. u8 attribute. Value is 0 for TX and 1 for RX.
  10145. */
  10146. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
  10147. /*
  10148. * Indicates the newly observed throughput level.
  10149. * qca_wlan_throughput_level describes the possible range of values.
  10150. * u8 attribute.
  10151. */
  10152. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
  10153. /*
  10154. * Indicates the driver's guidance on the new value to be set to
  10155. * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver
  10156. * may optionally include this attribute.
  10157. */
  10158. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
  10159. /*
  10160. * Indicates the driver's guidance on the new value to be set to
  10161. * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible
  10162. * values are from -31 to 31. Driver may optionally include this
  10163. * attribute.
  10164. */
  10165. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
  10166. /*
  10167. * Indicates the driver's guidance on the new value to be set to
  10168. * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may
  10169. * optionally include this attribute.
  10170. */
  10171. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
  10172. /* keep last */
  10173. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
  10174. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
  10175. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
  10176. };
  10177. /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
  10178. * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
  10179. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  10180. */
  10181. enum qca_wlan_nan_ext_subcmd_type {
  10182. /* Subcmd of type NAN Enable Request */
  10183. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
  10184. /* Subcmd of type NAN Disable Request */
  10185. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
  10186. };
  10187. /**
  10188. * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
  10189. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  10190. */
  10191. enum qca_wlan_vendor_attr_nan_params {
  10192. QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
  10193. /* Carries NAN command for firmware component. Every vendor command
  10194. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
  10195. * payload containing the NAN command. NLA_BINARY attribute.
  10196. */
  10197. QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
  10198. /* Indicates the type of NAN command sent with
  10199. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
  10200. * describes the possible range of values. This attribute is mandatory
  10201. * if the command being issued is either
  10202. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
  10203. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
  10204. */
  10205. QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
  10206. /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
  10207. * band. This attribute is mandatory when command type is
  10208. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
  10209. */
  10210. QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
  10211. /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
  10212. * band. This attribute is optional and should be included when command
  10213. * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
  10214. * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
  10215. */
  10216. QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
  10217. /* keep last */
  10218. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
  10219. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
  10220. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
  10221. };
  10222. /**
  10223. * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
  10224. * transport modes and is used by attribute
  10225. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as part of vendor command
  10226. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
  10227. * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use RELAY FS to send CFR data.
  10228. * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
  10229. * data. The data shall be encapsulated within
  10230. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with vendor sub command
  10231. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
  10232. */
  10233. enum qca_wlan_vendor_cfr_data_transport_modes {
  10234. QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
  10235. QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
  10236. };
  10237. /**
  10238. * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
  10239. * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
  10240. * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
  10241. * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QOS Null frame.
  10242. * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QOS Null frame
  10243. * with phase
  10244. * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using probe response frame
  10245. */
  10246. enum qca_wlan_vendor_cfr_method {
  10247. QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
  10248. QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
  10249. QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
  10250. };
  10251. /**
  10252. * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
  10253. * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
  10254. * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
  10255. * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
  10256. * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
  10257. * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
  10258. * is provided by one or more of below attributes:
  10259. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
  10260. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
  10261. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
  10262. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
  10263. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
  10264. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
  10265. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
  10266. * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
  10267. * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
  10268. */
  10269. enum qca_wlan_vendor_cfr_capture_type {
  10270. QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
  10271. QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
  10272. QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
  10273. QCA_WLAN_VENDOR_CFR_TA_RA = 3,
  10274. QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
  10275. QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
  10276. };
  10277. /**
  10278. * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
  10279. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
  10280. * Channel Frequency Response capture parameters and enable periodic CFR
  10281. * capture.
  10282. *
  10283. * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
  10284. * MAC address of peer. This is for CFR version 1 only.
  10285. *
  10286. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
  10287. * Enable peer CFR Capture. This attribute is mandatory to
  10288. * enable peer CFR capture. If this attribute is not present,
  10289. * peer CFR capture is disabled.
  10290. *
  10291. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
  10292. * BW of measurement, attribute uses the values in enum nl80211_chan_width
  10293. * Supported values: 20, 40, 80, 80+80, 160.
  10294. * Note that all targets may not support all bandwidths.
  10295. * This attribute is mandatory for version 1 if attribute
  10296. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  10297. *
  10298. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
  10299. * Periodicity of CFR measurement in msec.
  10300. * Periodicity should be a multiple of Base timer.
  10301. * Current Base timer value supported is 10 msecs (default).
  10302. * 0 for one shot capture.
  10303. * This attribute is mandatory for version 1 if attribute
  10304. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  10305. *
  10306. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
  10307. * Method used to capture Channel Frequency Response.
  10308. * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
  10309. * This attribute is mandatory for version 1 if attribute
  10310. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  10311. *
  10312. * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
  10313. * Enable periodic CFR capture.
  10314. * This attribute is mandatory for version 1 to enable Periodic CFR capture.
  10315. * If this attribute is not present, periodic CFR capture is disabled.
  10316. *
  10317. * @QCA_WLAN_VENDOR_ATTR_CFR_VERSION: Optional (u8)
  10318. * Value is 1 or 2 since there are two versions of CFR capture. Two versions
  10319. * can't be enabled at same time. This attribute is mandatory if target
  10320. * support both versions and use one of them.
  10321. *
  10322. * @QCA_WLAN_VENDOR_ATTR_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
  10323. * This attribute is mandatory for version 2 if
  10324. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
  10325. * Bits 15:0 Bit fields indicating which group to be enabled.
  10326. * Bits 31:16 Reserved for future use.
  10327. *
  10328. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
  10329. * CFR capture duration in microsecond. This attribute is mandatory for
  10330. * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
  10331. *
  10332. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
  10333. * CFR capture interval in microsecond. This attribute is mandatory for
  10334. * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
  10335. *
  10336. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
  10337. * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
  10338. * This attribute is mandatory for version 2.
  10339. *
  10340. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
  10341. * Bit fields indicating which user in the current UL MU
  10342. * transmissions are enabled for CFR capture. Bits 36 to 0 indicating
  10343. * user indexes for 37 users in a UL MU transmission. If bit 0 is set,
  10344. * then the CFR capture will happen for user index 0 in the current
  10345. * UL MU transmission. If bits 0,2 are set, then CFR capture for UL MU
  10346. * TX corresponds to user indices 0 and 2. Bits 63:37 Reserved for future use.
  10347. * This is for CFR version 2 only.
  10348. *
  10349. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
  10350. * Indicates the number of consecutive Rx packets to be skipped
  10351. * before CFR capture is enabled again.
  10352. * This is for CFR version 2 only.
  10353. *
  10354. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
  10355. * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
  10356. *
  10357. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
  10358. * the following GROUP attributes:
  10359. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
  10360. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
  10361. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
  10362. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
  10363. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
  10364. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
  10365. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
  10366. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
  10367. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
  10368. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
  10369. *
  10370. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
  10371. * Target support multiple groups for some configurations. Group number could be
  10372. * any value between 0 and 15. This is for CFR version 2 only.
  10373. *
  10374. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
  10375. * Transmitter address which is used to filter packets, this MAC address takes
  10376. * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK.
  10377. * This is for CFR version 2 only.
  10378. *
  10379. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
  10380. * Receiver address which is used to filter packets, this MAC address takes
  10381. * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK.
  10382. * This is for CFR version 2 only.
  10383. *
  10384. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
  10385. * Mask of transmitter address which is used to filter packets.
  10386. * This is for CFR version 2 only.
  10387. *
  10388. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
  10389. * Mask of receiver address which is used to filter packets.
  10390. * This is for CFR version 2 only.
  10391. *
  10392. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
  10393. * Indicates packets with a specific NSS will be filtered for CFR capture.
  10394. * This is for CFR version 2 only. This is a bitmask. Bits 7:0, CFR capture will
  10395. * be done for packets matching the NSS specified within this bitmask.
  10396. * Bits 31:8 Reserved for future use. Bits 7:0 map to NSS:
  10397. * bit 0 : NSS 1
  10398. * bit 1 : NSS 2
  10399. * ...
  10400. * bit 7 : NSS 8
  10401. *
  10402. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
  10403. * Indicates packets with a specific BW will be filtered for CFR capture.
  10404. * This is for CFR version 2 only. This is a bitmask. Bits 4:0, CFR capture
  10405. * will be done for packets matching the bandwidths specified within this
  10406. * bitmask. Bits 31:5 Reserved for future use. Bits 4:0 map to bandwidth
  10407. * numerated in enum nl80211_band (although not all bands may be supported
  10408. * by a given device).
  10409. *
  10410. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
  10411. * Management packets matching the subtype filter categories will be
  10412. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  10413. * represents the corresponding mgmt subtype value as per
  10414. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  10415. * For example, beacon frame control type is 8, its value is 1<<8 = 0x100.
  10416. * This is for CFR version 2 only
  10417. *
  10418. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
  10419. * Control packets matching the subtype filter categories will be
  10420. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  10421. * represents the corresponding control subtype value as per
  10422. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  10423. * This is for CFR version 2 only.
  10424. *
  10425. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
  10426. * Data packets matching the subtype filter categories will be
  10427. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  10428. * represents the corresponding data subtype value as per
  10429. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  10430. * This is for CFR version 2 only.
  10431. *
  10432. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
  10433. * Userspace can use this attribute to specify the driver about which transport
  10434. * mode shall be used by the driver to send CFR data to userspace. Uses values
  10435. * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
  10436. * not present, driver shall choose the default transport mechanism which is
  10437. * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
  10438. *
  10439. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
  10440. * Userspace can use this attribute to specify the nl port id of the application
  10441. * which receives the CFR data and processes it further so that the drivers can
  10442. * unicast the NL events to a specific application. Optionally included when
  10443. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
  10444. * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
  10445. * shall multicast the netlink events when this attribute is not included.
  10446. *
  10447. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
  10448. * This attribute will be used by the driver to encapsulate and send CFR data
  10449. * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
  10450. * asynchronous event when the driver is configured to send CFR data using NL
  10451. * events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS
  10452. *
  10453. */
  10454. enum qca_wlan_vendor_peer_cfr_capture_attr {
  10455. QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
  10456. QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
  10457. QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
  10458. QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
  10459. QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
  10460. QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
  10461. QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
  10462. QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
  10463. QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
  10464. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
  10465. QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
  10466. QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
  10467. QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
  10468. QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
  10469. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
  10470. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
  10471. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
  10472. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
  10473. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
  10474. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
  10475. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
  10476. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
  10477. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
  10478. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
  10479. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
  10480. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
  10481. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
  10482. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
  10483. QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
  10484. /* Keep last */
  10485. QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
  10486. QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
  10487. QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
  10488. };
  10489. /**
  10490. * enum qca_coex_config_profiles - This enum defines different types of
  10491. * traffic streams that can be prioritized one over the other during coex
  10492. * scenarios.
  10493. * The types defined in this enum are categorized in the below manner.
  10494. * 0 - 31 values corresponds to WLAN
  10495. * 32 - 63 values corresponds to BT
  10496. * 64 - 95 values corresponds to Zigbee
  10497. * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
  10498. * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
  10499. * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
  10500. * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
  10501. * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
  10502. * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
  10503. * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
  10504. * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
  10505. * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
  10506. * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
  10507. * @QCA_BT_A2DP: Prioritize BT A2DP
  10508. * @QCA_BT_BLE: Prioritize BT BLE
  10509. * @QCA_BT_SCO: Prioritize BT SCO
  10510. * @QCA_ZB_LOW: Prioritize Zigbee Low
  10511. * @QCA_ZB_HIGH: Prioritize Zigbee High
  10512. */
  10513. enum qca_coex_config_profiles {
  10514. /* 0 - 31 corresponds to WLAN */
  10515. QCA_WIFI_STA_DISCOVERY = 0,
  10516. QCA_WIFI_STA_CONNECTION = 1,
  10517. QCA_WIFI_STA_CLASS_3_MGMT = 2,
  10518. QCA_WIFI_STA_DATA = 3,
  10519. QCA_WIFI_STA_ALL = 4,
  10520. QCA_WIFI_SAP_DISCOVERY = 5,
  10521. QCA_WIFI_SAP_CONNECTION = 6,
  10522. QCA_WIFI_SAP_CLASS_3_MGMT = 7,
  10523. QCA_WIFI_SAP_DATA = 8,
  10524. QCA_WIFI_SAP_ALL = 9,
  10525. QCA_WIFI_CASE_MAX = 31,
  10526. /* 32 - 63 corresponds to BT */
  10527. QCA_BT_A2DP = 32,
  10528. QCA_BT_BLE = 33,
  10529. QCA_BT_SCO = 34,
  10530. QCA_BT_CASE_MAX = 63,
  10531. /* 64 - 95 corresponds to Zigbee */
  10532. QCA_ZB_LOW = 64,
  10533. QCA_ZB_HIGH = 65,
  10534. QCA_ZB_CASE_MAX = 95,
  10535. /* 0xff is default value if the u8 profile value is not set. */
  10536. QCA_PROFILE_DEFAULT_VALUE = 255
  10537. };
  10538. /**
  10539. * enum qca_vendor_attr_coex_config_types - Coex configurations types.
  10540. * This enum defines the valid set of values of coex configuration types. These
  10541. * values may used by attribute
  10542. * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
  10543. *
  10544. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
  10545. * weights to default values.
  10546. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
  10547. * weights with configurability value.
  10548. */
  10549. enum qca_vendor_attr_coex_config_types {
  10550. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
  10551. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
  10552. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
  10553. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX
  10554. };
  10555. /**
  10556. * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
  10557. * attributes
  10558. * Attributes for data used by
  10559. * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
  10560. *
  10561. * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
  10562. * Indicate config type.
  10563. * the config types are 32-bit values from qca_vendor_attr_coex_config_types
  10564. *
  10565. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
  10566. * Indicate the Priority 1 profiles.
  10567. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10568. * In same priority level, maximum to 4 profiles can be set here.
  10569. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
  10570. * Indicate the Priority 2 profiles.
  10571. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10572. * In same priority level, maximum to 4 profiles can be set here.
  10573. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
  10574. * Indicate the Priority 3 profiles.
  10575. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10576. * In same priority level, maximum to 4 profiles can be set here.
  10577. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
  10578. * Indicate the Priority 4 profiles.
  10579. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10580. * In same priority level, maximum to 4 profiles can be set here.
  10581. * NOTE:
  10582. * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
  10583. * arrangement:
  10584. * 1: In the same u32 attribute(priority x), the profiles enum values own
  10585. * same priority level.
  10586. * 2: 0xff is default value if the u8 profile value is not set.
  10587. * 3: max to 4 rules/profiles in same priority level.
  10588. * 4: max to 4 priority level (priority 1 - priority 4)
  10589. * 5: one priority level only supports one scenario from WLAN/BT/ZB,
  10590. * hybrid rules not support.
  10591. * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
  10592. * remain blank to reset all parameters.
  10593. * For example:
  10594. *
  10595. * If the attributes as follow:
  10596. * priority 1:
  10597. * ------------------------------------
  10598. * | 0xff | 0 | 1 | 2 |
  10599. * ------------------------------------
  10600. * priority 2:
  10601. * -------------------------------------
  10602. * | 0xff | 0xff | 0xff | 32 |
  10603. * -------------------------------------
  10604. * priority 3:
  10605. * -------------------------------------
  10606. * | 0xff | 0xff | 0xff | 65 |
  10607. * -------------------------------------
  10608. * then it means:
  10609. * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  10610. * owns same priority level.
  10611. * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  10612. * has priority over BT_A2DP and ZB_HIGH.
  10613. * 3: BT_A2DP has priority over ZB_HIGH.
  10614. */
  10615. enum qca_vendor_attr_coex_config_three_way {
  10616. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
  10617. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
  10618. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
  10619. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
  10620. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
  10621. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
  10622. /* Keep last */
  10623. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
  10624. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
  10625. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
  10626. };
  10627. /**
  10628. * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
  10629. * This enum defines the valid set of values of peer stats cache types. These
  10630. * values are used by attribute
  10631. * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID.
  10632. *
  10633. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics.
  10634. * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics.
  10635. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn
  10636. * statistics
  10637. */
  10638. enum qca_vendor_attr_peer_stats_cache_type {
  10639. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
  10640. QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
  10641. QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
  10642. QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
  10643. };
  10644. /**
  10645. * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
  10646. * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
  10647. * Attributes are required to flush peer rate statistics from driver to
  10648. * user application.
  10649. *
  10650. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
  10651. * Indicate peer stats cache type.
  10652. * The statistics types are 32-bit values from
  10653. * qca_vendor_attr_peer_stats_cache_type
  10654. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
  10655. * of size 6, representing peer mac address.
  10656. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
  10657. * containing buffer of statistics to send event to application layer entity.
  10658. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
  10659. * representing cookie for peer unique session.
  10660. */
  10661. enum qca_wlan_vendor_attr_peer_stats_cache_params {
  10662. QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
  10663. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
  10664. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
  10665. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
  10666. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
  10667. /* Keep last */
  10668. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
  10669. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
  10670. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
  10671. };
  10672. /**
  10673. * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee.
  10674. * this enum defines all the possible state of zigbee, which can be
  10675. * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE.
  10676. *
  10677. * @ZIGBEE_IDLE: zigbee in idle state
  10678. * @ZIGBEE_FORM_NETWORK: zibee forming network
  10679. * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network
  10680. * @ZIGBEE_JOIN: zigbee joining network
  10681. * @ZIGBEE_NETWORK_UP: zigbee network is up
  10682. * @ZIGBEE_HMI: zigbee in HMI mode
  10683. */
  10684. enum qca_mpta_helper_attr_zigbee_state {
  10685. ZIGBEE_IDLE = 0,
  10686. ZIGBEE_FORM_NETWORK = 1,
  10687. ZIGBEE_WAIT_JOIN = 2,
  10688. ZIGBEE_JOIN = 3,
  10689. ZIGBEE_NETWORK_UP = 4,
  10690. ZIGBEE_HMI = 5,
  10691. };
  10692. /**
  10693. * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by
  10694. * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
  10695. */
  10696. enum qca_mpta_helper_vendor_attr {
  10697. QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
  10698. /* Optional attribute used to update zigbee state.
  10699. * enum qca_mpta_helper_attr_zigbee_state.
  10700. * NLA_U32 attribute.
  10701. */
  10702. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
  10703. /* Optional attribute used to configure wlan duration for Shape-OCS
  10704. * during interrupt.
  10705. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
  10706. * Value range 0 ~ 300 (ms).
  10707. * NLA_U32 attribute.
  10708. */
  10709. QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
  10710. /* Optional attribute used to configure non wlan duration for Shape-OCS
  10711. * during interrupt.
  10712. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
  10713. * Value range 0 ~ 300 (ms).
  10714. * NLA_U32 attribute.
  10715. */
  10716. QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
  10717. /* Optional attribute used to configure wlan duration for Shape-OCS
  10718. * monitor period.
  10719. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
  10720. * Value range 0 ~ 300 (ms)
  10721. * NLA_U32 attribute
  10722. */
  10723. QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
  10724. /* Optional attribute used to configure non wlan duration for Shape-OCS
  10725. * monitor period.
  10726. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
  10727. * Value range 0 ~ 300 (ms)
  10728. * NLA_U32 attribute
  10729. */
  10730. QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
  10731. /* Optional attribute used to configure ocs interrupt duration.
  10732. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
  10733. * Value range 1000 ~ 20000 (ms)
  10734. * NLA_U32 attribute
  10735. */
  10736. QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
  10737. /* Optional attribute used to configure ocs monitor duration.
  10738. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
  10739. * Value range 1000 ~ 20000 (ms)
  10740. * NLA_U32 attribute
  10741. */
  10742. QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
  10743. /* Optional attribute used to notify wlan FW current zigbee channel.
  10744. * Value range 11 ~ 26
  10745. * NLA_U32 attribute
  10746. */
  10747. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
  10748. /* Optional attribute used to configure wlan mute duration.
  10749. * Value range 0 ~ 400 (ms)
  10750. * NLA_U32 attribute
  10751. */
  10752. QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
  10753. /* keep last */
  10754. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
  10755. QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
  10756. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
  10757. };
  10758. /**
  10759. * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
  10760. * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be
  10761. * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
  10762. *
  10763. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
  10764. * to request the driver to start reporting Beacon frames.
  10765. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver
  10766. * to request the driver to stop reporting Beacon frames.
  10767. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
  10768. * userspace to report received Beacon frames.
  10769. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
  10770. * to indicate that the driver is going to pause reporting Beacon frames.
  10771. */
  10772. enum qca_wlan_vendor_beacon_reporting_op_types {
  10773. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
  10774. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
  10775. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
  10776. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
  10777. };
  10778. /**
  10779. * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different
  10780. * types of reasons for which the driver is pausing reporting Beacon frames.
  10781. * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
  10782. *
  10783. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
  10784. * reasons.
  10785. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
  10786. * driver/firmware is starting a scan.
  10787. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
  10788. * driver/firmware disconnects from the ESS and indicates the disconnection to
  10789. * userspace (non-seamless roaming case). This reason code will be used by the
  10790. * driver/firmware to indicate stopping of beacon report events. Userspace
  10791. * will need to start beacon reporting again (if desired) by sending vendor
  10792. * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
  10793. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
  10794. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
  10795. * completed.
  10796. */
  10797. enum qca_wlan_vendor_beacon_reporting_pause_reasons {
  10798. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
  10799. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
  10800. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
  10801. };
  10802. /*
  10803. * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
  10804. * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
  10805. */
  10806. enum qca_wlan_vendor_attr_beacon_reporting_params {
  10807. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
  10808. /* Specifies the type of operation that the vendor command/event is
  10809. * intended for. Possible values for this attribute are defined in
  10810. * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
  10811. */
  10812. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
  10813. /* Optionally set by userspace to request the driver to report Beacon
  10814. * frames using asynchronous vendor events when the
  10815. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10816. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  10817. * If this flag is not set, the driver will only update Beacon frames
  10818. * in cfg80211 scan cache but not send any vendor events.
  10819. */
  10820. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
  10821. /* Optionally used by userspace to request the driver/firmware to
  10822. * report Beacon frames periodically when the
  10823. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10824. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
  10825. * u32 attribute, indicates the period of Beacon frames to be reported
  10826. * and in the units of beacon interval.
  10827. * If this attribute is missing in the command, then the default value
  10828. * of 1 will be assumed by driver, i.e., to report every Beacon frame.
  10829. * Zero is an invalid value.
  10830. * If a valid value is received for this attribute, the driver will
  10831. * update the cfg80211 scan cache periodically as per the value
  10832. * received in this attribute in addition to updating the cfg80211 scan
  10833. * cache when there is significant change in Beacon frame IEs.
  10834. */
  10835. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
  10836. /* Used by the driver to encapsulate the SSID when the
  10837. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10838. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  10839. * u8 array with a maximum size of 32.
  10840. *
  10841. * When generating beacon report from non-MBSSID Beacon frame, the SSID
  10842. * will be taken from the SSID element of the received Beacon frame.
  10843. *
  10844. * When generating beacon report from Multiple BSSID Beacon frame and
  10845. * if the BSSID of the current connected BSS matches the BSSID of the
  10846. * transmitting BSS, the SSID will be taken from the SSID element of
  10847. * the received Beacon frame.
  10848. *
  10849. * When generating beacon report from Multiple BSSID Beacon frame and
  10850. * if the BSSID of the current connected BSS matches the BSSID of one
  10851. * of the* nontransmitting BSSs, the SSID will be taken from the SSID
  10852. * field included in the nontransmitted BSS profile whose derived BSSI
  10853. * is same as the BSSID of the current connected BSS. When there is no
  10854. * nontransmitted BSS profile whose derived BSSID is same as the BSSID
  10855. * of current connected* BSS, this attribute will not be present.
  10856. */
  10857. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
  10858. /* Used by the driver to encapsulate the BSSID of the AP to which STA
  10859. * is currently connected to when the
  10860. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10861. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
  10862. * fixed size of 6 bytes.
  10863. *
  10864. * When generating beacon report from a Multiple BSSID beacon and the
  10865. * current connected BSSID matches one of the nontransmitted BSSIDs in
  10866. * a Multiple BSSID set, this BSSID will be that particular
  10867. * nontransmitted BSSID and not the transmitted BSSID (i.e., the
  10868. * transmitting address of the Beacon frame).
  10869. */
  10870. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
  10871. /* Used by the driver to encapsulate the frequency in MHz on which
  10872. * the Beacon frame was received when the
  10873. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
  10874. * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  10875. * u32 attribute.
  10876. */
  10877. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
  10878. /* Used by the driver to encapsulate the Beacon interval
  10879. * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10880. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  10881. * u16 attribute. The value will be copied from the Beacon frame and
  10882. * the units are TUs.
  10883. */
  10884. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
  10885. /* Used by the driver to encapsulate the Timestamp field from the
  10886. * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE
  10887. * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  10888. * u64 attribute.
  10889. */
  10890. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
  10891. /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
  10892. * Beacon frame is received in the driver when the
  10893. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10894. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
  10895. * the units of nanoseconds. This value is expected to have accuracy of
  10896. * about 10 ms.
  10897. */
  10898. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
  10899. /* Used by the driver to encapsulate the IEs of the Beacon frame from
  10900. * which this event is generated when the
  10901. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10902. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
  10903. */
  10904. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
  10905. /* Used by the driver to specify the reason for the driver/firmware to
  10906. * pause sending beacons to userspace when the
  10907. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10908. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
  10909. * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
  10910. * attribute.
  10911. */
  10912. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
  10913. /* Used by the driver to specify whether the driver will automatically
  10914. * resume reporting beacon events to userspace later (for example after
  10915. * the ongoing off-channel activity is completed etc.) when the
  10916. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10917. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
  10918. */
  10919. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
  10920. /* Optionally set by userspace to request the driver not to resume
  10921. * beacon reporting after a pause is completed, when the
  10922. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10923. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  10924. * If this flag is set, the driver will not resume beacon reporting
  10925. * after any pause in beacon reporting is completed. Userspace has to
  10926. * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
  10927. * to initiate beacon reporting again. If this flag is set in the recent
  10928. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
  10929. * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
  10930. * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
  10931. * set by the driver. Setting this flag until and unless there is a
  10932. * specific need is not recommended as there is a chance of some beacons
  10933. * received after pause command and next start command being not
  10934. * reported.
  10935. */
  10936. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
  10937. /* Keep last */
  10938. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
  10939. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
  10940. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
  10941. };
  10942. /**
  10943. * enum qca_vendor_oem_device_type - Represents the target device in firmware.
  10944. * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
  10945. *
  10946. * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
  10947. * a virtual device.
  10948. *
  10949. * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
  10950. * a physical device.
  10951. */
  10952. enum qca_vendor_oem_device_type {
  10953. QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
  10954. QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
  10955. };
  10956. /*
  10957. * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command
  10958. * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
  10959. *
  10960. * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
  10961. * used to set/query the data to/from the firmware. On query, the same
  10962. * attribute is used to carry the respective data in the reply sent by the
  10963. * driver to userspace. The request to set/query the data and the format of the
  10964. * respective data from the firmware are embedded in the attribute. The
  10965. * maximum size of the attribute payload is 1024 bytes.
  10966. *
  10967. * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
  10968. * based on this field. This optional attribute is included to specify whether
  10969. * the device type is a virtual device or a physical device for the command.
  10970. * This attribute can be omitted for a virtual device (default) command.
  10971. * This u8 attribute is used to carry information for the device type using
  10972. * values defined by enum qca_vendor_oem_device_type.
  10973. *
  10974. * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
  10975. * attribute when the data is queried from the firmware.
  10976. *
  10977. * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
  10978. * is set when the userspace queries data from the firmware. This attribute
  10979. * should not be set when userspace sets the OEM data to the firmware.
  10980. */
  10981. enum qca_wlan_vendor_attr_oem_data_params {
  10982. QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
  10983. QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
  10984. QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
  10985. QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
  10986. /* keep last */
  10987. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
  10988. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
  10989. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
  10990. };
  10991. /**
  10992. * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
  10993. * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
  10994. *
  10995. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
  10996. * Nested attribute containing multiple ranges with following attributes:
  10997. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
  10998. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
  10999. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
  11000. *
  11001. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
  11002. * Starting center frequency in MHz.
  11003. *
  11004. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
  11005. * Ending center frequency in MHz.
  11006. *
  11007. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
  11008. * s32 attribute, optional. It is a per frequency range attribute.
  11009. * The maximum TX power limit from user space is to be applied on an
  11010. * unrestricted interface for corresponding frequency range. It is also
  11011. * possible that the actual TX power may be even lower than this cap due to
  11012. * other considerations such as regulatory compliance, SAR, etc. In absence of
  11013. * this attribute the driver shall follow current behavior which means
  11014. * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
  11015. * power derived by the driver based on regulatory/SAR during interface up.
  11016. *
  11017. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
  11018. * u32 attribute, optional. Indicates all the interface types which are
  11019. * restricted for all frequency ranges provided in
  11020. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
  11021. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
  11022. * This attribute encapsulates bitmasks of interface types defined in
  11023. * enum nl80211_iftype. If an interface is marked as restricted the driver must
  11024. * move to a safe channel and if no safe channel is available the driver shall
  11025. * terminate that interface functionality. In absence of this attribute,
  11026. * interface (SAP/P2P) can still continue operating on an unsafe channel with
  11027. * TX power limit derived from either
  11028. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
  11029. * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
  11030. * is not provided.
  11031. */
  11032. enum qca_wlan_vendor_attr_avoid_frequency_ext {
  11033. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
  11034. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
  11035. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
  11036. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
  11037. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
  11038. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
  11039. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
  11040. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
  11041. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
  11042. };
  11043. /*
  11044. * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
  11045. * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
  11046. */
  11047. enum qca_wlan_vendor_attr_add_sta_node_params {
  11048. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
  11049. /* 6 byte MAC address of STA */
  11050. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
  11051. /* Authentication algorithm used by the station of size u16;
  11052. * defined in enum nl80211_auth_type.
  11053. */
  11054. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
  11055. /* keep last */
  11056. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
  11057. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
  11058. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
  11059. };
  11060. /**
  11061. * enum qca_btc_chain_mode - Specifies BT coex chain mode.
  11062. * This enum defines the valid set of values of BT coex chain mode.
  11063. * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
  11064. * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
  11065. *
  11066. * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared.
  11067. * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are
  11068. * separated, hybrid mode.
  11069. * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are
  11070. * separated, fixed FDD mode.
  11071. */
  11072. enum qca_btc_chain_mode {
  11073. QCA_BTC_CHAIN_SHARED = 0,
  11074. QCA_BTC_CHAIN_SEPARATED_HYBRID = 1,
  11075. QCA_BTC_CHAIN_SEPARATED_FDD = 2,
  11076. };
  11077. /* deprecated legacy name */
  11078. #define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID
  11079. /**
  11080. * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
  11081. * chain mode.
  11082. * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
  11083. *
  11084. * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
  11085. * Indicates the BT coex chain mode, are 32-bit values from
  11086. * enum qca_btc_chain_mode. This attribute is mandatory.
  11087. *
  11088. * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
  11089. * If set, vdev should be restarted when BT coex chain mode is updated.
  11090. * This attribute is optional.
  11091. */
  11092. enum qca_vendor_attr_btc_chain_mode {
  11093. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
  11094. QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
  11095. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
  11096. /* Keep last */
  11097. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
  11098. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
  11099. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
  11100. };
  11101. /**
  11102. * enum qca_vendor_wlan_sta_flags - Station feature flags
  11103. * Bits will be set to 1 if the corresponding features are enabled.
  11104. * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
  11105. * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
  11106. for the station
  11107. * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
  11108. for the station
  11109. */
  11110. enum qca_vendor_wlan_sta_flags {
  11111. QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
  11112. QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
  11113. QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
  11114. };
  11115. /**
  11116. * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
  11117. * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
  11118. * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
  11119. * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
  11120. * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
  11121. */
  11122. enum qca_vendor_wlan_sta_guard_interval {
  11123. QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
  11124. QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
  11125. QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
  11126. QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
  11127. };
  11128. /**
  11129. * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
  11130. * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
  11131. *
  11132. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
  11133. * Required attribute in request for AP mode only, 6-byte MAC address,
  11134. * corresponding to the station's MAC address for which information is
  11135. * requested. For STA mode this is not required as the info always correspond
  11136. * to the self STA and the current/last association.
  11137. *
  11138. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
  11139. * Optionally used in response, u32 attribute, contains a bitmap of different
  11140. * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
  11141. *
  11142. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
  11143. * Optionally used in response, u32 attribute, possible values are defined in
  11144. * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
  11145. * Guard interval used by the station.
  11146. *
  11147. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
  11148. * Optionally used in response, u32 attribute, used in AP mode only.
  11149. * Value indicates the number of data frames received from station with retry
  11150. * bit set to 1 in FC.
  11151. *
  11152. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
  11153. * Optionally used in response, u32 attribute, used in AP mode only.
  11154. * Counter for number of data frames with broadcast or multicast address in
  11155. * the destination address received from the station.
  11156. *
  11157. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
  11158. * Optionally used in response, u32 attribute, used in both STA and AP modes.
  11159. * Value indicates the number of data frames successfully transmitted only
  11160. * after retrying the packets and for which the TX status has been updated
  11161. * back to host from target.
  11162. *
  11163. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
  11164. * Optionally used in response, u32 attribute, used in both STA and AP mode.
  11165. * Value indicates the number of data frames not transmitted successfully even
  11166. * after retrying the packets for the number of times equal to the total number
  11167. * of retries allowed for that packet and for which the TX status has been
  11168. * updated back to host from target.
  11169. *
  11170. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
  11171. * Optionally used in response, u32 attribute, used in AP mode only.
  11172. * Counter in the target for the number of data frames successfully transmitted
  11173. * to the station.
  11174. *
  11175. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
  11176. * Optionally used in response, u32 attribute, used in AP mode only.
  11177. * Value indicates the number of data frames successfully transmitted only
  11178. * after retrying the packets.
  11179. *
  11180. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
  11181. * Optionally used in response, u32 attribute, used in both STA & AP mode.
  11182. * Value indicates the number of data frames not transmitted successfully even
  11183. * after retrying the packets for the number of times equal to the total number
  11184. * of retries allowed for that packet.
  11185. *
  11186. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
  11187. * the STA mode only. Represent the number of probe requests sent by the STA
  11188. * while attempting to roam on missing certain number of beacons from the
  11189. * connected AP. If queried in the disconnected state, this represents the
  11190. * count for the last connected state.
  11191. *
  11192. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
  11193. * the STA mode. Represent the number of probe responses received by the station
  11194. * while attempting to roam on missing certain number of beacons from the
  11195. * connected AP. When queried in the disconnected state, this represents the
  11196. * count when in last connected state.
  11197. *
  11198. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
  11199. * STA mode only. Represents the total number of frames sent out by STA
  11200. * including Data, ACK, RTS, CTS, Control Management. This data is maintained
  11201. * only for the connect session. Represents the count of last connected session,
  11202. * when queried in the disconnected state.
  11203. *
  11204. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
  11205. * Total number of RTS sent out by the STA. This data is maintained per connect
  11206. * session. Represents the count of last connected session, when queried in the
  11207. * disconnected state.
  11208. *
  11209. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
  11210. * STA mode.Represent the number of RTS transmission failure that reach retry
  11211. * limit. This data is maintained per connect session. Represents the count of
  11212. * last connected session, when queried in the disconnected state.
  11213. *
  11214. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
  11215. * the STA mode. Represent the total number of non aggregated frames transmitted
  11216. * by the STA. This data is maintained per connect session. Represents the count
  11217. * of last connected session, when queried in the disconnected state.
  11218. *
  11219. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
  11220. * STA mode. Represent the total number of aggregated frames transmitted by the
  11221. * STA. This data is maintained per connect session. Represents the count of
  11222. * last connected session, when queried in the disconnected state.
  11223. *
  11224. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
  11225. * the STA mode. Represents the number of received frames with a good PLCP. This
  11226. * data is maintained per connect session. Represents the count of last
  11227. * connected session, when queried in the disconnected state.
  11228. *
  11229. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
  11230. * used in the STA mode. Represents the number of occasions that no valid
  11231. * delimiter is detected by A-MPDU parser. This data is maintained per connect
  11232. * session. Represents the count of last connected session, when queried in the
  11233. * disconnected state.
  11234. *
  11235. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
  11236. * STA mode. Represents the number of frames for which CRC check failed in the
  11237. * MAC. This data is maintained per connect session. Represents the count of
  11238. * last connected session, when queried in the disconnected state.
  11239. *
  11240. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
  11241. * STA mode. Represents the number of unicast ACKs received with good FCS. This
  11242. * data is maintained per connect session. Represents the count of last
  11243. * connected session, when queried in the disconnected state.
  11244. *
  11245. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
  11246. * mode. Represents the number of received Block Acks. This data is maintained
  11247. * per connect session. Represents the count of last connected session, when
  11248. * queried in the disconnected state.
  11249. *
  11250. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
  11251. * mode. Represents the number of beacons received from the connected BSS. This
  11252. * data is maintained per connect session. Represents the count of last
  11253. * connected session, when queried in the disconnected state.
  11254. *
  11255. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
  11256. * STA mode. Represents the number of beacons received by the other BSS when in
  11257. * connected state (through the probes done by the STA). This data is maintained
  11258. * per connect session. Represents the count of last connected session, when
  11259. * queried in the disconnected state.
  11260. *
  11261. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
  11262. * the STA mode. Represents the number of received DATA frames with good FCS and
  11263. * matching Receiver Address when in connected state. This data is maintained
  11264. * per connect session. Represents the count of last connected session, when
  11265. * queried in the disconnected state.
  11266. *
  11267. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
  11268. * STA mode. Represents the number of RX Data multicast frames dropped by the HW
  11269. * when in the connected state. This data is maintained per connect session.
  11270. * Represents the count of last connected session, when queried in the
  11271. * disconnected state.
  11272. *
  11273. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
  11274. * STA mode. This represents the target power in dBm for the transmissions done
  11275. * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
  11276. * connect session. Represents the count of last connected session, when
  11277. * queried in the disconnected state.
  11278. *
  11279. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
  11280. * STA mode. This represents the Target power in dBm for transmissions done to
  11281. * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
  11282. * session. Represents the count of last connected session, when queried in the
  11283. * disconnected state.
  11284. *
  11285. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
  11286. * STA mode. This represents the Target power in dBm for transmissions done to
  11287. * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
  11288. * Represents the count of last connected session, when queried in the
  11289. * disconnected state.
  11290. *
  11291. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
  11292. * STA mode. This represents the Target power in dBm for transmissions done to
  11293. * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
  11294. * session. Represents the count of last connected session, when queried in
  11295. * the disconnected state.
  11296. *
  11297. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
  11298. * STA mode. This represents the Target power in dBm for for transmissions done
  11299. * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
  11300. * Represents the count of last connected session, when queried in the
  11301. * disconnected state.
  11302. *
  11303. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
  11304. * in the STA mode. This represents the Nested attribute representing the
  11305. * overflow counts of each receive buffer allocated to the hardware during the
  11306. * STA's connection. The number of hw buffers might vary for each WLAN
  11307. * solution and hence this attribute represents the nested array of all such
  11308. * HW buffer count. This data is maintained per connect session. Represents
  11309. * the count of last connected session, when queried in the disconnected state.
  11310. *
  11311. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
  11312. * allowed as per the regulatory requirements for the current or last connected
  11313. * session. Used in the STA mode.
  11314. *
  11315. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
  11316. * (dBm) used by the station in its latest unicast frame while communicating
  11317. * to the AP in the connected state. When queried in the disconnected state,
  11318. * this represents the TX power used by the STA with last AP communication
  11319. * when in connected state.
  11320. *
  11321. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
  11322. * level used to adjust the RX sensitivity. Represents the current ANI level
  11323. * when queried in the connected state. When queried in the disconnected
  11324. * state, this corresponds to the latest ANI level at the instance of
  11325. * disconnection.
  11326. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
  11327. * only. This represents the number of group addressed robust management frames
  11328. * received from this station with an invalid MIC or a missing MME when PMF is
  11329. * enabled.
  11330. *
  11331. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
  11332. * only. This represents the number of group addressed robust management frames
  11333. * received from this station with the packet number less than or equal to the
  11334. * last received packet number when PMF is enabled.
  11335. *
  11336. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
  11337. * mode only. This represents the number of Beacon frames received from this
  11338. * station with an invalid MIC or a missing MME when beacon protection is
  11339. * enabled.
  11340. *
  11341. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
  11342. * only. This represents number of Beacon frames received from this station with
  11343. * the packet number less than or equal to the last received packet number when
  11344. * beacon protection is enabled.
  11345. *
  11346. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
  11347. * STA mode only. Driver uses this attribute to populate the connection failure
  11348. * reason codes and the values are defined in
  11349. * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
  11350. * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
  11351. * connection failure from driver. The driver shall not include this attribute
  11352. * in response to QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no
  11353. * connection failure observed in the last attempted connection.
  11354. *
  11355. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
  11356. * used by the station in its last TX frame while communicating to the AP in the
  11357. * connected state. When queried in the disconnected state, this represents the
  11358. * rate used by the STA in the last TX frame to the AP when it was connected.
  11359. * This attribute is used for STA mode only.
  11360. *
  11361. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
  11362. * This represents the rate index used by the STA for the last TX frame to the
  11363. * AP. When queried in the disconnected state, this gives the last RIX used by
  11364. * the STA in the last TX frame to the AP when it was connected.
  11365. *
  11366. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
  11367. * mode only. This represents the number of times the STA TSF goes out of sync
  11368. * from the AP after the connection. If queried in the disconnected state, this
  11369. * gives the count of TSF out of sync for the last connection.
  11370. *
  11371. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
  11372. * mode only. This represents the roam trigger reason for the last roaming
  11373. * attempted by the firmware. This can be queried either in connected state or
  11374. * disconnected state. Each bit of this attribute represents the different
  11375. * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
  11376. *
  11377. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
  11378. * only. This represents the roam fail reason for the last failed roaming
  11379. * attempt by the firmware. Different roam failure reason codes are specified
  11380. * in enum qca_vendor_roam_fail_reasons. This can be queried either in
  11381. * connected state or disconnected state.
  11382. *
  11383. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
  11384. * STA mode only. This represents the roam invoke fail reason for the last
  11385. * failed roam invoke. Different roam invoke failure reason codes
  11386. * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
  11387. * queried either in connected state or disconnected state.
  11388. *
  11389. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
  11390. * This represents the average congestion duration of uplink frames in MAC
  11391. * queue in unit of ms. This can be queried either in connected state or
  11392. * disconnected state.
  11393. *
  11394. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Mandatory u32 Nested
  11395. * attribute, used in AP mode. This represents the MPDU packet count per MCS
  11396. * rate value of TX packets. Every index of this nested attribute corresponds
  11397. * to MCS index, for example Index 0 represents MCS0 TX rate. This can be
  11398. * queried in connected state.
  11399. *
  11400. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Mandatory u32 Nested
  11401. * attribute, used in AP mode. This represents the MPDU packet count per MCS
  11402. * rate value of RX packets. Every index of this nested attribute corresponds
  11403. * to MCS index, for example Index 0 represents MCS0 RX rate. This can be
  11404. * queried in connected state.
  11405. */
  11406. enum qca_wlan_vendor_attr_get_sta_info {
  11407. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
  11408. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
  11409. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
  11410. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
  11411. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
  11412. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
  11413. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
  11414. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
  11415. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
  11416. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
  11417. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
  11418. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
  11419. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
  11420. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
  11421. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
  11422. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
  11423. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
  11424. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
  11425. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
  11426. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
  11427. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
  11428. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
  11429. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
  11430. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
  11431. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
  11432. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
  11433. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
  11434. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
  11435. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
  11436. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
  11437. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
  11438. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
  11439. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
  11440. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
  11441. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
  11442. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
  11443. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
  11444. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
  11445. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
  11446. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
  11447. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
  11448. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
  11449. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
  11450. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
  11451. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
  11452. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
  11453. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
  11454. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
  11455. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51,
  11456. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52,
  11457. /* keep last */
  11458. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
  11459. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
  11460. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
  11461. };
  11462. /**
  11463. * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
  11464. * Used when the driver triggers the STA to disconnect from the AP.
  11465. *
  11466. * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
  11467. * disconnection with the AP due to unspecified reasons.
  11468. *
  11469. * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
  11470. * disconnection with the AP due to a roaming failure. This roaming is triggered
  11471. * internally (host driver/firmware).
  11472. *
  11473. * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
  11474. * the AP when the user/external triggered roaming fails.
  11475. *
  11476. * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
  11477. * by the host driver whenever gateway reachability failure is detected and the
  11478. * driver disconnects with AP.
  11479. *
  11480. * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
  11481. * the AP on a channel switch announcement from it with an unsupported channel.
  11482. *
  11483. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
  11484. * with indoor channels disabled and if the STA is connected on one of these
  11485. * disabled channels, the host driver disconnected the STA with this reason
  11486. * code.
  11487. *
  11488. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
  11489. * explicit request from the user to disable the current operating channel.
  11490. *
  11491. * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
  11492. * the internal host driver/firmware recovery.
  11493. *
  11494. * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
  11495. * a timeout for the key installations from the user space.
  11496. *
  11497. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
  11498. * STA on a band change request from the user space to a different band from the
  11499. * current operation channel/band.
  11500. *
  11501. * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
  11502. * interface down trigger from the user space.
  11503. *
  11504. * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
  11505. * STA on getting continuous transmission failures for multiple Data frames.
  11506. *
  11507. * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
  11508. * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
  11509. * represents inactivity from AP on such transmissions.
  11510. * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
  11511. * disconnection when SA Query times out (AP does not respond to SA Query).
  11512. *
  11513. * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
  11514. * STA on missing the beacons continuously from the AP.
  11515. *
  11516. * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
  11517. * able to move to the channel mentioned by the AP in CSA.
  11518. *
  11519. * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
  11520. */
  11521. enum qca_disconnect_reason_codes {
  11522. QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
  11523. QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
  11524. QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
  11525. QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
  11526. QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
  11527. QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
  11528. QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
  11529. QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
  11530. QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
  11531. QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
  11532. QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
  11533. QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
  11534. QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
  11535. QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
  11536. QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
  11537. QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
  11538. QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
  11539. };
  11540. /**
  11541. * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
  11542. * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
  11543. *
  11544. * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
  11545. * This attribute represents the driver specific reason codes (local
  11546. * driver/firmware initiated reasons for disconnection) defined
  11547. * in enum qca_disconnect_reason_codes.
  11548. */
  11549. enum qca_wlan_vendor_attr_driver_disconnect_reason {
  11550. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
  11551. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
  11552. /* keep last */
  11553. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
  11554. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
  11555. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
  11556. };
  11557. /**
  11558. * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
  11559. *
  11560. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
  11561. */
  11562. enum qca_wlan_tspec_operation {
  11563. QCA_WLAN_TSPEC_ADD = 0,
  11564. QCA_WLAN_TSPEC_DEL = 1,
  11565. QCA_WLAN_TSPEC_GET = 2,
  11566. };
  11567. /**
  11568. * enum qca_wlan_tspec_direction - Direction in TSPEC
  11569. * As what is defined in IEEE Std 802.11-2016, Table 9-139.
  11570. *
  11571. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
  11572. */
  11573. enum qca_wlan_tspec_direction {
  11574. QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
  11575. QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
  11576. QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
  11577. QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
  11578. };
  11579. /**
  11580. * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC
  11581. * As what is defined in IEEE Std 802.11-2016, Table 9-141.
  11582. *
  11583. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
  11584. */
  11585. enum qca_wlan_tspec_ack_policy {
  11586. QCA_WLAN_TSPEC_NORMAL_ACK = 0,
  11587. QCA_WLAN_TSPEC_NO_ACK = 1,
  11588. /* Reserved */
  11589. QCA_WLAN_TSPEC_BLOCK_ACK = 3,
  11590. };
  11591. /**
  11592. * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
  11593. * used by QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
  11594. *
  11595. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
  11596. * u8 attribute. Specify the TSPEC operation of this request. Possible values
  11597. * are defined in enum qca_wlan_tspec_operation.
  11598. * Mandatory attribute for all kinds of config TSPEC requests.
  11599. *
  11600. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
  11601. * u8 attribute. TS ID. Possible values are 0-7.
  11602. * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
  11603. * QCA_WLAN_TSPEC_GET. A mandatory attribute.
  11604. *
  11605. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
  11606. * u8 attribute. Direction of data carried by the TS. Possible values are
  11607. * defined in enum qca_wlan_tspec_direction.
  11608. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11609. *
  11610. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
  11611. * Flag attribute. Indicate whether APSD is enabled for the traffic associated
  11612. * with the TS. set - enabled, not set - disabled.
  11613. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11614. *
  11615. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
  11616. * u8 attribute. User priority to be used for the transport of MSDUs/ -MSDUs
  11617. * belonging to this TS. Possible values are 0-7.
  11618. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11619. *
  11620. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
  11621. * u8 attribute. Indicate whether MAC acknowledgements are required for
  11622. * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
  11623. * Possible values are defined in enum qca_wlan_tspec_ack_policy.
  11624. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11625. *
  11626. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
  11627. * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
  11628. * belonging to this TS.
  11629. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11630. *
  11631. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
  11632. * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
  11633. * belonging to this TS.
  11634. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11635. *
  11636. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
  11637. * u32 attribute. Specify the minimum interval in microseconds between the
  11638. * start of two successive SPs.
  11639. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11640. *
  11641. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
  11642. * u32 attribute. Specify the maximum interval in microseconds between the
  11643. * start of two successive SPs.
  11644. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11645. *
  11646. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
  11647. * u32 attribute. Specify the minimum interval in microseconds that can elapse
  11648. * without arrival or transfer of an MPDU belonging to the TS before this TS
  11649. * is deleted by the MAC entity at the HC.
  11650. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11651. *
  11652. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
  11653. * u32 attribute. Specify the minimum interval in microseconds that can elapse
  11654. * without arrival or transfer of an MSDU belonging to the TS before the
  11655. * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
  11656. * 0xFFFFFFFF disables the suspension interval. The value of the suspension
  11657. * interval is always less than or equal to the inactivity interval.
  11658. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11659. *
  11660. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
  11661. * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
  11662. * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
  11663. * bounds of this TSPEC.
  11664. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11665. *
  11666. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
  11667. * u32 attribute. Indicate the average data rate in bps specified at the MAC
  11668. * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
  11669. * bounds of this TSPEC.
  11670. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11671. *
  11672. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
  11673. * u32 attribute. Indicate the maximum allowable data rate in bps specified at
  11674. * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
  11675. * the bounds of this TSPEC.
  11676. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11677. *
  11678. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
  11679. * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
  11680. * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
  11681. * value of 0 indicates that there are no bursts.
  11682. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11683. *
  11684. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
  11685. * u32 attribute. Indicate the minimum PHY rate in bps for transport of
  11686. * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
  11687. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11688. *
  11689. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
  11690. * u16 attribute. Specify the excess allocation of time (and bandwidth) over
  11691. * and above the stated application rates required to transport an MSDU/A-MSDU
  11692. * belonging to the TS in this TSPEC.
  11693. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11694. */
  11695. enum qca_wlan_vendor_attr_config_tspec {
  11696. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
  11697. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
  11698. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
  11699. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
  11700. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
  11701. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
  11702. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
  11703. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
  11704. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
  11705. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
  11706. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
  11707. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
  11708. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
  11709. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
  11710. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
  11711. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
  11712. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
  11713. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
  11714. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
  11715. /* keep last */
  11716. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
  11717. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
  11718. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
  11719. };
  11720. /**
  11721. * enum qca_wlan_medium_assess_type - Type of medium assess request
  11722. *
  11723. * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
  11724. */
  11725. enum qca_wlan_medium_assess_type {
  11726. QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
  11727. QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
  11728. };
  11729. /**
  11730. * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
  11731. * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
  11732. *
  11733. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
  11734. * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
  11735. * Specify the type of medium assess request and indicate its type in response.
  11736. * Possible values are defined in enum qca_wlan_medium_assess_type.
  11737. *
  11738. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
  11739. * u32 attribute. Mandatory in CCA request.
  11740. * Specify the assessment period in terms of seconds. Assessment result will be
  11741. * sent as the response to the CCA request after the assessment period.
  11742. *
  11743. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
  11744. * u32 attribute. Mandatory in response to CCA request.
  11745. * Total timer tick count of the assessment cycle.
  11746. *
  11747. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
  11748. * u32 attribute. Mandatory in response to CCA request.
  11749. * Timer tick count of idle time in the assessment cycle.
  11750. *
  11751. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
  11752. * u32 attribute. Mandatory in response to CCA request.
  11753. * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
  11754. *
  11755. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
  11756. * u32 attribute. Mandatory in response to CCA request.
  11757. * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
  11758. *
  11759. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
  11760. * s32 attribute. Mandatory in response to CCA request.
  11761. * Maximum RSSI of Intra BSS traffic in the assessment cycle.
  11762. *
  11763. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
  11764. * s32 attribute. Mandatory in response to CCA request.
  11765. * Minimum RSSI of Intra BSS traffic in the assessment cycle.
  11766. *
  11767. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
  11768. * u8 attribute. Mandatory in congestion report request.
  11769. * 1-enable 0-disable.
  11770. *
  11771. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
  11772. * u8 attribute. Mandatory in congestion report enable request and will be
  11773. * ignored if present in congestion report disable request. Possible values are
  11774. * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
  11775. * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
  11776. * congestion percentage reaches the configured threshold.
  11777. *
  11778. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
  11779. * u8 attribute. Optional in congestion report enable request and will be
  11780. * ignored if present in congestion report disable request.
  11781. * Specify the interval of congestion report event in terms of seconds. Possible
  11782. * values are 1-255. Default value 1 will be used if this attribute is omitted
  11783. * or using invalid values.
  11784. *
  11785. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
  11786. * u8 attribute. Mandatory in congestion report event.
  11787. * Indicate the actual congestion percentage. Possible values are 0-100.
  11788. */
  11789. enum qca_wlan_vendor_attr_medium_assess {
  11790. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
  11791. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
  11792. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
  11793. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
  11794. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
  11795. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
  11796. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
  11797. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
  11798. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
  11799. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
  11800. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
  11801. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
  11802. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
  11803. /* keep last */
  11804. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
  11805. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
  11806. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
  11807. };
  11808. /**
  11809. * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
  11810. * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
  11811. *
  11812. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
  11813. * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
  11814. * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
  11815. * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
  11816. *
  11817. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
  11818. * u8 attribute, required. 1 means Tx VDEV up event.0 mean Tx VDEV down event.
  11819. *
  11820. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
  11821. * u8 attribute, required. indicates group id of Tx VDEV
  11822. *
  11823. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
  11824. * Nested attribute. This attribute shall be used by the driver to send
  11825. * group information. The attributes defined in enum
  11826. * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
  11827. * are nested in this attribute.
  11828. */
  11829. enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
  11830. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
  11831. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
  11832. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
  11833. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
  11834. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
  11835. /* keep last */
  11836. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
  11837. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
  11838. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
  11839. };
  11840. /**
  11841. * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
  11842. * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
  11843. *
  11844. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
  11845. * u32 attribute, required. contains interface index.
  11846. *
  11847. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
  11848. * u8 attribute, required. 0 - means vdev is in down state.
  11849. * 1- means vdev is in up state.
  11850. */
  11851. enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
  11852. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
  11853. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
  11854. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
  11855. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
  11856. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
  11857. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
  11858. };
  11859. /**
  11860. * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
  11861. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
  11862. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
  11863. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
  11864. * frame
  11865. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
  11866. * Request frame.
  11867. */
  11868. enum qca_wlan_vendor_oci_override_frame_type {
  11869. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
  11870. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
  11871. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
  11872. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
  11873. };
  11874. /**
  11875. * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
  11876. *
  11877. * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
  11878. * STA interface has to be given while selecting the connection policies
  11879. * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
  11880. * An interface is set as primary through the attribute
  11881. * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
  11882. * applicable if the primary interface has not been set earlier.
  11883. *
  11884. * The intention is not to downgrade the primary STA performance, such as:
  11885. * - Do not reduce the number of TX/RX chains of primary connection.
  11886. * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
  11887. * chains.
  11888. * - If using MCC, should set the MCC duty cycle of the primary connection to
  11889. * be higher than the secondary connection.
  11890. *
  11891. * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
  11892. * subsequent STA connection shall be chosen to balance with the existing
  11893. * concurrent STA's performance.
  11894. * Such as
  11895. * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
  11896. * capability.
  11897. * - If using MCC, set the MCC duty cycle of the primary connection to be equal
  11898. * to the secondary.
  11899. * - Prefer BSSID candidates which will help provide the best "overall"
  11900. * performance for all the STA connections.
  11901. */
  11902. enum qca_wlan_concurrent_sta_policy_config {
  11903. QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
  11904. QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
  11905. };
  11906. /**
  11907. * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies
  11908. *
  11909. * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP
  11910. * interface.
  11911. *
  11912. * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies
  11913. * to meet gaming audio latency requirements.
  11914. *
  11915. * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface
  11916. * concurrencies to meet lossless audio streaming requirements.
  11917. *
  11918. * @QCA_WLAN_CONCURRENT_AP_POLICY_XR: Select interface concurrencies to meet
  11919. * XR (eXtended Reality) requirements.
  11920. */
  11921. enum qca_wlan_concurrent_ap_policy_config {
  11922. QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0,
  11923. QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1,
  11924. QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2,
  11925. QCA_WLAN_CONCURRENT_AP_POLICY_XR = 3,
  11926. };
  11927. /**
  11928. * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes
  11929. * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command.
  11930. *
  11931. * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG:
  11932. * u8 attribute. Configures the concurrent STA policy configuration.
  11933. * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
  11934. * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG:
  11935. * u8 attribute. Configures the concurrent AP policy configuration.
  11936. * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config.
  11937. */
  11938. enum qca_wlan_vendor_attr_concurrent_policy {
  11939. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0,
  11940. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1,
  11941. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2,
  11942. /* keep last */
  11943. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST,
  11944. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX =
  11945. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1,
  11946. };
  11947. /* Compatibility defines for previously used enum
  11948. * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used
  11949. * in any new implementation.
  11950. */
  11951. #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \
  11952. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG
  11953. #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \
  11954. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX
  11955. #define qca_wlan_vendor_attr_concurrent_sta_policy \
  11956. qca_wlan_vendor_attr_concurrent_policy
  11957. /**
  11958. * enum qca_sta_connect_fail_reason_codes - Defines values carried
  11959. * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
  11960. * attribute.
  11961. * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No probe response frame received
  11962. * for unicast probe request.
  11963. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
  11964. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
  11965. * ath request.
  11966. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
  11967. * received from AP.
  11968. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send assoc
  11969. * request.
  11970. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
  11971. * assoc request.
  11972. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Assoc response is not
  11973. * received from AP.
  11974. */
  11975. enum qca_sta_connect_fail_reason_codes {
  11976. QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
  11977. QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
  11978. QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
  11979. QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
  11980. QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
  11981. QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
  11982. QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
  11983. };
  11984. /**
  11985. * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
  11986. * OCI override request. These attributes are used inside nested attribute
  11987. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
  11988. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  11989. *
  11990. * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
  11991. * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
  11992. * attribute to specify the frame type in which the OCI is to be overridden.
  11993. *
  11994. * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
  11995. * OCI frequency (in MHz) to override in the specified frame type.
  11996. */
  11997. enum qca_wlan_vendor_attr_oci_override {
  11998. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
  11999. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
  12000. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
  12001. /* keep last */
  12002. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
  12003. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
  12004. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
  12005. };
  12006. /**
  12007. * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
  12008. * filters defined in this enum are used in attribute
  12009. * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
  12010. *
  12011. * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
  12012. * shall filter the channels which are not usable because of coexistence with
  12013. * cellular radio.
  12014. * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
  12015. * shall filter the channels which are not usable because of existing active
  12016. * interfaces in the driver and will result in Multi Channel Concurrency, etc.
  12017. *
  12018. */
  12019. enum qca_wlan_vendor_usable_channels_filter {
  12020. QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
  12021. QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
  12022. };
  12023. /**
  12024. * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
  12025. * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
  12026. *
  12027. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
  12028. * u32 attribute, required. Indicates the center frequency of the primary
  12029. * channel in MHz.
  12030. *
  12031. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
  12032. * u32 attribute. Indicates the center frequency of the primary segment of the
  12033. * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
  12034. * 160 MHz, and 320 MHz channels.
  12035. *
  12036. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
  12037. * u32 attribute. Indicates the center frequency of the secondary segment of
  12038. * 80+80 channel in MHz. This attribute is required only when
  12039. * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
  12040. *
  12041. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
  12042. * u32 attribute, required. Indicates the bandwidth of the channel, possible
  12043. * values are defined in enum nl80211_chan_width.
  12044. *
  12045. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
  12046. * u32 attribute, required. Indicates all the interface types for which this
  12047. * channel is usable. This attribute encapsulates bitmasks of interface types
  12048. * defined in enum nl80211_iftype.
  12049. *
  12050. */
  12051. enum qca_wlan_vendor_attr_chan_info {
  12052. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
  12053. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
  12054. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
  12055. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
  12056. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
  12057. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
  12058. /* keep last */
  12059. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
  12060. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
  12061. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
  12062. };
  12063. /**
  12064. * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
  12065. * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
  12066. *
  12067. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
  12068. * u32 attribute. Indicates the bands from which the channels should be reported
  12069. * in response. This attribute encapsulates bit masks of bands defined in enum
  12070. * nl80211_band. Optional attribute, if not present in the request the driver
  12071. * shall return channels from all supported bands.
  12072. *
  12073. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
  12074. * u32 attribute. Indicates all the interface types for which the usable
  12075. * channels information is requested. This attribute encapsulates bitmasks of
  12076. * interface types defined in enum nl80211_iftype. Optional attribute, if not
  12077. * present in the request the driver shall send information of all supported
  12078. * interface modes.
  12079. *
  12080. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
  12081. * u32 attribute. This attribute carries information of all filters that shall
  12082. * be applied while populating usable channels information by the driver. This
  12083. * attribute carries bit masks of different filters defined in enum
  12084. * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
  12085. * in the request the driver shall send information of channels without applying
  12086. * any of the filters that can be configured through this attribute.
  12087. *
  12088. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
  12089. * Nested attribute. This attribute shall be used by the driver to send
  12090. * usability information of each channel. The attributes defined in enum
  12091. * qca_wlan_vendor_attr_chan_info are used inside this attribute.
  12092. */
  12093. enum qca_wlan_vendor_attr_usable_channels {
  12094. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
  12095. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
  12096. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
  12097. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
  12098. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
  12099. /* keep last */
  12100. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
  12101. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
  12102. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
  12103. };
  12104. /**
  12105. * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
  12106. * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
  12107. *
  12108. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
  12109. * the list of radar history entries.
  12110. * Each entry contains freq, timestamp, and radar signal detect flag.
  12111. * The driver shall add an entry when CAC has finished, or radar signal
  12112. * has been detected post AP beaconing. The driver shall maintain at least
  12113. * 8 entries in order to save CAC result for a 160 MHz channel.
  12114. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
  12115. * Channel frequency in MHz.
  12116. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
  12117. * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
  12118. * or radar detection.
  12119. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
  12120. * This flag indicates radar signal has been detected.
  12121. */
  12122. enum qca_wlan_vendor_attr_radar_history {
  12123. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
  12124. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
  12125. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
  12126. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
  12127. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
  12128. /* keep last */
  12129. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
  12130. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
  12131. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
  12132. };
  12133. /**
  12134. * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
  12135. *
  12136. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
  12137. * target exited MCC state and cleared the quota information. In the
  12138. * command it clears MCC quota setting and restores adaptive scheduling.
  12139. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
  12140. * will not be changed.
  12141. * This quota type is present in command/event.
  12142. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
  12143. * and the target may change the quota based on the data activity.
  12144. * This quota type is only present in event.
  12145. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY: Channel time quota is optimized
  12146. * by the target for low latency.
  12147. * This quota type is only present in command.
  12148. */
  12149. enum qca_wlan_vendor_mcc_quota_type {
  12150. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
  12151. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
  12152. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
  12153. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY = 3,
  12154. };
  12155. /**
  12156. * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
  12157. * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
  12158. * quota information or as a command to set the required MCC quota for an
  12159. * interface.
  12160. *
  12161. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
  12162. * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
  12163. * In a command this specifies the MCC quota type to be set for the interface.
  12164. * In an event this provides the current quota type in force.
  12165. * This is required in a command and an event.
  12166. *
  12167. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
  12168. * the list of channel quota entries.
  12169. * In an event each entry contains the frequency and respective time quota for
  12170. * all the MCC interfaces.
  12171. * In a command it specifies the interface index and respective time quota.
  12172. * In a command only one entry (ifindex, quota pair) may be specified.
  12173. *
  12174. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
  12175. * Channel frequency in MHz. This is present only in an event.
  12176. *
  12177. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
  12178. * Channel time quota expressed as percentage.
  12179. * This is present in an event and a command.
  12180. * In an command, the user shall specify the quota to be allocated for the
  12181. * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
  12182. * In an event this provides the existing quota for the channel.
  12183. *
  12184. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
  12185. * Specifies the interface index (netdev) for which the corresponding
  12186. * configurations are applied. This is required in a command only. Only one
  12187. * interface index may be specified. If not specified, the configuration is
  12188. * rejected.
  12189. *
  12190. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE
  12191. * 8-bit unsigned value to enable/disable Multi-Channel Concurrency
  12192. * low latency mode. The firmware will do optimization for low
  12193. * latency in Multi-Channel concurrency state if enabled. And all existing
  12194. * user quota setting will be overwritten by the target.
  12195. * 0 - disable(default), 1 - enable.
  12196. * It is only present in a command with quota type of
  12197. * QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY.
  12198. */
  12199. enum qca_wlan_vendor_attr_mcc_quota {
  12200. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
  12201. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
  12202. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
  12203. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
  12204. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
  12205. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
  12206. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE = 6,
  12207. /* keep last */
  12208. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
  12209. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
  12210. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
  12211. };
  12212. /**
  12213. * enum qca_wlan_roam_stats_invoke_reason - Roam invoke reason. These values
  12214. * are used by the attribute
  12215. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON.
  12216. *
  12217. * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED: Default value when target
  12218. * invoke roam.
  12219. * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE: Neighbor unreachable
  12220. * detection failed when the roam trigger.
  12221. * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE: Invoke from user space.
  12222. */
  12223. enum qca_wlan_roam_stats_invoke_reason {
  12224. QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED = 0,
  12225. QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE = 1,
  12226. QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE = 2,
  12227. };
  12228. /**
  12229. * enum qca_wlan_roam_stats_tx_failures_reason - Roam TX failures reason. These
  12230. * values are used by the attribute
  12231. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON.
  12232. *
  12233. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED: Default value when
  12234. * roam by kickout.
  12235. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY: Excessive retry when roam
  12236. * trigger by kickout.
  12237. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY: Station inactivity when
  12238. * roam trigger by kickout.
  12239. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT: IBSS disconnect when
  12240. * roam trigger by kickout.
  12241. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT: TDLS peer has
  12242. * disappeared, and all TX is failing when roam trigger by kickout.
  12243. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT: SA query process
  12244. * timeout when roam trigger by kickout.
  12245. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT: Directly connected
  12246. * peer has roamed to a repeater.
  12247. */
  12248. enum qca_wlan_roam_stats_tx_failures_reason {
  12249. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED = 0,
  12250. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY = 1,
  12251. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY = 2,
  12252. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT = 3,
  12253. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT = 4,
  12254. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT = 5,
  12255. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT = 6,
  12256. };
  12257. /**
  12258. * enum qca_wlan_roam_stats_abort_reason - Roam abort reason. These values
  12259. * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON.
  12260. *
  12261. * @QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED: Target did not specify the
  12262. * detailed reason for roam scan being aborted.
  12263. * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH: Roam scan is not
  12264. * started due to high data RSSI during LOW-RSSI roaming.
  12265. * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD: Roam scan is not
  12266. * started due to good link speed during LOW-RSSI roaming.
  12267. * @QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH: Roam scan is not started
  12268. * due to high data RSSI during background roaming.
  12269. * @QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD: Roam scan is not
  12270. * started due to high beacon RSSI during background roaming
  12271. */
  12272. enum qca_wlan_roam_stats_abort_reason {
  12273. QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED = 0,
  12274. QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH = 1,
  12275. QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD = 2,
  12276. QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH = 3,
  12277. QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD = 4,
  12278. };
  12279. /**
  12280. * enum qca_wlan_roam_stats_scan_type - Roam scan type define.
  12281. * These values are used by the attribute
  12282. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE.
  12283. *
  12284. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL: Partial channel scan
  12285. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL: Full channel scan
  12286. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN: No roam scan was triggered.
  12287. * This is generally used in BTM events to indicate BTM frame exchange logs.
  12288. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ: Higher band roam scan
  12289. * from 2.4 GHz to 5 GHz or 6 GHz
  12290. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ: Higher band roam scan from
  12291. * 5 GHz to 6 GHz
  12292. */
  12293. enum qca_wlan_roam_stats_scan_type {
  12294. QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL = 0,
  12295. QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL = 1,
  12296. QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN = 2,
  12297. QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ = 3,
  12298. QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ = 4,
  12299. };
  12300. /**
  12301. * enum qca_wlan_roam_stats_scan_dwell_type - Roam scan dwell type.
  12302. * These values are used by the attribute
  12303. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE.
  12304. *
  12305. * @QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED: Target did not specify the
  12306. * detailed roam scan type.
  12307. * @QCA_WLAN_ROAM_STATS_DWELL_ACTIVE_TYPE: Active scan during roam.
  12308. * @QCA_WLAN_ROAM_STATS_DWELL_PASSIVE_TYPE: Passive scan during roam.
  12309. */
  12310. enum qca_wlan_roam_stats_scan_dwell_type {
  12311. QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED = 0,
  12312. QCA_WLAN_ROAM_STATS_DWELL_TYPE_ACTIVE = 1,
  12313. QCA_WLAN_ROAM_STATS_DWELL_TYPE_PASSIVE = 2,
  12314. };
  12315. /**
  12316. * enum qca_wlan_vendor_attr_roam_stats_scan_chan_info - Attributes used inside
  12317. * the %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO nested attribute.
  12318. */
  12319. enum qca_wlan_vendor_attr_roam_stats_scan_chan_info {
  12320. /* 32-bit unsigned value to indicate center frequency of the primary
  12321. * channel in MHz for each roam scan channel.
  12322. */
  12323. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHANNEL_FREQ = 1,
  12324. /* 8-bit unsigned value to indicate channel scan type for each
  12325. * roam scan channel, values in qca_wlan_roam_stats_scan_dwell_type.
  12326. */
  12327. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE = 2,
  12328. /* 32-bit unsigned value to indicate maximum scan time in milliseconds
  12329. * for each roam scan channel.
  12330. */
  12331. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX_DWELL_TIME = 3,
  12332. /* keep last */
  12333. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST,
  12334. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_FRAME_MAX =
  12335. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST - 1,
  12336. };
  12337. /**
  12338. * enum qca_wlan_roam_stats_frame_subtype - Roam frame subtypes. These values
  12339. * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE.
  12340. *
  12341. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH: Pre-authentication frame
  12342. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC: Reassociation frame
  12343. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1: EAPOL-Key M1 frame
  12344. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2: EAPOL-Key M2 frame
  12345. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3: EAPOL-Key M3 frame
  12346. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4: EAPOL-Key M4 frame
  12347. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1: EAPOL-Key GTK M1 frame
  12348. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2: EAPOL-Key GTK M2 frame
  12349. */
  12350. enum qca_wlan_roam_stats_frame_subtype {
  12351. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH = 1,
  12352. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC = 2,
  12353. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1 = 3,
  12354. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2 = 4,
  12355. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3 = 5,
  12356. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4 = 6,
  12357. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1 = 7,
  12358. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2 = 8,
  12359. };
  12360. /**
  12361. * enum roam_frame_status - Specifies the valid values the vendor roam frame
  12362. * attribute QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS can take.
  12363. *
  12364. * @QCA_WLAN_ROAM_FRAME_STATUS_SUCCESS: It indicates the roam frame was
  12365. * sent or received successfully.
  12366. * @QCA_WLAN_ROAM_FRAME_STATUS_FAIL: It indicates the roam frame sending or
  12367. * receiving failed.
  12368. */
  12369. enum qca_wlan_roam_stats_frame_status {
  12370. QCA_WLAN_ROAM_STATS_FRAME_STATUS_SUCCESS = 0,
  12371. QCA_WLAN_ROAM_STATS_FRAME_STATUS_FAIL = 1,
  12372. };
  12373. /**
  12374. * enum qca_wlan_vendor_attr_roam_stats_frame_info - Attributes used within the
  12375. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO nested attribute.
  12376. */
  12377. enum qca_wlan_vendor_attr_roam_stats_frame_info {
  12378. /* 8-bit unsigned value to indicate the frame subtype during
  12379. * roaming, one of the values in qca_wlan_roam_stats_frame_subtype.
  12380. */
  12381. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE = 1,
  12382. /* 8-bit unsigned value to indicate the frame is successful or failed
  12383. * during roaming, one of the values in
  12384. * qca_wlan_roam_stats_frame_status.
  12385. */
  12386. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS = 2,
  12387. /* 64-bit unsigned value to indicate the timestamp for frame of
  12388. * preauthentication/reassociation/EAPOL-M1/EAPOL-M2/EAPOL-M3/EAPOL-M4
  12389. * when sent or received during roaming, timestamp in milliseconds
  12390. * from system boot.
  12391. */
  12392. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3,
  12393. /* keep last */
  12394. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST,
  12395. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_MAX =
  12396. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST - 1,
  12397. };
  12398. /**
  12399. * enum qca_wlan_vendor_attr_roam_stats_info - Used by the attribute
  12400. * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO.
  12401. */
  12402. enum qca_wlan_vendor_attr_roam_stats_info {
  12403. /* 64-bit unsigned value to indicate the timestamp when roam was
  12404. * triggered by the firmware, timestamp in milliseconds from system
  12405. * boot.
  12406. */
  12407. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_TRIGGER_TIMESTAMP = 1,
  12408. /* 32-bit unsigned value to indicate the roam trigger reason for the
  12409. * last roaming attempted by the firmware. This can be queried either
  12410. * in a connected state or disconnected state. The values of this
  12411. * attribute represent the roam trigger reason codes, which
  12412. * are defined in enum qca_roam_reason.
  12413. */
  12414. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TRIGGER_REASON = 2,
  12415. /* 8-bit unsigned value to indicate percentage of packets for which
  12416. * the RX rate is lower than the RX rate threshold in total RX packets,
  12417. * used for roaming trigger by per.
  12418. */
  12419. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_RXRATE_THRESHOLD_PERCENT = 3,
  12420. /* 8-bit unsigned value to indicate percentage of packets for which
  12421. * the TX rate is lower than TX rate threshold in total TX packets,
  12422. * used for roaming trigger by per.
  12423. */
  12424. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_TXRATE_THRESHOLD_PERCENT = 4,
  12425. /* 32-bit unsigned value to indicate final beacon miss count for
  12426. * trigger reason of beacon miss.
  12427. */
  12428. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FINAL_BMISS_CNT = 5,
  12429. /* 32-bit unsigned value to indicate consecutive beacon miss count
  12430. * for trigger reason of beacon miss.
  12431. */
  12432. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONSECUTIVE_BMISS_CNT = 6,
  12433. /* 8-bit unsigned value to indicate QOS-NULL TX status for trigger
  12434. * reason of beacon miss, 0 - success, 1 - fail.
  12435. * If QOS-NULL TX status is successful, beacon miss final count and
  12436. * consecutive beacon miss count will be reset to zero, and roam will
  12437. * not be triggered. If QOS-NULL TX status is failed, beacon miss final
  12438. * count and consecutive beacon miss count continue to calculate until
  12439. * roaming trigger by beacon miss.
  12440. */
  12441. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BMISS_QOS_NULL_SUCCESS = 7,
  12442. /* 8-bit signed value to indicate connected AP RSSI in dBm
  12443. * for trigger reason of poor RSSI.
  12444. */
  12445. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_CURRENT_RSSI = 8,
  12446. /* 8-bit signed value to indicate RSSI threshold value in dBm
  12447. * for trigger reason of poor RSSI.
  12448. */
  12449. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_ROAM_RSSI_THRESHOLD = 9,
  12450. /* 8-bit unsigned value to indicate RX link speed status
  12451. * for trigger reason of poor RSSI, 0 - good link speed,
  12452. * 1 - bad link speed.
  12453. */
  12454. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_RX_LINKSPEED_STATUS = 10,
  12455. /* 8-bit signed value to indicate connected AP RSSI in dBm
  12456. * for trigger reason of better RSSI.
  12457. */
  12458. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_CURRENT_RSSI = 11,
  12459. /* 8-bit signed value to indicate RSSI threshold value in dBm
  12460. * for trigger reason of better RSSI.
  12461. */
  12462. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_HIGH_RSSI_THRESHOLD = 12,
  12463. /* 32-bit unsigned value to indicate RX throughput in bytes per second
  12464. * for trigger reason of congestion.
  12465. */
  12466. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_RX_TPUT = 13,
  12467. /* 32-bit unsigned value to indicate TX throughput in bytes per second
  12468. * for trigger reason of congestion.
  12469. */
  12470. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_TX_TPUT = 14,
  12471. /* 8-bit unsigned value to indicate roamable AP count
  12472. * for trigger reason of congestion.
  12473. */
  12474. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_ROAMABLE_CNT = 15,
  12475. /* 8-bit unsigned value to indicate invoke reason, one of the values
  12476. * defined in qca_wlan_roam_stats_invoke_reason.
  12477. */
  12478. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON = 16,
  12479. /* 8-bit unsigned value to indicate request mode for trigger reason
  12480. * of BTM, values are defined in IEEE Std 802.11-2020, 9.6.13.9.
  12481. */
  12482. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQUEST_MODE = 17,
  12483. /* 32-bit unsigned value to indicate disassociate time in milliseconds
  12484. * for trigger reason of BTM.
  12485. */
  12486. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_DISASSOC_IMMINENT_TIME = 18,
  12487. /* 32-bit unsigned value to indicate preferred candidate list valid
  12488. * interval in milliseconds for trigger reason of BTM.
  12489. */
  12490. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_VALID_INTERNAL = 19,
  12491. /* 8-bit unsigned value to indicate the number of preferred
  12492. * candidates for trigger reason of BTM.
  12493. */
  12494. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_CANDIDATE_LIST_CNT = 20,
  12495. /* 8-bit unsigned value to indicate response status for trigger
  12496. * reason of BTM, values are defined in IEEE Std 802.11-2020,
  12497. * Table 9-428 (BTM status code definitions).
  12498. */
  12499. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_RESPONSE_STATUS_CODE = 21,
  12500. /* 32-bit unsigned value to indicate BSS termination timeout value
  12501. * in milliseconds for trigger reason of BTM.
  12502. */
  12503. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_BSS_TERMINATION_TIMEOUT = 22,
  12504. /* 32-bit unsigned value to indicate MBO associate retry timeout
  12505. * value in milliseconds for trigger reason of BTM.
  12506. */
  12507. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_MBO_ASSOC_RETRY_TIMEOUT = 23,
  12508. /* 8-bit unsigned value to indicate dialog token number
  12509. * for trigger reason of BTM.
  12510. */
  12511. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQ_DIALOG_TOKEN = 24,
  12512. /* 8-bit unsigned value to indicate percentage of connected AP
  12513. * channel congestion utilization for trigger reason of BSS load.
  12514. */
  12515. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BSS_CU_LOAD = 25,
  12516. /* 8-bit unsigned value to indicate disconnection type
  12517. * for trigger reason of disconnection. 1 - Deauthentication,
  12518. * 2 - Disassociation.
  12519. */
  12520. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_TYPE = 26,
  12521. /* 16-bit unsigned value to indicate deauthentication or disassociation
  12522. * reason for trigger reason of disconnection, values are defined
  12523. * in IEEE Std 802.11-2020, Table 9-49 (Reason codes).
  12524. */
  12525. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_REASON = 27,
  12526. /* 32-bit unsigned value to indicate milliseconds of roam scan
  12527. * periodicity when needing to roam to find a better AP for trigger
  12528. * reason of periodic timer.
  12529. */
  12530. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PERIODIC_TIMER_MS = 28,
  12531. /* 8-bit signed value to indicate connected AP RSSI in dBm for
  12532. * trigger reason of background scan.
  12533. */
  12534. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_CURRENT_RSSI = 29,
  12535. /* 8-bit signed value to indicate data RSSI in dBm for trigger reason
  12536. * of background scan.
  12537. */
  12538. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI = 30,
  12539. /* 8-bit signed value to indicate data RSSI threshold in dBm
  12540. * for trigger reason of background scan.
  12541. */
  12542. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI_THRESH = 31,
  12543. /* 32-bit unsigned value to indicate consecutive TX failure threshold
  12544. * for trigger reason of TX failures.
  12545. */
  12546. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_THRESHOLD = 32,
  12547. /* 8-bit unsigned value to indicate TX failure reason for trigger
  12548. * reason of TX failures, one of the values defined in
  12549. * qca_wlan_roam_stats_tx_failures_reason.
  12550. */
  12551. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON = 33,
  12552. /* 8-bit unsigned value to indicate detail abort reason. One of the
  12553. * values in enum qca_wlan_roam_stats_abort_reason.
  12554. */
  12555. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON = 34,
  12556. /* 8-bit signed value to indicate data RSSI in dBm when aborting the
  12557. * roam scan.
  12558. */
  12559. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI = 35,
  12560. /* 8-bit signed value to indicate data RSSI threshold in dBm when
  12561. * aborting the roam scan.
  12562. */
  12563. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI_THRESHOLD = 36,
  12564. /* 8-bit unsigned value to indicate data RSSI threshold in RX link
  12565. * speed status when aborting the roam scan.
  12566. * 0 - good link speed, 1 - bad link speed
  12567. */
  12568. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RX_LINKSPEED_STATUS = 37,
  12569. /* 8-bit unsigned value to indicate roaming scan type.
  12570. * One of the values in enum qca_wlan_roam_stats_scan_type.
  12571. */
  12572. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE = 38,
  12573. /* 8-bit unsigned value to indicate roaming result, used in STA mode
  12574. * only.
  12575. * 0-Roaming is successful, 1-Roaming is failed
  12576. */
  12577. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS = 39,
  12578. /* 8-bit unsigned value to indicate the roam fail reason for the
  12579. * last failed roaming attempt by the firmware. Different roam failure
  12580. * reason codes are specified in enum qca_vendor_roam_fail_reasons.
  12581. * This can be queried either in connected state or disconnected state.
  12582. */
  12583. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FAIL_REASON = 40,
  12584. /* Nested attribute. Indicate roam scan info for each channel, the
  12585. * attributes defined in enum
  12586. * qca_wlan_vendor_attr_roam_stats_scan_chan_info are used inside
  12587. * this attribute.
  12588. */
  12589. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO = 41,
  12590. /* 32-bit unsigned value to indicate total scan time during roam scan
  12591. * all channels, time in milliseconds.
  12592. */
  12593. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TOTAL_SCAN_TIME = 42,
  12594. /* Nested attribute. This attribute shall be used by the driver to
  12595. * send roam information of each subtype. The attributes defined in
  12596. * enum qca_wlan_vendor_attr_roam_stats_frame_info are used inside
  12597. * this attribute.
  12598. */
  12599. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO = 43,
  12600. /* keep last */
  12601. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST,
  12602. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX =
  12603. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST - 1,
  12604. };
  12605. /**
  12606. * enum qca_wlan_vendor_attr_roam_cached_stats - Vendor subcmd attributes to
  12607. * report cached roam info from the driver to user space, enum values are used
  12608. * for netlink attributes sent with the
  12609. * %QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS sub command.
  12610. */
  12611. enum qca_wlan_vendor_attr_roam_cached_stats {
  12612. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INVALID = 0,
  12613. /* Nested attribute, this attribute contains nested array roam info
  12614. * statistics defined in enum qca_wlan_vendor_attr_roam_stats_info.
  12615. */
  12616. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO = 1,
  12617. /* keep last */
  12618. QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST,
  12619. QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_MAX =
  12620. QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST - 1,
  12621. };
  12622. /**
  12623. * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
  12624. * radio configurations present in each radio combination.
  12625. *
  12626. * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
  12627. * the band info in the radio configuration. Uses the enum qca_set_band values.
  12628. *
  12629. * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
  12630. * the number of antennas info in the radio configuration.
  12631. */
  12632. enum qca_wlan_vendor_attr_supported_radio_cfg {
  12633. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
  12634. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
  12635. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
  12636. /* keep last */
  12637. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
  12638. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
  12639. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
  12640. };
  12641. /**
  12642. * enum qca_wlan_vendor_attr_radio_combination - Attributes for
  12643. * radio combinations supported by the device.
  12644. *
  12645. * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
  12646. * provides the radio configurations present in the radio combination.
  12647. * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
  12648. * This attribute provides the values for radio combination matrix.
  12649. * For standalone config, the number of config values is one and the config
  12650. * carries the band and antenna information for standalone configuration. For
  12651. * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
  12652. * configuration the number of config values is two and the config carries the
  12653. * band and antenna information for each simultaneous radio.
  12654. */
  12655. enum qca_wlan_vendor_attr_radio_combination {
  12656. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
  12657. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
  12658. /* keep last */
  12659. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
  12660. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
  12661. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
  12662. };
  12663. /**
  12664. * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
  12665. * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
  12666. *
  12667. * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
  12668. * provides the radio combinations supported by the device.
  12669. * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
  12670. * For example, in the radio combination matrix for a device which has two
  12671. * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
  12672. * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
  12673. * combinations is 5 and the radio combinations are
  12674. * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
  12675. * {{5 GHz 2X2}}, //Standalone 5 GHz
  12676. * {{6 GHz 2X2}}, //Standalone 6 GHz
  12677. * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
  12678. * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
  12679. * The band and antenna info together as nested data provides one radio config.
  12680. * Standalone configuration has one config with band and antenna nested data.
  12681. * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
  12682. * have two nested band and antenna info data.
  12683. */
  12684. enum qca_wlan_vendor_attr_radio_combination_matrix {
  12685. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
  12686. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
  12687. /* keep last */
  12688. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
  12689. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
  12690. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
  12691. };
  12692. /**
  12693. * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
  12694. * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
  12695. *
  12696. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
  12697. * Enable mDNS offload. This attribute is mandatory to enable
  12698. * mDNS offload feature. If this attribute is not present, mDNS offload
  12699. * is disabled.
  12700. *
  12701. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
  12702. * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
  12703. * attribute is mandatory when enabling the feature, and not required when
  12704. * disabling the feature.
  12705. *
  12706. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
  12707. * the following attributes:
  12708. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
  12709. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
  12710. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
  12711. *
  12712. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
  12713. * It consists of a hostname and ".local" as the domain name. The character
  12714. * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
  12715. * It is used to compare the domain the in the "QU" query. Only 1 FQDN is
  12716. * supported per vdev.
  12717. * For example: myphone.local
  12718. *
  12719. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
  12720. * u16 attribute. It specifies the total number of resource records present
  12721. * in the answer section of the answer payload. This attribute is needed by the
  12722. * firmware to populate the mDNS response frame for mNDS queries without having
  12723. * to parse the answer payload.
  12724. *
  12725. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required Binary blob
  12726. * attribute sent by the mdnsResponder from userspace. It contains resource
  12727. * records of various types (Eg: A, AAAA, PTR, TXT) and service list. This
  12728. * payload is passed down to firmware and is transmitted in response to
  12729. * mDNS queries.
  12730. * The maximum size of the answer payload supported is 512 bytes.
  12731. */
  12732. enum qca_wlan_vendor_attr_mdns_offload {
  12733. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
  12734. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
  12735. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
  12736. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
  12737. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
  12738. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
  12739. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
  12740. /* keep last */
  12741. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
  12742. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
  12743. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
  12744. };
  12745. /**
  12746. * enum qca_vendor_attr_diag_event_type - Attributes used by
  12747. * %QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute.
  12748. *
  12749. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING: Diag event sent from
  12750. * driver/firmware during Connection request from Userspace. Uses the
  12751. * following attributes of enum qca_wlan_vendor_attr_diag:
  12752. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12753. * QCA_WLAN_VENDOR_ATTR_DIAG_SSID,
  12754. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12755. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT,
  12756. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  12757. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT,
  12758. * QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE,
  12759. * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE,
  12760. * QCA_WLAN_VENDOR_ATTR_DIAG_AKM,
  12761. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  12762. * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE,
  12763. * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE,
  12764. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12765. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12766. *
  12767. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL: Diag event sent from
  12768. * driver/firmware when a connection is failed. Uses the
  12769. * following attributes of enum qca_wlan_vendor_attr_diag:
  12770. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12771. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12772. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  12773. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12774. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12775. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12776. *
  12777. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ: Diag event sent from
  12778. * driver/firmware during Authentication request from a device. Uses the
  12779. * following attributes of enum qca_wlan_vendor_attr_diag:
  12780. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12781. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12782. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12783. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  12784. * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
  12785. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12786. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  12787. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12788. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12789. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12790. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12791. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12792. *
  12793. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP: Diag event sent from
  12794. * driver/firmware when device receives an authentication response. Uses the
  12795. * following attributes of enum qca_wlan_vendor_attr_diag:
  12796. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12797. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12798. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  12799. * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
  12800. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12801. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  12802. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12803. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12804. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12805. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12806. *
  12807. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ: Diag event sent from
  12808. * driver/firmware when device sends an association request. Uses the
  12809. * following attributes of enum qca_wlan_vendor_attr_diag:
  12810. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12811. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12812. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12813. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12814. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12815. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12816. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12817. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12818. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12819. *
  12820. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP: Diag event sent from
  12821. * driver/firmware when device receives an association response. Uses the
  12822. * following attributes of enum qca_wlan_vendor_attr_diag:
  12823. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12824. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12825. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12826. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  12827. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12828. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12829. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12830. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  12831. * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID.
  12832. *
  12833. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX: Diag event sent from
  12834. * driver/userspace when device receives a deauthentication response. Uses the
  12835. * following attributes of enum qca_wlan_vendor_attr_diag:
  12836. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12837. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12838. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12839. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12840. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12841. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12842. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12843. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12844. *
  12845. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX: Diag event sent from
  12846. * driver/userspace when device sends a deauthentication request. Uses the
  12847. * following attributes of enum qca_wlan_vendor_attr_diag:
  12848. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12849. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12850. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12851. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12852. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12853. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12854. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12855. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12856. *
  12857. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX: Diag event sent from
  12858. * driver/firmware when device receives a disassociation response. Uses the
  12859. * following attributes of enum qca_wlan_vendor_attr_diag:
  12860. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12861. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12862. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12863. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12864. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12865. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12866. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12867. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12868. *
  12869. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX: Diag event sent from
  12870. * driver/firmware when device sends a disassociation request. Uses the
  12871. * following attributes of enum qca_wlan_vendor_attr_diag:
  12872. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12873. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12874. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12875. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12876. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12877. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12878. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12879. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12880. *
  12881. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN: Diag event sent from
  12882. * driver/firmware when device did not receive beacon packets during connection.
  12883. * Uses the following attributes of enum qca_wlan_vendor_attr_diag:
  12884. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12885. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12886. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12887. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12888. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12889. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12890. *
  12891. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START: Diag event sent from
  12892. * driver/firmware when Roaming scan is triggered. Uses the following
  12893. * attributes of enum qca_wlan_vendor_attr_diag:
  12894. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12895. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON,
  12896. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON,
  12897. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12898. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  12899. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE,
  12900. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD,
  12901. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12902. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12903. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12904. *
  12905. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE: Diag event sent from
  12906. * driver/firmware Roam scanning is processed. Uses the following
  12907. * attributes of enum qca_wlan_vendor_attr_diag:
  12908. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12909. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  12910. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST,
  12911. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT,
  12912. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  12913. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12914. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12915. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  12916. * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE.
  12917. *
  12918. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP: Diag event sent from
  12919. * driver/firmware to provide Roam information of the current AP. Uses the
  12920. * following attributes of enum qca_wlan_vendor_attr_diag:
  12921. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12922. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12923. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12924. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  12925. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  12926. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
  12927. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12928. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12929. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12930. *
  12931. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP: Diag event sent from
  12932. * driver/firmware to provide Roam information of the candid AP. Uses the
  12933. * following attributes of enum qca_wlan_vendor_attr_diag:
  12934. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12935. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12936. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12937. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  12938. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  12939. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
  12940. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP,
  12941. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  12942. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12943. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12944. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12945. *
  12946. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT: Diag event sent from
  12947. * driver/firmware to provide Roam result after selecting a candidate. Uses the
  12948. * following attributes of enum qca_wlan_vendor_attr_diag:
  12949. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12950. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL,
  12951. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12952. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12953. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12954. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12955. *
  12956. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL: Diag event sent from
  12957. * driver/firmware to indicate Roam Cancellation due to higher priority events.
  12958. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12959. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12960. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12961. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12962. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12963. *
  12964. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ: Diag event sent from driver
  12965. * /firmware when STA sends a BTM request frame. Uses the following attributes
  12966. * of enum qca_wlan_vendor_attr_diag:
  12967. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12968. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  12969. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE,
  12970. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER,
  12971. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL,
  12972. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT,
  12973. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12974. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12975. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12976. *
  12977. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY: Diag event sent from
  12978. * driver/firmware when STA queries about BTM transition. Uses the following
  12979. * attributes of enum qca_wlan_vendor_attr_diag:
  12980. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12981. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  12982. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON,
  12983. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12984. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12985. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12986. *
  12987. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP: Diag event sent from driver
  12988. * /firmware when STA receives BTM response frame. Uses the following
  12989. * attributes of enum qca_wlan_vendor_attr_diag:
  12990. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12991. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  12992. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE,
  12993. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY,
  12994. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID,
  12995. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12996. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12997. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12998. *
  12999. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI: Diag event sent from
  13000. * driver/firmware to provide BTM request candidate information. Uses the
  13001. * following attributes of enum qca_wlan_vendor_attr_diag:
  13002. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13003. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13004. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE,
  13005. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  13006. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13007. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13008. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13009. *
  13010. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC: Diag event sent from driver
  13011. * /firmware when ROAM WTC trigger happens. Uses the following attributes of
  13012. * enum qca_wlan_vendor_attr_diag:
  13013. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13014. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE,
  13015. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13016. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION,
  13017. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13018. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13019. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13020. *
  13021. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER: Diag event sent from
  13022. * driver/firmware to indicate DHCP discovery to AP. Uses the following
  13023. * attributes of enum qca_wlan_vendor_attr_diag:
  13024. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13025. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13026. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13027. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13028. *
  13029. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER: Diag event sent from
  13030. * driver/firmware to indicate DHCP offering to AP. Uses the following
  13031. * attributes of enum qca_wlan_vendor_attr_diag:
  13032. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13033. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13034. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13035. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13036. *
  13037. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST: Diag event sent from
  13038. * driver/firmware to indicate driver sent DHCP packets. Uses the following
  13039. * attributes of enum qca_wlan_vendor_attr_diag:
  13040. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13041. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13042. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13043. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13044. *
  13045. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK: Diag event sent from driver
  13046. * /firmware to indicate acknowledgement of DHCP packets. Uses the following
  13047. * attributes of enum qca_wlan_vendor_attr_diag:
  13048. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13049. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13050. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13051. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13052. *
  13053. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK: Diag event sent from driver
  13054. * /firmware to indicate negative acknowledgement of DHCP packets. Uses the
  13055. * following attributes of enum qca_wlan_vendor_attr_diag:
  13056. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13057. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13058. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13059. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13060. *
  13061. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1: Diag event sent from driver
  13062. * /firmware to indicate EAPOL M1 message. Uses the following attributes of
  13063. * enum qca_wlan_vendor_attr_diag:
  13064. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13065. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13066. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13067. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13068. *
  13069. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2: Diag event sent from driver
  13070. * /firmware to indicate EAPOL M2 message. Uses the following attributes of
  13071. * enum qca_wlan_vendor_attr_diag:
  13072. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13073. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13074. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13075. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13076. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13077. *
  13078. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3: Diag event sent from driver
  13079. * /firmware to indicate EAPOL M3 message. Uses the following attributes of
  13080. * enum qca_wlan_vendor_attr_diag:
  13081. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13082. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13083. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13084. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13085. *
  13086. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4: Diag event sent from driver
  13087. * /firmware to indicate EAPOL M4 message. Uses the following attributes of
  13088. * enum qca_wlan_vendor_attr_diag:
  13089. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13090. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13091. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13092. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13093. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13094. *
  13095. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1: Diag event sent from driver
  13096. * /firmware to indicate GTK rekey M1 frame. Uses the following attributes of
  13097. * enum qca_wlan_vendor_attr_diag:
  13098. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13099. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13100. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13101. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13102. *
  13103. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2: Diag event sent from driver
  13104. * /firmware to indicate GTK Rekey M2 frame. Uses the following attributes of
  13105. * enum qca_wlan_vendor_attr_diag:
  13106. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13107. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13108. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13109. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13110. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13111. *
  13112. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST: Diag event sent from driver
  13113. * /firmware to indicate device sent EAP request. Uses the following attributes
  13114. * of enum qca_wlan_vendor_attr_diag:
  13115. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13116. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
  13117. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
  13118. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13119. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13120. *
  13121. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE: Diag event sent from driver
  13122. * /firmware to indicate device received EAP response. Uses the following
  13123. * attributes of enum qca_wlan_vendor_attr_diag:
  13124. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13125. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
  13126. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
  13127. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13128. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13129. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13130. *
  13131. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS: Diag event sent from driver
  13132. * /firmware to indicate EAP frame transmission is success. Uses the following
  13133. * attributes of enum qca_wlan_vendor_attr_diag:
  13134. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13135. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13136. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13137. *
  13138. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE: Diag event sent from driver
  13139. * /firmware to indicate EAP frame transmission is failed. Uses the following
  13140. * attributes of enum qca_wlan_vendor_attr_diag:
  13141. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13142. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13143. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13144. *
  13145. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ: Diag event sent from driver
  13146. * /firmware to indicate Reassocation request. Uses the following attributes
  13147. * of enum qca_wlan_vendor_attr_diag:
  13148. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  13149. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13150. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13151. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13152. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13153. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13154. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13155. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  13156. *
  13157. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES: Diag event sent from driver
  13158. * /firmware to indicate Reassocation response. Uses the following attributes
  13159. * of enum qca_wlan_vendor_attr_diag:
  13160. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  13161. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13162. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13163. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  13164. * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID,
  13165. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13166. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13167. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  13168. */
  13169. enum qca_vendor_attr_diag_event_type {
  13170. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING = 0,
  13171. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL = 1,
  13172. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ = 2,
  13173. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP = 3,
  13174. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ = 4,
  13175. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP = 5,
  13176. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX = 6,
  13177. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX = 7,
  13178. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX = 8,
  13179. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX = 9,
  13180. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN = 10,
  13181. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START = 11,
  13182. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE = 12,
  13183. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP = 13,
  13184. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP = 14,
  13185. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT = 15,
  13186. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL = 16,
  13187. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ = 17,
  13188. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY = 18,
  13189. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP = 19,
  13190. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI = 20,
  13191. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC = 21,
  13192. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER = 22,
  13193. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER = 23,
  13194. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST = 24,
  13195. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK = 25,
  13196. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK = 26,
  13197. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1 = 27,
  13198. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2 = 28,
  13199. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3 = 29,
  13200. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4 = 30,
  13201. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1 = 31,
  13202. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2 = 32,
  13203. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST = 33,
  13204. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE = 34,
  13205. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS = 35,
  13206. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE = 36,
  13207. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ = 37,
  13208. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES = 38,
  13209. /* keep last */
  13210. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST,
  13211. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_MAX =
  13212. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST - 1,
  13213. };
  13214. /**
  13215. * enum qca_wlan_vendor_tx_status - Used by attribute
  13216. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS to indicate TX status.
  13217. * @QCA_WLAN_VENDOR_TX_STATUS_FAIL: Indicates frame is not sent over the air.
  13218. * @QCA_WLAN_VENDOR_TX_STATUS_NO_ACK: Indicates packet sent but acknowledgement
  13219. * is not received.
  13220. * @QCA_WLAN_VENDOR_TX_STATUS_ACK: Indicates the frame is successfully sent and
  13221. * acknowledged.
  13222. */
  13223. enum qca_wlan_vendor_tx_status {
  13224. QCA_WLAN_VENDOR_TX_STATUS_FAIL = 1,
  13225. QCA_WLAN_VENDOR_TX_STATUS_NO_ACK = 2,
  13226. QCA_WLAN_VENDOR_TX_STATUS_ACK = 3,
  13227. };
  13228. /**
  13229. * enum qca_roam_sub_reason - Used by attribute
  13230. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON
  13231. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER: Roam scan triggered due to periodic
  13232. * timer expiry
  13233. * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI: Roam scan trigger due
  13234. * to no candidate found during LOW RSSI trigger.
  13235. * @QCA_ROAM_SUB_REASON_BTM_DI_TIMER: Roam scan triggered due to BTM Disassoc
  13236. * Imminent timeout
  13237. * @QCA_ROAM_SUB_REASON_FULL_SCAN: Roam scan triggered due to partial scan
  13238. * failure
  13239. * @QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC: Roam trigger due to
  13240. * emergency like deauth/disassoc.
  13241. * @QCA_ROAM_SUB_REASON_CU_PERIODIC: Roam trigger due to
  13242. * BSS transition management request.
  13243. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI:
  13244. * Roam scan triggered due to Low RSSI periodic timer
  13245. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU:
  13246. * Roam trigger due to periodic timer after no candidate found during CU
  13247. * inactivity timer scan.
  13248. * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU: Roam trigger due to no candidate
  13249. * found in high CU roam trigger.
  13250. */
  13251. enum qca_roam_sub_reason {
  13252. QCA_ROAM_SUB_REASON_PERIODIC_TIMER = 1,
  13253. QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI = 2,
  13254. QCA_ROAM_SUB_REASON_BTM_DI_TIMER = 3,
  13255. QCA_ROAM_SUB_REASON_FULL_SCAN = 4,
  13256. QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC = 5,
  13257. QCA_ROAM_SUB_REASON_CU_PERIODIC = 6,
  13258. QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI = 7,
  13259. QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU = 8,
  13260. QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU = 9,
  13261. };
  13262. /*
  13263. * enum qca_wlan_vendor_attr_diag - Defines attributes used by the driver
  13264. * to send diag data to the userspace. The attributes defined in this enum are
  13265. * used with QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
  13266. *
  13267. * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT: Required Attribute. Nested attribute used
  13268. * by driver/firmware to send diag data. Each instance of this nested attribute
  13269. * contains one QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute and other
  13270. * attributes defined in enum qca_wlan_vendor_attr_diag that belong to the
  13271. * event type defined by QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE. Multiple of this
  13272. * nested attribute can be sent with one vendor command
  13273. * QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
  13274. *
  13275. * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE: Required u32 attribute. This
  13276. * attribute indicates the type of the diag event from driver/firmware. Uses
  13277. * values from enum qca_vendor_attr_diag_event_type.
  13278. *
  13279. * @QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP: Required u64 attribute. This
  13280. * attribute indicates the system timestamp. Driver uses ktime_get_real_ts64()
  13281. * API to send time of the day in microseconds to userspace.
  13282. *
  13283. * @QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP: Optional u64 attribute.
  13284. * This attribute indicates firmware timestamp in microseconds.
  13285. *
  13286. * @QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX: Optional u8 attribute. This attribute
  13287. * indicates wlan interface index.
  13288. *
  13289. * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID: Optional attribute. This attribute
  13290. * indicates 6-byte MAC address representing the BSSID of the AP.
  13291. *
  13292. * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT: Optional attribute. This attribute
  13293. * indicates the 6-byte MAC address representing the BSSID hint sent in
  13294. * the connect request.
  13295. *
  13296. * @QCA_WLAN_VENDOR_ATTR_DIAG_SSID: Optional attribute. This attribute
  13297. * indicates the SSID in u8 array with a maximum length of 32.
  13298. *
  13299. * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ: Optional u16 attribute. This attribute
  13300. * indicates the frequency of AP in MHz.
  13301. *
  13302. * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT: Optional u16 attribute. This attribute
  13303. * indicates frequency hint given in the connect request in MHz.
  13304. *
  13305. * @QCA_WLAN_VENDOR_ATTR_DIAG_RSSI: Optional signed 32 attribute.
  13306. * This attribute indicates RSSI of the 802.11 frame in dBm.
  13307. *
  13308. * @QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE: Optional u32 attribute.
  13309. * This attribute indicates Pairwise cipher suite defined in IEEE 802.11 2020
  13310. * Table 12-10—Integrity and key wrap algorithms.
  13311. *
  13312. * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE: Optional u32 attribute.
  13313. * This attribute indicates Group cipher suite defined in IEEE 802.11 2020
  13314. * Table 12-10—Integrity and key wrap algorithms.
  13315. *
  13316. * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE: Optional u32 attribute. This
  13317. * attribute indicates Group management cipher suite defined in IEEE Std
  13318. * 802.11‐2020 spec. Table 12-10—Integrity and key wrap algorithms.
  13319. *
  13320. * @QCA_WLAN_VENDOR_ATTR_DIAG_AKM: Optional u32 attribute. This attribute
  13321. * indicates Auth key management suite defined in IEEE Std 802.11‐2020
  13322. * Table 9-151—AKM suite selectors.
  13323. *
  13324. * @QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO: Optional u8 attribute. This attribute
  13325. * indicates authentication algorithm number defined in IEEE Std 802.11‐2020
  13326. * Section 9.4.1.1 Authentication Algorithm Number field.
  13327. *
  13328. * @QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE: Optional flag. This attribute
  13329. * indicates bluetooth COEX is active or not.
  13330. *
  13331. * @QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE: Optional u8 attribute. This
  13332. * attribute indicates SAE authentication frame type. The possible values are
  13333. * 1 - SAE commit frame
  13334. * 2 - SAE confirm frame
  13335. *
  13336. * @QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE: Optional u16 attribute. This
  13337. * attribute indicates the reason codes defined in IEEE Std 802.11‐2020
  13338. * Table 9-49—Reason codes.
  13339. *
  13340. * @QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER: Optional u16 attribute. This
  13341. * attribute indicates sequence number of the frame defined in IEEE Std
  13342. * 802.11‐2020 Section 9.4.1.2 Authentication Transaction Sequence Number
  13343. * field.
  13344. *
  13345. * @QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE: Optional u8 attribute. This
  13346. * attribute indicates the status codes defined in IEEE Std 802.11‐2020 Table
  13347. * 9-50—Status codes.
  13348. *
  13349. * @QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS: Optional u8 attribute.
  13350. * Uses enum qca_wlan_vendor_tx_status.
  13351. *
  13352. * @QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME: Optional flag. This attribute
  13353. * indicates if frame transmission is retried.
  13354. *
  13355. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON: Optional u8 attribute.
  13356. * Uses enum qca_roam_reason.
  13357. *
  13358. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON: Optional u8 attribute.
  13359. * Uses enum qca_roam_sub_reason.
  13360. *
  13361. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU: Optional u8 attribute. This attribute
  13362. * indicates channel utilization in percentage.
  13363. *
  13364. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE: Optional u8 attribute. This
  13365. * attribute indicates scan type used. Uses enum qca_roam_scan_scheme.
  13366. *
  13367. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD: Optional signed 32 attribute.
  13368. * This attribute indicates current RSSI threshold in dBm.
  13369. *
  13370. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST: Required Attribute.
  13371. * Nested attribute used by QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE
  13372. * to carry list of QCA_WLAN_VENDOR_ATTR_DIAG_FREQ.
  13373. *
  13374. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT: optional u8 attribute.
  13375. * This attribute indicates number of scanned candidate APs.
  13376. *
  13377. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK: Optional u8 attribute. This
  13378. * attribute indicates roam AP rank computed based on connection preference.
  13379. *
  13380. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP: Optional u32 attribute.
  13381. * This attribute indicates expected throughput in kbps.
  13382. *
  13383. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE: Optional u16 attribute.
  13384. * This attribute indicates the preference value of candidate AP / connected AP
  13385. * calculated in the firmware.
  13386. *
  13387. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL: Optional flag. This attribute
  13388. * indicates connection/roaming is successful or not.
  13389. *
  13390. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE: Optional u8 attribute.
  13391. * This attribute indicates BTM WTC sub reason code in the WTC vendor specific
  13392. * IE present in the BTM frame.
  13393. *
  13394. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION: Optional u32 attribute.
  13395. * This attribute indicates BTM WTC duration in milliseconds.
  13396. *
  13397. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN: Optional u8 attribute. This attribute
  13398. * indicates dialog token value of BTM query/request/response frames.
  13399. *
  13400. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON: Optional u8 attribute. This
  13401. * attribute indicates the Transition Reason field indicates the reason why
  13402. * a transition attempt occurred and contains one of the values defined in IEEE
  13403. * Std 802.11‐2020 Table 9-198—Transition and Transition Query reasons.
  13404. *
  13405. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE: Optional u8 attribute. This attribute
  13406. * indicates BTM mode defined in IEEE Std 802.11‐2020
  13407. * Figure 9-924—Request Mode field format.
  13408. *
  13409. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER: Optional u16 attribute.
  13410. * This attribute indicates the Disassociation Timer field which is the number
  13411. * of beacon transmission times (TBTTs) until the serving AP will send a
  13412. * Disassociation frame to this STA.
  13413. *
  13414. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL: Optional u8 attribute.
  13415. * This attribute indicates BTM validity interval field in TBTTs defined in
  13416. * IEEE Std 802.11‐2020 Figure 9-923—BSS Transition Management Request frame
  13417. * Action field format.
  13418. *
  13419. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT: Optional u8 attribute.
  13420. * This attribute indicates BTM candidate list entries.
  13421. *
  13422. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE: Optional u8 attribute.
  13423. * This attribute indicates network preference for BTM transition defined in
  13424. * IEEE Std 802.11‐2020 Table 9-174—Preference field values.
  13425. *
  13426. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE: Optional u8 attribute.
  13427. * This attribute indicates BTM transition status code defined in IEEE Std
  13428. * 802.11‐2020 Table 9-428—BTM status code definitions.
  13429. *
  13430. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY: Optional u8 attribute.
  13431. * This attribute indicates BSS termination delay defined in IEEE Std
  13432. * 802.11‐2020 Section 9.6.13.10 BSS Transition Management Response frame format.
  13433. *
  13434. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID: Optional attribute.
  13435. * This attribute indicates 6-byte MAC address representing the BSSID of the
  13436. * BSS that the non-AP STA transitions to.
  13437. *
  13438. * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE: Optional u8 attribute. This attribute
  13439. * indicates EAP frame type. The methods are enumerated by IANA at
  13440. * https://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml.
  13441. *
  13442. * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN: Optional u8 attribute. This attribute
  13443. * indicates EAP frame length.
  13444. *
  13445. * @QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP: Required u64 attribute. This
  13446. * attribute indicates the kernel timestamp. Driver uses ktime_get() API
  13447. * (Time from boot but not the time spent in suspend) to send in microseconds
  13448. * to userspace.
  13449. *
  13450. * @QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID: Optional u16 attribute. This attribute
  13451. * indicates the association id received in the (re)association response frame
  13452. * defined in IEEE Std 802.11-2020 Figure 9-91-AID field format.
  13453. */
  13454. enum qca_wlan_vendor_attr_diag {
  13455. QCA_WLAN_VENDOR_ATTR_DIAG_INVALID = 0,
  13456. QCA_WLAN_VENDOR_ATTR_DIAG_EVENT = 1,
  13457. QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE = 2,
  13458. QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP = 3,
  13459. QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP = 4,
  13460. QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX = 5,
  13461. QCA_WLAN_VENDOR_ATTR_DIAG_BSSID = 6,
  13462. QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT = 7,
  13463. QCA_WLAN_VENDOR_ATTR_DIAG_SSID = 8,
  13464. QCA_WLAN_VENDOR_ATTR_DIAG_FREQ = 9,
  13465. QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT = 10,
  13466. QCA_WLAN_VENDOR_ATTR_DIAG_RSSI = 11,
  13467. QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE = 12,
  13468. QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE = 13,
  13469. QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE = 14,
  13470. QCA_WLAN_VENDOR_ATTR_DIAG_AKM = 15,
  13471. QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO = 16,
  13472. QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE = 17,
  13473. QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE = 18,
  13474. QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE = 19,
  13475. QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER = 20,
  13476. QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE = 21,
  13477. QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS = 22,
  13478. QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME = 23,
  13479. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON = 24,
  13480. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON = 25,
  13481. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU = 26,
  13482. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE = 27,
  13483. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD = 28,
  13484. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST = 29,
  13485. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT = 30,
  13486. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK = 31,
  13487. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP = 32,
  13488. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE = 33,
  13489. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL = 34,
  13490. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE = 35,
  13491. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION = 36,
  13492. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN = 37,
  13493. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON = 38,
  13494. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE = 39,
  13495. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER = 40,
  13496. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL = 41,
  13497. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT = 42,
  13498. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE = 43,
  13499. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE = 44,
  13500. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY = 45,
  13501. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID = 46,
  13502. QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE = 47,
  13503. QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN = 48,
  13504. QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP = 49,
  13505. QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID = 50,
  13506. /* keep last */
  13507. QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST,
  13508. QCA_WLAN_VENDOR_ATTR_DIAG_MAX =
  13509. QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST - 1,
  13510. };
  13511. /**
  13512. * qca_wlan_vendor_monitor_data_frame_type - Represent the various
  13513. * data types to be sent over the monitor interface.
  13514. */
  13515. enum qca_wlan_vendor_monitor_data_frame_type {
  13516. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
  13517. /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is
  13518. not set */
  13519. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
  13520. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
  13521. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
  13522. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
  13523. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
  13524. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
  13525. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
  13526. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
  13527. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
  13528. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
  13529. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
  13530. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
  13531. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
  13532. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
  13533. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
  13534. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
  13535. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
  13536. };
  13537. /**
  13538. * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
  13539. * mgmt types to be sent over the monitor interface.
  13540. * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the MGMT Frames.
  13541. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the MGMT Frames
  13542. * except the Beacons. Valid only in the Connect state.
  13543. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
  13544. * BSSID Beacons. Valid only in the Connect state.
  13545. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
  13546. * the Beacons obtained during the scan (off channel and connected channel)
  13547. * when in connected state.
  13548. */
  13549. enum qca_wlan_vendor_monitor_mgmt_frame_type {
  13550. QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
  13551. /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set */
  13552. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON = BIT(1),
  13553. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
  13554. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
  13555. };
  13556. /**
  13557. * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
  13558. * ctrl types to be sent over the monitor interface.
  13559. * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the ctrl Frames.
  13560. * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger Frame.
  13561. */
  13562. enum qca_wlan_vendor_monitor_ctrl_frame_type {
  13563. QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
  13564. /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set */
  13565. QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
  13566. };
  13567. /**
  13568. * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
  13569. * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
  13570. * monitor mode.
  13571. *
  13572. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute,
  13573. * Represents the tx data packet type to be monitored (u32). These data packets
  13574. * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
  13575. *
  13576. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute,
  13577. * Represents the tx data packet type to be monitored (u32). These data packets
  13578. * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
  13579. *
  13580. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute,
  13581. * Represents the tx data packet type to be monitored (u32). These mgmt packets
  13582. * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
  13583. *
  13584. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute,
  13585. * Represents the tx data packet type to be monitored (u32). These mgmt packets
  13586. * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
  13587. *
  13588. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute,
  13589. * Represents the tx data packet type to be monitored (u32). These ctrl packets
  13590. * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
  13591. *
  13592. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute,
  13593. * Represents the tx data packet type to be monitored (u32). These ctrl packets
  13594. * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
  13595. *
  13596. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL:
  13597. * u32 attribute, An interval only for the connected beacon interval, which
  13598. * expects that the connected BSSID's beacons shall be sent on the monitor
  13599. * interface only on this specific interval.
  13600. */
  13601. enum qca_wlan_vendor_attr_set_monitor_mode {
  13602. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
  13603. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
  13604. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
  13605. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
  13606. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
  13607. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
  13608. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
  13609. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
  13610. /* keep last */
  13611. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
  13612. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
  13613. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
  13614. };
  13615. /**
  13616. * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
  13617. * Bits will be set to 1 if the corresponding state is enabled.
  13618. *
  13619. * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
  13620. * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
  13621. */
  13622. enum qca_wlan_vendor_roam_scan_state {
  13623. QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
  13624. QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
  13625. };
  13626. /**
  13627. * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
  13628. * Bits will be set to 1 if the corresponding event is notified.
  13629. *
  13630. * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
  13631. * carries the trigger reason. When set, it is expected that the roam event
  13632. * carries the respective reason via the attribute
  13633. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
  13634. * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
  13635. *
  13636. * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
  13637. * carries the roam fail reason. When set, it is expected that the roam event
  13638. * carries the respective reason via the attribute
  13639. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
  13640. * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
  13641. *
  13642. * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
  13643. * event carries the roam invoke fail reason. When set, it is expected that
  13644. * the roam event carries the respective reason via the attribute
  13645. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
  13646. *
  13647. * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
  13648. * carries the roam scan state. When set, it is expected that the roam event
  13649. * carries the respective scan state via the attribute
  13650. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
  13651. * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
  13652. */
  13653. enum qca_wlan_vendor_roam_event_type {
  13654. QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
  13655. QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
  13656. QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
  13657. QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
  13658. };
  13659. /**
  13660. * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
  13661. * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
  13662. *
  13663. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
  13664. * representing the BSSID of the AP to which the Roam is attempted.
  13665. *
  13666. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
  13667. * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
  13668. * attempted.
  13669. *
  13670. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, Frequency in MHz
  13671. * on which the roam is attempted.
  13672. *
  13673. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
  13674. * STA mode only. This represents the roam fail reason for the last failed
  13675. * roaming attempt by the firmware for the specific BSSID. Different roam
  13676. * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
  13677. */
  13678. enum qca_wlan_vendor_attr_roam_events_candidate_info {
  13679. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
  13680. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
  13681. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
  13682. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
  13683. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
  13684. /* keep last */
  13685. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
  13686. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
  13687. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
  13688. };
  13689. /**
  13690. * enum qca_wlan_vendor_attr_roam_events - Used by the
  13691. * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
  13692. * roam events to the driver or notify these events from the driver.
  13693. *
  13694. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
  13695. * driver/firmware to enable/disable the notification of roam events. It's a
  13696. * mandatory attribute and used only in the request from the userspace to the
  13697. * host driver. 1-Enable, 0-Disable.
  13698. * If the roaming is totally offloaded to the firmware, this request when
  13699. * enabled shall mandate the firmware to notify all the relevant roam events
  13700. * represented by the below attributes. If the host is in the suspend mode,
  13701. * the behavior of the firmware to notify these events is guided by
  13702. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
  13703. * these events in the suspend state, the firmware is expected to wake up the
  13704. * host before the respective events are notified. Please note that such a
  13705. * request to get the events in the suspend state will have a definite power
  13706. * implication.
  13707. *
  13708. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
  13709. * that the roam events need to be notified in the suspend state too. By
  13710. * default, these roam events are notified in the resume state. With this flag,
  13711. * the roam events are notified in both resume and suspend states.
  13712. * This attribute is used in the request from the userspace to the host driver.
  13713. *
  13714. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
  13715. * Represents the different roam event types, signified by the enum
  13716. * qca_wlan_vendor_roam_event_type.
  13717. * Each bit of this attribute represents the different roam even types reported
  13718. * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13719. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13720. *
  13721. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
  13722. * mode only. This represents the roam trigger reason for the last roaming
  13723. * attempted by the firmware. Each bit of this attribute represents the
  13724. * different roam trigger reason code which are defined in enum
  13725. * qca_vendor_roam_triggers.
  13726. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13727. *
  13728. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
  13729. * STA mode only. This represents the roam invoke fail reason for the last
  13730. * failed roam invoke. Different roam invoke failure reason codes
  13731. * are specified in enum qca_vendor_roam_invoke_fail_reasons.
  13732. *
  13733. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
  13734. * for which the roam is attempted. Each entry is a nested attribute defined
  13735. * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
  13736. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13737. *
  13738. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
  13739. * the scan state on which the roam events need to be notified. The values for
  13740. * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
  13741. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13742. *
  13743. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
  13744. * u32 values. List of frequencies in MHz considered for a roam scan.
  13745. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13746. */
  13747. enum qca_wlan_vendor_attr_roam_events {
  13748. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
  13749. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
  13750. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
  13751. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
  13752. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
  13753. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
  13754. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
  13755. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
  13756. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
  13757. /* keep last */
  13758. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
  13759. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
  13760. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1,
  13761. };
  13762. /*
  13763. * enum qca_wlan_ratemask_params_type - Rate mask config type.
  13764. *
  13765. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK_OFDM rate mask config
  13766. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
  13767. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
  13768. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
  13769. */
  13770. enum qca_wlan_ratemask_params_type {
  13771. QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
  13772. QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
  13773. QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
  13774. QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
  13775. };
  13776. /* enum qca_wlan_vendor_attr_ratemask_params - Used by the
  13777. * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
  13778. * This is used to set the rate mask value to be used in rate selection.
  13779. *
  13780. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
  13781. * Array of nested containing attributes
  13782. * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
  13783. * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
  13784. *
  13785. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
  13786. * the different phy types to which the rate mask config is to be applied.
  13787. * The values for this attribute are referred from enum
  13788. * qca_wlan_vendor_ratemask_params_type.
  13789. *
  13790. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
  13791. * A bit value of 1 represents rate is enabled and a value of 0
  13792. * represents rate is disabled.
  13793. * For HE targets, 12 bits correpond to one NSS setting.
  13794. * b0-13 => NSS1, MCS 0-13
  13795. * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
  13796. * For VHT targets, 10 bits correspond to one NSS setting.
  13797. * b0-9 => NSS1, MCS 0-9
  13798. * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
  13799. * For HT targets, 8 bits correspond to one NSS setting.
  13800. * b0-7 => NSS1, MCS 0-7
  13801. * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
  13802. * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
  13803. */
  13804. enum qca_wlan_vendor_attr_ratemask_params {
  13805. QCA_WLAN_VENDOR_ATTR_RATEMASK_INVALID = 0,
  13806. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
  13807. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
  13808. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
  13809. /* keep last */
  13810. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
  13811. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
  13812. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
  13813. };
  13814. /**
  13815. * enum qca_wlan_vendor_flush_pending_policy: Represents values for
  13816. * the policy to flush pending frames, configured via
  13817. * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
  13818. * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
  13819. *
  13820. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
  13821. * the flush policy configured before. This command basically disables the
  13822. * flush config set by the user.
  13823. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
  13824. * the flush policy to be immediate. All pending packets for the peer/TID are
  13825. * flushed when this command/policy is received.
  13826. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
  13827. * the flush policy to the end of TWT SP. All pending packets for the peer/TID
  13828. * are flushed when the end of TWT SP is reached.
  13829. */
  13830. enum qca_wlan_vendor_flush_pending_policy {
  13831. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
  13832. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
  13833. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
  13834. };
  13835. /**
  13836. * enum qca_wlan_vendor_attr_flush_pending - Attributes for
  13837. * flushing pending traffic in firmware.
  13838. *
  13839. * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
  13840. * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
  13841. * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
  13842. * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
  13843. * flush packets with access category. This is optional. See below.
  13844. * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
  13845. * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
  13846. * bit to 1 to act upon the TID. This is optional. Either this attribute or
  13847. * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
  13848. * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
  13849. * it is an error.
  13850. * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
  13851. * packets corresponding to the peer/TID provided. It is a u32 value,
  13852. * represented by %enum qca_wlan_vendor_flush_pending_policy. This
  13853. * value is honored only when TID mask is provided. This is not honored when AC
  13854. * mask is provided.
  13855. */
  13856. enum qca_wlan_vendor_attr_flush_pending {
  13857. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
  13858. QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
  13859. QCA_WLAN_VENDOR_ATTR_AC = 2,
  13860. QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
  13861. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
  13862. /* keep last */
  13863. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
  13864. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
  13865. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
  13866. };
  13867. /**
  13868. * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
  13869. * for) or drop existing PASN security association for the listed the
  13870. * peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
  13871. * to userspace.
  13872. *
  13873. * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
  13874. * devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
  13875. * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
  13876. * the driver to userspace to inform that the existing PASN keys of the
  13877. * peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
  13878. * not valid anymore.
  13879. */
  13880. enum qca_wlan_vendor_pasn_action {
  13881. QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
  13882. QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
  13883. };
  13884. /**
  13885. * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
  13886. * QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
  13887. *
  13888. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
  13889. * event from the driver to userspace and represents the local MAC address
  13890. * to be used for PASN handshake. When this attribute is present, userspace
  13891. * shall use the source address specified in this attribute by the driver
  13892. * for PASN handshake with peer device.
  13893. * This attribute is required in a command response from userspace to the
  13894. * driver and represents the MAC address that was used in PASN handshake
  13895. * with the peer device.
  13896. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
  13897. * peer device to which PASN handshake is requested in an event from the
  13898. * driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
  13899. * QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
  13900. * Indicates the MAC address of the peer device for which the keys are to
  13901. * be invalidated in an event from the driver to userspace when
  13902. * QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
  13903. * QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
  13904. * Indicates the MAC address of the peer device for which the status is
  13905. * being sent in a status report from userspace to the driver.
  13906. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
  13907. * in the event from the driver to userspace. When set, userspace is
  13908. * required to derive LTF key seed from KDK and set it to the driver.
  13909. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
  13910. * attribute is used in the command response from userspace to the driver.
  13911. * If present, it indicates the successful PASN handshake with the peer. If
  13912. * this flag is not present, it indicates that the PASN handshake with the
  13913. * peer device failed.
  13914. */
  13915. enum qca_wlan_vendor_attr_pasn_peer {
  13916. QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
  13917. QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
  13918. QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
  13919. QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
  13920. QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
  13921. /* keep last */
  13922. QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
  13923. QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
  13924. QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
  13925. };
  13926. /**
  13927. * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
  13928. * QCA_NL80211_VENDOR_SUBCMD_PASN command.
  13929. *
  13930. * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
  13931. * defined in enum qca_wlan_vendor_pasn_action and used only in an event
  13932. * from the driver to userspace.
  13933. * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
  13934. * details for each peer and used in both an event and a command response.
  13935. * The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
  13936. * defined in enum qca_wlan_vendor_attr_pasn_peer.
  13937. */
  13938. enum qca_wlan_vendor_attr_pasn {
  13939. QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
  13940. QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
  13941. QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
  13942. /* keep last */
  13943. QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
  13944. QCA_WLAN_VENDOR_ATTR_PASN_MAX =
  13945. QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
  13946. };
  13947. /**
  13948. * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
  13949. * the ranging security context derived from PASN for each peer. Used in
  13950. * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
  13951. *
  13952. * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
  13953. * context for the peer.
  13954. * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
  13955. * context for the peer.
  13956. */
  13957. enum qca_wlan_vendor_secure_ranging_ctx_action {
  13958. QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
  13959. QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
  13960. };
  13961. /**
  13962. * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
  13963. * used for deriving PASN keys to the driver. Used in
  13964. * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
  13965. * @QCA_WLAN_VENDOR_SHA_256: SHA-256
  13966. * @QCA_WLAN_VENDOR_SHA_384: SHA-384
  13967. */
  13968. enum qca_wlan_vendor_sha_type {
  13969. QCA_WLAN_VENDOR_SHA_256,
  13970. QCA_WLAN_VENDOR_SHA_384,
  13971. };
  13972. /**
  13973. * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
  13974. * to set security context for the PASN peer from userspace to the driver.
  13975. * Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
  13976. *
  13977. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
  13978. * values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
  13979. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
  13980. * was used during the PASN handshake.
  13981. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
  13982. * the peer device for which secure ranging context is being configured.
  13983. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
  13984. * hash algorithm to be used, possible values are defined in enum
  13985. * qca_wlan_vendor_sha_type.
  13986. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
  13987. * the temporal key generated from the PASN handshake. The length of this
  13988. * attribute is dependent on the value of
  13989. * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
  13990. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
  13991. * TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
  13992. * (e.g., 0x000FAC04).
  13993. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
  13994. * attribute, holds the LTF keyseed derived from KDK of PASN handshake.
  13995. * The length of this attribute is dependent on the value of
  13996. * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
  13997. *
  13998. */
  13999. enum qca_wlan_vendor_attr_secure_ranging_ctx {
  14000. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
  14001. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
  14002. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
  14003. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
  14004. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
  14005. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
  14006. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
  14007. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
  14008. /* keep last */
  14009. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
  14010. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
  14011. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
  14012. };
  14013. /**
  14014. * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used
  14015. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER
  14016. * nested attribute. The packets that match a filter will be replied with
  14017. * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY.
  14018. *
  14019. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4:
  14020. * u32 attribute. Destination IPv4 address in network byte order, the
  14021. * IPv4 packets with different address will be filtered out.
  14022. * This attribute is optional.
  14023. *
  14024. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC:
  14025. * Flag attribute. If it's present, indicates that
  14026. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast
  14027. * address; while if not, indicates that the address is a unicast/multicast
  14028. * address.
  14029. * This attribute is optional.
  14030. *
  14031. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6:
  14032. * NLA_BINARY attribute, length is 16 bytes.
  14033. * Destination IPv6 address in network byte order, the IPv6 packets
  14034. * with different destination address will be filtered out.
  14035. * This attribute is optional.
  14036. *
  14037. * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and
  14038. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured.
  14039. * Packets on both IPv4 and IPv6 will be processed if both are configured.
  14040. *
  14041. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT:
  14042. * u16 attribute. Destination UDP port, the packets with different destination
  14043. * UDP port will be filtered out.
  14044. * This attribute is mandatory.
  14045. *
  14046. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET:
  14047. * u32 attribute. Represents the offset (in UDP payload) of the data
  14048. * to be matched.
  14049. * This attribute is mandatory.
  14050. *
  14051. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA:
  14052. * NLA_BINARY attribute, the maximum allowed size is 16 bytes.
  14053. * Binary data that is compared bit-by-bit against the data (specified
  14054. * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP
  14055. * payload, the packets don't match will be filtered out.
  14056. * This attribute is mandatory.
  14057. */
  14058. enum qca_wlan_vendor_attr_coap_offload_filter {
  14059. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0,
  14060. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1,
  14061. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2,
  14062. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3,
  14063. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4,
  14064. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5,
  14065. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6,
  14066. /* keep last */
  14067. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST,
  14068. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX =
  14069. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1,
  14070. };
  14071. /**
  14072. * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used
  14073. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute.
  14074. *
  14075. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4:
  14076. * u32 attribute. Source address (in network byte order) for replying
  14077. * the matching broadcast/multicast IPv4 packets.
  14078. * This attribute is optional.
  14079. *
  14080. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6:
  14081. * NLA_BINARY attribute, length is 16 bytes.
  14082. * Source address (in network byte order) for replying the matching
  14083. * multicast IPv6 packets.
  14084. * This attribute is optional.
  14085. *
  14086. * For broadcast/multicast offload reply, one of
  14087. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and
  14088. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be
  14089. * configured according to version of the IP address(es) configured in
  14090. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER;
  14091. * while for unicast case, firmware will take the destination IP address
  14092. * in the received matching packet as the source address for replying.
  14093. *
  14094. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER:
  14095. * Nested attribute. Filter for the received UDP packets, only the matching
  14096. * packets will be replied and cached.
  14097. * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported
  14098. * attributes.
  14099. * This attribute is mandatory.
  14100. *
  14101. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG:
  14102. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  14103. * CoAP message (UDP payload) to be sent upon receiving matching packets.
  14104. * Firmware is responsible for adding any necessary protocol headers.
  14105. * This attribute is mandatory.
  14106. *
  14107. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME:
  14108. * u32 attribute. Expiration time in milliseconds of the cached CoAP messages.
  14109. * A cached message will be dropped by firmware if it's expired.
  14110. * This attribute is optional. A default value of 40000 will be used in the
  14111. * absence of it.
  14112. */
  14113. enum qca_wlan_vendor_attr_coap_offload_reply {
  14114. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0,
  14115. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1,
  14116. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2,
  14117. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3,
  14118. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4,
  14119. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5,
  14120. /* keep last */
  14121. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST,
  14122. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX =
  14123. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1,
  14124. };
  14125. /**
  14126. * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for
  14127. * CoAP message (UDP) transmitting on IPv4.
  14128. *
  14129. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR:
  14130. * u32 attribute. Source address (in network byte order) for transmitting
  14131. * packets on IPv4.
  14132. * This attribute is mandatory.
  14133. *
  14134. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT:
  14135. * u16 attribute. Source UDP port.
  14136. * This attribute is optional, a random port is taken if it's not present.
  14137. *
  14138. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR:
  14139. * u32 attribute. Destination IPv4 address (in network byte order).
  14140. * This attribute is mandatory.
  14141. *
  14142. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC:
  14143. * Flag attribute. If it's present, indicates that
  14144. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast
  14145. * address; while if not, indicates that the address is unicast/multicast
  14146. * address.
  14147. * This attribute is optional.
  14148. *
  14149. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT:
  14150. * u16 attribute. Destination UDP port.
  14151. * This attribute is mandatory.
  14152. */
  14153. enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 {
  14154. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0,
  14155. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1,
  14156. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2,
  14157. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3,
  14158. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4,
  14159. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5,
  14160. /* keep last */
  14161. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST,
  14162. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX =
  14163. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1,
  14164. };
  14165. /**
  14166. * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for
  14167. * CoAP message (UDP) transmitting on IPv6.
  14168. *
  14169. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR:
  14170. * NLA_BINARY attribute, length is 16 bytes.
  14171. * Source address (in network byte order) for transmitting packets on IPv6.
  14172. * This attribute is mandatory.
  14173. *
  14174. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT:
  14175. * u16 attribute. Source UDP port.
  14176. * This attribute is optional, a random port is taken if it's not present.
  14177. *
  14178. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR:
  14179. * NLA_BINARY attribute, length is 16 bytes.
  14180. * Destination IPv6 address (in network byte order).
  14181. * This attribute is mandatory.
  14182. *
  14183. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT:
  14184. * u16 attribute. Destination UDP port.
  14185. * This attribute is mandatory.
  14186. */
  14187. enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 {
  14188. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0,
  14189. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1,
  14190. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2,
  14191. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3,
  14192. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4,
  14193. /* keep last */
  14194. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST,
  14195. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX =
  14196. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1,
  14197. };
  14198. /**
  14199. * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used
  14200. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute.
  14201. *
  14202. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4:
  14203. * Nested attribute. The IPv4 source/destination address/port for offload
  14204. * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list
  14205. * of supported attributes.
  14206. * This attribute is optional.
  14207. *
  14208. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6:
  14209. * Nested attribute. The IPv6 source/destination address/port for offload
  14210. * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list
  14211. * of supported attributes.
  14212. * This attribute is optional.
  14213. *
  14214. * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and
  14215. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured.
  14216. * Firmware will transmit the packets on both IPv4 and IPv6 if both are
  14217. * configured.
  14218. *
  14219. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD:
  14220. * u32 attribute. Period in milliseconds for the periodic transmitting.
  14221. * This attribute is mandatory.
  14222. *
  14223. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG:
  14224. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  14225. * CoAP message (UDP payload) to be periodically transmitted. Firmware
  14226. * is responsible for adding any necessary protocol headers.
  14227. * This attribute is mandatory.
  14228. */
  14229. enum qca_wlan_vendor_attr_coap_offload_periodic_tx {
  14230. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0,
  14231. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1,
  14232. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2,
  14233. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3,
  14234. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4,
  14235. /* keep last */
  14236. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST,
  14237. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX =
  14238. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1,
  14239. };
  14240. /**
  14241. * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used
  14242. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute.
  14243. *
  14244. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS:
  14245. * u64 attribute. Received time (since system booted in microseconds) of
  14246. * the cached CoAP message.
  14247. * This attribute is mandatory.
  14248. *
  14249. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4:
  14250. * u32 attribute. Source IPv4 address (in network byte order) of the cached
  14251. * CoAP message.
  14252. * This attribute is optional.
  14253. *
  14254. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6:
  14255. * NLA_BINARY attribute, length is 16 bytes.
  14256. * Source IPv6 address (in network byte order) of the cached CoAP message.
  14257. * This attribute is optional.
  14258. *
  14259. * At most and at least one of
  14260. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and
  14261. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for
  14262. * an entry.
  14263. *
  14264. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG:
  14265. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  14266. * The cached CoAP message (UDP payload). If the actual message size is
  14267. * greater than the maximum size, it will be truncated and leaving only
  14268. * the first 1152 bytes.
  14269. * This attribute is mandatory.
  14270. */
  14271. enum qca_wlan_vendor_attr_coap_offload_cache_info {
  14272. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0,
  14273. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1,
  14274. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2,
  14275. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3,
  14276. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4,
  14277. /* keep last */
  14278. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST,
  14279. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX =
  14280. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1,
  14281. };
  14282. /**
  14283. * enum qca_wlan_vendor_coap_offload_action - Actions for
  14284. * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
  14285. *
  14286. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE:
  14287. * Enable CoAP offload reply.
  14288. * If it's enabled, firmware will start offload processing on each suspend
  14289. * and stop on each resume.
  14290. *
  14291. * Offload reply on match works as follows:
  14292. * Reply the packets that match the filter with the given CoAP
  14293. * message (with necessary protocol headers), increase the CoAP message
  14294. * ID in the given CoAP message by one for the next use after each successful
  14295. * transmission, and try to store the information of the received packet,
  14296. * including the received time, source IP address, and CoAP message (UDP
  14297. * payload).
  14298. *
  14299. * Firmware has a limit to the maximum stored entries, it takes the source IP
  14300. * address as the key of an entry, and keeps at most one entry for each key.
  14301. * A packet won't be stored if no entry for the same key is present and the
  14302. * total number of the existing unexpired entries reaches the maximum value.
  14303. *
  14304. * If any configured item is changed, user space should disable offload reply
  14305. * first and then issue a new enable request.
  14306. *
  14307. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE:
  14308. * Disable CoAP offload reply and return information of any cached CoAP
  14309. * messages.
  14310. *
  14311. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE:
  14312. * Enable CoAP offload periodic transmitting.
  14313. * If it's enabled, firmware will start offload periodic transmitting on
  14314. * each suspend and stop on each resume.
  14315. *
  14316. * Offload periodic transmitting works as follows:
  14317. * Send the given CoAP message (with necessary protocol headers) with the given
  14318. * source/destination IP address/UDP port periodically based on the given
  14319. * period and increase the CoAP message ID in the given CoAP message by one
  14320. * for the next use after each successful transmission.
  14321. *
  14322. * If any configured item is changed, user space should disable offload
  14323. * periodic transmitting first and then issue a new enable request.
  14324. *
  14325. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE:
  14326. * Disable CoAP offload periodic transmitting.
  14327. *
  14328. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET:
  14329. * Get information of the CoAP messages cached during offload reply
  14330. * processing. The cache is cleared after retrieval.
  14331. */
  14332. enum qca_wlan_vendor_coap_offload_action {
  14333. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0,
  14334. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1,
  14335. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2,
  14336. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3,
  14337. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4,
  14338. };
  14339. /**
  14340. * enum qca_wlan_vendor_attr_coap_offload - Used by the
  14341. * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
  14342. * This is used to set parameters for CoAP offload processing, or get
  14343. * cached CoAP messages from firmware.
  14344. *
  14345. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION:
  14346. * u32 attribute. Action to take in this vendor command.
  14347. * See enum qca_wlan_vendor_coap_offload_action for supported actions.
  14348. * This attribute is mandatory.
  14349. *
  14350. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID:
  14351. * u32 attribute. Represents the Request ID for the CoAP offload
  14352. * configuration, which can help to identify the user entity starting
  14353. * the CoAP offload processing and accordingly stop the respective
  14354. * ones/get the cached CoAP messages with the matching ID.
  14355. * This attribute is mandatory.
  14356. *
  14357. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY:
  14358. * Nested attribute. Parameters for offload reply.
  14359. * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of
  14360. * supported attributes.
  14361. * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
  14362. * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored
  14363. * otherwise.
  14364. *
  14365. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX:
  14366. * Nested attribute. Parameters for offload periodic transmitting.
  14367. * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of
  14368. * supported attributes.
  14369. * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is
  14370. * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored
  14371. * otherwise.
  14372. *
  14373. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES:
  14374. * Array of nested attributes. Information of the cached CoAP messages,
  14375. * where each entry is taken from
  14376. * enum qca_wlan_vendor_attr_coap_offload_cache_info.
  14377. * This attribute is used for reporting the cached CoAP messages
  14378. * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
  14379. * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or
  14380. * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no
  14381. * cached item if this attribute is not present.
  14382. */
  14383. enum qca_wlan_vendor_attr_coap_offload {
  14384. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0,
  14385. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1,
  14386. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2,
  14387. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3,
  14388. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4,
  14389. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5,
  14390. /* keep last */
  14391. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST,
  14392. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX =
  14393. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1,
  14394. };
  14395. /**
  14396. * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command
  14397. * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification
  14398. * Service (SCS) rule.
  14399. *
  14400. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute.
  14401. * Represents the unique id of SCS rule to be configured.
  14402. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute.
  14403. * Represents the request type: add, remove, or change.
  14404. * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request
  14405. * Type definitions).
  14406. *
  14407. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute
  14408. * in case of add/change request type.
  14409. * Represents the output traffic identifier (TID) to be assigned to the flow
  14410. * matching the rule.
  14411. *
  14412. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8
  14413. * attribute in case of add/change request type.
  14414. * Represents type of classifier parameters present in SCS rule.
  14415. * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type).
  14416. * Only classifier types 4 and 10 are supported for SCS.
  14417. *
  14418. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute
  14419. * in case of add/change request type when classifier type is TCLAS4.
  14420. * Represents the IP version (4: IPv4, 6: IPv6) of the rule.
  14421. *
  14422. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional
  14423. * attribute in case of add/change request type when classifier type is TCLAS4
  14424. * and version attribute is IPv4.
  14425. * Represents the source IPv4 address in the rule which is to be compared
  14426. * against the source IP address in the IPv4 header.
  14427. *
  14428. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional
  14429. * attribute in case of add/change request type when classifier type is TCLAS4
  14430. * and version attribute is IPv4.
  14431. * Represents the destination IPv4 address in the rule which is to be compared
  14432. * against the destination IP address in the IPv4 header.
  14433. *
  14434. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional
  14435. * attribute in case of add/change request type when classifier type is TCLAS4
  14436. * and version attribute is IPv6.
  14437. * Represents the source IPv6 address in the rule which is to be compared
  14438. * against the source IP address in the IPv6 header.
  14439. *
  14440. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional
  14441. * attribute in case of add/change request type when classifier type is TCLAS4
  14442. * and version attribute is IPv6.
  14443. * Represents the destination IPv6 address in the rule which is to be compared
  14444. * against the destination IP address in the IPv6 header.
  14445. *
  14446. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute
  14447. * in case of add/change request type when classifier type is TCLAS4.
  14448. * Represents the source port number in the rule which is to be compared against
  14449. * the source port number in the protocol header.
  14450. *
  14451. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute
  14452. * in case of add/change request type when classifier type is TCLAS4.
  14453. * Represents the destination port number in the rule which is to be compared
  14454. * against the destination port number in the protocol header.
  14455. *
  14456. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute
  14457. * in case of add/change request type when classifier type is TCLAS4.
  14458. * Represents the DSCP value in the rule which is to be compared against the
  14459. * DSCP field present in the IP header.
  14460. *
  14461. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8
  14462. * attribute in case of add/change request type when classifier type is TCLAS4.
  14463. * Represents the protocol/next header in the rule which is to be compared
  14464. * against the protocol/next header field present in the IPv4/IPv6 header.
  14465. *
  14466. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional
  14467. * attribute of size 3 bytes present in case of add/change request type
  14468. * when classifier type is TCLAS4 and version is IPv6.
  14469. * Represents the flow label value in the rule which is to be compared against
  14470. * the flow label field present in the IPv6 header.
  14471. *
  14472. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8
  14473. * attribute in case of add/change request type when classifier type is TCLAS10.
  14474. * Represents the protocol instance number in the rule.
  14475. *
  14476. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8
  14477. * attribute in case of add/change request type when classifier type is TCLAS10.
  14478. * Represents the protocol/next header in the rule which is to be compared
  14479. * against the protocol/next header field present in the IPv4/IPv6 header.
  14480. *
  14481. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional
  14482. * attribute of variable length present when request type is add/change and
  14483. * classifier type is TCLAS10.
  14484. * Represents the mask to be used for masking the header contents of the header
  14485. * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER
  14486. * attribute.
  14487. *
  14488. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional
  14489. * attribute of variable length present when request type is add/change and
  14490. * classifier type is TCLAS10.
  14491. * Represents the value to be compared against after masking the header contents
  14492. * of the header specified by the
  14493. * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the
  14494. * filter mask specified by the
  14495. * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute.
  14496. *
  14497. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16
  14498. * attribute.
  14499. * Represents the service class id of the configured SCS rule.
  14500. *
  14501. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR: Optional 6 bytes
  14502. * MAC address.
  14503. * Represents the destination MAC address in the rule.
  14504. *
  14505. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX: Optional u32 attribute
  14506. * Represents the netdevice interface index in the rule.
  14507. */
  14508. enum qca_wlan_vendor_attr_scs_rule_config {
  14509. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0,
  14510. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1,
  14511. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2,
  14512. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3,
  14513. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4,
  14514. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5,
  14515. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6,
  14516. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7,
  14517. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8,
  14518. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9,
  14519. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10,
  14520. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11,
  14521. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12,
  14522. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13,
  14523. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14,
  14524. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15,
  14525. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16,
  14526. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17,
  14527. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18,
  14528. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19,
  14529. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR = 20,
  14530. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX = 21,
  14531. /* Keep last */
  14532. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST,
  14533. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX =
  14534. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1,
  14535. };
  14536. /**
  14537. * enum qca_wlan_vendor_sar_version - This describes the current SAR version
  14538. * used in the firmware.
  14539. *
  14540. * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR.
  14541. * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits.
  14542. *
  14543. * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2,
  14544. * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for
  14545. * each CTL group. So user can select up to 6 SAR indexes from the current CTL
  14546. * groups.
  14547. *
  14548. * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3,
  14549. * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each
  14550. * CTL group but user can choose up to 3 SAR set index only, as the top half
  14551. * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of
  14552. * the SAR index (3 to 5) is used for DBS mode.
  14553. */
  14554. enum qca_wlan_vendor_sar_version {
  14555. QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0,
  14556. QCA_WLAN_VENDOR_SAR_VERSION_1 = 1,
  14557. QCA_WLAN_VENDOR_SAR_VERSION_2 = 2,
  14558. QCA_WLAN_VENDOR_SAR_VERSION_3 = 3,
  14559. };
  14560. /**
  14561. * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether
  14562. * CTL grouping is enabled or disabled in the firmware.
  14563. *
  14564. * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping
  14565. * is enabled in firmware.
  14566. *
  14567. * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping
  14568. * is disabled in firmware.
  14569. *
  14570. */
  14571. enum qca_wlan_vendor_sar_ctl_group_state {
  14572. QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0,
  14573. QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1,
  14574. QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2,
  14575. };
  14576. /**
  14577. * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command
  14578. * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities
  14579. * supported by the firmware.
  14580. * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION:
  14581. * u32 attribute. This field describes current SAR version supported by the
  14582. * firmware.
  14583. * See enum qca_wlan_vendor_sar_version for more information.
  14584. * This attribute is mandatory.
  14585. * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE:
  14586. * u32 attribute. This field describes whether CTL groups are enabled
  14587. * or disabled in the firmware.
  14588. * See enum qca_wlan_vendor_sar_ctl_group_state for more information.
  14589. * This attribute is optional.
  14590. */
  14591. enum qca_wlan_vendor_attr_sar_capability {
  14592. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0,
  14593. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1,
  14594. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2,
  14595. /* Keep last */
  14596. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST,
  14597. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX =
  14598. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1,
  14599. };
  14600. /**
  14601. * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics.
  14602. * These statistics are sent from the driver in a response when userspace
  14603. * queries to get the statistics using the operation
  14604. * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset
  14605. * by the driver when the SR feature is enabled, when the driver receives
  14606. * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected.
  14607. *
  14608. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
  14609. * Mandatory only when non-SRG is supported by the AP and optional otherwise.
  14610. * This represents the number of non-SRG TX opportunities.
  14611. *
  14612. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
  14613. * Mandatory only when non-SRG is supported by the AP and optional otherwise.
  14614. * This represents the number of non-SRG PPDUs tried to transmit.
  14615. *
  14616. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
  14617. * Mandatory only when non-SRG is supported by the AP and optional otherwise.
  14618. * This represents the number of non-SRG PPDUs successfully transmitted.
  14619. *
  14620. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
  14621. * Mandatory only when SRG is supported by the AP and optional otherwise.
  14622. * This represents the number of SRG TX opportunities.
  14623. *
  14624. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
  14625. * Mandatory only when SRG is supported by the AP and optional otherwise.
  14626. * This represents the number of SRG PPDUs tried to transmit.
  14627. *
  14628. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
  14629. * Mandatory only when SRG is supported by the AP and optional otherwise.
  14630. * This represents the number of SRG PPDUs successfully transmitted.
  14631. */
  14632. enum qca_wlan_vendor_attr_sr_stats {
  14633. QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0,
  14634. QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1,
  14635. QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2,
  14636. QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3,
  14637. QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4,
  14638. QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5,
  14639. QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6,
  14640. /* Keep last */
  14641. QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST,
  14642. QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX =
  14643. QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1,
  14644. };
  14645. /**
  14646. * enum qca_wlan_sr_reason_code - Defines the different reason codes used in
  14647. * Spatial Reuse feature.
  14648. *
  14649. * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to
  14650. * roaming to an AP that doesn't support/supports SR feature, respectively.
  14651. *
  14652. * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due
  14653. * to change in concurrent interfaces that are supported by the driver.
  14654. */
  14655. enum qca_wlan_sr_reason_code {
  14656. QCA_WLAN_SR_REASON_CODE_ROAMING = 0,
  14657. QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1,
  14658. };
  14659. /**
  14660. * enum qca_wlan_sr_operation - Defines the different types of SR operations.
  14661. * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION.
  14662. *
  14663. * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the
  14664. * driver to enable the Spatial Reuse feature. Attributes
  14665. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
  14666. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this
  14667. * operation.
  14668. *
  14669. * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the
  14670. * driver to disable the Spatial Reuse feature.
  14671. *
  14672. * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an
  14673. * asynchronous event sent to userspace when the SR feature is disabled.
  14674. * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE
  14675. * and sent along with the asynchronous event.
  14676. *
  14677. * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an
  14678. * asynchronous event when the SR feature is enabled again after the SR feature
  14679. * was suspended by the driver earlier. The enable reason is
  14680. * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are
  14681. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
  14682. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD.
  14683. *
  14684. * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is
  14685. * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial
  14686. * reuse transmissions. Userspace sends this operation to the driver.
  14687. * The driver/firmware upon receiving this operation shall prohibit PSR-based
  14688. * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
  14689. *
  14690. * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is
  14691. * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial
  14692. * reuse transmissions. Userspace sends this operation to the driver.
  14693. * The driver/firmware upon receiving this operation shall allow PSR-based
  14694. * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
  14695. *
  14696. * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the
  14697. * driver to get the SR statistics and the driver sends a synchronous response
  14698. * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the
  14699. * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS.
  14700. *
  14701. * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the
  14702. * driver to clear the SR statistics and upon receiving this operation
  14703. * the driver/firmware shall clear the SR statistics.
  14704. *
  14705. * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the
  14706. * driver to get the SR parameters and the driver sends the synchronous response
  14707. * with the following required attributes:
  14708. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
  14709. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
  14710. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
  14711. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
  14712. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
  14713. *
  14714. * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an
  14715. * asynchronous event to userspace to update any changes in SR parameters.
  14716. * The following attributes are used with this operation:
  14717. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
  14718. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
  14719. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
  14720. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
  14721. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
  14722. */
  14723. enum qca_wlan_sr_operation {
  14724. QCA_WLAN_SR_OPERATION_SR_ENABLE = 0,
  14725. QCA_WLAN_SR_OPERATION_SR_DISABLE = 1,
  14726. QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2,
  14727. QCA_WLAN_SR_OPERATION_SR_RESUME = 3,
  14728. QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4,
  14729. QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5,
  14730. QCA_WLAN_SR_OPERATION_GET_STATS = 6,
  14731. QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7,
  14732. QCA_WLAN_SR_OPERATION_GET_PARAMS = 8,
  14733. QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9,
  14734. };
  14735. /**
  14736. * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration
  14737. * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS.
  14738. *
  14739. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute.
  14740. * This attribute is optionally set in response to
  14741. * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to
  14742. * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std
  14743. * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more
  14744. * about HESIGA_Spatial_reuse_value15_allowed.
  14745. *
  14746. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute.
  14747. * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS
  14748. * operation. This indicates whether non-SRG OBSS PD SR transmissions are
  14749. * allowed or not at non-AP STAs that are associated with the AP. If present
  14750. * non-SRG OBSS PD SR transmissions are not allowed else are allowed.
  14751. *
  14752. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8
  14753. * attribute. This attribute is used in response to
  14754. * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
  14755. * Min Offset field which contains an unsigned integer that is added to -82 dBm
  14756. * to generate the value of the SRG OBSS PD Min parameter.
  14757. *
  14758. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8
  14759. * attribute. This attribute is used in response to
  14760. * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
  14761. * Max Offset field which contains an unsigned integer that is added to -82 dBm
  14762. * to generate the value of the SRG OBSS PD Max parameter.
  14763. *
  14764. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8
  14765. * attribute. This attribute is used in response to
  14766. * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS
  14767. * PD Max Offset field which contains an unsigned integer that is added to -82
  14768. * dBm to generate the value of the Non-SRG OBSS PD Max parameter.
  14769. *
  14770. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm).
  14771. * Userspace optionally sends this attribute with
  14772. * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
  14773. * preferred SRG PD threshold. The driver shall send this attribute to
  14774. * userspace in SR resume event to indicate the PD threshold being used for SR.
  14775. * When there is change in SRG PD threshold (for example, due to roaming, etc.)
  14776. * the driver shall indicate the userspace the newly configured SRG PD threshold
  14777. * using an asynchronous event.
  14778. *
  14779. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm).
  14780. * Userspace optionally sends this attribute with
  14781. * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
  14782. * preferred non-SRG PD threshold. The driver shall send this attribute to
  14783. * userspace in SR resume event to indicate the PD threshold being used for SR.
  14784. * When there is change in non-SRG PD threshold (for example, due to roaming,
  14785. * etc.) the driver shall indicate the userspace the newly configured non-SRG PD
  14786. * threshold using an asynchronous event.
  14787. *
  14788. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible
  14789. * values are defined in enum qca_wlan_sr_reason_code. This
  14790. * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and
  14791. * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations.
  14792. */
  14793. enum qca_wlan_vendor_attr_sr_params {
  14794. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0,
  14795. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1,
  14796. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2,
  14797. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3,
  14798. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4,
  14799. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5,
  14800. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6,
  14801. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7,
  14802. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8,
  14803. /* keep last */
  14804. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST,
  14805. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX =
  14806. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1,
  14807. };
  14808. /**
  14809. * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor
  14810. * command QCA_NL80211_VENDOR_SUBCMD_SR.
  14811. *
  14812. * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests
  14813. * from userspace to the driver. Possible values are defined in enum
  14814. * qca_wlan_sr_operation.
  14815. *
  14816. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR
  14817. * configuration parameters. The possible attributes inside this attribute are
  14818. * defined in enum qca_wlan_vendor_attr_sr_params.
  14819. * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
  14820. * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and
  14821. * also in response from the driver to userspace when the response is sent for
  14822. * %QCA_WLAN_SR_OPERATION_GET_PARAMS.
  14823. * The driver uses this attribute in asynchronous events in which the operation
  14824. * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME,
  14825. * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS.
  14826. *
  14827. * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR
  14828. * statistics. These attributes used inside this are defined in enum
  14829. * qca_wlan_vendor_attr_sr_stats.
  14830. * This attribute is used in response from the driver to a command in which
  14831. * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
  14832. * %QCA_WLAN_SR_OPERATION_GET_STATS.
  14833. */
  14834. enum qca_wlan_vendor_attr_sr {
  14835. QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0,
  14836. QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1,
  14837. QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2,
  14838. QCA_WLAN_VENDOR_ATTR_SR_STATS = 3,
  14839. /* Keep last */
  14840. QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST,
  14841. QCA_WLAN_VENDOR_ATTR_SR_MAX =
  14842. QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1,
  14843. };
  14844. /**
  14845. * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes
  14846. * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand.
  14847. *
  14848. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address
  14849. * used by the peer on the link that corresponds to the link used for sending
  14850. * the event notification.
  14851. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte
  14852. * MLD MAC address of the peer.
  14853. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute,
  14854. * used to pass ifindex of the primary netdev.
  14855. */
  14856. enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event {
  14857. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0,
  14858. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1,
  14859. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2,
  14860. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3,
  14861. /* keep last */
  14862. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST,
  14863. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX =
  14864. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1,
  14865. };
  14866. /**
  14867. * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with
  14868. * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and
  14869. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range
  14870. * and PSD information.
  14871. *
  14872. * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is
  14873. * u32. This attribute is used to indicate the start of the queried frequency
  14874. * range in MHz.
  14875. *
  14876. * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32.
  14877. * This attribute is used to indicate the end of the queried frequency range
  14878. * in MHz.
  14879. *
  14880. * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32.
  14881. * This attribute will contain the PSD information for a single range as
  14882. * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and
  14883. * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes.
  14884. *
  14885. * The PSD power info (dBm/MHz) from user space should be multiplied
  14886. * by a factor of 100 when sending to the driver to preserve granularity
  14887. * up to 2 decimal places.
  14888. * Example:
  14889. * PSD power value: 10.21 dBm/MHz
  14890. * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021.
  14891. *
  14892. * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only
  14893. * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with
  14894. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when
  14895. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  14896. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
  14897. *
  14898. * The following set of attributes will be used to exchange frequency and
  14899. * corresponding PSD information for AFC between the user space and the driver.
  14900. */
  14901. enum qca_wlan_vendor_attr_afc_freq_psd_info {
  14902. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0,
  14903. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1,
  14904. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2,
  14905. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3,
  14906. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST,
  14907. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX =
  14908. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1,
  14909. };
  14910. /**
  14911. * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with
  14912. * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the
  14913. * channel list and corresponding EIRP information.
  14914. *
  14915. * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8.
  14916. * This attribute is used to indicate queried channel from
  14917. * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO.
  14918. *
  14919. * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32.
  14920. * This attribute is used to configure the EIRP power info corresponding
  14921. * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM.
  14922. * The EIRP power info(dBm) from user space should be multiplied
  14923. * by a factor of 100 when sending to Driver to preserve granularity up to
  14924. * 2 decimal places.
  14925. * Example:
  14926. * EIRP power value: 34.23 dBm
  14927. * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423.
  14928. *
  14929. * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with
  14930. * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
  14931. * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when
  14932. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  14933. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE:
  14934. *
  14935. * The following set of attributes will be used to exchange Channel and
  14936. * corresponding EIRP information for AFC between the user space and Driver.
  14937. */
  14938. enum qca_wlan_vendor_attr_afc_chan_eirp_info {
  14939. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0,
  14940. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1,
  14941. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2,
  14942. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST,
  14943. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX =
  14944. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1,
  14945. };
  14946. /**
  14947. * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested
  14948. * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
  14949. * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class,
  14950. * channel, and EIRP related information.
  14951. *
  14952. * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8.
  14953. * This attribute is used to indicate the operating class, as listed under
  14954. * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list.
  14955. *
  14956. * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes
  14957. * for updating the channel number and EIRP power information.
  14958. * It uses the attributes defined in
  14959. * enum qca_wlan_vendor_attr_afc_chan_eirp_info.
  14960. *
  14961. * Operating class information packing format for
  14962. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
  14963. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  14964. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY.
  14965. *
  14966. * m - Total number of operating classes.
  14967. * n, j - Number of queried channels for the corresponding operating class.
  14968. *
  14969. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
  14970. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
  14971. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  14972. * .....
  14973. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
  14974. * ....
  14975. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
  14976. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
  14977. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  14978. * ....
  14979. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
  14980. *
  14981. * Operating class information packing format for
  14982. * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
  14983. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
  14984. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  14985. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
  14986. *
  14987. * m - Total number of operating classes.
  14988. * n, j - Number of channels for the corresponding operating class.
  14989. *
  14990. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
  14991. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
  14992. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  14993. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
  14994. * .....
  14995. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
  14996. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1]
  14997. * ....
  14998. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
  14999. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
  15000. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  15001. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
  15002. * ....
  15003. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
  15004. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1]
  15005. *
  15006. * The following set of attributes will be used to exchange operating class
  15007. * information for AFC between the user space and the driver.
  15008. */
  15009. enum qca_wlan_vendor_attr_afc_opclass_info {
  15010. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0,
  15011. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1,
  15012. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2,
  15013. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST,
  15014. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX =
  15015. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1,
  15016. };
  15017. /**
  15018. * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type.
  15019. * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute.
  15020. *
  15021. * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the
  15022. * driver to userspace in order to query the new AFC power values.
  15023. *
  15024. * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update
  15025. * complete event will be sent from the driver to userspace to indicate
  15026. * processing of the AFC response.
  15027. *
  15028. * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event
  15029. * will be sent from the driver to userspace to indicate last received
  15030. * AFC response data has been cleared on the AP due to invalid data
  15031. * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE.
  15032. *
  15033. * The following enum defines the different event types that will be
  15034. * used by the driver to help trigger corresponding AFC functionality in user
  15035. * space.
  15036. */
  15037. enum qca_wlan_vendor_afc_event_type {
  15038. QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0,
  15039. QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1,
  15040. QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2,
  15041. };
  15042. /**
  15043. * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP
  15044. * deployment type.
  15045. * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute.
  15046. *
  15047. * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment.
  15048. *
  15049. * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment.
  15050. *
  15051. * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment.
  15052. *
  15053. * The following enum defines different deployment modes that the AP might
  15054. * come up in. This information will be essential to retrieve deployment-type
  15055. * specific SP power values for AFC operation.
  15056. */
  15057. enum qca_wlan_vendor_afc_ap_deployment_type {
  15058. QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0,
  15059. QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1,
  15060. QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2,
  15061. };
  15062. /**
  15063. * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to
  15064. * indicate AFC response status.
  15065. * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute.
  15066. *
  15067. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success
  15068. *
  15069. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication
  15070. * command was not received within the expected time of the AFC expiry event
  15071. * being triggered.
  15072. *
  15073. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data
  15074. * parsing error by the driver.
  15075. *
  15076. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local
  15077. * error.
  15078. *
  15079. * The following enum defines the status codes that the driver will use to
  15080. * indicate whether the AFC data is valid or not.
  15081. */
  15082. enum qca_wlan_vendor_afc_evt_status_code {
  15083. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0,
  15084. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1,
  15085. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2,
  15086. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3,
  15087. };
  15088. /**
  15089. * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with
  15090. * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will
  15091. * support sending only a single request to the user space at a time.
  15092. *
  15093. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute.
  15094. * Used with event to notify the type of AFC event received.
  15095. * Valid values are defined in enum qca_wlan_vendor_afc_event_type.
  15096. *
  15097. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when
  15098. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
  15099. * otherwise unused.
  15100. *
  15101. * This attribute is used to indicate the AP deployment type in the AFC request.
  15102. * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type.
  15103. *
  15104. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute.
  15105. * Unique request identifier generated by the AFC client for every
  15106. * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID.
  15107. * The user space application is responsible for ensuring no duplicate values
  15108. * are in-flight with the server, e.g., by delaying a request, should the same
  15109. * value be received from different radios in parallel.
  15110. *
  15111. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional.
  15112. * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15113. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused.
  15114. *
  15115. * This attribute indicates the AFC spec version information. This will
  15116. * indicate the AFC version AFC client must use to query the AFC data.
  15117. * Bits 15:0 - Minor version
  15118. * Bits 31:16 - Major version
  15119. *
  15120. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when
  15121. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
  15122. * otherwise unused.
  15123. * This attribute indicates the minimum desired power (in dBm) for
  15124. * the queried spectrum.
  15125. *
  15126. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when
  15127. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15128. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15129. *
  15130. * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code.
  15131. * This attribute is used to indicate if there were any errors parsing the
  15132. * AFC response.
  15133. *
  15134. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required
  15135. * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15136. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15137. *
  15138. * This attribute indicates the AFC response code. The AFC response codes are
  15139. * in the following categories:
  15140. * -1: General Failure.
  15141. * 0: Success.
  15142. * 100 - 199: General errors related to protocol.
  15143. * 300 - 399: Error events specific to message exchange
  15144. * for the Available Spectrum Inquiry.
  15145. *
  15146. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when
  15147. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15148. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15149. *
  15150. * This attribute indicates the date until which the current response is
  15151. * valid for in UTC format.
  15152. * Date format: bits 7:0 - DD (Day 1-31)
  15153. * bits 15:8 - MM (Month 1-12)
  15154. * bits 31:16 - YYYY (Year)
  15155. *
  15156. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when
  15157. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15158. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15159. *
  15160. * This attribute indicates the time until which the current response is
  15161. * valid for in UTC format.
  15162. * Time format: bits 7:0 - SS (Seconds 0-59)
  15163. * bits 15:8 - MM (Minutes 0-59)
  15164. * bits 23:16 - HH (Hours 0-23)
  15165. * bits 31:24 - Reserved
  15166. *
  15167. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes
  15168. * for updating the list of frequency ranges to be queried.
  15169. * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15170. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
  15171. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15172. * It uses the attributes defined in
  15173. * enum qca_wlan_vendor_attr_afc_freq_psd_info.
  15174. *
  15175. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes
  15176. * for updating the list of operating classes and corresponding channels to be
  15177. * queried.
  15178. * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15179. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
  15180. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15181. * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info.
  15182. */
  15183. enum qca_wlan_vendor_attr_afc_event {
  15184. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0,
  15185. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1,
  15186. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2,
  15187. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3,
  15188. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4,
  15189. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5,
  15190. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6,
  15191. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7,
  15192. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8,
  15193. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9,
  15194. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10,
  15195. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11,
  15196. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST,
  15197. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX =
  15198. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1,
  15199. };
  15200. /**
  15201. * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used
  15202. * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes
  15203. * will support sending only a single AFC response to the driver at a time.
  15204. *
  15205. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute.
  15206. * This attribute will be used to send a single Spectrum Inquiry response object
  15207. * from the 'availableSpectrumInquiryResponses' array object from the response
  15208. * JSON.
  15209. *
  15210. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute.
  15211. *
  15212. * This attribute indicates the period (in seconds) for which the response
  15213. * data received is valid for.
  15214. *
  15215. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute.
  15216. *
  15217. * This attribute indicates the request ID for which the corresponding
  15218. * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID.
  15219. *
  15220. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute.
  15221. *
  15222. * This attribute indicates the date until which the current response is
  15223. * valid for in UTC format.
  15224. * Date format: bits 7:0 - DD (Day 1-31)
  15225. * bits 15:8 - MM (Month 1-12)
  15226. * bits 31:16 - YYYY (Year)
  15227. *
  15228. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME: Required u32 attribute.
  15229. *
  15230. * This attribute indicates the time until which the current response is
  15231. * valid for in UTC format.
  15232. * Time format: bits 7:0 - SS (Seconds 0-59)
  15233. * bits 15:8 - MM (Minutes 0-59)
  15234. * bits 23:16 - HH (Hours 0-23)
  15235. * bits 31:24 - Reserved
  15236. *
  15237. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute.
  15238. *
  15239. * This attribute indicates the AFC response code. The AFC response codes are
  15240. * in the following categories:
  15241. * -1: General Failure.
  15242. * 0: Success.
  15243. * 100 - 199: General errors related to protocol.
  15244. * 300 - 399: Error events specific to message exchange
  15245. * for the Available Spectrum Inquiry.
  15246. *
  15247. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes
  15248. * for PSD info of all the queried frequency ranges. It uses the attributes
  15249. * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute.
  15250. *
  15251. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested
  15252. * attributes for EIRP info of all queried operating class/channels. It uses
  15253. * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and
  15254. * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute.
  15255. *
  15256. */
  15257. enum qca_wlan_vendor_attr_afc_response {
  15258. QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0,
  15259. QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1,
  15260. QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2,
  15261. QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3,
  15262. QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4,
  15263. QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5,
  15264. QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6,
  15265. QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7,
  15266. QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8,
  15267. QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST,
  15268. QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX =
  15269. QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1,
  15270. };
  15271. /**
  15272. * enum qca_wlan_dozed_ap_state - Doze states for AP interface
  15273. *
  15274. * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface.
  15275. *
  15276. * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts
  15277. * beaconing at higher beacon interval with Rx disabled.
  15278. */
  15279. enum qca_wlan_dozed_ap_state {
  15280. QCA_WLAN_DOZED_AP_DISABLE = 0,
  15281. QCA_WLAN_DOZED_AP_ENABLE = 1,
  15282. };
  15283. /**
  15284. * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command
  15285. * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode
  15286. * configuration.
  15287. *
  15288. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute.
  15289. * Configures the doze state for an AP interface. Possible values are defined
  15290. * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event
  15291. * gets triggered asynchronously to provide updated AP interface configuration.
  15292. *
  15293. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by
  15294. * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP
  15295. * command, which is used later to maintain synchronization between commands
  15296. * and asynchronous events.
  15297. *
  15298. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute.
  15299. * Used in event to indicate the next TBTT TSF timer value after applying the
  15300. * doze mode configuration. Next TBTT TSF is the time at which the AP sends
  15301. * the first beacon after entering or exiting dozed mode.
  15302. *
  15303. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute.
  15304. * Used with event to inform the periodicity of beacon transmission that would
  15305. * be skipped at all TBTTs in between.
  15306. */
  15307. enum qca_wlan_vendor_attr_dozed_ap {
  15308. QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0,
  15309. QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1,
  15310. QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2,
  15311. QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3,
  15312. QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4,
  15313. /* Keep last */
  15314. QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST,
  15315. QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX =
  15316. QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1,
  15317. };
  15318. /**
  15319. * enum qca_wlan_vendor_monitor_mode_status - Represents the status codes
  15320. * used with QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE.
  15321. * @QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING: Used to indicate no
  15322. * capture running status.
  15323. * @QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING: Used to indicate
  15324. * capture running status.
  15325. **/
  15326. enum qca_wlan_vendor_monitor_mode_status {
  15327. QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING = 0,
  15328. QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING = 1,
  15329. };
  15330. /**
  15331. * enum qca_wlan_vendor_attr_get_monitor_mode - Used by the
  15332. * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE to report
  15333. * information regarding the local packet capture over the monitor mode.
  15334. *
  15335. * @QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS: u32 attribute. This attribute
  15336. * represents the status of the start capture commands. The values used with
  15337. * this attribute are defined in enum qca_wlan_vendor_monitor_mode_status. This
  15338. * is returned by the driver in the response to the command.
  15339. */
  15340. enum qca_wlan_vendor_attr_get_monitor_mode {
  15341. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_INVALID = 0,
  15342. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS = 1,
  15343. /* Keep last */
  15344. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST,
  15345. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_MAX =
  15346. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST - 1,
  15347. };
  15348. /**
  15349. * enum qca_wlan_vendor_link_state_op_types - Defines different types of
  15350. * operations for which %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE can be used.
  15351. * Will be used with %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE attribute.
  15352. *
  15353. * @QCA_WLAN_VENDOR_LINK_STATE_OP_GET - Get the MLO links state information.
  15354. * @QCA_WLAN_VENDOR_LINK_STATE_OP_SET - Set the MLO links state information.
  15355. */
  15356. enum qca_wlan_vendor_link_state_op_types {
  15357. QCA_WLAN_VENDOR_LINK_STATE_OP_GET = 0,
  15358. QCA_WLAN_VENDOR_LINK_STATE_OP_SET = 1,
  15359. };
  15360. /**
  15361. * enum qca_wlan_vendor_link_state_control_modes - Represents the types of MLO
  15362. * links state control modes. This enum is used by
  15363. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE attribute.
  15364. *
  15365. * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT: MLO links state controlled
  15366. * by the driver.
  15367. * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER: MLO links state controlled by
  15368. * user space.
  15369. * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED: User space provides the
  15370. * desired number of MLO links to operate in active state at any given time.
  15371. * The driver will choose which MLO links should operate in the active state.
  15372. * See enum qca_wlan_vendor_link_state for active state definition.
  15373. */
  15374. enum qca_wlan_vendor_link_state_control_modes {
  15375. QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT = 0,
  15376. QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER = 1,
  15377. QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED = 2,
  15378. };
  15379. /**
  15380. * enum qca_wlan_vendor_link_state_operation_modes - Represents the types of MLO
  15381. * links state operation modes. This enum is used by
  15382. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE attribute.
  15383. *
  15384. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT: In the default operation
  15385. * mode, the driver selects the operating mode of the links, without any
  15386. * guidance from the user space.
  15387. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY: In the low latency
  15388. * operation mode the driver should select MLO links that will achieve low
  15389. * latency.
  15390. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT: In the high
  15391. * throughput operation mode the driver should select MLO links that will
  15392. * achieve higher throughput.
  15393. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER: In the low power
  15394. * operation mode the driver should select MLO links that will achieve low
  15395. * power.
  15396. */
  15397. enum qca_wlan_vendor_link_state_operation_modes {
  15398. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT = 0,
  15399. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY = 1,
  15400. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT = 2,
  15401. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER = 3,
  15402. };
  15403. /**
  15404. * enum qca_wlan_vendor_link_state - Represents the possible link states of an
  15405. * MLO link.
  15406. *
  15407. * @QCA_WLAN_VENDOR_LINK_STATE_INACTIVE: In this state, the link will not
  15408. * be used for data transmission but it can have TIDs mapped to it. It will be
  15409. * in doze state always and does not monitor the beacons.
  15410. * @QCA_WLAN_VENDOR_LINK_STATE_ACTIVE: In this state, the link will be
  15411. * used for data TX/RX and monitors the beacons to check TIM bit indication.
  15412. * It may enter doze state and comes out based on the transmit data traffic and
  15413. * TIM bit indication in the beacon.
  15414. */
  15415. enum qca_wlan_vendor_link_state {
  15416. QCA_WLAN_VENDOR_LINK_STATE_INACTIVE = 0,
  15417. QCA_WLAN_VENDOR_LINK_STATE_ACTIVE = 1,
  15418. };
  15419. /**
  15420. * enum qca_wlan_vendor_attr_link_state_config - Definition of attributes used
  15421. * inside nested attribute %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG.
  15422. *
  15423. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID: u8 attribute, link ID of the
  15424. * MLO link.
  15425. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE: u32 attribute. See
  15426. * enum qca_wlan_vendor_link_state for possible MLO link states.
  15427. */
  15428. enum qca_wlan_vendor_attr_link_state_config {
  15429. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_INVALID = 0,
  15430. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID = 1,
  15431. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE = 2,
  15432. /* Keep last */
  15433. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST,
  15434. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_MAX =
  15435. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST - 1,
  15436. };
  15437. /**
  15438. * enum qca_wlan_vendor_attr_mlo_link_state - Attributes used by
  15439. * %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE vendor command.
  15440. *
  15441. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE: u32 attribute. Indicates the type
  15442. * of the operation %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE intended for.
  15443. * Required only in a command. Possible values for this attribute are defined in
  15444. * enum qca_wlan_vendor_link_state_op_types.
  15445. *
  15446. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE: u32 attribute. Indicates MLO
  15447. * links control mode type. Optional attribute in a command when
  15448. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15449. * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
  15450. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15451. * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
  15452. * See enum qca_wlan_vendor_link_state_control_modes for possible control modes.
  15453. *
  15454. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG: Array of nested attributes.
  15455. * Indicates the state of the each MLO link affiliated with the interface.
  15456. * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
  15457. * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
  15458. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
  15459. * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER. Required attribute in a
  15460. * response when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15461. * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
  15462. * See enum qca_wlan_vendor_attr_link_state_config for the nested attributes.
  15463. *
  15464. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS: u8 attribute.
  15465. * Represents the number of active state links. See enum
  15466. * qca_wlan_vendor_link_state for active state definition.
  15467. * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
  15468. * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
  15469. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
  15470. * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED.
  15471. *
  15472. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE: u32 attribute. Indicates MLO
  15473. * links operation mode type. Optional attribute in a command when
  15474. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15475. * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
  15476. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15477. * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
  15478. * See enum qca_wlan_vendor_link_state_operation_modes for possible operation
  15479. * modes.
  15480. */
  15481. enum qca_wlan_vendor_attr_mlo_link_state {
  15482. QCA_WLAN_VENDOR_ATTR_LINK_STATE_INVALID = 0,
  15483. QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE = 1,
  15484. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE = 2,
  15485. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG = 3,
  15486. QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS = 4,
  15487. QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE = 5,
  15488. /* keep last */
  15489. QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST,
  15490. QCA_WLAN_VENDOR_ATTR_LINK_STATE_MAX =
  15491. QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST - 1,
  15492. };
  15493. #endif